From fa187be617716d67bf99b500eebdff828102378e Mon Sep 17 00:00:00 2001 From: Harini Gunabalan Date: Sat, 21 Mar 2020 23:31:43 +0100 Subject: [PATCH] Adding code of OpenSAP week2 unit 1 demo --- package-lock.json | 2227 +++++++++++++++++ package.json | 1 - packages/bookshop-enhanced/app/index.cds | 1 - packages/bookshop-enhanced/db/schema.cds | 25 - packages/bookshop-enhanced/package.json | 29 - packages/bookshop-enhanced/srv/services.cds | 9 - packages/bookshop-enhanced/srv/services.js | 30 - packages/bookshop-enhanced/tests/genres.http | 33 - packages/bookshop-enhanced/tests/reviews.http | 32 - packages/bookshop/app/_i18n/i18n.properties | 13 - .../bookshop/app/_i18n/i18n_de.properties | 13 - packages/bookshop/app/admin/fiori-service.cds | 37 - .../bookshop/app/admin/webapp/Component.js | 22 - .../app/admin/webapp/i18n/i18n.properties | 11 - .../bookshop/app/admin/webapp/manifest.json | 128 - .../bookshop/app/browse/fiori-service.cds | 47 - .../bookshop/app/browse/webapp/Component.js | 22 - .../app/browse/webapp/i18n/i18n.properties | 11 - .../bookshop/app/browse/webapp/manifest.json | 106 - packages/bookshop/app/common.cds | 74 - packages/bookshop/app/fiori.html | 55 - packages/bookshop/app/index.cds | 8 - .../bookshop/app/orders/fiori-service.cds | 118 - .../bookshop/app/orders/webapp/Component.js | 22 - .../app/orders/webapp/i18n/i18n.properties | 11 - .../bookshop/app/orders/webapp/manifest.json | 170 -- .../db/data/sap.capire.bookshop-Authors.csv | 10 +- .../db/data/sap.capire.bookshop-Books.csv | 12 +- .../data/sap.capire.bookshop-Books_texts.csv | 4 - .../data/sap.capire.bookshop-OrderItems.csv | 4 - .../db/data/sap.capire.bookshop-Orders.csv | 3 - .../db/data/sap.common-Currencies.csv | 7 - .../db/data/sap.common-Currencies_texts.csv | 13 - packages/bookshop/db/schema.cds | 51 +- packages/bookshop/package-lock.json | 955 +++++++ packages/bookshop/package.json | 23 +- packages/bookshop/sample requests.http | 12 + packages/bookshop/srv/admin-service.cds | 6 +- packages/bookshop/srv/cat-service.cds | 7 +- packages/bookshop/srv/cat-service.js | 46 +- packages/bookshop/tests/bookshop.http | 18 - packages/bookshop/tests/orders.http | 18 - .../db/data/sap.capire.bookstore-Authors.csv | 5 - .../data/sap.capire.products-Categories.csv | 11 - .../db/data/sap.capire.products-Products.csv | 6 - .../sap.capire.products-Products_texts.csv | 4 - packages/bookstore/db/schema.cds | 18 - packages/bookstore/package.json | 48 - packages/bookstore/srv/_workarounds.cds | 12 - packages/bookstore/srv/services.cds | 35 - packages/bookstore/srv/services.js | 38 - packages/bookstore/tests/books.cds | 7 - .../bookstore/tests/localized-data.test.js | 190 -- packages/common-contacts/db/code-lists.cds | 37 - .../db/data/sap.capire.contacts-Countries.csv | 12 - .../sap.capire.contacts-Countries_texts.csv | 12 - packages/common-contacts/db/schema.cds | 58 - packages/common-contacts/index.cds | 2 - packages/common-contacts/package.json | 10 - packages/common-contacts/readme.md | 67 - packages/common-contacts/srv/code-lists.js | 70 - .../common-contacts/tests/code-lists.test.js | 68 - packages/common-contacts/tests/index.cds | 11 - .../data/sap.common-Currencies.csv | 12 - .../data/sap.common-Currencies_texts.csv | 13 - packages/common-currencies/index.cds | 17 - packages/common-currencies/package.json | 10 - packages/media-server/db/data-model.cds | 13 - packages/media-server/index.cds | 2 - packages/media-server/package.json | 24 - packages/media-server/srv/media-service.cds | 8 - packages/media-server/srv/media-service.js | 68 - .../db/data/sap.capire.orders-OrderItems.csv | 4 - .../db/data/sap.capire.orders-Orders.csv | 3 - packages/orders-service/db/schema.cds | 15 - packages/orders-service/index.cds | 2 - packages/orders-service/package.json | 11 - .../orders-service/srv/orders-service.cds | 6 - packages/products-service/db/schema.cds | 18 - packages/products-service/index.cds | 2 - packages/products-service/package.json | 16 - .../products-service/srv/admin-service.cds | 7 - .../products-service/tests/categories.test.js | 68 - .../data/sap.capire.products-Categories.csv | 10 - packages/products-service/tests/postman.json | 157 -- packages/reviews-service/db/schema.cds | 31 - packages/reviews-service/index.cds | 1 - packages/reviews-service/package.json | 30 - .../reviews-service/srv/reviews-service.cds | 41 - .../reviews-service/srv/reviews-service.js | 41 - .../reviews-service/tests/messaging.test.js | 69 - packages/users-service/index.cds | 1 - packages/users-service/package.json | 12 - packages/users-service/srv/services.cds | 7 - 94 files changed, 3270 insertions(+), 2614 deletions(-) create mode 100644 package-lock.json delete mode 100644 packages/bookshop-enhanced/app/index.cds delete mode 100644 packages/bookshop-enhanced/db/schema.cds delete mode 100644 packages/bookshop-enhanced/package.json delete mode 100644 packages/bookshop-enhanced/srv/services.cds delete mode 100644 packages/bookshop-enhanced/srv/services.js delete mode 100644 packages/bookshop-enhanced/tests/genres.http delete mode 100644 packages/bookshop-enhanced/tests/reviews.http delete mode 100644 packages/bookshop/app/_i18n/i18n.properties delete mode 100644 packages/bookshop/app/_i18n/i18n_de.properties delete mode 100644 packages/bookshop/app/admin/fiori-service.cds delete mode 100644 packages/bookshop/app/admin/webapp/Component.js delete mode 100644 packages/bookshop/app/admin/webapp/i18n/i18n.properties delete mode 100644 packages/bookshop/app/admin/webapp/manifest.json delete mode 100644 packages/bookshop/app/browse/fiori-service.cds delete mode 100644 packages/bookshop/app/browse/webapp/Component.js delete mode 100644 packages/bookshop/app/browse/webapp/i18n/i18n.properties delete mode 100644 packages/bookshop/app/browse/webapp/manifest.json delete mode 100644 packages/bookshop/app/common.cds delete mode 100644 packages/bookshop/app/fiori.html delete mode 100644 packages/bookshop/app/index.cds delete mode 100644 packages/bookshop/app/orders/fiori-service.cds delete mode 100644 packages/bookshop/app/orders/webapp/Component.js delete mode 100644 packages/bookshop/app/orders/webapp/i18n/i18n.properties delete mode 100644 packages/bookshop/app/orders/webapp/manifest.json delete mode 100644 packages/bookshop/db/data/sap.capire.bookshop-Books_texts.csv delete mode 100644 packages/bookshop/db/data/sap.capire.bookshop-OrderItems.csv delete mode 100644 packages/bookshop/db/data/sap.capire.bookshop-Orders.csv delete mode 100644 packages/bookshop/db/data/sap.common-Currencies.csv delete mode 100644 packages/bookshop/db/data/sap.common-Currencies_texts.csv create mode 100644 packages/bookshop/package-lock.json create mode 100644 packages/bookshop/sample requests.http delete mode 100644 packages/bookshop/tests/bookshop.http delete mode 100644 packages/bookshop/tests/orders.http delete mode 100644 packages/bookstore/db/data/sap.capire.bookstore-Authors.csv delete mode 100644 packages/bookstore/db/data/sap.capire.products-Categories.csv delete mode 100644 packages/bookstore/db/data/sap.capire.products-Products.csv delete mode 100644 packages/bookstore/db/data/sap.capire.products-Products_texts.csv delete mode 100644 packages/bookstore/db/schema.cds delete mode 100644 packages/bookstore/package.json delete mode 100644 packages/bookstore/srv/_workarounds.cds delete mode 100644 packages/bookstore/srv/services.cds delete mode 100644 packages/bookstore/srv/services.js delete mode 100644 packages/bookstore/tests/books.cds delete mode 100644 packages/bookstore/tests/localized-data.test.js delete mode 100644 packages/common-contacts/db/code-lists.cds delete mode 100644 packages/common-contacts/db/data/sap.capire.contacts-Countries.csv delete mode 100644 packages/common-contacts/db/data/sap.capire.contacts-Countries_texts.csv delete mode 100644 packages/common-contacts/db/schema.cds delete mode 100644 packages/common-contacts/index.cds delete mode 100644 packages/common-contacts/package.json delete mode 100644 packages/common-contacts/readme.md delete mode 100644 packages/common-contacts/srv/code-lists.js delete mode 100644 packages/common-contacts/tests/code-lists.test.js delete mode 100644 packages/common-contacts/tests/index.cds delete mode 100644 packages/common-currencies/data/sap.common-Currencies.csv delete mode 100644 packages/common-currencies/data/sap.common-Currencies_texts.csv delete mode 100644 packages/common-currencies/index.cds delete mode 100644 packages/common-currencies/package.json delete mode 100644 packages/media-server/db/data-model.cds delete mode 100644 packages/media-server/index.cds delete mode 100644 packages/media-server/package.json delete mode 100644 packages/media-server/srv/media-service.cds delete mode 100644 packages/media-server/srv/media-service.js delete mode 100644 packages/orders-service/db/data/sap.capire.orders-OrderItems.csv delete mode 100644 packages/orders-service/db/data/sap.capire.orders-Orders.csv delete mode 100644 packages/orders-service/db/schema.cds delete mode 100644 packages/orders-service/index.cds delete mode 100644 packages/orders-service/package.json delete mode 100644 packages/orders-service/srv/orders-service.cds delete mode 100644 packages/products-service/db/schema.cds delete mode 100644 packages/products-service/index.cds delete mode 100644 packages/products-service/package.json delete mode 100644 packages/products-service/srv/admin-service.cds delete mode 100644 packages/products-service/tests/categories.test.js delete mode 100644 packages/products-service/tests/data/sap.capire.products-Categories.csv delete mode 100644 packages/products-service/tests/postman.json delete mode 100644 packages/reviews-service/db/schema.cds delete mode 100644 packages/reviews-service/index.cds delete mode 100644 packages/reviews-service/package.json delete mode 100644 packages/reviews-service/srv/reviews-service.cds delete mode 100644 packages/reviews-service/srv/reviews-service.js delete mode 100644 packages/reviews-service/tests/messaging.test.js delete mode 100644 packages/users-service/index.cds delete mode 100644 packages/users-service/package.json delete mode 100644 packages/users-service/srv/services.cds diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 00000000..2351ebd9 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,2227 @@ +{ + "name": "@sap/capire-samples", + "requires": true, + "lockfileVersion": 1, + "dependencies": { + "@sap/cds": { + "version": "3.31.2", + "resolved": "https://npm.sap.com/@sap/cds/-/cds-3.31.2.tgz", + "integrity": "sha512-zarDmqv4H9590wUKRCVEWOhurrIGj9jeddMpwgvArvPljU5Ayib8L03UDDkG81YmU9UPpOsP3O1kiNW1xLPwqg==", + "requires": { + "@sap/cds-compiler": "^1.23.2", + "@sap/cds-foss": "^1.1.0", + "@sap/cds-messaging": "^1.7.0", + "@sap/cds-reflect": "^2.10.1", + "@sap/cds-rest": "^1.5.0", + "@sap/cds-services": "^1.25.1" + } + }, + "@sap/cds-compiler": { + "version": "1.23.2", + "resolved": "https://npm.sap.com/@sap/cds-compiler/-/cds-compiler-1.23.2.tgz", + "integrity": "sha512-yy0O8f8D9eZEnqjP/D+VgmMU4mfXCBb3ICjbjNdcRWWElgATC+0sbtlr4N3KjqE0PPU6vL9Lsgi5K0FAguEF1A==", + "requires": { + "antlr4": "4.7.1", + "resolve": "1.8.1", + "sax": "1.2.4" + }, + "dependencies": { + "antlr4": { + "version": "4.7.1", + "resolved": "https://registry.npmjs.org/antlr4/-/antlr4-4.7.1.tgz", + "integrity": "sha512-haHyTW7Y9joE5MVs37P2lNYfU2RWBLfcRDD8OWldcdZm5TiCE91B5Xl1oWSwiDUSd4rlExpt2pu1fksYQjRBYQ==" + }, + "resolve": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.8.1.tgz", + "integrity": "sha512-AicPrAC7Qu1JxPCZ9ZgCZlY35QgFnNqc+0LtbRNxnVw4TXvjQ72wnuL9JQcEBgXkI9JM8MsT9kaQoHcpCRJOYA==", + "requires": { + "path-parse": "^1.0.5" + }, + "dependencies": { + "path-parse": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz", + "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=" + } + } + }, + "sax": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" + } + } + }, + "@sap/cds-foss": { + "version": "1.1.0", + "resolved": "https://npm.sap.com/@sap/cds-foss/-/cds-foss-1.1.0.tgz", + "integrity": "sha512-Bk5iTC9VqaibPHYCcrGcvTGnDqZkrv/EbtYKk0K25ImXbtk3Da07NUIYsCqkTjRCbuYPI4llGh1gUC7c+35DDQ==", + "requires": { + "fs-extra": "7.0.1", + "generic-pool": "3.7.1", + "uuid": "3.3.2", + "yaml": "1.5.1" + }, + "dependencies": { + "@babel/runtime": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.6.3.tgz", + "integrity": "sha512-kq6anf9JGjW8Nt5rYfEuGRaEAaH1mkv3Bbu6rYvLOpPh/RusSJXuKPEAoZ7L7gybZkchE8+NV5g9vKF4AGAtsA==", + "requires": { + "regenerator-runtime": "^0.13.2" + } + }, + "fs-extra": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "generic-pool": { + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/generic-pool/-/generic-pool-3.7.1.tgz", + "integrity": "sha512-ug6DAZoNgWm6q5KhPFA+hzXfBLFQu5sTXxPpv44DmE0A2g+CiHoq9LTVdkXpZMkYVMoGw83F6W+WT0h0MFMK/w==" + }, + "graceful-fs": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz", + "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==" + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "regenerator-runtime": { + "version": "0.13.3", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz", + "integrity": "sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw==" + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" + }, + "uuid": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", + "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==" + }, + "yaml": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.5.1.tgz", + "integrity": "sha512-btfJvMOgVthGZSgHBMrDkLuQu4YxOycw6kwuC67cUEOKJmmNozjIa02eKvuSq7usqqqpwwCvflGTF6JcDvSudw==", + "requires": { + "@babel/runtime": "^7.4.4" + } + } + } + }, + "@sap/cds-hana": { + "version": "1.24.0", + "resolved": "https://npm.sap.com/@sap/cds-hana/-/cds-hana-1.24.0.tgz", + "integrity": "sha512-VXDnK5sZ01Vv6H9Vp1K2Hogw885ogWPW1GtyfI27sNo0aEytGCt8YE8d5LmPgsyldmGa8hu5/LuHBaWpdxrwyg==", + "requires": { + "@sap/cds-sql": "^1.23.2" + }, + "dependencies": { + "@babel/runtime": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.8.4.tgz", + "integrity": "sha512-neAp3zt80trRVBI1x0azq6c57aNBqYZH8KhMm3TaB7wEI5Q4A2SHfBHE8w9gOhI/lrqxtEbXZgQIrHP+wvSGwQ==", + "requires": { + "regenerator-runtime": "^0.13.2" + } + }, + "@sap/cds-foss": { + "version": "1.1.0", + "resolved": "https://npm.sap.com/@sap/cds-foss/-/cds-foss-1.1.0.tgz", + "integrity": "sha512-Bk5iTC9VqaibPHYCcrGcvTGnDqZkrv/EbtYKk0K25ImXbtk3Da07NUIYsCqkTjRCbuYPI4llGh1gUC7c+35DDQ==", + "requires": { + "fs-extra": "7.0.1", + "generic-pool": "3.7.1", + "uuid": "3.3.2", + "yaml": "1.5.1" + } + }, + "@sap/cds-sql": { + "version": "1.23.2", + "resolved": "https://npm.sap.com/@sap/cds-sql/-/cds-sql-1.23.2.tgz", + "integrity": "sha512-43KyxRLHGtOpNlgGapqx7/E4NULCs0+TRupwjvnOHK88svluQyiHElI2VrsZZqgDdDRhHtmo7LJJTy5I4q+OrA==", + "requires": { + "@sap/cds-foss": "^1.1.0" + } + }, + "fs-extra": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "generic-pool": { + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/generic-pool/-/generic-pool-3.7.1.tgz", + "integrity": "sha512-ug6DAZoNgWm6q5KhPFA+hzXfBLFQu5sTXxPpv44DmE0A2g+CiHoq9LTVdkXpZMkYVMoGw83F6W+WT0h0MFMK/w==" + }, + "graceful-fs": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz", + "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==" + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "regenerator-runtime": { + "version": "0.13.3", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz", + "integrity": "sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw==" + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" + }, + "uuid": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", + "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==" + }, + "yaml": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.5.1.tgz", + "integrity": "sha512-btfJvMOgVthGZSgHBMrDkLuQu4YxOycw6kwuC67cUEOKJmmNozjIa02eKvuSq7usqqqpwwCvflGTF6JcDvSudw==", + "requires": { + "@babel/runtime": "^7.4.4" + } + } + } + }, + "@sap/cds-messaging": { + "version": "1.7.0", + "resolved": "https://npm.sap.com/@sap/cds-messaging/-/cds-messaging-1.7.0.tgz", + "integrity": "sha512-TIN4L+Q9RmRMw8jShWl6TOya1a1YcQgsLEBxlWNgvjXPbZS3sSDBvq8Uv7T9UTiaSmcqtr7S+n8NaQOPm0kQ4Q==" + }, + "@sap/cds-reflect": { + "version": "2.10.1", + "resolved": "https://npm.sap.com/@sap/cds-reflect/-/cds-reflect-2.10.1.tgz", + "integrity": "sha512-ZCIQFtO9l6sank3eVMyLh0hXoJ9y4u+SlQBxHMRiciqu1F3HHab40dhimr998lTVde2hodCww5Jkxle2HXNcCQ==" + }, + "@sap/cds-rest": { + "version": "1.5.1", + "resolved": "https://npm.sap.com/@sap/cds-rest/-/cds-rest-1.5.1.tgz", + "integrity": "sha512-c+QUyVwS8oJVFNdzTOQ9V1gm2k4ugVhTeqmrlqxjFlaPM5mp2nHdsBdrUSXCB/9OK8H8LkeIlF1/m2qvbQBIWA==", + "requires": { + "@sap/cloud-sdk-core": "1.16.0", + "@sap/cloud-sdk-util": "1.16.0" + } + }, + "@sap/cds-services": { + "version": "1.25.1", + "resolved": "https://npm.sap.com/@sap/cds-services/-/cds-services-1.25.1.tgz", + "integrity": "sha512-/ByyLxuASy6XRi/wFbLcy4ClSLujdQsZVu34MuhXKywtMse/wji9O0Rp3LLnr5q69BMDNn/5Ohzc84L273aqNg==", + "requires": { + "@sap/cds-foss": "^1.1.0", + "@sap/cds-hana": "^1.24.0", + "@sap/cds-sql": "^1.23.2", + "@sap/cds-sqlite": "^1.23.1", + "@sap/odata-server": "1.5.2" + } + }, + "@sap/cds-sql": { + "version": "1.23.2", + "resolved": "https://npm.sap.com/@sap/cds-sql/-/cds-sql-1.23.2.tgz", + "integrity": "sha512-43KyxRLHGtOpNlgGapqx7/E4NULCs0+TRupwjvnOHK88svluQyiHElI2VrsZZqgDdDRhHtmo7LJJTy5I4q+OrA==", + "requires": { + "@sap/cds-foss": "^1.1.0" + }, + "dependencies": { + "@babel/runtime": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.8.4.tgz", + "integrity": "sha512-neAp3zt80trRVBI1x0azq6c57aNBqYZH8KhMm3TaB7wEI5Q4A2SHfBHE8w9gOhI/lrqxtEbXZgQIrHP+wvSGwQ==", + "requires": { + "regenerator-runtime": "^0.13.2" + } + }, + "@sap/cds-foss": { + "version": "1.1.0", + "resolved": "https://npm.sap.com/@sap/cds-foss/-/cds-foss-1.1.0.tgz", + "integrity": "sha512-Bk5iTC9VqaibPHYCcrGcvTGnDqZkrv/EbtYKk0K25ImXbtk3Da07NUIYsCqkTjRCbuYPI4llGh1gUC7c+35DDQ==", + "requires": { + "fs-extra": "7.0.1", + "generic-pool": "3.7.1", + "uuid": "3.3.2", + "yaml": "1.5.1" + } + }, + "fs-extra": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "generic-pool": { + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/generic-pool/-/generic-pool-3.7.1.tgz", + "integrity": "sha512-ug6DAZoNgWm6q5KhPFA+hzXfBLFQu5sTXxPpv44DmE0A2g+CiHoq9LTVdkXpZMkYVMoGw83F6W+WT0h0MFMK/w==" + }, + "graceful-fs": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz", + "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==" + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "regenerator-runtime": { + "version": "0.13.3", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz", + "integrity": "sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw==" + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" + }, + "uuid": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", + "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==" + }, + "yaml": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.5.1.tgz", + "integrity": "sha512-btfJvMOgVthGZSgHBMrDkLuQu4YxOycw6kwuC67cUEOKJmmNozjIa02eKvuSq7usqqqpwwCvflGTF6JcDvSudw==", + "requires": { + "@babel/runtime": "^7.4.4" + } + } + } + }, + "@sap/cds-sqlite": { + "version": "1.23.1", + "resolved": "https://npm.sap.com/@sap/cds-sqlite/-/cds-sqlite-1.23.1.tgz", + "integrity": "sha512-FKBP61Ztkmgc6UXRgbps+wH8+Sdn6zFiP2UH/QTuTqz1EBq3qo8VnAo8Ls9R6tR+XHlyeNpFP5Fys2SRkDuRzA==", + "requires": { + "@sap/cds-sql": "^1.23.2" + } + }, + "@sap/cloud-sdk-analytics": { + "version": "1.17.2", + "resolved": "https://npm.sap.com/@sap/cloud-sdk-analytics/-/cloud-sdk-analytics-1.17.2.tgz", + "integrity": "sha512-0Zk+FpQOJH+4bOWG5NNPm2z/wZwQPayUH05Of15bgxdgAU4zzLC6Y9PXds57JSSTy7Acd5cTliuq9xzrYrVLNg==", + "requires": { + "@sap/cloud-sdk-util": "^1.17.2", + "axios": "0.19.0" + }, + "dependencies": { + "@sap/cloud-sdk-util": { + "version": "1.17.2", + "resolved": "https://npm.sap.com/@sap/cloud-sdk-util/-/cloud-sdk-util-1.17.2.tgz", + "integrity": "sha512-VSoA1BSlfmrdIGX7vTDtk3L1javAhj5n4h1blEU7caaOMLAt1rKjls7iQs7Td73oFEIlG8qftiKwUYPUWszUxA==", + "requires": { + "chalk": "^2.4.2", + "rambda": "2.14.5", + "winston": "^3.2.1" + } + } + } + }, + "@sap/cloud-sdk-core": { + "version": "1.16.0", + "resolved": "https://npm.sap.com/@sap/cloud-sdk-core/-/cloud-sdk-core-1.16.0.tgz", + "integrity": "sha512-8B+2Huhb+Y7QvIuK2dsD9iM9Mn9ESipOz8S/xxW3SdyQOel526lxdqIt66+a7Z41dhTfNuAFuqJRWS5En7365Q==", + "requires": { + "@sap/cloud-sdk-analytics": "^1.16.0", + "@sap/cloud-sdk-util": "^1.16.0", + "@sap/xsenv": "2.2.0", + "@types/http-proxy-agent": "^2.0.2", + "axios": "0.19.0", + "bignumber.js": "8.1.1", + "http-proxy-agent": "3.0.0", + "jsonwebtoken": "8.5.1", + "moment": "2.24.0", + "opossum": "4.0.0", + "rambda": "2.14.5", + "uuid": "3.3.2", + "voca": "1.4.0" + } + }, + "@sap/cloud-sdk-util": { + "version": "1.16.0", + "resolved": "https://npm.sap.com/@sap/cloud-sdk-util/-/cloud-sdk-util-1.16.0.tgz", + "integrity": "sha512-4jc5QyCWd8W8+qk8x67/1OIPV5CB5/0nB/G/JC3vU+h49NvjjS+W6wWDYL+F0WmDEr3hPvbYSZ5weUvmU5RzjQ==", + "requires": { + "chalk": "^2.4.2", + "rambda": "2.14.5", + "winston": "^3.2.1" + } + }, + "@sap/odata-server": { + "version": "1.5.2", + "resolved": "https://npm.sap.com/@sap/odata-server/-/odata-server-1.5.2.tgz", + "integrity": "sha512-ldlzQXNwyXpjXNy4m2oN8MhS/1/Hh2kgveleg8Eg6IUfhRj/owMtQt2/zmgDrIp8bZyWthPI9/qESUHbiR0CTg==", + "requires": { + "@sap/odata-commons": "=2.3.1", + "xmlbuilder": "=13.0.2" + }, + "dependencies": { + "@sap/odata-commons": { + "version": "2.3.1", + "resolved": "https://npm.sap.com/@sap/odata-commons/-/odata-commons-2.3.1.tgz", + "integrity": "sha512-kbHVY5vvQfJsQllhm5OsSeyGQTTgKTyJ/tmUmdQA1hKum2WIywjlozkCZS2DJfoR5jcIuv27O/3hV0XDlN45ww==", + "requires": { + "big.js": "=5.2.2" + } + }, + "big.js": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", + "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==" + }, + "xmlbuilder": { + "version": "13.0.2", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-13.0.2.tgz", + "integrity": "sha512-Eux0i2QdDYKbdbA6AM6xE4m6ZTZr4G4xF9kahI2ukSEMCzwce2eX9WlTI5J3s+NU7hpasFsr8hWIONae7LluAQ==" + } + } + }, + "@sap/xsenv": { + "version": "2.2.0", + "resolved": "https://npm.sap.com/@sap/xsenv/-/xsenv-2.2.0.tgz", + "integrity": "sha512-NtxbAZ2I957OWRVdlT16C3qan1TZ9Cfs9ephEDH03gPwbTm8nRtd1uZ8tqOMj/p1CVt0IAoUnkt985btYhhzkg==", + "requires": { + "debug": "3.1.0", + "verror": "1.10.0" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" + }, + "core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" + }, + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "requires": { + "ms": "2.0.0" + } + }, + "extsprintf": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.4.0.tgz", + "integrity": "sha1-4mifjzVvrWLMplo6kcXfX5VRaS8=" + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", + "requires": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + } + } + } + }, + "@types/http-proxy-agent": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@types/http-proxy-agent/-/http-proxy-agent-2.0.2.tgz", + "integrity": "sha512-2S6IuBRhqUnH1/AUx9k8KWtY3Esg4eqri946MnxTG5HwehF1S5mqLln8fcyMiuQkY72p2gH3W+rIPqp5li0LyQ==", + "requires": { + "@types/node": "*" + } + }, + "@types/node": { + "version": "13.9.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-13.9.0.tgz", + "integrity": "sha512-0ARSQootUG1RljH2HncpsY2TJBfGQIKOOi7kxzUY6z54ePu/ZD+wJA8zI2Q6v8rol2qpG/rvqsReco8zNMPvhQ==" + }, + "abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", + "dev": true + }, + "accepts": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", + "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", + "requires": { + "mime-types": "~2.1.24", + "negotiator": "0.6.2" + } + }, + "agent-base": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-5.1.1.tgz", + "integrity": "sha512-TMeqbNl2fMW0nMjTEPOwe3J/PRFP4vqeoNuQMG0HlMrtm5QxKqdvAkZ1pRBQ/ulIyDD5Yq0nJ7YbdD8ey0TO3g==" + }, + "ajv": { + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.0.tgz", + "integrity": "sha512-D6gFiFA0RRLyUbvijN74DWAjXSFxWKaWP7mldxkVhyhAV3+SWA9HEJPHQ2c9soIeTFJqcSdFDGFgdqs1iUU2Hw==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "requires": { + "color-convert": "^1.9.0" + } + }, + "aproba": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", + "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", + "dev": true + }, + "are-we-there-yet": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz", + "integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==", + "dev": true, + "requires": { + "delegates": "^1.0.0", + "readable-stream": "^2.0.6" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "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==", + "dev": true + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + } + } + } + }, + "array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" + }, + "asn1": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", + "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", + "dev": true, + "requires": { + "safer-buffer": "~2.1.0" + } + }, + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "dev": true + }, + "async": { + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/async/-/async-2.6.3.tgz", + "integrity": "sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg==", + "requires": { + "lodash": "^4.17.14" + } + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", + "dev": true + }, + "aws-sign2": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", + "dev": true + }, + "aws4": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.9.1.tgz", + "integrity": "sha512-wMHVg2EOHaMRxbzgFJ9gtjOOCrI80OHLG14rxi28XwOW8ux6IiEbRCGGGqCtdAIg4FQCbW20k9RsT4y3gJlFug==", + "dev": true + }, + "axios": { + "version": "0.19.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.19.0.tgz", + "integrity": "sha512-1uvKqKQta3KBxIz14F2v06AEHZ/dIoeKfbTRkK1E5oqjDnuEerLmYTgJB5AiQZHJcljpg1TuRzdjDR06qNk0DQ==", + "requires": { + "follow-redirects": "1.5.10", + "is-buffer": "^2.0.2" + } + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "bcrypt-pbkdf": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", + "dev": true, + "requires": { + "tweetnacl": "^0.14.3" + } + }, + "bignumber.js": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-8.1.1.tgz", + "integrity": "sha512-QD46ppGintwPGuL1KqmwhR0O+N2cZUg8JG/VzwI2e28sM9TqHjQB10lI4QAaMHVbLzwVLLAwEglpKPViWX+5NQ==" + }, + "body-parser": { + "version": "1.19.0", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", + "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", + "requires": { + "bytes": "3.1.0", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "~1.1.2", + "http-errors": "1.7.2", + "iconv-lite": "0.4.24", + "on-finished": "~2.3.0", + "qs": "6.7.0", + "raw-body": "2.4.0", + "type-is": "~1.6.17" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + } + } + }, + "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, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=" + }, + "bytes": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", + "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==" + }, + "caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", + "dev": true + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "chownr": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", + "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", + "dev": true + }, + "code-point-at": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", + "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", + "dev": true + }, + "color": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/color/-/color-3.0.0.tgz", + "integrity": "sha512-jCpd5+s0s0t7p3pHQKpnJ0TpQKKdleP71LWcA0aqiljpiuAkOSUFN/dyH8ZwF0hRmFlrIuRhufds1QyEP9EB+w==", + "requires": { + "color-convert": "^1.9.1", + "color-string": "^1.5.2" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + }, + "color-string": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.5.3.tgz", + "integrity": "sha512-dC2C5qeWoYkxki5UAXapdjqO672AM4vZuPGRQfO8b5HKuKGBbKWpITyDYN7TOFKvRW7kOgAn3746clDBMDJyQw==", + "requires": { + "color-name": "^1.0.0", + "simple-swizzle": "^0.2.2" + } + }, + "colornames": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/colornames/-/colornames-1.1.1.tgz", + "integrity": "sha1-+IiQMGhcfE/54qVZ9Qd+t2qBb5Y=" + }, + "colors": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", + "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==" + }, + "colorspace": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/colorspace/-/colorspace-1.1.2.tgz", + "integrity": "sha512-vt+OoIP2d76xLhjwbBaucYlNSpPsrJWPlBTtwCpQKIu6/CSMutyzX93O/Do0qzpH3YoHEes8YEFXyZ797rEhzQ==", + "requires": { + "color": "3.0.x", + "text-hex": "1.0.x" + } + }, + "combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "requires": { + "delayed-stream": "~1.0.0" + } + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "console-control-strings": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", + "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", + "dev": true + }, + "content-disposition": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", + "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", + "requires": { + "safe-buffer": "5.1.2" + }, + "dependencies": { + "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==" + } + } + }, + "content-type": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", + "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" + }, + "cookie": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", + "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==" + }, + "cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" + }, + "core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" + }, + "dashdash": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0" + } + }, + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "requires": { + "ms": "2.0.0" + }, + "dependencies": { + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + } + } + }, + "deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", + "dev": true + }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", + "dev": true + }, + "delegates": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", + "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", + "dev": true + }, + "depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=" + }, + "destroy": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", + "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" + }, + "detect-libc": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", + "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=", + "dev": true + }, + "diagnostics": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/diagnostics/-/diagnostics-1.1.1.tgz", + "integrity": "sha512-8wn1PmdunLJ9Tqbx+Fx/ZEuHfJf4NKSN2ZBj7SJC/OWRWha843+WsTjqMe1B5E3p28jqBlp+mJ2fPVxPyNgYKQ==", + "requires": { + "colorspace": "1.1.x", + "enabled": "1.0.x", + "kuler": "1.0.x" + } + }, + "ecc-jsbn": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", + "dev": true, + "requires": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" + } + }, + "ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" + }, + "enabled": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/enabled/-/enabled-1.0.2.tgz", + "integrity": "sha1-ll9lE9LC0cX0ZStkouM5ZGf8L5M=", + "requires": { + "env-variable": "0.0.x" + } + }, + "encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" + }, + "env-variable": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/env-variable/-/env-variable-0.0.6.tgz", + "integrity": "sha512-bHz59NlBbtS0NhftmR8+ExBEekE7br0e01jw+kk0NDro7TtZzBYZ5ScGPs3OmwnpyfHTHOtr1Y6uedCdrIldtg==" + }, + "escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" + }, + "etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" + }, + "express": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", + "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==", + "requires": { + "accepts": "~1.3.7", + "array-flatten": "1.1.1", + "body-parser": "1.19.0", + "content-disposition": "0.5.3", + "content-type": "~1.0.4", + "cookie": "0.4.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "~1.1.2", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "~1.1.2", + "fresh": "0.5.2", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "~2.3.0", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.5", + "qs": "6.7.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.1.2", + "send": "0.17.1", + "serve-static": "1.14.1", + "setprototypeof": "1.1.1", + "statuses": "~1.5.0", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "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==" + } + } + }, + "extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "dev": true + }, + "extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", + "dev": true + }, + "fast-deep-equal": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz", + "integrity": "sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA==", + "dev": true + }, + "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 + }, + "fast-safe-stringify": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.0.7.tgz", + "integrity": "sha512-Utm6CdzT+6xsDk2m8S6uL8VHxNwI6Jub+e9NYTcAms28T84pTa25GJQV9j0CY0N1rM8hK4x6grpF2BQf+2qwVA==" + }, + "fecha": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fecha/-/fecha-2.3.3.tgz", + "integrity": "sha512-lUGBnIamTAwk4znq5BcqsDaxSmZ9nDVJaij6NvRt/Tg4R69gERA+otPKbS86ROw9nxVMw2/mp1fnaiWqbs6Sdg==" + }, + "finalhandler": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", + "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", + "requires": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "~2.3.0", + "parseurl": "~1.3.3", + "statuses": "~1.5.0", + "unpipe": "~1.0.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + } + } + }, + "follow-redirects": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.10.tgz", + "integrity": "sha512-0V5l4Cizzvqt5D44aTXbFZz+FtyXV1vrDN6qrelxtfYQKW0KO0W2T/hkE8xvGa/540LkZlkaUjO4ailYTFtHVQ==", + "requires": { + "debug": "=3.1.0" + } + }, + "forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", + "dev": true + }, + "form-data": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", + "dev": true, + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + } + }, + "forwarded": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", + "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=" + }, + "fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" + }, + "fs-minipass": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-1.2.7.tgz", + "integrity": "sha512-GWSSJGFy4e9GUeCcbIkED+bgAoFyj7XF1mV8rma3QW4NIqX9Kyx79N/PF61H5udOV3aY1IaMLs6pGbH71nlCTA==", + "dev": true, + "requires": { + "minipass": "^2.6.0" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "gauge": { + "version": "2.7.4", + "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", + "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", + "dev": true, + "requires": { + "aproba": "^1.0.3", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.0", + "object-assign": "^4.1.0", + "signal-exit": "^3.0.0", + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wide-align": "^1.1.0" + } + }, + "getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0" + } + }, + "glob": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", + "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "har-schema": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", + "dev": true + }, + "har-validator": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", + "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", + "dev": true, + "requires": { + "ajv": "^6.5.5", + "har-schema": "^2.0.0" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" + }, + "has-unicode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", + "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", + "dev": true + }, + "http-errors": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", + "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", + "requires": { + "depd": "~1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.1", + "statuses": ">= 1.5.0 < 2", + "toidentifier": "1.0.0" + }, + "dependencies": { + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" + } + } + }, + "http-proxy-agent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-3.0.0.tgz", + "integrity": "sha512-uGuJaBWQWDQCJI5ip0d/VTYZW0nRrlLWXA4A7P1jrsa+f77rW2yXz315oBt6zGCF6l8C2tlMxY7ffULCj+5FhA==", + "requires": { + "agent-base": "5", + "debug": "4" + }, + "dependencies": { + "debug": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "requires": { + "ms": "^2.1.1" + } + } + } + }, + "http-signature": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + } + }, + "iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + }, + "ignore-walk": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-3.0.3.tgz", + "integrity": "sha512-m7o6xuOaT1aqheYHKf8W6J5pYH85ZI9w077erOzLje3JsB1gkafkAhHHY19dqjulgIZHFm32Cp5uNZgcQqdJKw==", + "dev": true, + "requires": { + "minimatch": "^3.0.4" + } + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "ini": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", + "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", + "dev": true + }, + "ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==" + }, + "is-arrayish": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", + "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==" + }, + "is-buffer": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.4.tgz", + "integrity": "sha512-Kq1rokWXOPXWuaMAqZiJW4XxsmD9zGx9q4aePabbn3qCRGedtH7Cm+zV8WETitMfu1wdh+Rvd6w5egwSngUX2A==" + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "dev": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" + }, + "is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", + "dev": true + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" + }, + "isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", + "dev": true + }, + "jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", + "dev": true + }, + "json-schema": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", + "dev": true + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", + "dev": true + }, + "jsonwebtoken": { + "version": "8.5.1", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz", + "integrity": "sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==", + "requires": { + "jws": "^3.2.2", + "lodash.includes": "^4.3.0", + "lodash.isboolean": "^3.0.3", + "lodash.isinteger": "^4.0.4", + "lodash.isnumber": "^3.0.3", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.once": "^4.0.0", + "ms": "^2.1.1", + "semver": "^5.6.0" + } + }, + "jsprim": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", + "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", + "dev": true, + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.2.3", + "verror": "1.10.0" + } + }, + "jwa": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", + "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", + "requires": { + "buffer-equal-constant-time": "1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "jws": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", + "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", + "requires": { + "jwa": "^1.4.1", + "safe-buffer": "^5.0.1" + } + }, + "kuler": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/kuler/-/kuler-1.0.1.tgz", + "integrity": "sha512-J9nVUucG1p/skKul6DU3PUZrhs0LPulNaeUOox0IyXDi8S4CztTHs1gQphhuZmzXG7VOQSf6NJfKuzteQLv9gQ==", + "requires": { + "colornames": "^1.1.1" + } + }, + "lodash": { + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==" + }, + "lodash.includes": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", + "integrity": "sha1-YLuYqHy5I8aMoeUTJUgzFISfVT8=" + }, + "lodash.isboolean": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", + "integrity": "sha1-bC4XHbKiV82WgC/UOwGyDV9YcPY=" + }, + "lodash.isinteger": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", + "integrity": "sha1-YZwK89A/iwTDH1iChAt3sRzWg0M=" + }, + "lodash.isnumber": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", + "integrity": "sha1-POdoEMWSjQM1IwGsKHMX8RwLH/w=" + }, + "lodash.isplainobject": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", + "integrity": "sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs=" + }, + "lodash.isstring": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", + "integrity": "sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=" + }, + "lodash.once": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", + "integrity": "sha1-DdOXEhPHxW34gJd9UEyI+0cal6w=" + }, + "logform": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/logform/-/logform-2.1.2.tgz", + "integrity": "sha512-+lZh4OpERDBLqjiwDLpAWNQu6KMjnlXH2ByZwCuSqVPJletw0kTWJf5CgSNAUKn1KUkv3m2cUz/LK8zyEy7wzQ==", + "requires": { + "colors": "^1.2.1", + "fast-safe-stringify": "^2.0.4", + "fecha": "^2.3.3", + "ms": "^2.1.1", + "triple-beam": "^1.3.0" + } + }, + "media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=" + }, + "merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" + }, + "methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" + }, + "mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" + }, + "mime-db": { + "version": "1.43.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.43.0.tgz", + "integrity": "sha512-+5dsGEEovYbT8UY9yD7eE4XTc4UwJ1jBYlgaQQF38ENsKR3wj/8q8RFZrF9WIZpB2V1ArTVFUva8sAul1NzRzQ==" + }, + "mime-types": { + "version": "2.1.26", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.26.tgz", + "integrity": "sha512-01paPWYgLrkqAyrlDorC1uDwl2p3qZT7yl806vW7DvDoxwXi46jsjFbg+WdwotBIk6/MbEhO/dh5aZ5sNj/dWQ==", + "requires": { + "mime-db": "1.43.0" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + }, + "minipass": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-2.9.0.tgz", + "integrity": "sha512-wxfUjg9WebH+CUDX/CdbRlh5SmfZiy/hpkxaRI16Y9W56Pa75sWgd/rvFilSgrauD9NyFymP/+JFV3KwzIsJeg==", + "dev": true, + "requires": { + "safe-buffer": "^5.1.2", + "yallist": "^3.0.0" + } + }, + "minizlib": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-1.3.3.tgz", + "integrity": "sha512-6ZYMOEnmVsdCeTJVE0W9ZD+pVnE8h9Hma/iOwwRDsdQoePpoX56/8B6z3P9VNwppJuBKNRuFDRNRqRWexT9G9Q==", + "dev": true, + "requires": { + "minipass": "^2.9.0" + } + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "moment": { + "version": "2.24.0", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.24.0.tgz", + "integrity": "sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg==" + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "nan": { + "version": "2.14.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.0.tgz", + "integrity": "sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg==", + "dev": true + }, + "needle": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/needle/-/needle-2.3.3.tgz", + "integrity": "sha512-EkY0GeSq87rWp1hoq/sH/wnTWgFVhYlnIkbJ0YJFfRgEFlz2RraCjBpFQ+vrEgEdp0ThfyHADmkChEhcb7PKyw==", + "dev": true, + "requires": { + "debug": "^3.2.6", + "iconv-lite": "^0.4.4", + "sax": "^1.2.4" + }, + "dependencies": { + "debug": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", + "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + } + } + }, + "negotiator": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", + "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==" + }, + "node-pre-gyp": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.11.0.tgz", + "integrity": "sha512-TwWAOZb0j7e9eGaf9esRx3ZcLaE5tQ2lvYy1pb5IAaG1a2e2Kv5Lms1Y4hpj+ciXJRofIxxlt5haeQ/2ANeE0Q==", + "dev": true, + "requires": { + "detect-libc": "^1.0.2", + "mkdirp": "^0.5.1", + "needle": "^2.2.1", + "nopt": "^4.0.1", + "npm-packlist": "^1.1.6", + "npmlog": "^4.0.2", + "rc": "^1.2.7", + "rimraf": "^2.6.1", + "semver": "^5.3.0", + "tar": "^4" + } + }, + "nopt": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.3.tgz", + "integrity": "sha512-CvaGwVMztSMJLOeXPrez7fyfObdZqNUK1cPAEzLHrTybIua9pMdmmPR5YwtfNftIOMv3DPUhFaxsZMNTQO20Kg==", + "dev": true, + "requires": { + "abbrev": "1", + "osenv": "^0.1.4" + } + }, + "npm-bundled": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.1.1.tgz", + "integrity": "sha512-gqkfgGePhTpAEgUsGEgcq1rqPXA+tv/aVBlgEzfXwA1yiUJF7xtEt3CtVwOjNYQOVknDk0F20w58Fnm3EtG0fA==", + "dev": true, + "requires": { + "npm-normalize-package-bin": "^1.0.1" + } + }, + "npm-normalize-package-bin": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/npm-normalize-package-bin/-/npm-normalize-package-bin-1.0.1.tgz", + "integrity": "sha512-EPfafl6JL5/rU+ot6P3gRSCpPDW5VmIzX959Ob1+ySFUuuYHWHekXpwdUZcKP5C+DS4GEtdJluwBjnsNDl+fSA==", + "dev": true + }, + "npm-packlist": { + "version": "1.4.8", + "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-1.4.8.tgz", + "integrity": "sha512-5+AZgwru5IevF5ZdnFglB5wNlHG1AOOuw28WhUq8/8emhBmLv6jX5by4WJCh7lW0uSYZYS6DXqIsyZVIXRZU9A==", + "dev": true, + "requires": { + "ignore-walk": "^3.0.1", + "npm-bundled": "^1.0.1", + "npm-normalize-package-bin": "^1.0.1" + } + }, + "npmlog": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", + "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", + "dev": true, + "requires": { + "are-we-there-yet": "~1.1.2", + "console-control-strings": "~1.1.0", + "gauge": "~2.7.3", + "set-blocking": "~2.0.0" + } + }, + "number-is-nan": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", + "dev": true + }, + "oauth-sign": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", + "dev": true + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "dev": true + }, + "on-finished": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", + "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", + "requires": { + "ee-first": "1.1.1" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "one-time": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/one-time/-/one-time-0.0.4.tgz", + "integrity": "sha1-+M33eISCb+Tf+T46nMN7HkSAdC4=" + }, + "opossum": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/opossum/-/opossum-4.0.0.tgz", + "integrity": "sha512-T9w/cxhT5Q3WcaU6m3BE9csDzyojC1+NniMqJipTeqiUKU4h3DdZqZubKgekpMD507dXUAzNASwD33VVRtJP4A==" + }, + "os-homedir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", + "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", + "dev": true + }, + "os-tmpdir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", + "dev": true + }, + "osenv": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz", + "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", + "dev": true, + "requires": { + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.0" + } + }, + "parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-to-regexp": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" + }, + "performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", + "dev": true + }, + "process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" + }, + "proxy-addr": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.6.tgz", + "integrity": "sha512-dh/frvCBVmSsDYzw6n926jv974gddhkFPfiN8hPOi30Wax25QZyZEGveluCgliBnqmuM+UJmBErbAUFIoDbjOw==", + "requires": { + "forwarded": "~0.1.2", + "ipaddr.js": "1.9.1" + } + }, + "psl": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.7.0.tgz", + "integrity": "sha512-5NsSEDv8zY70ScRnOTn7bK7eanl2MvFrOrS/R6x+dBt5g1ghnj9Zv90kO8GwT8gxcu2ANyFprnFYB85IogIJOQ==", + "dev": true + }, + "punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true + }, + "qs": { + "version": "6.7.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", + "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==" + }, + "rambda": { + "version": "2.14.5", + "resolved": "https://registry.npmjs.org/rambda/-/rambda-2.14.5.tgz", + "integrity": "sha512-vYoUQ9bmWfKh6UvxIojk5/x91NcarecpiK+bJndyHg6KPzgtuMLmQ05jWMiRDLDblps1znByuhc6DbGtEuOqZw==" + }, + "range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" + }, + "raw-body": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", + "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==", + "requires": { + "bytes": "3.1.0", + "http-errors": "1.7.2", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + } + }, + "rc": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", + "dev": true, + "requires": { + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "dev": true + } + } + }, + "readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + }, + "request": { + "version": "2.88.2", + "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", + "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", + "dev": true, + "requires": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.3", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.5.0", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" + }, + "dependencies": { + "qs": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", + "dev": true + } + } + }, + "rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + }, + "safe-buffer": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", + "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==" + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "sax": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", + "dev": true + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" + }, + "send": { + "version": "0.17.1", + "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", + "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", + "requires": { + "debug": "2.6.9", + "depd": "~1.1.2", + "destroy": "~1.0.4", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "~1.7.2", + "mime": "1.6.0", + "ms": "2.1.1", + "on-finished": "~2.3.0", + "range-parser": "~1.2.1", + "statuses": "~1.5.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + }, + "dependencies": { + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + } + } + }, + "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==" + } + } + }, + "serve-static": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", + "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", + "requires": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.17.1" + } + }, + "set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", + "dev": true + }, + "setprototypeof": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", + "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==" + }, + "signal-exit": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", + "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", + "dev": true + }, + "simple-swizzle": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz", + "integrity": "sha1-pNprY1/8zMoz9w0Xy5JZLeleVXo=", + "requires": { + "is-arrayish": "^0.3.1" + } + }, + "sqlite3": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/sqlite3/-/sqlite3-4.1.1.tgz", + "integrity": "sha512-CvT5XY+MWnn0HkbwVKJAyWEMfzpAPwnTiB3TobA5Mri44SrTovmmh499NPQP+gatkeOipqPlBLel7rn4E/PCQg==", + "dev": true, + "requires": { + "nan": "^2.12.1", + "node-pre-gyp": "^0.11.0", + "request": "^2.87.0" + } + }, + "sshpk": { + "version": "1.16.1", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", + "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", + "dev": true, + "requires": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" + } + }, + "stack-trace": { + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.10.tgz", + "integrity": "sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA=" + }, + "statuses": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", + "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=" + }, + "string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "dev": true, + "requires": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + } + }, + "string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "requires": { + "safe-buffer": "~5.2.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "requires": { + "has-flag": "^3.0.0" + } + }, + "tar": { + "version": "4.4.13", + "resolved": "https://registry.npmjs.org/tar/-/tar-4.4.13.tgz", + "integrity": "sha512-w2VwSrBoHa5BsSyH+KxEqeQBAllHhccyMFVHtGtdMpF4W7IRWfZjFiQceJPChOeTsSDVUpER2T8FA93pr0L+QA==", + "dev": true, + "requires": { + "chownr": "^1.1.1", + "fs-minipass": "^1.2.5", + "minipass": "^2.8.6", + "minizlib": "^1.2.1", + "mkdirp": "^0.5.0", + "safe-buffer": "^5.1.2", + "yallist": "^3.0.3" + } + }, + "text-hex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/text-hex/-/text-hex-1.0.0.tgz", + "integrity": "sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg==" + }, + "toidentifier": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", + "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==" + }, + "tough-cookie": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", + "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", + "dev": true, + "requires": { + "psl": "^1.1.28", + "punycode": "^2.1.1" + } + }, + "triple-beam": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/triple-beam/-/triple-beam-1.3.0.tgz", + "integrity": "sha512-XrHUvV5HpdLmIj4uVMxHggLbFSZYIn7HEWsqePZcI50pco+MPqJ50wMGY794X7AOOhxOBAjbkqfAbEe/QMp2Lw==" + }, + "tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "dev": true, + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", + "dev": true + }, + "type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "requires": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + } + }, + "unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" + }, + "uri-js": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", + "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", + "dev": true, + "requires": { + "punycode": "^2.1.0" + } + }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" + }, + "utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" + }, + "uuid": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", + "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==" + }, + "vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" + }, + "verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + } + }, + "voca": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/voca/-/voca-1.4.0.tgz", + "integrity": "sha512-8Xz4H3vhYRGbFupLtl6dHwMx0ojUcjt0HYkqZ9oBCfipd/5mD7Md58m2/dq7uPuZU/0T3Gb1m66KS9jn+I+14Q==" + }, + "wide-align": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", + "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", + "dev": true, + "requires": { + "string-width": "^1.0.2 || 2" + } + }, + "winston": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/winston/-/winston-3.2.1.tgz", + "integrity": "sha512-zU6vgnS9dAWCEKg/QYigd6cgMVVNwyTzKs81XZtTFuRwJOcDdBg7AU0mXVyNbs7O5RH2zdv+BdNZUlx7mXPuOw==", + "requires": { + "async": "^2.6.1", + "diagnostics": "^1.1.1", + "is-stream": "^1.1.0", + "logform": "^2.1.1", + "one-time": "0.0.4", + "readable-stream": "^3.1.1", + "stack-trace": "0.0.x", + "triple-beam": "^1.3.0", + "winston-transport": "^4.3.0" + } + }, + "winston-transport": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/winston-transport/-/winston-transport-4.3.0.tgz", + "integrity": "sha512-B2wPuwUi3vhzn/51Uukcao4dIduEiPOcOt9HJ3QeaXgkJ5Z7UwpBzxS4ZGNHtrxrUvTwemsQiSys0ihOf8Mp1A==", + "requires": { + "readable-stream": "^2.3.6", + "triple-beam": "^1.2.0" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "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==" + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "requires": { + "safe-buffer": "~5.1.0" + } + } + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + }, + "yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + } + } +} diff --git a/package.json b/package.json index 499371c6..ac556d5f 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,6 @@ "bookshop": "cds watch packages/bookshop", "bookshop-enhanced": "cds watch packages/bookshop-enhanced", "reviews-service": "cds watch packages/reviews-service", - "bookstore": "cds watch packages/bookstore", "media-server": "cds watch packages/media-server" }, diff --git a/packages/bookshop-enhanced/app/index.cds b/packages/bookshop-enhanced/app/index.cds deleted file mode 100644 index 1674468e..00000000 --- a/packages/bookshop-enhanced/app/index.cds +++ /dev/null @@ -1 +0,0 @@ -using from '@sap/capire-bookshop/app'; diff --git a/packages/bookshop-enhanced/db/schema.cds b/packages/bookshop-enhanced/db/schema.cds deleted file mode 100644 index d6adb541..00000000 --- a/packages/bookshop-enhanced/db/schema.cds +++ /dev/null @@ -1,25 +0,0 @@ -/* - In this model we demonstrate how to add Genres to Books in - as if it was an external extension. For example we use - CDS Aspects' to extend the core domain model's Books entity - as well as the AdminService. - */ - -namespace sap.capire.bookshop; -using { sap.capire.reviews.ReviewsService as external } from '@sap/capire-reviews'; -using { sap.capire.bookshop.Books } from '@sap/capire-bookshop/db/schema'; -using { sap.common.CodeList } from '@sap/cds/common'; - -// Extending Books by Reviews and Genres -extend Books with { - reviews : Composition of many external.Reviews on reviews.subject = ID; - rating : external.Reviews.rating; - genre : Association to Genres; -} - -// Hierarchical Code List for Genres -entity Genres : CodeList { - key ID : Integer; - children : Composition of many Genres on children.parent = $self; - parent : Association to Genres; -} diff --git a/packages/bookshop-enhanced/package.json b/packages/bookshop-enhanced/package.json deleted file mode 100644 index 94c0ae7e..00000000 --- a/packages/bookshop-enhanced/package.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "@sap/capire-bookshop-enhanced", - "version": "1.0.0", - "description": "A sample for extending a base application package, in this case bookshop, e.g. in context of verticalization or customization.", - "repository": "https://github.com/SAP-samples/cloud-cap-samples.git", - "license": "SAP SAMPLE CODE LICENSE", - "dependencies": { - "@sap/capire-bookshop": "^1.0.0", - "@sap/capire-reviews": "^1.0.0", - "@sap/cds": "latest", - "express": "*" - }, - "scripts": { - "reviews-service": "PORT=5005 cds run ../reviews-service --bind --in-memory?", - "start": "cds run --in-memory?", - "watch": "cds watch" - }, - "cds": { - "requires": { - "sap.capire.reviews.ReviewsService": { - "kind": "odata", - "model": "@sap/capire-reviews" - }, - "messaging": { - "kind": "file-based-messaging" - } - } - } -} diff --git a/packages/bookshop-enhanced/srv/services.cds b/packages/bookshop-enhanced/srv/services.cds deleted file mode 100644 index 7ff9f9af..00000000 --- a/packages/bookshop-enhanced/srv/services.cds +++ /dev/null @@ -1,9 +0,0 @@ -namespace sap.capire.bookshop; - -using { AdminService } from '@sap/capire-bookshop/srv/admin-service'; -using { sap.capire.bookshop } from '../db/schema'; - -@impl:'srv/services' -extend service AdminService with { - entity Genres as projection on bookshop.Genres; -} diff --git a/packages/bookshop-enhanced/srv/services.js b/packages/bookshop-enhanced/srv/services.js deleted file mode 100644 index 24503d49..00000000 --- a/packages/bookshop-enhanced/srv/services.js +++ /dev/null @@ -1,30 +0,0 @@ -const cds = require ('@sap/cds') - -module.exports = cds.service.impl (async()=>{ - - const ReviewsService = await cds.connect.to ('sap.capire.reviews.ReviewsService') - const CatalogService = await cds.connect.to ('CatalogService') - const db = await cds.connect.to ('db') - // import model definitions from connected services to work with subsequently - const { Books } = db.entities - const { Reviews } = ReviewsService.entities - - CatalogService.impl (srv => { - // delegate requests to read reviews to ReviewsService - srv.on ('READ', 'Books/reviews', (req) => { - const [ subject ] = req.params - const tx = ReviewsService.transaction (req) - return tx.run (SELECT.from (Reviews) .where ({subject})) - }) - }) - - // react on event messages from reviews service - ReviewsService.on ('reviewed', (msg) => { - console.debug ('> received:', msg.event, msg.data) - const { subject, rating } = msg.data - const tx = db // TODO: db.transaction (msg) - return tx.run (UPDATE (Books, subject) .with ({rating})) - // return tx.update (Books, subject) .with ({rating}) - }) - -}) diff --git a/packages/bookshop-enhanced/tests/genres.http b/packages/bookshop-enhanced/tests/genres.http deleted file mode 100644 index aecd8777..00000000 --- a/packages/bookshop-enhanced/tests/genres.http +++ /dev/null @@ -1,33 +0,0 @@ -################################################# -# -# Genres -# - -GET http://localhost:4004/admin/Genres? -### - -POST http://localhost:4004/admin/Genres? -Content-Type: application/json - -{ "ID":100, "name":"Some Sample Genres...", "children":[ - { "ID":101, "name":"Cat", "children":[ - { "ID":102, "name":"Kitty", "children":[ - { "ID":103, "name":"Kitty Cat", "children":[ - { "ID":104, "name":"Aristocat" } ]}, - { "ID":105, "name":"Kitty Bat" } ]}, - { "ID":106, "name":"Catwoman", "children":[ - { "ID":107, "name":"Catalina" } ]} ]}, - { "ID":108, "name":"Catweazle" } -]} -### - -GET http://localhost:4004/admin/Genres(100)? -# &$expand=children -# &$expand=children($expand=children($expand=children($expand=children))) -### - -DELETE http://localhost:4004/admin/Genres(103) -### - -DELETE http://localhost:4004/admin/Genres(100) -### diff --git a/packages/bookshop-enhanced/tests/reviews.http b/packages/bookshop-enhanced/tests/reviews.http deleted file mode 100644 index 21206196..00000000 --- a/packages/bookshop-enhanced/tests/reviews.http +++ /dev/null @@ -1,32 +0,0 @@ -################################################# -# -# Reviews Service -# - - -### Use this one for ReviewsService running as a separate process -# Note: use 5005 instead of 4004 in case of separate service -POST http://localhost:5005/reviews/Reviews -# POST http://localhost:4004/reviews/Reviews -Content-Type: application/json;IEEE754Compatible=true - -{"subject":"201", "rating":"5", "title":"boo"} - -### Direct Request to ReviewsService -# Note: use 5005 instead of 4004 in case of separate service -GET http://localhost:5005/reviews/Reviews? -# GET http://localhost:4004/reviews/Reviews? -# &$filter=subject eq '201' - - -### Request to CatalogService > delegated to ReviewsService -GET http://localhost:4004/browse/Books(201)/reviews - -### Alternative OData URL -GET http://localhost:4004/browse/Books/201/reviews - -### -GET http://localhost:4004/browse/Books(201)? -&$select=ID,title,rating -# &$expand=reviews -# Note: the latter only works in case of ReviewsService in same process diff --git a/packages/bookshop/app/_i18n/i18n.properties b/packages/bookshop/app/_i18n/i18n.properties deleted file mode 100644 index 5d6f03d6..00000000 --- a/packages/bookshop/app/_i18n/i18n.properties +++ /dev/null @@ -1,13 +0,0 @@ -Books = Books -Book = Book -ID = ID -Title = Title -Author = Author -AuthorID = Author ID -Stock = Stock -Name = Name -AuthorName = Author's Name -Authors = Authors -Order = Order -Orders = Orders -Price = Price diff --git a/packages/bookshop/app/_i18n/i18n_de.properties b/packages/bookshop/app/_i18n/i18n_de.properties deleted file mode 100644 index 365b45df..00000000 --- a/packages/bookshop/app/_i18n/i18n_de.properties +++ /dev/null @@ -1,13 +0,0 @@ -Books = Bücher -Book = Buch -ID = ID -Title = Titel -Authors = Autoren -Author = Autor -AuthorID = ID des Autors -AuthorName = Name des Autors -Name = Name -Stock = Bestand -Order = Bestellung -Orders = Bestellungen -Price = Preis diff --git a/packages/bookshop/app/admin/fiori-service.cds b/packages/bookshop/app/admin/fiori-service.cds deleted file mode 100644 index 5fd19df0..00000000 --- a/packages/bookshop/app/admin/fiori-service.cds +++ /dev/null @@ -1,37 +0,0 @@ -using AdminService from '../../srv/admin-service'; - -//////////////////////////////////////////////////////////////////////////// -// -// Books Object Page -// -annotate AdminService.Books with @( - UI: { - Facets: [ - {$Type: 'UI.ReferenceFacet', Label: '{i18n>General}', Target: '@UI.FieldGroup#General'}, - {$Type: 'UI.ReferenceFacet', Label: '{i18n>Details}', Target: '@UI.FieldGroup#Details'}, - {$Type: 'UI.ReferenceFacet', Label: '{i18n>Admin}', Target: '@UI.FieldGroup#Admin'}, - ], - FieldGroup#General: { - Data: [ - {Value: title}, - {Value: author_ID}, - {Value: descr}, - ] - }, - FieldGroup#Details: { - Data: [ - {Value: stock}, - {Value: price}, - {Value: currency_code, Label: '{i18n>Currency}'}, - ] - }, - FieldGroup#Admin: { - Data: [ - {Value: createdBy}, - {Value: createdAt}, - {Value: modifiedBy}, - {Value: modifiedAt} - ] - } - } -); diff --git a/packages/bookshop/app/admin/webapp/Component.js b/packages/bookshop/app/admin/webapp/Component.js deleted file mode 100644 index 9fdf2d05..00000000 --- a/packages/bookshop/app/admin/webapp/Component.js +++ /dev/null @@ -1,22 +0,0 @@ -sap.ui.define(["sap/fe/AppComponent"], ac => ac.extend("admin.Component", { - metadata:{ manifest:'json' } -})) - -// sap.ui.define (["sap/ui/core/UIComponent"], ui5 => ui5.extend("bookshop.Component", { -// metadata: { manifest: "json" } -// })) -// sap.ui.define (["sap/ui/generic/app/AppComponent"], ui5 => ui5.extend("bookshop.Component", { -// metadata: { manifest: "json" } -// })) - -// jQuery.sap.declare("bookshop.Component"); -// sap.ui.getCore().loadLibrary("sap.ui.generic.app"); -// jQuery.sap.require("sap.ui.generic.app.AppComponent"); - -// sap.ui.generic.app.AppComponent.extend("bookshop.Component", { -// metadata: { -// manifest: "json" -// } -// }); - -/* eslint no-undef:0 */ \ No newline at end of file diff --git a/packages/bookshop/app/admin/webapp/i18n/i18n.properties b/packages/bookshop/app/admin/webapp/i18n/i18n.properties deleted file mode 100644 index 28b03dff..00000000 --- a/packages/bookshop/app/admin/webapp/i18n/i18n.properties +++ /dev/null @@ -1,11 +0,0 @@ -# This is the resource bundle of itelo -# __ldi.translation.uuid=c3431418-9caf-11e8-98d0-529269fb1459 - -# JCI app descriptor contains lower case TITLE -appTitle=Bookshop Sample - -# JCI app descriptor contains lower case DESCRIPTION -appSubTitle=CAP Sample Application - -# JCI app descriptor contains lower case DESCRIPTION -appDescription=CDS Sample Service diff --git a/packages/bookshop/app/admin/webapp/manifest.json b/packages/bookshop/app/admin/webapp/manifest.json deleted file mode 100644 index 574480f1..00000000 --- a/packages/bookshop/app/admin/webapp/manifest.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "_version": "1.8.0", - "sap.app": { - "id": "admin", - "type": "application", - "title": "Manage Books", - "description": "Sample Application", - "i18n": "i18n/i18n.properties", - "dataSources": { - "AdminService": { - "uri": "/admin/", - "type": "OData", - "settings": { - "odataVersion": "4.0" - } - } - }, - "-sourceTemplate": { - "id": "ui5template.basicSAPUI5ApplicationProject", - "-id": "ui5template.smartTemplate", - "-version": "1.40.12" - } - }, - "sap.ui5": { - "dependencies": { - "libs": { - "sap.fe": {} - } - }, - "models": { - "i18n": { - "type": "sap.ui.model.resource.ResourceModel", - "uri": "i18n/i18n.properties" - }, - "": { - "dataSource": "AdminService", - "settings": { - "synchronizationMode": "None", - "operationMode": "Server", - "autoExpandSelect" : true, - "earlyRequests": true, - "groupProperties": { - "default": { - "submit": "Auto" - } - } - } - } - }, - "routing": { - "routes": [ - { - "pattern": ":?query:", - "name": "BooksList", - "target": "BooksList" - }, - { - "pattern": "Books({key}):?query:", - "name": "BooksDetails", - "target": "BooksDetails" - }, - { - "pattern": "Books({key}/author({key2}):?query:", - "name": "AuthorsDetails", - "target": "AuthorsDetails" - } - ], - "targets": { - "BooksList": { - "type": "Component", - "id": "BooksList", - "name": "sap.fe.templates.ListReport", - "options": { - "settings" : { - "entitySet" : "Books", - "navigation" : { - "Books" : { - "detail" : { - "route" : "BooksDetails" - } - } - } - } - } - }, - "BooksDetails": { - "type": "Component", - "id": "BooksDetailsList", - "name": "sap.fe.templates.ObjectPage", - "options": { - "settings" : { - "entitySet" : "Books", - "navigation" : { - "Authors" : { - "detail" : { - "route" : "AuthorsDetails" - } - } - } - } - } - }, - "AuthorsDetails": { - "type": "Component", - "id": "AuthorsDetailsList", - "name": "sap.fe.templates.ObjectPage", - "options": { - "settings" : { - "entitySet" : "Authors" - } - } - } - } - }, - "contentDensities": { - "compact": true, - "cozy": true - } - }, - "sap.ui": { - "technology": "UI5", - "fullWidth": false - }, - "sap.fiori": { - "registrationIds": [], - "archeType": "transactional" - } -} \ No newline at end of file diff --git a/packages/bookshop/app/browse/fiori-service.cds b/packages/bookshop/app/browse/fiori-service.cds deleted file mode 100644 index d0d12da3..00000000 --- a/packages/bookshop/app/browse/fiori-service.cds +++ /dev/null @@ -1,47 +0,0 @@ -using CatalogService from '../../srv/cat-service'; - -//////////////////////////////////////////////////////////////////////////// -// -// Books Object Page -// -annotate CatalogService.Books with @( - UI: { - HeaderInfo: { - Description: {Value: author} - }, - HeaderFacets: [ - {$Type: 'UI.ReferenceFacet', Label: '{i18n>Description}', Target: '@UI.FieldGroup#Descr'}, - ], - Facets: [ - {$Type: 'UI.ReferenceFacet', Label: '{i18n>Details}', Target: '@UI.FieldGroup#Price'}, - ], - FieldGroup#Descr: { - Data: [ - {Value: descr}, - ] - }, - FieldGroup#Price: { - Data: [ - {Value: price}, - {Value: currency.symbol, Label: '{i18n>Currency}'}, - ] - }, - } -); - - -//////////////////////////////////////////////////////////////////////////// -// -// Books Object Page -// -annotate CatalogService.Books with @( - UI: { - SelectionFields: [ ID, price, currency_code ], - LineItem: [ - {Value: title}, - {Value: author, Label:'{i18n>Author}'}, - {Value: price}, - {Value: currency.symbol, Label:' '}, - ] - }, -); diff --git a/packages/bookshop/app/browse/webapp/Component.js b/packages/bookshop/app/browse/webapp/Component.js deleted file mode 100644 index e46ce759..00000000 --- a/packages/bookshop/app/browse/webapp/Component.js +++ /dev/null @@ -1,22 +0,0 @@ -sap.ui.define(["sap/fe/AppComponent"], ac => ac.extend("bookshop.Component", { - metadata:{ manifest:'json' } -})) - -// sap.ui.define (["sap/ui/core/UIComponent"], ui5 => ui5.extend("bookshop.Component", { -// metadata: { manifest: "json" } -// })) -// sap.ui.define (["sap/ui/generic/app/AppComponent"], ui5 => ui5.extend("bookshop.Component", { -// metadata: { manifest: "json" } -// })) - -// jQuery.sap.declare("bookshop.Component"); -// sap.ui.getCore().loadLibrary("sap.ui.generic.app"); -// jQuery.sap.require("sap.ui.generic.app.AppComponent"); - -// sap.ui.generic.app.AppComponent.extend("bookshop.Component", { -// metadata: { -// manifest: "json" -// } -// }); - -/* eslint no-undef:0 */ \ No newline at end of file diff --git a/packages/bookshop/app/browse/webapp/i18n/i18n.properties b/packages/bookshop/app/browse/webapp/i18n/i18n.properties deleted file mode 100644 index 28b03dff..00000000 --- a/packages/bookshop/app/browse/webapp/i18n/i18n.properties +++ /dev/null @@ -1,11 +0,0 @@ -# This is the resource bundle of itelo -# __ldi.translation.uuid=c3431418-9caf-11e8-98d0-529269fb1459 - -# JCI app descriptor contains lower case TITLE -appTitle=Bookshop Sample - -# JCI app descriptor contains lower case DESCRIPTION -appSubTitle=CAP Sample Application - -# JCI app descriptor contains lower case DESCRIPTION -appDescription=CDS Sample Service diff --git a/packages/bookshop/app/browse/webapp/manifest.json b/packages/bookshop/app/browse/webapp/manifest.json deleted file mode 100644 index 4212312e..00000000 --- a/packages/bookshop/app/browse/webapp/manifest.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "_version": "1.8.0", - "sap.app": { - "id": "bookshop", - "type": "application", - "title": "Browse Books", - "description": "Sample Application", - "i18n": "i18n/i18n.properties", - "dataSources": { - "CatalogService": { - "uri": "/browse/", - "type": "OData", - "settings": { - "odataVersion": "4.0" - } - } - }, - "-sourceTemplate": { - "id": "ui5template.basicSAPUI5ApplicationProject", - "-id": "ui5template.smartTemplate", - "-version": "1.40.12" - } - }, - "sap.ui5": { - "dependencies": { - "libs": { - "sap.fe": {} - } - }, - "models": { - "i18n": { - "type": "sap.ui.model.resource.ResourceModel", - "uri": "i18n/i18n.properties" - }, - "": { - "dataSource": "CatalogService", - "settings": { - "synchronizationMode": "None", - "operationMode": "Server", - "autoExpandSelect": true, - "earlyRequests": true, - "groupProperties": { - "default": { - "submit": "Auto" - } - } - } - } - }, - "routing": { - "routes": [ - { - "pattern": ":?query:", - "name": "BooksList", - "target": "BooksList" - }, - { - "pattern": "Books({key}):?query:", - "name": "BooksDetails", - "target": "BooksDetails" - } - ], - "targets": { - "BooksList": { - "type": "Component", - "id": "BooksList", - "name": "sap.fe.templates.ListReport", - "options": { - "settings": { - "entitySet": "Books", - "navigation": { - "Books": { - "detail": { - "route": "BooksDetails" - } - } - } - } - } - }, - "BooksDetails": { - "type": "Component", - "id": "BooksDetailsList", - "name": "sap.fe.templates.ObjectPage", - "options": { - "settings": { - "entitySet": "Books" - } - } - } - } - }, - "contentDensities": { - "compact": true, - "cozy": true - } - }, - "sap.ui": { - "technology": "UI5", - "fullWidth": false - }, - "sap.fiori": { - "registrationIds": [], - "archeType": "transactional" - } -} diff --git a/packages/bookshop/app/common.cds b/packages/bookshop/app/common.cds deleted file mode 100644 index 309daaf5..00000000 --- a/packages/bookshop/app/common.cds +++ /dev/null @@ -1,74 +0,0 @@ -/* - Common Annotations shared by all apps -*/ - -using { sap.capire.bookshop as my } from '../db/schema'; - - -//////////////////////////////////////////////////////////////////////////// -// -// Books Lists -// -annotate my.Books with @( - UI: { - Identification: [{Value:title}], - SelectionFields: [ ID, author_ID, price, currency_code ], - LineItem: [ - {Value: ID}, - {Value: title}, - {Value: author.name, Label:'{i18n>Author}'}, - {Value: stock}, - {Value: price}, - {Value: currency.symbol, Label:' '}, - ] - } -) { - author @ValueList.entity:'Authors'; -}; - -annotate my.Authors with @( - UI: { - Identification: [{Value:name}], - } -); - - -//////////////////////////////////////////////////////////////////////////// -// -// Books Details -// -annotate my.Books with @( - UI: { - HeaderInfo: { - TypeName: '{i18n>Book}', - TypeNamePlural: '{i18n>Books}', - Title: {Value: title}, - Description: {Value: author.name} - }, - } -); - - - -//////////////////////////////////////////////////////////////////////////// -// -// Books Elements -// -annotate my.Books with { - ID @title:'{i18n>ID}' @UI.HiddenFilter; - title @title:'{i18n>Title}'; - author @title:'{i18n>AuthorID}'; - price @title:'{i18n>Price}'; - stock @title:'{i18n>Stock}'; - descr @UI.MultiLineText; -} - - -//////////////////////////////////////////////////////////////////////////// -// -// Authors Elements -// -annotate my.Authors with { - ID @title:'{i18n>ID}' @UI.HiddenFilter; - name @title:'{i18n>AuthorName}'; -} diff --git a/packages/bookshop/app/fiori.html b/packages/bookshop/app/fiori.html deleted file mode 100644 index 2fc2a0d4..00000000 --- a/packages/bookshop/app/fiori.html +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - Bookshop - - - - - - - - - - \ No newline at end of file diff --git a/packages/bookshop/app/index.cds b/packages/bookshop/app/index.cds deleted file mode 100644 index 431bace1..00000000 --- a/packages/bookshop/app/index.cds +++ /dev/null @@ -1,8 +0,0 @@ -/* - This model controls what gets served to Fiori frontends... -*/ - -using from './admin/fiori-service'; -using from './browse/fiori-service'; -using from './orders/fiori-service'; -using from './common'; diff --git a/packages/bookshop/app/orders/fiori-service.cds b/packages/bookshop/app/orders/fiori-service.cds deleted file mode 100644 index a504a022..00000000 --- a/packages/bookshop/app/orders/fiori-service.cds +++ /dev/null @@ -1,118 +0,0 @@ -using AdminService from '../../srv/admin-service'; - -annotate AdminService.Books with { - price @Common.FieldControl: #ReadOnly; -} -//////////////////////////////////////////////////////////////////////////// -// -// Common -// -annotate AdminService.OrderItems with { - book @( - Common: { - Text: book.title, - FieldControl: #Mandatory - }, - ValueList.entity:'Books', - ); - amount @( - Common.FieldControl: #Mandatory - ); -} - - -@odata.draft.enabled -annotate AdminService.Orders with @( - UI: { - //////////////////////////////////////////////////////////////////////////// - // - // Lists of Orders - // - SelectionFields: [ createdAt, createdBy ], - LineItem: [ - {Value: createdBy, Label:'Customer'}, - {Value: createdAt, Label:'Date'} - ], - //////////////////////////////////////////////////////////////////////////// - // - // Order Details - // - HeaderInfo: { - TypeName: 'Order', TypeNamePlural: 'Orders', - Title: { - Label: 'Order number ', //A label is possible but it is not considered on the ObjectPage yet - Value: OrderNo - }, - Description: {Value: createdBy} - }, - Identification: [ //Is the main field group - {Value: createdBy, Label:'Customer'}, - {Value: createdAt, Label:'Date'}, - {Value: OrderNo }, - ], - HeaderFacets: [ - {$Type: 'UI.ReferenceFacet', Label: '{i18n>Created}', Target: '@UI.FieldGroup#Created'}, - {$Type: 'UI.ReferenceFacet', Label: '{i18n>Modified}', Target: '@UI.FieldGroup#Modified'}, - ], - Facets: [ - {$Type: 'UI.ReferenceFacet', Label: '{i18n>Details}', Target: '@UI.FieldGroup#Details'}, - {$Type: 'UI.ReferenceFacet', Label: '{i18n>OrderItems}', Target: 'Items/@UI.LineItem'}, - ], - FieldGroup#Details: { - Data: [ - {Value: currency_code, Label:'Currency'} - ] - }, - FieldGroup#Created: { - Data: [ - {Value: createdBy}, - {Value: createdAt}, - ] - }, - FieldGroup#Modified: { - Data: [ - {Value: modifiedBy}, - {Value: modifiedAt}, - ] - }, - }, -) { - createdAt @UI.HiddenFilter:false; - createdBy @UI.HiddenFilter:false; -}; - - - -//The enity types name is AdminService.my_bookshop_OrderItems -//The annotations below are not generated in edmx WHY? -annotate AdminService.OrderItems with @( - UI: { - HeaderInfo: { - TypeName: 'Order Item', TypeNamePlural: ' ', - Title: { - Value: book.title - }, - Description: {Value: book.descr} - }, - // There is no filterbar for items so the selctionfileds is not needed - SelectionFields: [ book_ID ], - //////////////////////////////////////////////////////////////////////////// - // - // Lists of OrderItems - // - LineItem: [ - {Value: book_ID, Label:'Book'}, - //The following entry is only used to have the assoication followed in the read event - {Value: book.price, Label:'Book Price'}, - {Value: amount, Label:'Quantity'}, - ], - Identification: [ //Is the main field group - //{Value: ID, Label:'ID'}, //A guid shouldn't be on the UI - {Value: book_ID, Label:'Book'}, - {Value: amount, Label:'Amount'}, - ], - Facets: [ - {$Type: 'UI.ReferenceFacet', Label: '{i18n>OrderItems}', Target: '@UI.Identification'}, - ], - }, -); \ No newline at end of file diff --git a/packages/bookshop/app/orders/webapp/Component.js b/packages/bookshop/app/orders/webapp/Component.js deleted file mode 100644 index e40eb3be..00000000 --- a/packages/bookshop/app/orders/webapp/Component.js +++ /dev/null @@ -1,22 +0,0 @@ -sap.ui.define(["sap/fe/AppComponent"], ac => ac.extend("orders.Component", { - metadata:{ manifest:'json' } -})) - -// sap.ui.define (["sap/ui/core/UIComponent"], ui5 => ui5.extend("bookshop.Component", { -// metadata: { manifest: "json" } -// })) -// sap.ui.define (["sap/ui/generic/app/AppComponent"], ui5 => ui5.extend("bookshop.Component", { -// metadata: { manifest: "json" } -// })) - -// jQuery.sap.declare("bookshop.Component"); -// sap.ui.getCore().loadLibrary("sap.ui.generic.app"); -// jQuery.sap.require("sap.ui.generic.app.AppComponent"); - -// sap.ui.generic.app.AppComponent.extend("bookshop.Component", { -// metadata: { -// manifest: "json" -// } -// }); - -/* eslint no-undef:0 */ \ No newline at end of file diff --git a/packages/bookshop/app/orders/webapp/i18n/i18n.properties b/packages/bookshop/app/orders/webapp/i18n/i18n.properties deleted file mode 100644 index 28b03dff..00000000 --- a/packages/bookshop/app/orders/webapp/i18n/i18n.properties +++ /dev/null @@ -1,11 +0,0 @@ -# This is the resource bundle of itelo -# __ldi.translation.uuid=c3431418-9caf-11e8-98d0-529269fb1459 - -# JCI app descriptor contains lower case TITLE -appTitle=Bookshop Sample - -# JCI app descriptor contains lower case DESCRIPTION -appSubTitle=CAP Sample Application - -# JCI app descriptor contains lower case DESCRIPTION -appDescription=CDS Sample Service diff --git a/packages/bookshop/app/orders/webapp/manifest.json b/packages/bookshop/app/orders/webapp/manifest.json deleted file mode 100644 index e33eb24b..00000000 --- a/packages/bookshop/app/orders/webapp/manifest.json +++ /dev/null @@ -1,170 +0,0 @@ -{ - "_version": "1.8.0", - "sap.app": { - "id": "orders", - "type": "application", - "title": "Manage Orders", - "description": "Sample Application", - "i18n": "i18n/i18n.properties", - "dataSources": { - "AdminService": { - "uri": "/admin/", - "type": "OData", - "settings": { - "odataVersion": "4.0" - } - } - }, - "-sourceTemplate": { - "id": "ui5template.basicSAPUI5ApplicationProject", - "-id": "ui5template.smartTemplate", - "-version": "1.40.12" - } - }, - "sap.ui5": { - "dependencies": { - "libs": { - "sap.fe": {} - } - }, - "models": { - "i18n": { - "type": "sap.ui.model.resource.ResourceModel", - "uri": "i18n/i18n.properties" - }, - "": { - "dataSource": "AdminService", - "settings": { - "synchronizationMode": "None", - "operationMode": "Server", - "autoExpandSelect" : true, - "earlyRequests": true, - "groupProperties": { - "default": { - "submit": "Auto" - } - } - } - } - }, - "routing": { - "routes": [ - { - "pattern": ":?query:", - "name": "OrdersList", - "target": "OrdersList" - }, - { - "pattern": "Orders({key}):?query:", - "name": "OrdersDetails", - "target": "OrdersDetails" - }, - { - "pattern": "Orders({boo})/Items({boo2}):?query:", - "name": "OrderItemsDetails", - "target": "OrderItemsDetails" - }, - { - "pattern": "Books({key}):?query:", - "name": "BooksDetails", - "target": "BooksDetails" - } - ], - "targets": { - "OrdersList": { - "type": "Component", - "id": "OrdersList", - "name": "sap.fe.templates.ListReport", - "options": { - "settings" : { - "entitySet" : "Orders", - "navigation" : { - "Orders" : { - "detail" : { - "route" : "OrdersDetails" - } - } - } - } - } - }, - "OrdersDetails": { - "type": "Component", - "id": "OrdersDetails", - "name": "sap.fe.templates.ObjectPage", - "options": { - "settings" : { - "entitySet": "Orders", - "navigation" : { - "Items": { - "detail": { - "route": "OrderItemsDetails" - } - }, - "book": { - "detail": { - "route": "BooksDetails" - } - }, - "dummy": { - "detail": { - "route": "BooksDetails" - } - } - } - } - } - }, - "OrderItemsDetails": { - "type": "Component", - "id": "OrderItemsDetails", - "name": "sap.fe.templates.ObjectPage", - "options": { - "settings" : { - "entitySet": "OrderItems" - } - } - }, - "BooksDetails": { - "type": "Component", - "id": "BooksDetails", - "name": "sap.fe.templates.ObjectPage", - "options": { - "settings" : { - "entitySet": "Books", - "navigation": { - "author": { - "detail": { - "route": "AuthorsDetails" - } - } - } - } - } - }, - "AuthorsDetails": { - "type": "Component", - "id": "AuthorsDetails", - "name": "sap.fe.templates.ObjectPage", - "options": { - "settings" : { - "entitySet": "Authors" - } - } - } - } - }, - "contentDensities": { - "compact": true, - "cozy": true - } - }, - "sap.ui": { - "technology": "UI5", - "fullWidth": false - }, - "sap.fiori": { - "registrationIds": [], - "archeType": "transactional" - } -} \ No newline at end of file diff --git a/packages/bookshop/db/data/sap.capire.bookshop-Authors.csv b/packages/bookshop/db/data/sap.capire.bookshop-Authors.csv index f97bfeed..9235f920 100644 --- a/packages/bookshop/db/data/sap.capire.bookshop-Authors.csv +++ b/packages/bookshop/db/data/sap.capire.bookshop-Authors.csv @@ -1,5 +1,5 @@ -ID;name;dateOfBirth;placeOfBirth;dateOfDeath;placeOfDeath -101;Emily Brontë;1818-07-30;Thornton, Yorkshire;1848-12-19;Haworth, Yorkshire -107;Charlotte Brontë;1818-04-21;Thornton, Yorkshire;1855-03-31;Haworth, Yorkshire -150;Edgar Allen Poe;1809-01-19;Boston, Massachusetts;1849-10-07;Baltimore, Maryland -170;Richard Carpenter;1929-08-14;King’s Lynn, Norfolk;2012-02-26;Hertfordshire, England \ No newline at end of file +ID;name +101;Emily Brontë +107;Charlotte Brontë +150;Edgar Allen Poe +170;Richard Carpenter \ No newline at end of file diff --git a/packages/bookshop/db/data/sap.capire.bookshop-Books.csv b/packages/bookshop/db/data/sap.capire.bookshop-Books.csv index a767360c..0de83f8f 100644 --- a/packages/bookshop/db/data/sap.capire.bookshop-Books.csv +++ b/packages/bookshop/db/data/sap.capire.bookshop-Books.csv @@ -1,6 +1,6 @@ -ID;title;descr;author_ID;stock;price;currency_code -201;Wuthering Heights;"Wuthering Heights, Emily Brontë's only novel, was published in 1847 under the pseudonym ""Ellis Bell"". It was written between October 1845 and June 1846. Wuthering Heights and Anne Brontë's Agnes Grey were accepted by publisher Thomas Newby before the success of their sister Charlotte's novel Jane Eyre. After Emily's death, Charlotte edited the manuscript of Wuthering Heights and arranged for the edited version to be published as a posthumous second edition in 1850.";101;12;11.11;GBP -207;Jane Eyre;"Jane Eyre /ɛər/ (originally published as Jane Eyre: An Autobiography) is a novel by English writer Charlotte Brontë, published under the pen name ""Currer Bell"", on 16 October 1847, by Smith, Elder & Co. of London. The first American edition was published the following year by Harper & Brothers of New York. Primarily a bildungsroman, Jane Eyre follows the experiences of its eponymous heroine, including her growth to adulthood and her love for Mr. Rochester, the brooding master of Thornfield Hall. The novel revolutionised prose fiction in that the focus on Jane's moral and spiritual development is told through an intimate, first-person narrative, where actions and events are coloured by a psychological intensity. The book contains elements of social criticism, with a strong sense of Christian morality at its core and is considered by many to be ahead of its time because of Jane's individualistic character and how the novel approaches the topics of class, sexuality, religion and feminism.";107;11;12.34;GBP -251;The Raven;"""The Raven"" is a narrative poem by American writer Edgar Allan Poe. First published in January 1845, the poem is often noted for its musicality, stylized language, and supernatural atmosphere. It tells of a talking raven's mysterious visit to a distraught lover, tracing the man's slow fall into madness. The lover, often identified as being a student, is lamenting the loss of his love, Lenore. Sitting on a bust of Pallas, the raven seems to further distress the protagonist with its constant repetition of the word ""Nevermore"". The poem makes use of folk, mythological, religious, and classical references.";150;333;13.13;USD -252;Eleonora;"""Eleonora"" is a short story by Edgar Allan Poe, first published in 1842 in Philadelphia in the literary annual The Gift. It is often regarded as somewhat autobiographical and has a relatively ""happy"" ending.";150;555;14;USD -271;Catweazle;Catweazle is a British fantasy television series, starring Geoffrey Bayldon in the title role, and created by Richard Carpenter for London Weekend Television. The first series, produced and directed by Quentin Lawrence, was screened in the UK on ITV in 1970. The second series, directed by David Reid and David Lane, was shown in 1971. Each series had thirteen episodes, most but not all written by Carpenter, who also published two books based on the scripts.;170;22;15;EUR \ No newline at end of file +ID;title;author_ID;stock +201;Wuthering Heights;101;12 +207;Jane Eyre;107;11 +251;The Raven;150;333 +252;Eleonora;150;555 +271;Catweazle;170;22 \ No newline at end of file diff --git a/packages/bookshop/db/data/sap.capire.bookshop-Books_texts.csv b/packages/bookshop/db/data/sap.capire.bookshop-Books_texts.csv deleted file mode 100644 index fcd8a35e..00000000 --- a/packages/bookshop/db/data/sap.capire.bookshop-Books_texts.csv +++ /dev/null @@ -1,4 +0,0 @@ -ID;locale;title;descr -201;de;Sturmhöhe;Sturmhöhe (Originaltitel: Wuthering Heights) ist der einzige Roman der englischen Schriftstellerin Emily Brontë (1818–1848). Der 1847 unter dem Pseudonym Ellis Bell veröffentlichte Roman wurde vom viktorianischen Publikum weitgehend abgelehnt, heute gilt er als ein Klassiker der britischen Romanliteratur des 19. Jahrhunderts. -207;de;Jane Eyre;Jane Eyre. Eine Autobiographie (Originaltitel: Jane Eyre. An Autobiography), erstmals erschienen im Jahr 1847 unter dem Pseudonym Currer Bell, ist der erste veröffentlichte Roman der britischen Autorin Charlotte Brontë und ein Klassiker der viktorianischen Romanliteratur des 19. Jahrhunderts. Der Roman erzählt in Form einer Ich-Erzählung die Lebensgeschichte von Jane Eyre (ausgesprochen /ˌdʒeɪn ˈɛə/), die nach einer schweren Kindheit eine Stelle als Gouvernante annimmt und sich in ihren Arbeitgeber verliebt, jedoch immer wieder um ihre Freiheit und Selbstbestimmung kämpfen muss. Als klein, dünn, blass, stets schlicht dunkel gekleidet und mit strengem Mittelscheitel beschrieben, gilt die Heldin des Romans Jane Eyre nicht zuletzt aufgrund der Kino- und Fernsehversionen der melodramatischen Romanvorlage als die bekannteste englische Gouvernante der Literaturgeschichte -252;de;Eleonora;“Eleonora” ist eine Erzählung von Edgar Allan Poe. Sie wurde 1841 erstveröffentlicht. In ihr geht es um das Paradox der Treue in der Treulosigkeit. \ No newline at end of file diff --git a/packages/bookshop/db/data/sap.capire.bookshop-OrderItems.csv b/packages/bookshop/db/data/sap.capire.bookshop-OrderItems.csv deleted file mode 100644 index 25edab7a..00000000 --- a/packages/bookshop/db/data/sap.capire.bookshop-OrderItems.csv +++ /dev/null @@ -1,4 +0,0 @@ -ID;amount;parent_ID;book_ID;netAmount -58040e66-1dcd-4ffb-ab10-fdce32028b79;1;7e2f2640-6866-4dcf-8f4d-3027aa831cad;201;11.11 -64e718c9-ff99-47f1-8ca3-950c850777d4;1;7e2f2640-6866-4dcf-8f4d-3027aa831cad;271;15 -e9641166-e050-4261-bfee-d1e797e6cb7f;2;64e718c9-ff99-47f1-8ca3-950c850777d4;252;28 \ No newline at end of file diff --git a/packages/bookshop/db/data/sap.capire.bookshop-Orders.csv b/packages/bookshop/db/data/sap.capire.bookshop-Orders.csv deleted file mode 100644 index 088c1e87..00000000 --- a/packages/bookshop/db/data/sap.capire.bookshop-Orders.csv +++ /dev/null @@ -1,3 +0,0 @@ -ID;modifiedAt;createdAt;createdBy;modifiedBy;OrderNo;currency_code -7e2f2640-6866-4dcf-8f4d-3027aa831cad;;2019-01-31;john.doe@test.com;;1;EUR -64e718c9-ff99-47f1-8ca3-950c850777d4;;2019-01-30;jane.doe@test.com;;2;EUR \ No newline at end of file diff --git a/packages/bookshop/db/data/sap.common-Currencies.csv b/packages/bookshop/db/data/sap.common-Currencies.csv deleted file mode 100644 index 48f3ec32..00000000 --- a/packages/bookshop/db/data/sap.common-Currencies.csv +++ /dev/null @@ -1,7 +0,0 @@ -code;symbol;name;descr -EUR;€;Euro;European Euro -USD;$;US Dollar;United States Dollar -CAD;$;Canadian Dollar;Canadian Dollar -AUD;$;Australian Dollar;Australian Dollar -GBP;£;Pound;Great Britain Pound -ILS;₪;Shekel;Israeli New Shekel \ No newline at end of file diff --git a/packages/bookshop/db/data/sap.common-Currencies_texts.csv b/packages/bookshop/db/data/sap.common-Currencies_texts.csv deleted file mode 100644 index 4d2ead51..00000000 --- a/packages/bookshop/db/data/sap.common-Currencies_texts.csv +++ /dev/null @@ -1,13 +0,0 @@ -code;locale;name;descr -EUR;de;Euro;European Euro -USD;de;US-Dollar;United States Dollar -CAD;de;Kanadischer Dollar;Kanadischer Dollar -AUD;de;Australischer Dollar;Australischer Dollar -GBP;de;Pfund;Britische Pfund -ILS;de;Schekel;Israelische Schekel -EUR;fr;euro;de la Zone euro -USD;fr;dollar;dollar des États-Unis -CAD;fr;dollar canadien;dollar canadien -AUD;fr;dollar australien;dollar australien -GBP;fr;livre sterling;pound sterling -ILS;fr;Shekel;shekel israelien \ No newline at end of file diff --git a/packages/bookshop/db/schema.cds b/packages/bookshop/db/schema.cds index e0e587be..382ee380 100644 --- a/packages/bookshop/db/schema.cds +++ b/packages/bookshop/db/schema.cds @@ -1,35 +1,40 @@ namespace sap.capire.bookshop; -using { Currency, managed, cuid } from '@sap/cds/common'; +using { Currency, managed } from '@sap/cds/common'; -entity Books : managed { - key ID : Integer; - title : localized String(111); - descr : localized String(1111); - author : Association to Authors; - stock : Integer; - price : Decimal(9,2); +entity Books : managed, additionalInfo { + key ID : Integer; + title : localized String(111); + descr : localized String(1111); + author : Association to Authors; + stock : Integer; + price : Decimal(9,2); currency : Currency; } entity Authors : managed { - key ID : Integer; - name : String(111); - dateOfBirth : Date; - dateOfDeath : Date; - placeOfBirth : String; - placeOfDeath : String; - books : Association to many Books on books.author = $self; + key ID : Integer; + name : String(111); + books : Association to many Books on books.author = $self; } -entity Orders : cuid, managed { +entity Orders : managed { + key ID : UUID; OrderNo : String @title:'Order Number'; //> readable key Items : Composition of many OrderItems on Items.parent = $self; - total : Decimal(9,2) @readonly; - currency : Currency; } -entity OrderItems : cuid { - parent : Association to Orders; - book : Association to Books; - amount : Integer; - netAmount : Decimal(9,2); +entity OrderItems { + key ID : UUID; + parent : Association to Orders; + book : Association to Books; + amount : Integer; +} + +entity Movies: additionalInfo { + key ID : Integer; + name : String(111); +} + +aspect additionalInfo{ + genre: String(100); + language: String(200); } diff --git a/packages/bookshop/package-lock.json b/packages/bookshop/package-lock.json new file mode 100644 index 00000000..6e40f8b9 --- /dev/null +++ b/packages/bookshop/package-lock.json @@ -0,0 +1,955 @@ +{ + "name": "bookshop", + "version": "1.0.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@sap/cds": { + "version": "3.21.2", + "resolved": "https://npm.sap.com/@sap/cds/-/cds-3.21.2.tgz", + "integrity": "sha512-d0x0CcTwGPhle+fPS9Z0bSH20TmpBF4eXlePCR6R0MZcPNrl314PV6CsEETwMgw9VNuMiIj9chKNHJkwgqOGBQ==", + "requires": { + "@sap/cds-compiler": "1.21.1", + "@sap/cds-foss": "1.1.0", + "@sap/cds-messaging": "1.5.0", + "@sap/cds-reflect": "2.9.2", + "@sap/cds-rest": "1.3.0", + "@sap/cds-services": "1.22.0", + "@sap/generator-cds": "2.11.1" + } + }, + "@sap/cds-compiler": { + "version": "1.21.1", + "resolved": "https://npm.sap.com/@sap/cds-compiler/-/cds-compiler-1.21.1.tgz", + "integrity": "sha512-Y2WO9APZjb1E3P/8UQlUxu4TjkNTW2/r6Q/c/WBt3vISMWn2cWEyNdWmFQb/S5o2HBKlGrIWqxDvOED5Qa4pkw==", + "requires": { + "antlr4": "4.7.1", + "resolve": "1.8.1", + "sax": "1.2.4" + }, + "dependencies": { + "antlr4": { + "version": "4.7.1", + "resolved": "https://registry.npmjs.org/antlr4/-/antlr4-4.7.1.tgz", + "integrity": "sha512-haHyTW7Y9joE5MVs37P2lNYfU2RWBLfcRDD8OWldcdZm5TiCE91B5Xl1oWSwiDUSd4rlExpt2pu1fksYQjRBYQ==" + }, + "resolve": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.8.1.tgz", + "integrity": "sha512-AicPrAC7Qu1JxPCZ9ZgCZlY35QgFnNqc+0LtbRNxnVw4TXvjQ72wnuL9JQcEBgXkI9JM8MsT9kaQoHcpCRJOYA==", + "requires": { + "path-parse": "^1.0.5" + }, + "dependencies": { + "path-parse": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz", + "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=" + } + } + }, + "sax": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" + } + } + }, + "@sap/cds-foss": { + "version": "1.1.0", + "resolved": "https://npm.sap.com/@sap/cds-foss/-/cds-foss-1.1.0.tgz", + "integrity": "sha512-Bk5iTC9VqaibPHYCcrGcvTGnDqZkrv/EbtYKk0K25ImXbtk3Da07NUIYsCqkTjRCbuYPI4llGh1gUC7c+35DDQ==", + "requires": { + "fs-extra": "7.0.1", + "generic-pool": "3.7.1", + "uuid": "3.3.2", + "yaml": "1.5.1" + }, + "dependencies": { + "@babel/runtime": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.6.3.tgz", + "integrity": "sha512-kq6anf9JGjW8Nt5rYfEuGRaEAaH1mkv3Bbu6rYvLOpPh/RusSJXuKPEAoZ7L7gybZkchE8+NV5g9vKF4AGAtsA==", + "requires": { + "regenerator-runtime": "^0.13.2" + } + }, + "fs-extra": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "generic-pool": { + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/generic-pool/-/generic-pool-3.7.1.tgz", + "integrity": "sha512-ug6DAZoNgWm6q5KhPFA+hzXfBLFQu5sTXxPpv44DmE0A2g+CiHoq9LTVdkXpZMkYVMoGw83F6W+WT0h0MFMK/w==" + }, + "graceful-fs": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz", + "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==" + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "regenerator-runtime": { + "version": "0.13.3", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz", + "integrity": "sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw==" + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" + }, + "uuid": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", + "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==" + }, + "yaml": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.5.1.tgz", + "integrity": "sha512-btfJvMOgVthGZSgHBMrDkLuQu4YxOycw6kwuC67cUEOKJmmNozjIa02eKvuSq7usqqqpwwCvflGTF6JcDvSudw==", + "requires": { + "@babel/runtime": "^7.4.4" + } + } + } + }, + "@sap/cds-hana": { + "version": "1.21.0", + "resolved": "https://npm.sap.com/@sap/cds-hana/-/cds-hana-1.21.0.tgz", + "integrity": "sha512-arAqIN0Q/uAq4D4RrmvII5ZkmEl80Y/reaurDUOGkDhbftL+R01zkeWR4CZ55grZA7ttQRldRzm0uOxHfp2nUw==", + "requires": { + "@sap/cds-sql": "1.21.0" + } + }, + "@sap/cds-messaging": { + "version": "1.5.0", + "resolved": "https://npm.sap.com/@sap/cds-messaging/-/cds-messaging-1.5.0.tgz", + "integrity": "sha512-kd+mmnhvWR0mHu2HI/mVBpoKh3g3qBKVNfZ/TJQfL90lVY1eIEE+RrEwumaXdcTLfsB5u8zJR1efqsWfyiC2cw==" + }, + "@sap/cds-reflect": { + "version": "2.9.2", + "resolved": "https://npm.sap.com/@sap/cds-reflect/-/cds-reflect-2.9.2.tgz", + "integrity": "sha512-7FfwCtH5S7K3v5fPiTSH1Gr1UG1cqO+urKNRXj0tfSpKiwjq+gVO+BJIeHgw6QYjG1AwEfG37UbydwQuU5s/tQ==" + }, + "@sap/cds-rest": { + "version": "1.3.0", + "resolved": "https://npm.sap.com/@sap/cds-rest/-/cds-rest-1.3.0.tgz", + "integrity": "sha512-ntswiZfNGWChql5KqkihsF+BmGTBklkj31Ihnff1ue3riD1O4pZjdry/6sHODXsHc+HsFy1JAmyt2NeU1JZ/1Q==", + "requires": { + "@sap/cloud-sdk-core": "1.10.0", + "@sap/cloud-sdk-util": "1.10.0" + } + }, + "@sap/cds-services": { + "version": "1.22.0", + "resolved": "https://npm.sap.com/@sap/cds-services/-/cds-services-1.22.0.tgz", + "integrity": "sha512-ofTjs0/oGJ2rDMSv3gFykX2mU0m+fJn23sTEikFNM+b4b7hjY5CdzOAaRU3uRFfHITiqhSipRKcU9a9x/bOYhw==", + "requires": { + "@sap/cds-foss": "1.1.0", + "@sap/cds-hana": "1.21.0", + "@sap/cds-sql": "1.21.0", + "@sap/cds-sqlite": "1.21.0", + "@sap/odata-server": "1.3.8" + } + }, + "@sap/cds-sql": { + "version": "1.21.0", + "resolved": "https://npm.sap.com/@sap/cds-sql/-/cds-sql-1.21.0.tgz", + "integrity": "sha512-ydrTkITgX4pzmJ1fyyiapkO1zm1rXkyixa3sEsmuOaqa0vTfnxF9HVxJrOD7tq8B4t6EwaadZh3omNI4eKmkLQ==", + "requires": { + "@sap/cds-foss": "1.1.0" + } + }, + "@sap/cds-sqlite": { + "version": "1.21.0", + "resolved": "https://npm.sap.com/@sap/cds-sqlite/-/cds-sqlite-1.21.0.tgz", + "integrity": "sha512-GQ4re26rU2icOxqvVqH5BfmEYOIjEHKhFZvcM+aWvVqpxZyakESJDNlx135kpivyhfj6AOYQ/KATy2LEtwId8Q==", + "requires": { + "@sap/cds-sql": "1.21.0" + } + }, + "@sap/cloud-sdk-core": { + "version": "1.10.0", + "resolved": "https://npm.sap.com/@sap/cloud-sdk-core/-/cloud-sdk-core-1.10.0.tgz", + "integrity": "sha512-3UugfiqeaU7OjmAOVP0uvoBpfOjXx2RYXY9wFUqwWlAptcrMOt5aR3eJEWFszwPII+52P2433GY/Xlx0T2NYhg==", + "requires": { + "@sap/cloud-sdk-util": "^1.10.0", + "@types/http-proxy-agent": "^2.0.1", + "axios": "^0.19.0", + "bignumber.js": "^8.1.1", + "http-proxy-agent": "^2.1.0", + "jsonwebtoken": "^8.5.1", + "moment": "^2.24.0", + "opossum": "^2.3.0", + "rambda": "^2.10.2", + "voca": "^1.4.0" + } + }, + "@sap/cloud-sdk-util": { + "version": "1.10.0", + "resolved": "https://npm.sap.com/@sap/cloud-sdk-util/-/cloud-sdk-util-1.10.0.tgz", + "integrity": "sha512-nw4HKIphXGSxD2FTajV/QwPeryunRMA4ILOEfpd/O2CMSsVwQ2R/bKHZv4FRmveqppV+6Gc7C/1mZovKSdk7nQ==", + "requires": { + "rambda": "^2.10.2" + } + }, + "@sap/generator-cds": { + "version": "2.11.1", + "resolved": "https://npm.sap.com/@sap/generator-cds/-/generator-cds-2.11.1.tgz", + "integrity": "sha512-DyV4Qbw2JcTdnzdKyKhB9ZKwTSA/Muj46/f3y0zH3qxXtJ7nDjiJSZXSIVNRWv1VtdiXkW3f+vaUzYEZrnj2eg==", + "requires": { + "fs-extra": "8.1.0", + "minimist": "1.2.0", + "xml2js": "0.4.21", + "yaml": "1.6.0" + }, + "dependencies": { + "@babel/runtime": { + "version": "7.7.6", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.7.6.tgz", + "integrity": "sha512-BWAJxpNVa0QlE5gZdWjSxXtemZyZ9RmrmVozxt3NUXeZhVIJ5ANyqmMc0JDrivBZyxUuQvFxlvH4OWWOogGfUw==", + "requires": { + "regenerator-runtime": "^0.13.2" + } + }, + "fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "graceful-fs": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz", + "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==" + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=" + }, + "regenerator-runtime": { + "version": "0.13.3", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz", + "integrity": "sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw==" + }, + "sax": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" + }, + "xml2js": { + "version": "0.4.21", + "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.21.tgz", + "integrity": "sha512-gHRSAYBSA1JNVbLV2l8mTpQ/zTLcNtyG4YZmNlA3pjMWTgv9swW9muK55cr3fUmSOezLTR24iPQ+FqxilTvppw==", + "requires": { + "sax": ">=0.6.0", + "xmlbuilder": "~13.0.0" + } + }, + "xmlbuilder": { + "version": "13.0.2", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-13.0.2.tgz", + "integrity": "sha512-Eux0i2QdDYKbdbA6AM6xE4m6ZTZr4G4xF9kahI2ukSEMCzwce2eX9WlTI5J3s+NU7hpasFsr8hWIONae7LluAQ==" + }, + "yaml": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.6.0.tgz", + "integrity": "sha512-iZfse3lwrJRoSlfs/9KQ9iIXxs9++RvBFVzAqbbBiFT+giYtyanevreF9r61ZTbGMgWQBxAua3FzJiniiJXWWw==", + "requires": { + "@babel/runtime": "^7.4.5" + } + } + } + }, + "@sap/odata-server": { + "version": "1.3.8", + "resolved": "https://npm.sap.com/@sap/odata-server/-/odata-server-1.3.8.tgz", + "integrity": "sha512-nSc7kxmRsh++08WW613iL007P/F0ccgP/+TcHhh6w0Nf0RP77YpilTaikam5IMz1iQqIfD+A2XIgYzXdAXMajQ==", + "requires": { + "@sap/odata-commons": "^2.1.3", + "xmlbuilder": "=10.1.0" + }, + "dependencies": { + "@sap/odata-commons": { + "version": "2.1.3", + "resolved": "https://npm.sap.com/@sap/odata-commons/-/odata-commons-2.1.3.tgz", + "integrity": "sha512-+qRN3v+CVpYTLvcxG11t24Wy07IrhQQHJrDo5eIqdhgL9jo6Kil627v7xyiD75YqWfFhS5dZK2gE3NGxaCvtyA==", + "requires": { + "big.js": "=5.2.2" + }, + "dependencies": { + "big.js": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", + "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==" + } + } + }, + "xmlbuilder": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-10.1.0.tgz", + "integrity": "sha512-In21jFWiaulS7Cmw1fPT1Lm7g7L6ml/uwZNAaKlDZc78szm3pn5oH9gizH7sh1h2GGRb3OkL5kLCeMEENEnZwA==" + } + } + }, + "@types/http-proxy-agent": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@types/http-proxy-agent/-/http-proxy-agent-2.0.2.tgz", + "integrity": "sha512-2S6IuBRhqUnH1/AUx9k8KWtY3Esg4eqri946MnxTG5HwehF1S5mqLln8fcyMiuQkY72p2gH3W+rIPqp5li0LyQ==", + "requires": { + "@types/node": "*" + } + }, + "@types/node": { + "version": "13.5.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-13.5.1.tgz", + "integrity": "sha512-Jj2W7VWQ2uM83f8Ls5ON9adxN98MvyJsMSASYFuSvrov8RMRY64Ayay7KV35ph1TSGIJ2gG9ZVDdEq3c3zaydA==" + }, + "accepts": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", + "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", + "requires": { + "mime-types": "~2.1.24", + "negotiator": "0.6.2" + } + }, + "agent-base": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz", + "integrity": "sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg==", + "requires": { + "es6-promisify": "^5.0.0" + } + }, + "array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" + }, + "axios": { + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.19.2.tgz", + "integrity": "sha512-fjgm5MvRHLhx+osE2xoekY70AhARk3a6hkN+3Io1jc00jtquGvxYlKlsFUhmUET0V5te6CcZI7lcv2Ym61mjHA==", + "requires": { + "follow-redirects": "1.5.10" + } + }, + "bignumber.js": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-8.1.1.tgz", + "integrity": "sha512-QD46ppGintwPGuL1KqmwhR0O+N2cZUg8JG/VzwI2e28sM9TqHjQB10lI4QAaMHVbLzwVLLAwEglpKPViWX+5NQ==" + }, + "bintrees": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/bintrees/-/bintrees-1.0.1.tgz", + "integrity": "sha1-DmVcm5wkNeqraL9AJyJtK1WjRSQ=" + }, + "body-parser": { + "version": "1.19.0", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", + "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", + "requires": { + "bytes": "3.1.0", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "~1.1.2", + "http-errors": "1.7.2", + "iconv-lite": "0.4.24", + "on-finished": "~2.3.0", + "qs": "6.7.0", + "raw-body": "2.4.0", + "type-is": "~1.6.17" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + } + } + }, + "buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=" + }, + "bytes": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", + "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==" + }, + "content-disposition": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", + "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", + "requires": { + "safe-buffer": "5.1.2" + }, + "dependencies": { + "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==" + } + } + }, + "content-type": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", + "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" + }, + "cookie": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", + "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==" + }, + "cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" + }, + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "requires": { + "ms": "2.0.0" + } + }, + "depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=" + }, + "destroy": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", + "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" + }, + "ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" + }, + "encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" + }, + "es6-promise": { + "version": "4.2.8", + "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", + "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==" + }, + "es6-promisify": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz", + "integrity": "sha1-UQnWLz5W6pZ8S2NQWu8IKRyKUgM=", + "requires": { + "es6-promise": "^4.0.3" + } + }, + "escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" + }, + "etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" + }, + "express": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", + "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==", + "requires": { + "accepts": "~1.3.7", + "array-flatten": "1.1.1", + "body-parser": "1.19.0", + "content-disposition": "0.5.3", + "content-type": "~1.0.4", + "cookie": "0.4.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "~1.1.2", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "~1.1.2", + "fresh": "0.5.2", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "~2.3.0", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.5", + "qs": "6.7.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.1.2", + "send": "0.17.1", + "serve-static": "1.14.1", + "setprototypeof": "1.1.1", + "statuses": "~1.5.0", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "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==" + } + } + }, + "finalhandler": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", + "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", + "requires": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "~2.3.0", + "parseurl": "~1.3.3", + "statuses": "~1.5.0", + "unpipe": "~1.0.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + } + } + }, + "follow-redirects": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.10.tgz", + "integrity": "sha512-0V5l4Cizzvqt5D44aTXbFZz+FtyXV1vrDN6qrelxtfYQKW0KO0W2T/hkE8xvGa/540LkZlkaUjO4ailYTFtHVQ==", + "requires": { + "debug": "=3.1.0" + } + }, + "forwarded": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", + "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=" + }, + "fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" + }, + "http-errors": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", + "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", + "requires": { + "depd": "~1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.1", + "statuses": ">= 1.5.0 < 2", + "toidentifier": "1.0.0" + } + }, + "http-proxy-agent": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-2.1.0.tgz", + "integrity": "sha512-qwHbBLV7WviBl0rQsOzH6o5lwyOIvwp/BdFnvVxXORldu5TmjFfjzBcWUWS5kWAZhmv+JtiDhSuQCp4sBfbIgg==", + "requires": { + "agent-base": "4", + "debug": "3.1.0" + } + }, + "iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + }, + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" + }, + "ipaddr.js": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.0.tgz", + "integrity": "sha512-M4Sjn6N/+O6/IXSJseKqHoFc+5FdGJ22sXqnjTpdZweHK64MzEPAyQZyEU3R/KRv2GLoa7nNtg/C2Ev6m7z+eA==" + }, + "jsonwebtoken": { + "version": "8.5.1", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz", + "integrity": "sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==", + "requires": { + "jws": "^3.2.2", + "lodash.includes": "^4.3.0", + "lodash.isboolean": "^3.0.3", + "lodash.isinteger": "^4.0.4", + "lodash.isnumber": "^3.0.3", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.once": "^4.0.0", + "ms": "^2.1.1", + "semver": "^5.6.0" + }, + "dependencies": { + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + } + } + }, + "jwa": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", + "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", + "requires": { + "buffer-equal-constant-time": "1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "jws": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", + "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", + "requires": { + "jwa": "^1.4.1", + "safe-buffer": "^5.0.1" + } + }, + "lodash.includes": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", + "integrity": "sha1-YLuYqHy5I8aMoeUTJUgzFISfVT8=" + }, + "lodash.isboolean": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", + "integrity": "sha1-bC4XHbKiV82WgC/UOwGyDV9YcPY=" + }, + "lodash.isinteger": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", + "integrity": "sha1-YZwK89A/iwTDH1iChAt3sRzWg0M=" + }, + "lodash.isnumber": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", + "integrity": "sha1-POdoEMWSjQM1IwGsKHMX8RwLH/w=" + }, + "lodash.isplainobject": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", + "integrity": "sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs=" + }, + "lodash.isstring": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", + "integrity": "sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=" + }, + "lodash.once": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", + "integrity": "sha1-DdOXEhPHxW34gJd9UEyI+0cal6w=" + }, + "media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=" + }, + "merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" + }, + "methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" + }, + "mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" + }, + "mime-db": { + "version": "1.43.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.43.0.tgz", + "integrity": "sha512-+5dsGEEovYbT8UY9yD7eE4XTc4UwJ1jBYlgaQQF38ENsKR3wj/8q8RFZrF9WIZpB2V1ArTVFUva8sAul1NzRzQ==" + }, + "mime-types": { + "version": "2.1.26", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.26.tgz", + "integrity": "sha512-01paPWYgLrkqAyrlDorC1uDwl2p3qZT7yl806vW7DvDoxwXi46jsjFbg+WdwotBIk6/MbEhO/dh5aZ5sNj/dWQ==", + "requires": { + "mime-db": "1.43.0" + } + }, + "moment": { + "version": "2.24.0", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.24.0.tgz", + "integrity": "sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg==" + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "negotiator": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", + "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==" + }, + "on-finished": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", + "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", + "requires": { + "ee-first": "1.1.1" + } + }, + "opossum": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/opossum/-/opossum-2.3.0.tgz", + "integrity": "sha512-7/EKBCfHsv3YEuU6NYSyDrk9ryt5SVm9y7xeXzaN3aFmMluZkCHvUhiNqv/s/DeHcOpsj/9PoB9PUxo7BoZtBQ==", + "requires": { + "prom-client": "^11.2.1" + } + }, + "parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" + }, + "path-to-regexp": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" + }, + "prom-client": { + "version": "11.5.3", + "resolved": "https://registry.npmjs.org/prom-client/-/prom-client-11.5.3.tgz", + "integrity": "sha512-iz22FmTbtkyL2vt0MdDFY+kWof+S9UB/NACxSn2aJcewtw+EERsen0urSkZ2WrHseNdydsvcxCTAnPcSMZZv4Q==", + "requires": { + "tdigest": "^0.1.1" + } + }, + "proxy-addr": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.5.tgz", + "integrity": "sha512-t/7RxHXPH6cJtP0pRG6smSr9QJidhB+3kXu0KgXnbGYMgzEnUxRQ4/LDdfOwZEMyIh3/xHb8PX3t+lfL9z+YVQ==", + "requires": { + "forwarded": "~0.1.2", + "ipaddr.js": "1.9.0" + } + }, + "qs": { + "version": "6.7.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", + "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==" + }, + "rambda": { + "version": "2.14.5", + "resolved": "https://registry.npmjs.org/rambda/-/rambda-2.14.5.tgz", + "integrity": "sha512-vYoUQ9bmWfKh6UvxIojk5/x91NcarecpiK+bJndyHg6KPzgtuMLmQ05jWMiRDLDblps1znByuhc6DbGtEuOqZw==" + }, + "range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" + }, + "raw-body": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", + "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==", + "requires": { + "bytes": "3.1.0", + "http-errors": "1.7.2", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + } + }, + "safe-buffer": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", + "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==" + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" + }, + "send": { + "version": "0.17.1", + "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", + "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", + "requires": { + "debug": "2.6.9", + "depd": "~1.1.2", + "destroy": "~1.0.4", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "~1.7.2", + "mime": "1.6.0", + "ms": "2.1.1", + "on-finished": "~2.3.0", + "range-parser": "~1.2.1", + "statuses": "~1.5.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + }, + "dependencies": { + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + } + } + }, + "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==" + } + } + }, + "serve-static": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", + "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", + "requires": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.17.1" + } + }, + "setprototypeof": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", + "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==" + }, + "statuses": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", + "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=" + }, + "tdigest": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/tdigest/-/tdigest-0.1.1.tgz", + "integrity": "sha1-Ljyyw56kSeVdHmzZEReszKRYgCE=", + "requires": { + "bintrees": "1.0.1" + } + }, + "toidentifier": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", + "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==" + }, + "type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "requires": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + } + }, + "unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" + }, + "utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" + }, + "vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" + }, + "voca": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/voca/-/voca-1.4.0.tgz", + "integrity": "sha512-8Xz4H3vhYRGbFupLtl6dHwMx0ojUcjt0HYkqZ9oBCfipd/5mD7Md58m2/dq7uPuZU/0T3Gb1m66KS9jn+I+14Q==" + } + } +} diff --git a/packages/bookshop/package.json b/packages/bookshop/package.json index 6764a1b0..a9302f6d 100644 --- a/packages/bookshop/package.json +++ b/packages/bookshop/package.json @@ -1,21 +1,14 @@ { - "name": "@sap/capire-bookshop", + "name": "bookshop", "version": "1.0.0", - "description": "A simple bookshop application, build in a self-contained all-in-one fashion, i.e. w/o reusing other packages.", - "license": "SAP SAMPLE CODE LICENSE", + "description": "A simple CAP project.", + "repository": "", + "license": "ISC", "dependencies": { - "@sap/cds": "latest", - "express": "*" + "@sap/cds": "^3", + "express": "^4" }, "scripts": { - "start": "cds run --in-memory?", - "watch": "cds watch" - }, - "cds": { - "requires": { - "db": { - "kind": "sql" - } - } + "start": "npx cds run" } -} \ No newline at end of file +} diff --git a/packages/bookshop/sample requests.http b/packages/bookshop/sample requests.http new file mode 100644 index 00000000..65d1533b --- /dev/null +++ b/packages/bookshop/sample requests.http @@ -0,0 +1,12 @@ +### Submit Orders +POST http://localhost:4004/browse/Orders +Content-Type: application/json + +{ "OrderNo":"2019-09...", "Items":[ + { "book_ID":201, "amount":5 } +]} + +# Sending this three times should result in a 409: 5 exceeds stock for book #201 + +### Check books entity that stock was reduced +GET http://localhost:4004/admin/Books(201) diff --git a/packages/bookshop/srv/admin-service.cds b/packages/bookshop/srv/admin-service.cds index 10c0fef1..6e80d6cd 100644 --- a/packages/bookshop/srv/admin-service.cds +++ b/packages/bookshop/srv/admin-service.cds @@ -1,7 +1,7 @@ using { sap.capire.bookshop as my } from '../db/schema'; - -service AdminService @(_requires:'authenticated-user') { +service AdminService @(_requires:'admin') { entity Books as projection on my.Books; + entity Movies as projection on my.Movies; entity Authors as projection on my.Authors; entity Orders as select from my.Orders; -} +} \ No newline at end of file diff --git a/packages/bookshop/srv/cat-service.cds b/packages/bookshop/srv/cat-service.cds index efe7b5d9..70f99aae 100644 --- a/packages/bookshop/srv/cat-service.cds +++ b/packages/bookshop/srv/cat-service.cds @@ -1,7 +1,5 @@ using { sap.capire.bookshop as my } from '../db/schema'; - -@path:'/browse' -service CatalogService { +service CatalogService @(path:'/browse') { @readonly entity Books as SELECT from my.Books {*, author.name as author @@ -9,5 +7,4 @@ service CatalogService { @requires_: 'authenticated-user' @insertonly entity Orders as projection on my.Orders; - -} +} \ No newline at end of file diff --git a/packages/bookshop/srv/cat-service.js b/packages/bookshop/srv/cat-service.js index 8ee056a7..abcc6ad8 100644 --- a/packages/bookshop/srv/cat-service.js +++ b/packages/bookshop/srv/cat-service.js @@ -1,26 +1,28 @@ -const cds = require('@sap/cds') -const { Books } = cds.entities +/** + * Implementation for CatalogService defined in ./cat-service.cds + */ +module.exports = (srv)=>{ -/** Service implementation for CatalogService */ -module.exports = cds.service.impl(function() { - this.after ('READ', 'Books', each => each.stock > 111 && _addDiscount2(each,11)) - this.before ('CREATE', 'Orders', _reduceStock) -}) + // Use reflection to get the csn definition of Books + const {Books} = cds.entities -/** Add some discount for overstocked books */ -function _addDiscount2 (each,discount) { - each.title += ` -- ${discount}% discount!` -} + // Add some discount for overstocked books + srv.after ('READ','Books', (each)=>{ + if (each.stock > 111) each.title += ' -- 11% discount!' + }) + + // Reduce stock of books upon incoming orders + srv.before ('CREATE','Orders', async (req)=>{ + const tx = cds.transaction(req), order = req.data; + if (order.Items) { + const affectedRows = await tx.run(order.Items.map(item => + UPDATE(Books) .where({ID:item.book_ID}) + .and(`stock >=`, item.amount) + .set(`stock -=`, item.amount) + ) + ) + if (affectedRows.some(row => !row)) req.error(409, 'Sold out, sorry') + } + }) -/** Reduce stock of ordered books if available stock suffices */ -async function _reduceStock (req) { - const { Items: OrderItems } = req.data - return cds.transaction(req) .run (()=> OrderItems.map (order => - UPDATE (Books) .set ('stock -=', order.amount) - .where ('ID =', order.book_ID) .and ('stock >=', order.amount) - )) .then (all => all.forEach ((affectedRows,i) => { - if (affectedRows === 0) req.error (409, - `${OrderItems[i].amount} exceeds stock for book #${OrderItems[i].book_ID}` - ) - })) } \ No newline at end of file diff --git a/packages/bookshop/tests/bookshop.http b/packages/bookshop/tests/bookshop.http deleted file mode 100644 index 0d50023e..00000000 --- a/packages/bookshop/tests/bookshop.http +++ /dev/null @@ -1,18 +0,0 @@ -### Service Document -GET http://localhost:4004/browse - -### Service $metadata document -GET http://localhost:4004/browse/$metadata - -### Browsing Books -GET http://localhost:4004/browse/Books? -# &$select=title,author -# &$expand=currency -# &sap-language=de - -### Browsing Authors -GET http://localhost:4004/admin/Authors? -# &$select=name,dateOfBirth,placeOfBirth -# &$expand=books($select=title;$expand=currency) -# &$filter=ID eq 101 -# &sap-language=de diff --git a/packages/bookshop/tests/orders.http b/packages/bookshop/tests/orders.http deleted file mode 100644 index a0f72d1c..00000000 --- a/packages/bookshop/tests/orders.http +++ /dev/null @@ -1,18 +0,0 @@ - -### List Books with their current stocks -GET http://localhost:4004/admin/Books?$select=ID,stock - -### List all Orders -GET http://localhost:4004/admin/Orders? -&$expand=Items - -### Submit Orders -POST http://localhost:4004/browse/Orders -Content-Type: application/json - -{ "OrderNo":"2019-09...", "Items":[ - { "book_ID":201, "amount":5 }, - { "book_ID":207, "amount":3 } -]} - -# Sending this three times should result in a 409: 5 exceeds stock for book #201 \ No newline at end of file diff --git a/packages/bookstore/db/data/sap.capire.bookstore-Authors.csv b/packages/bookstore/db/data/sap.capire.bookstore-Authors.csv deleted file mode 100644 index 8c2d2f71..00000000 --- a/packages/bookstore/db/data/sap.capire.bookstore-Authors.csv +++ /dev/null @@ -1,5 +0,0 @@ -ID;firstname;lastname;dateOfBirth;placeOfBirth;dateOfDeath;placeOfDeath -101;Emily;Brontë;1818-07-30;Thornton, Yorkshire;1848-12-19;Haworth, Yorkshire -107;Charlotte;Brontë;1818-04-21;Thornton, Yorkshire;1855-03-31;Haworth, Yorkshire -150;Edgar Allen;Poe;1809-01-19;Boston, Massachusetts;1849-10-07;Baltimore, Maryland -170;Richard;Carpenter;1929-08-14;King’s Lynn, Norfolk;2012-02-26;Hertfordshire, England \ No newline at end of file diff --git a/packages/bookstore/db/data/sap.capire.products-Categories.csv b/packages/bookstore/db/data/sap.capire.products-Categories.csv deleted file mode 100644 index 331e8ba2..00000000 --- a/packages/bookstore/db/data/sap.capire.products-Categories.csv +++ /dev/null @@ -1,11 +0,0 @@ -ID;parent_ID;name -1;;Poetry -2;;Biography -3;;Fantasy -4;;Science Fiction -5;;Romance -6;;Mystery -7;;Thriller -8;;Dystopia -9;;Tragedy -10;;Novel diff --git a/packages/bookstore/db/data/sap.capire.products-Products.csv b/packages/bookstore/db/data/sap.capire.products-Products.csv deleted file mode 100644 index ddbd0834..00000000 --- a/packages/bookstore/db/data/sap.capire.products-Products.csv +++ /dev/null @@ -1,6 +0,0 @@ -ID;title;descr;author_ID;stock;price;currency_code;category_ID -201;Wuthering Heights;"Wuthering Heights, Emily Brontë's only novel, was published in 1847 under the pseudonym ""Ellis Bell"". It was written between October 1845 and June 1846. Wuthering Heights and Anne Brontë's Agnes Grey were accepted by publisher Thomas Newby before the success of their sister Charlotte's novel Jane Eyre. After Emily's death, Charlotte edited the manuscript of Wuthering Heights and arranged for the edited version to be published as a posthumous second edition in 1850.";101;12;11.11;GBP;9 -207;Jane Eyre;"Jane Eyre /ɛər/ (originally published as Jane Eyre: An Autobiography) is a novel by English writer Charlotte Brontë, published under the pen name ""Currer Bell"", on 16 October 1847, by Smith, Elder & Co. of London. The first American edition was published the following year by Harper & Brothers of New York. Primarily a bildungsroman, Jane Eyre follows the experiences of its eponymous heroine, including her growth to adulthood and her love for Mr. Rochester, the brooding master of Thornfield Hall. The novel revolutionised prose fiction in that the focus on Jane's moral and spiritual development is told through an intimate, first-person narrative, where actions and events are coloured by a psychological intensity. The book contains elements of social criticism, with a strong sense of Christian morality at its core and is considered by many to be ahead of its time because of Jane's individualistic character and how the novel approaches the topics of class, sexuality, religion and feminism.";107;11;12.34;GBP;10 -251;The Raven;"“The Raven"" is a narrative poem by American writer Edgar Allan Poe. First published in January 1845, the poem is often noted for its musicality, stylized language, and supernatural atmosphere. It tells of a talking raven's mysterious visit to a distraught lover, tracing the man's slow fall into madness. The lover, often identified as being a student, is lamenting the loss of his love, Lenore. Sitting on a bust of Pallas, the raven seems to further distress the protagonist with its constant repetition of the word ""Nevermore"". The poem makes use of folk, mythological, religious, and classical references.";150;333;13.13;USD;1 -252;Eleonora;"""Eleonora"" is a short story by Edgar Allan Poe, first published in 1842 in Philadelphia in the literary annual The Gift. It is often regarded as somewhat autobiographical and has a relatively ""happy"" ending.";150;555;14;USD;5 -271;Catweazle;Catweazle is a British fantasy television series, starring Geoffrey Bayldon in the title role, and created by Richard Carpenter for London Weekend Television. The first series, produced and directed by Quentin Lawrence, was screened in the UK on ITV in 1970. The second series, directed by David Reid and David Lane, was shown in 1971. Each series had thirteen episodes, most but not all written by Carpenter, who also published two books based on the scripts.;170;22;15;EUR;3 \ No newline at end of file diff --git a/packages/bookstore/db/data/sap.capire.products-Products_texts.csv b/packages/bookstore/db/data/sap.capire.products-Products_texts.csv deleted file mode 100644 index fcd8a35e..00000000 --- a/packages/bookstore/db/data/sap.capire.products-Products_texts.csv +++ /dev/null @@ -1,4 +0,0 @@ -ID;locale;title;descr -201;de;Sturmhöhe;Sturmhöhe (Originaltitel: Wuthering Heights) ist der einzige Roman der englischen Schriftstellerin Emily Brontë (1818–1848). Der 1847 unter dem Pseudonym Ellis Bell veröffentlichte Roman wurde vom viktorianischen Publikum weitgehend abgelehnt, heute gilt er als ein Klassiker der britischen Romanliteratur des 19. Jahrhunderts. -207;de;Jane Eyre;Jane Eyre. Eine Autobiographie (Originaltitel: Jane Eyre. An Autobiography), erstmals erschienen im Jahr 1847 unter dem Pseudonym Currer Bell, ist der erste veröffentlichte Roman der britischen Autorin Charlotte Brontë und ein Klassiker der viktorianischen Romanliteratur des 19. Jahrhunderts. Der Roman erzählt in Form einer Ich-Erzählung die Lebensgeschichte von Jane Eyre (ausgesprochen /ˌdʒeɪn ˈɛə/), die nach einer schweren Kindheit eine Stelle als Gouvernante annimmt und sich in ihren Arbeitgeber verliebt, jedoch immer wieder um ihre Freiheit und Selbstbestimmung kämpfen muss. Als klein, dünn, blass, stets schlicht dunkel gekleidet und mit strengem Mittelscheitel beschrieben, gilt die Heldin des Romans Jane Eyre nicht zuletzt aufgrund der Kino- und Fernsehversionen der melodramatischen Romanvorlage als die bekannteste englische Gouvernante der Literaturgeschichte -252;de;Eleonora;“Eleonora” ist eine Erzählung von Edgar Allan Poe. Sie wurde 1841 erstveröffentlicht. In ihr geht es um das Paradox der Treue in der Treulosigkeit. \ No newline at end of file diff --git a/packages/bookstore/db/schema.cds b/packages/bookstore/db/schema.cds deleted file mode 100644 index 5f82d533..00000000 --- a/packages/bookstore/db/schema.cds +++ /dev/null @@ -1,18 +0,0 @@ -namespace sap.capire.bookstore; - -// We reuse Products, which are Books in our domain -using { sap.capire.products.Products as Books } from '@sap/capire-products'; -extend Books with { - author : Association to Authors; - rating : Decimal(2,1); -} - -// We reuse aspect Person to define Authors -using { sap.capire.contacts.Person } from '@sap/capire-contacts'; -entity Authors : Person { - key ID : UUID; - books : Association to many Books on books.author = $self; -} - -// we use enhanced currencies code lists -using from '@sap/capire-currencies'; diff --git a/packages/bookstore/package.json b/packages/bookstore/package.json deleted file mode 100644 index 0f18561b..00000000 --- a/packages/bookstore/package.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "name": "@sap/capire-bookstore", - "version": "1.0.0", - "description": "A variant of the bookshop application, built on top of products-service and common reuse packages.", - "repository": "https://github.com/SAP-samples/cloud-cap-samples.git", - "license": "SAP SAMPLE CODE LICENSE", - "dependencies": { - "@sap/capire-products": "^1.0.0", - "@sap/capire-reviews": "^1.0.0", - "@sap/capire-orders": "^1.0.0", - "@sap/capire-media": "^1.0.0", - "@sap/capire-users": "^1.0.0", - "@sap/capire-contacts": "^1.0.0", - "@sap/capire-currencies": "^1.0.0", - "@sap/cds": "latest", - "express": "*" - }, - "bundledDependencies": [ - "@sap/capire-products", - "@sap/capire-reviews", - "@sap/capire-orders", - "@sap/capire-media", - "@sap/capire-users", - "@sap/capire-contacts", - "@sap/capire-currencies" - ], - "files": [ - "app", "srv", "db" - ], - "scripts": { - "start": "cds run --in-memory?", - "watch": "cds watch" - }, - "cds": { - "requires": { - "db": { - "kind": "sql" - }, - "sap.capire.media.MediaServer": { - "kind": "rest" - }, - "sap.capire.reviews.ReviewsService": { - "model": "@sap/capire-reviews", - "kind": "odata" - } - } - } -} diff --git a/packages/bookstore/srv/_workarounds.cds b/packages/bookstore/srv/_workarounds.cds deleted file mode 100644 index 60cc099a..00000000 --- a/packages/bookstore/srv/_workarounds.cds +++ /dev/null @@ -1,12 +0,0 @@ -//---------------------- -// workarounds -> should be done by @cds-compiler - -annotate cds.UUID with @odata.Type: 'Edm.String'; - -using from '@sap/capire-products'; -annotate sap.capire.products.Products with { texts @odata.contained } -annotate sap.capire.products.Categories with { texts @odata.contained } - -annotate sap.capire.reviews.ReviewsService with @imported; -annotate sap.capire.reviews.Reviews with @cds.persistence.skip; -annotate sap.capire.reviews.Likes with @cds.persistence.skip; diff --git a/packages/bookstore/srv/services.cds b/packages/bookstore/srv/services.cds deleted file mode 100644 index b630ebe9..00000000 --- a/packages/bookstore/srv/services.cds +++ /dev/null @@ -1,35 +0,0 @@ -namespace sap.capire.bookstore; - -// Service for all users to browse books -using { sap.capire.products } from '../db/schema'; - -service CatalogService @(path:'browse'){ - - @readonly entity Books as select from products.Products { *, - author.firstname ||' '|| author.lastname as author : String, - category.name as genre, - } excluding { createdBy, modifiedBy }; - - @readonly entity Genres as projection on products.Categories; - -} - -// Reuse AdminService from @sap/capire-products... -using { sap.capire.products.AdminService } from '@sap/capire-products'; -using { sap.capire.bookstore as my } from '../db/schema'; - -extend service AdminService with @(impl:'srv/services.js') { - entity Authors as projection on my.Authors; -} - -// Adding reviews via @sap/capire-reviews service -using { sap.capire.reviews.ReviewsService as external } from '@sap/capire-reviews'; -extend service CatalogService with { - @readonly entity Reviews as projection on external.Reviews; -} - - -// Adding images via @sap/capire-media service -using from '@sap/capire-media'; -// using from '@sap/capire-orders'; -// using from '@sap/capire-users'; diff --git a/packages/bookstore/srv/services.js b/packages/bookstore/srv/services.js deleted file mode 100644 index 3b6430aa..00000000 --- a/packages/bookstore/srv/services.js +++ /dev/null @@ -1,38 +0,0 @@ -const cds = require('@sap/cds') -module.exports['sap.capire.bookstore.CatalogService'] = cds.service.impl (async (srv) => { - - const ReviewsService = await cds.connect.to ('sap.capire.reviews.ReviewsService') - const { Reviews } = ReviewsService.entities - const { Books } = srv.entities - - // delegate requests to reviews service - srv.on('READ', 'Reviews', async (req) => { - const { SELECT } = cds.ql(req) - const results = await SELECT.from (Reviews) - - // TODO: Should actually be using .where of fluent query API - if (req.query.SELECT.where) { - return results.filter (row => row.subject === req.query.SELECT.where[2].val) - } - - return results - }) - - // react on event messages from reviews service - ReviewsService.on ('reviewed', (msg) => { - console.debug ('> received message:', msg.event, msg.data) - const {subject,rating} = msg.data - const tx = cds.transaction(msg) - return tx.run (UPDATE(Books).set({rating}) .where ({ID:subject})) //.then (console.log) - }) - -}) - - -// FIXME: pls remove this... -process.env.destinations = JSON.stringify([{ - name: 'reviewsDest', - url: 'http://localhost:4005/reviews', - username: 'dummy', - password: 'dummy' -}]) diff --git a/packages/bookstore/tests/books.cds b/packages/bookstore/tests/books.cds deleted file mode 100644 index 4c1309d9..00000000 --- a/packages/bookstore/tests/books.cds +++ /dev/null @@ -1,7 +0,0 @@ -using { sap.capire.products as my } from '../db/schema'; - -service BooksService { - entity Books as SELECT from my.Products; -} - -annotate cds.UUID with @odata.Type: 'Edm.String'; diff --git a/packages/bookstore/tests/localized-data.test.js b/packages/bookstore/tests/localized-data.test.js deleted file mode 100644 index acf35d44..00000000 --- a/packages/bookstore/tests/localized-data.test.js +++ /dev/null @@ -1,190 +0,0 @@ -const cds = require ('@sap/cds') - -describe('Localized data on db level', ()=>{ - - let db, Books - - it ('should deploy the db schema to sqlite in-memory', async()=>{ - db = await cds.deploy (__dirname+'/books') .to ('sqlite::memory:') - expect (db.model) .toBeDefined() - Books = db.entities('sap.capire.products').Products - expect (Books) .toBeDefined() - }) - - it ('should list all books with default language', async ()=>{ - const books = await SELECT.from (Books, b=>b.title) - expect (books) .toMatchObject([ - { title: 'Wuthering Heights' }, - { title: 'Jane Eyre' }, - { title: 'The Raven' }, - { title: 'Eleonora' }, - { title: 'Catweazle' } - ]) - }) - - - it ('should read translated texts from Books_texts', async ()=>{ - const texts = await SELECT ('locale','title').from (Books+'_texts') - expect (texts) .toMatchObject ([ - { locale: 'de', title: 'Sturmhöhe' }, - { locale: 'de', title: 'Jane Eyre' }, - { locale: 'de', title: 'Eleonora' } - ]) - }) - - it ('should read translated texts from Books.texts', async ()=>{ - const book = await SELECT.one.from (Books, b=>{ - b.ID, b.title, b.texts(t=> { - t.locale, t.title - }) - }) .where ({title:'Wuthering Heights'}) - expect (book) .toMatchObject ({ - title: 'Wuthering Heights', texts:[ - {locale:'de',title:'Sturmhöhe'} - ] - }) - }) - - it ('should insert books with translated texts', async ()=>{ - const n = await INSERT.into (Books) .entries ({ ID:444, title:'A New Book', texts:[ - {locale:'de', title:'Ein Neues Buch'}, - {locale:'fr', title:'Un Nouveau Livre'}, - ]}) - expect(n).toBe(3) - }) - - it ('should delete books w/ cascaded delete to texts', async()=>{ - const n = await DELETE.from(Books) .where ({ID:444}) - expect(n).toBe(3) - }) - -}) - - -describe('Localized data on service level', ()=>{ - - let srv, Books - - it ('should serve BooksService', async()=>{ - srv = await cds.serve('BooksService').from(__dirname+'/books') - expect (srv.model) .toBeDefined() - Books = srv.entities.Books - expect (Books) .toBeDefined() - }) - - it ('should list all books with default language', async ()=>{ - const books = await srv.read (Books, b=>b.title) - expect (books) .toMatchObject([ - { title: 'Wuthering Heights' }, - { title: 'Jane Eyre' }, - { title: 'The Raven' }, - { title: 'Eleonora' }, - { title: 'Catweazle' } - ]) - }) - - it ('should read Books with translated texts', async ()=>{ - const book = await srv.run ( - SELECT.from (Books, b=>{ b.ID, b.title, b.texts(t=> { - t.locale, t.title - })}) .where ({title:'Wuthering Heights'}) - ) - expect (book) .toMatchObject ([{ - title: 'Wuthering Heights', texts:[ - {locale:'de',title:'Sturmhöhe'} - ] - }]) - }) - - it ('should do the same with convenient method', async ()=>{ - const book = await srv.read (Books, b=>{ b.ID, b.title, b.texts(t=> { - t.locale, t.title - })}) .where ({title:'Wuthering Heights'}) - expect (book) .toMatchObject ([{ - title: 'Wuthering Heights', texts:[ - {locale:'de',title:'Sturmhöhe'} - ] - }]) - }) - - it ('should read single Book with translated texts', async ()=>{ - const book = await srv.run ( - SELECT.one.from (Books, b=>{ b.ID, b.title, b.texts(t=> { - t.locale, t.title - })}) .where ({title:'Wuthering Heights'}) - ) - expect (book) .toMatchObject ({ - title: 'Wuthering Heights', texts:[ - {locale:'de',title:'Sturmhöhe'} - ] - }) - }) - - it ('should insert books with translated texts', async ()=>{ - const book = { ID:444, title:'A New Book', texts:[ - {locale:'de', title:'Ein Neues Buch'}, - {locale:'fr', title:'Un Nouveau Livre'}, - ]} - const response = await srv.create (Books) .entries (book) - expect(response).toMatchObject(book) - }) - - it ('should delete books w/ cascaded delete to texts', async()=>{ - await srv.delete('Books') .where ({ID:444}) - }) -}) - - -describe('Localized data on OData level', () => { - - const app = require('express')() - const srv = require('supertest')(app) - - it ('should serve BooksService', async ()=>{ - await cds.serve('BooksService').from(__dirname+'/books') .in (app) - }) - - it('should list all books with default language', async () => { - const books = await srv.get('/books/Books/201/title') - expect(books.body).toMatchObject({'value': 'Wuthering Heights'}) - }) - - it('should read books with translated texts', async () => { - const books = await srv.get('/books/Books/201/title'). set('Accept-Language', 'de') - expect(books.body).toMatchObject({value: 'Sturmhöhe'}) - }) - - it('should expand translated texts in Book', async () => { - const books = await srv. get('/books/Books/201?$select=title&$expand=texts($select=locale,title)') - expect(books.body).toMatchObject({ - title: 'Wuthering Heights', - texts: [ - { locale: 'de', title: 'Sturmhöhe', }, - ], - }) - }) - - const book = { - title: 'New Book', descr: 'Lorem Ipsum', - texts: [ - { locale: 'de', title: 'Neues Buch', descr: 'Dolor sit amet' }, - { locale: 'fr', title: 'Nouveau Livre', descr: 'consetetur sadipscing elitr' } - ], - } - - it('should insert books with translated texts', async () => { - const {body} = await srv.post('/books/Books').send(book) - expect(body).toMatchObject(book) - book.ID = body.ID - }) - - it ('should read the newly created book', async()=>{ - const {body} = await srv.get('/books/Books/'+book.ID+'?$expand=texts').send(book) - expect(body).toMatchObject(book) - }) - - it ('should delete books w/ cascaded delete to texts', async()=>{ - await srv.delete('/books/Books/'+book.ID) - .expect(204) - }) -}) diff --git a/packages/common-contacts/db/code-lists.cds b/packages/common-contacts/db/code-lists.cds deleted file mode 100644 index 4da5c872..00000000 --- a/packages/common-contacts/db/code-lists.cds +++ /dev/null @@ -1,37 +0,0 @@ -using { sap.capire.contacts.PostalAddress } from './schema'; -using { sap } from '@sap/cds/common'; -namespace sap.capire.contacts; - -/** - * The Code Lists below are designed as optional extensions to - * the base schema. Switch them on by adding an Association to - * one of the code list entities in your models or by: - * annotate sap.common.Countries with @cds.persistence.skip:false; - */ - -entity Countries as select from sap.common.Countries; -extend sap.common.Countries { - regions : Composition of many Regions on regions._parent = $self.code; -} -entity Regions : sap.common.CodeList { - key code : String(5); // ISO 3166-2 alpha5 codes, e.g. DE-BW - children : Composition of many Regions on children._parent = $self.code; - cities : Composition of many Cities on cities.region = $self; - _parent : String(11); -} -entity Cities : sap.common.CodeList { - key code : String(11); - region : Association to Regions; - districts : Composition of many Districts on districts.city = $self; -} -entity Districts : sap.common.CodeList { - key code : String(11); - city : Association to Cities; -} - -annotate PostalAddress with { - district @ref: sap.capire.contacts.Districts; - city @ref: sap.capire.contacts.Cities; - region @ref: sap.capire.contacts.Regions; - country @ref: sap.capire.contacts.Countries; -} diff --git a/packages/common-contacts/db/data/sap.capire.contacts-Countries.csv b/packages/common-contacts/db/data/sap.capire.contacts-Countries.csv deleted file mode 100644 index 6614e27a..00000000 --- a/packages/common-contacts/db/data/sap.capire.contacts-Countries.csv +++ /dev/null @@ -1,12 +0,0 @@ -code;name;descr -AU;Australia;Commonwealth of Australia -CA;Canada;Canada -CN;China;People's Republic of China (PRC) -FR;France;French Republic -DE;Germany;Federal Republic of Germany -IN;India;Republic of India -IL;Israel;State of Israel -MM;Myanmar;Republic of the Union of Myanmar -GB;United Kingdom;United Kingdom of Great Britain and Northern Ireland -US;United States;United States of America (USA) -EU;European Union;European Union \ No newline at end of file diff --git a/packages/common-contacts/db/data/sap.capire.contacts-Countries_texts.csv b/packages/common-contacts/db/data/sap.capire.contacts-Countries_texts.csv deleted file mode 100644 index 7d078c58..00000000 --- a/packages/common-contacts/db/data/sap.capire.contacts-Countries_texts.csv +++ /dev/null @@ -1,12 +0,0 @@ -code;locale;name;descr -AU;de;Australien;Commonwealth Australien -CA;de;Kanada;Canada -CN;de;China;Volksrepublik China -FR;de;Frankreich;Republik Frankreich -DE;de;Deutschland;Bundesrepublik Deutschland -IN;de;Indien;Republik Indien -IL;de;Israel;Staat Israel -MM;de;Myanmar;Republik der Union Myanmar -GB;de;Vereinigtes Königreich;Vereinigtes Königreich Großbritannien und Nordirland -US;de;Vereinigte Staaten;Vereinigte Staaten von Amerika -EU;de;Europäische Union;Europäische Union \ No newline at end of file diff --git a/packages/common-contacts/db/schema.cds b/packages/common-contacts/db/schema.cds deleted file mode 100644 index c9a7410f..00000000 --- a/packages/common-contacts/db/schema.cds +++ /dev/null @@ -1,58 +0,0 @@ -namespace sap.capire.contacts; - - -//-------------------------------------------------------------------------- -// Aspects - - - aspect Organization { - orgname : String(111); - } - - aspect Person { - firstname : String(111); - lastname : String(111); - prefix : String(11); - suffix : String(11); - middle : String(11); - dateOfBirth : Date; placeOfBirth : String; - dateOfDeath : Date; placeOfDeath : String; - } - - aspect PostalAddress { - street : String(222) @multiline; - postCode : String(11); - district : String(111); - city : String(111); - region : String(111); - country : String(111); - } - - aspect ContactOptions { - email : String @JSON:[{ kind:String, address: EmailAddress }]; - phone : String @JSON:[{ kind:String, number: PhoneNumber }]; - // phone : array of { kind:String; number: PhoneNumber }; - // addresses : Composition of many PostalAddress; - } - - type EmailAddress : String; - type PhoneNumber : String; - - - -//-------------------------------------------------------------------------- -// Entities - - @cds.persistence.skip:'if-unused' - entity Contacts : Person, Organization, ContactOptions { - key ID : UUID; - isOrg : Boolean; - addresses : Composition of many PostalAddresses on addresses.contact = $self; - } - - @cds.persistence.skip:'if-unused' - entity PostalAddresses : PostalAddress { - contact : Association to Contacts; - kind : String; - key ID : UUID; - } diff --git a/packages/common-contacts/index.cds b/packages/common-contacts/index.cds deleted file mode 100644 index 0a1d479d..00000000 --- a/packages/common-contacts/index.cds +++ /dev/null @@ -1,2 +0,0 @@ -using from './db/code-lists'; -using from './db/schema'; diff --git a/packages/common-contacts/package.json b/packages/common-contacts/package.json deleted file mode 100644 index 4221f4ab..00000000 --- a/packages/common-contacts/package.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "@sap/capire-contacts", - "version": "1.0.0", - "description": "A reuse package providing common domain models and services for contacts-related data.", - "repository": "https://github.com/SAP-samples/cloud-cap-samples.git", - "license": "SAP SAMPLE CODE LICENSE", - "dependencies": { - "@sap/cds": "latest" - } -} \ No newline at end of file diff --git a/packages/common-contacts/readme.md b/packages/common-contacts/readme.md deleted file mode 100644 index 77ea0ed2..00000000 --- a/packages/common-contacts/readme.md +++ /dev/null @@ -1,67 +0,0 @@ -# Common Contacts Sample - -This sample provides a reuse package with common domain models and services for contacts-related data. - -## Usage - - -#### Import to your project - - npm install @sap/capire-contacts - -> e.g. see: [bookstore](../bookstore/package.json) - -#### Reusing aspects - -Define own entities derived from the pre-defined aspects as in [_bookstore_](../bookstore/db/schema.cds): - -```swift -using { sap.capire.contacts.Person } from '@sap/capire-contacts'; -entity Authors : contacts.Person { ... } -``` - -> **Note:** All entities in this package are annotated with _`@cds.persistence.skip`:'if-unused'_, so they will be ignored if not referred to from other entities in your models. - - -#### Reusing entities - -Reuse the entities as in this example from [_users-service_](../users-service/srv/services.cds): -```swift -using { sap.capire.contacts.Contacts } from '@sap/capire-contacts'; -service UsersService @(requires:'authenticated-user') { - entity MyProfile as select from Contacts where ID=$user; - ... -} -``` - - -#### Reusing code lists - -Reuse the code lists as in [_./tests/index.cds_](./tests/index.cds): - -```swift -service Sue { ... - // expose Countries to activate provided code lists - @readonly entity Countries as projection on sap.capire.contacts.Countries; -} -``` - - - -#### Reuse code list service - -```js -const { intercept } = require ('@sap/capire-contacts/srv/code-lists') -``` - - - -## Content - - - -## Concepts - -* [Reuse of packages](https://cap.cloud.sap/docs/get-started/projects#reuse) -* Code Lists, `@sap/cds/common` and `@cds.persistence.skip`: 'if-unused' -* Using `aspects` vs `entities` diff --git a/packages/common-contacts/srv/code-lists.js b/packages/common-contacts/srv/code-lists.js deleted file mode 100644 index aac662b8..00000000 --- a/packages/common-contacts/srv/code-lists.js +++ /dev/null @@ -1,70 +0,0 @@ -const cds = require ('@sap/cds') -const READ='READ', WRITE = ['CREATE','UPDATE'] - -const intercept = exports.intercept = cds.service.impl (async (srv) => { - - for (let each in srv.entities) { - - // intercept JSON-encoded elements - const jsons = await jsonsIn (srv.entities[each].elements) - if (jsons) { - srv.before (WRITE, each, ({data:row})=>{ - for (let e of jsons) if (row[e]) row[e] = JSON.stringify (row[e]) - }) - srv.after (READ, each, (row)=>{ - for (let e of jsons) if (row[e]) row[e] = JSON.parse (row[e]) - }) - } - - // intercept references - const refs = await refsIn (srv.entities[each].elements, srv.model) - if (refs) srv.after (READ, each, (rows, req)=>{ - for (let row of rows) { - for (let {element,codelist} of refs) { - const entry = codelist [row[element]] - if (entry) { - const localized = entry.texts [req.user.locale || intercept.locale] - row[element] = localized ? localized.name : entry.name - } - } - } - }) - - } - -}) - - -function jsonsIn (elements) { - const jsons=[]; for (let e in elements) { - if (elements[e]['@JSON']) jsons.push(e) - } - return jsons.length && jsons -} - -async function refsIn (elements, model) { - const refs=[]; for (let e in elements) { - const $ref = elements[e]['@ref'] - if ($ref) { - const d = model.definitions [$ref['=']] - refs.push({ - element:e, - codelist: CodeLists[d.name] || (CodeLists[d.name] = await load(d)) - }) - } - } - return refs.length && refs -} - -const load = exports.load = async (codelist) => { - const all = {} - const [entries,texts] = await Promise.all ([ - SELECT.from (codelist), - SELECT.from (codelist.elements.texts.target) - ]) - for (let {code,name,descr} of entries) all[code] = {name,descr} - for (let {code,locale,name,descr} of texts) (all[code].texts || (all[code].texts={})) [locale] = {name,descr} - return all -} - -const CodeLists = {} diff --git a/packages/common-contacts/tests/code-lists.test.js b/packages/common-contacts/tests/code-lists.test.js deleted file mode 100644 index ee367abf..00000000 --- a/packages/common-contacts/tests/code-lists.test.js +++ /dev/null @@ -1,68 +0,0 @@ -const {load,intercept} = require ('../srv/code-lists') -const cds = require ('@sap/cds') - -// patch-enhance cds.ql -const select = SELECT.from('.').__proto__.__proto__, query = select.__proto__ -query.then = function (r,e) { return db.run(this) .then (r,e || ((e)=>{throw e})) } - -let db, Countries, Australia = { - name: 'Australia', descr: 'Commonwealth of Australia', texts: { - de: { name: 'Australien', descr: 'Commonwealth Australien' } - } -} - -describe ('code list tests', ()=>{ - - it ('should deploy the db schema to sqlite in-memory', async()=>{ - db = await cds.deploy (__dirname) .to ('sqlite::memory:', {silent:true,primary:true}) - Countries = db.model.entities ['sap.common.Countries'] - expect (Countries) .toBeDefined() - }) - - it ('should read Countries', async()=>{ - const countries = await SELECT ('code','name') .from (Countries) - expect (countries) .toContainEqual ({ code: 'AU', name: 'Australia' }) - }) - - it ('should read Countries_texts', async()=>{ - const countries = await SELECT ('locale','code','name') .from ('sap.common.Countries_texts') - expect (countries) .toContainEqual ({ locale: 'de', code: 'AU', name: 'Australien' }) - }) - - it ('should read code lists with translated texts', async()=>{ - const {AU} = await load (Countries) - expect (AU) .toEqual (Australia) - }) - - cds.env.singletenant = true - - it ('should serve services with localized data', async()=>{ - const { Sue:sue } = await cds.serve (__dirname) - const { Foos } = sue.entities - await sue.create (Foos) .entries ({country:'Avalon'}) - await sue.create (Foos) .entries ({country:'AU'}) - expect (await sue.read('Foos')) .toEqual ([ { ID: 1, country: 'Avalon' }, { ID: 2, country: 'AU' } ]) - }) - - it ('should resolve countries', async()=>{ - const sue = await cds.connect.to ('Sue') - await intercept (sue) - expect (await sue.read('Foos')) .toEqual ([ { ID: 1, country: 'Avalon' }, { ID: 2, country: 'Australia' } ]) - intercept.locale = 'de' - expect (await sue.read('Foos')) .toEqual ([ { ID: 1, country: 'Avalon' }, { ID: 2, country: 'Australien' } ]) - console.log (await sue.read('Foos')) - }) - - it ('should read countries with expand to translated texts', async()=>{ - const countries = await cds.read (Countries, c=>{ - c.name, c.texts (t => { - t.locale, t.name - }) - }) - console.log (countries) - }) - - it ('should disconnect from db', ()=> db.disconnect()) - //> FIXME: that should not be required! - -}) diff --git a/packages/common-contacts/tests/index.cds b/packages/common-contacts/tests/index.cds deleted file mode 100644 index 96adbe01..00000000 --- a/packages/common-contacts/tests/index.cds +++ /dev/null @@ -1,11 +0,0 @@ -using { sap } from '..'; - -entity Foo { - key ID : Integer; - country : String @ref: sap.capire.contacts.Countries; -} -service Sue { - entity Foos as projection on Foo; - // expose Countries to activate provided code lists - @readonly entity Countries as projection on sap.capire.contacts.Countries; -} diff --git a/packages/common-currencies/data/sap.common-Currencies.csv b/packages/common-currencies/data/sap.common-Currencies.csv deleted file mode 100644 index 63372602..00000000 --- a/packages/common-currencies/data/sap.common-Currencies.csv +++ /dev/null @@ -1,12 +0,0 @@ -code;symbol;name;descr;numcode;minor;exponent -EUR;€;Euro;European Euro;978;Cent;2 -USD;$;US Dollar;United States Dollar;840;Cent;2 -CAD;$;Canadian Dollar;Canadian Dollar;124;Cent;2 -AUD;$;Australian Dollar;Canadian Dollar;036;Cent;2 -GBP;£;British Pound;Great Britain Pound;826;Penny;2 -ILS;₪;Shekel;Israeli New Shekel;376;Agorat;2 -INR;₹;Rupee;Indian Rupee;356;Paise;2 -QAR;﷼;Riyal;Katar Riyal;356;Dirham;2 -SAR;﷼;Riyal;Saudi Riyal;682;Halala;2 -JPY;¥;Yen;Japanese Yen;392;Sen;2 -CNY;¥;Yuan;Chinese Yuan Renminbi;156;Jiao;1 \ No newline at end of file diff --git a/packages/common-currencies/data/sap.common-Currencies_texts.csv b/packages/common-currencies/data/sap.common-Currencies_texts.csv deleted file mode 100644 index 4d2ead51..00000000 --- a/packages/common-currencies/data/sap.common-Currencies_texts.csv +++ /dev/null @@ -1,13 +0,0 @@ -code;locale;name;descr -EUR;de;Euro;European Euro -USD;de;US-Dollar;United States Dollar -CAD;de;Kanadischer Dollar;Kanadischer Dollar -AUD;de;Australischer Dollar;Australischer Dollar -GBP;de;Pfund;Britische Pfund -ILS;de;Schekel;Israelische Schekel -EUR;fr;euro;de la Zone euro -USD;fr;dollar;dollar des États-Unis -CAD;fr;dollar canadien;dollar canadien -AUD;fr;dollar australien;dollar australien -GBP;fr;livre sterling;pound sterling -ILS;fr;Shekel;shekel israelien \ No newline at end of file diff --git a/packages/common-currencies/index.cds b/packages/common-currencies/index.cds deleted file mode 100644 index 82da4228..00000000 --- a/packages/common-currencies/index.cds +++ /dev/null @@ -1,17 +0,0 @@ -namespace sap.capire.currencies; -using { sap.common.Currencies } from '@sap/cds/common'; - -extend Currencies with { - // Currencies.code = ISO 4217 alphabetic three-letter code - // with the first two letters being equal to ISO 3166 alphabetic country codes - numcode : Integer; - exponent : Integer; //> e.g. 2 --> 1 Dollar = 10^2 Cent - minor : String; //> e.g. 'Cent' - // country : String; //> country or region -} - - -// see also -// [1] https://www.iso.org/iso-4217-currency-codes.html -// [2] https://www.currency-iso.org/en/home/tables/table-a1.html -// [3] https://www.ibm.com/support/knowledgecenter/en/SSZLC2_7.0.0/com.ibm.commerce.payments.developer.doc/refs/rpylerl2mst97.htm \ No newline at end of file diff --git a/packages/common-currencies/package.json b/packages/common-currencies/package.json deleted file mode 100644 index 68be970e..00000000 --- a/packages/common-currencies/package.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "@sap/capire-currencies", - "version": "1.0.0", - "description": "A reuse package providing common domain models and services for currencies-related data.", - "repository": "https://github.com/SAP-samples/cloud-cap-samples.git", - "license": "SAP SAMPLE CODE LICENSE", - "dependencies": { - "@sap/cds": "latest" - } -} diff --git a/packages/media-server/db/data-model.cds b/packages/media-server/db/data-model.cds deleted file mode 100644 index 2ad6c28e..00000000 --- a/packages/media-server/db/data-model.cds +++ /dev/null @@ -1,13 +0,0 @@ -namespace sap.capire.media; - -entity Media { - - key id:Integer; - @Core.MediaType: mediaType - content : LargeBinary ; - - @Core.IsMediaType: true - mediaType : String; - fileName : String; - applicationName:String; -} \ No newline at end of file diff --git a/packages/media-server/index.cds b/packages/media-server/index.cds deleted file mode 100644 index 9ac07e86..00000000 --- a/packages/media-server/index.cds +++ /dev/null @@ -1,2 +0,0 @@ -using from './db/data-model'; -using from './srv/media-service'; diff --git a/packages/media-server/package.json b/packages/media-server/package.json deleted file mode 100644 index c144037d..00000000 --- a/packages/media-server/package.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "@sap/capire-media", - "version": "1.0.0", - "description": "A generic platform service to manage and serve media content on behalf of other services and apps.", - "repository": "https://github.com/SAP-samples/cloud-cap-samples.git", - "license": "SAP SAMPLE CODE LICENSE", - "dependencies": { - "@sap/cds": "latest", - "express": "*", - "lokijs": "^1.5.6" - }, - "files": [ - "db", - "srv", - "index.cds" - ], - "cds": { - "requires": { - "db": { - "kind": "sql" - } - } - } -} diff --git a/packages/media-server/srv/media-service.cds b/packages/media-server/srv/media-service.cds deleted file mode 100644 index 09441897..00000000 --- a/packages/media-server/srv/media-service.cds +++ /dev/null @@ -1,8 +0,0 @@ -using { sap.capire.media as db } from '../db/data-model'; -namespace sap.capire.media; - -service MediaServer { - entity Media as projection on db.Media ; -} - - \ No newline at end of file diff --git a/packages/media-server/srv/media-service.js b/packages/media-server/srv/media-service.js deleted file mode 100644 index f70d3b90..00000000 --- a/packages/media-server/srv/media-service.js +++ /dev/null @@ -1,68 +0,0 @@ -const loki = require('lokijs') -const db = new loki('DB') -const mediaDB = db.addCollection('Media') -const { Readable, PassThrough } = require('stream') - -module.exports = srv => { - srv.before('CREATE', 'Media', req => { - const obj = mediaDB.insert({ media: '' }) - req.data.id = obj.$loki - }) - - srv.on('UPDATE', 'Media', (req, next) => { - const url = req._.req.path - if (url.includes('content')) { - const id = req.data.id - const obj = mediaDB.get(id) - if (!obj) { - req.reject(404, 'No record found for the ID') - return - } - const stream = new PassThrough() - const chunks = [] - stream.on('data', chunk => { - chunks.push(chunk) - }) - stream.on('end', () => { - obj.media = Buffer.concat(chunks).toString('base64') - mediaDB.update(obj) - }) - req.data.content.pipe(stream) - } else return next() - }) - - srv.on('READ', 'Media', (req, next) => { - const url = req._.req.path - if (url.includes('content')) { - const id = req.data.id - const mediaObj = mediaDB.get(id) - if (!mediaObj) { - req.reject(404, 'Media not found for the ID') - return - } - const decodedMedia = new Buffer( - mediaObj.media.split(';base64,').pop(), - 'base64' - ) - return _formatResult(decodedMedia) - } else return next() //> delegate to next/default handlers - }) - - srv.on('DELETE', 'Media', (req, next) => { - const id = req.data.id - mediaDB - .chain() - .find({ $loki: id }) - .remove() - return next() //> delegate to next/default handlers - }) - - function _formatResult (decodedMedia) { - const readable = new Readable() - const result = new Array() - readable.push(decodedMedia) - readable.push(null) - result.push({ value: readable }) - return result - } -} diff --git a/packages/orders-service/db/data/sap.capire.orders-OrderItems.csv b/packages/orders-service/db/data/sap.capire.orders-OrderItems.csv deleted file mode 100644 index 1b5ff074..00000000 --- a/packages/orders-service/db/data/sap.capire.orders-OrderItems.csv +++ /dev/null @@ -1,4 +0,0 @@ -ID;amount;parent_ID;article -58040e66-1dcd-4ffb-ab10-fdce32028b79;1;7e2f2640-6866-4dcf-8f4d-3027aa831cad;201 -64e718c9-ff99-47f1-8ca3-950c850777d4;1;7e2f2640-6866-4dcf-8f4d-3027aa831cad;271 -e9641166-e050-4261-bfee-d1e797e6cb7f;2;64e718c9-ff99-47f1-8ca3-950c850777d4;252 \ No newline at end of file diff --git a/packages/orders-service/db/data/sap.capire.orders-Orders.csv b/packages/orders-service/db/data/sap.capire.orders-Orders.csv deleted file mode 100644 index 143da2c3..00000000 --- a/packages/orders-service/db/data/sap.capire.orders-Orders.csv +++ /dev/null @@ -1,3 +0,0 @@ -ID;modifiedAt;createdAt;createdBy;modifiedBy;OrderNo;currency_code -7e2f2640-6866-4dcf-8f4d-3027aa831cad;;2019-01-31;john.doe@test.com;;1;EUR -64e718c9-ff99-47f1-8ca3-950c850777d4;;2019-01-30;christian.georgi@sap.com;;2;EUR \ No newline at end of file diff --git a/packages/orders-service/db/schema.cds b/packages/orders-service/db/schema.cds deleted file mode 100644 index f7d7b4fc..00000000 --- a/packages/orders-service/db/schema.cds +++ /dev/null @@ -1,15 +0,0 @@ -namespace sap.capire.orders; -using { Currency, cuid, managed } from '@sap/cds/common'; - - -entity Orders : cuid, managed { - OrderNo : String @title:'Order Number'; //> readable key - Items : Composition of many OrderItems on Items.parent = $self; - currency : Currency; -} - -entity OrderItems : cuid { - parent : Association to Orders not null; - article : String; - amount : Integer; -} diff --git a/packages/orders-service/index.cds b/packages/orders-service/index.cds deleted file mode 100644 index 8e460ac4..00000000 --- a/packages/orders-service/index.cds +++ /dev/null @@ -1,2 +0,0 @@ -namespace sap.capire.orders; -using from './srv/orders-service'; diff --git a/packages/orders-service/package.json b/packages/orders-service/package.json deleted file mode 100644 index f8341b12..00000000 --- a/packages/orders-service/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "@sap/capire-orders", - "version": "1.0.0", - "description": "A reuse package providing domain models and services to submit and manage purchase orders.", - "repository": "https://github.com/SAP-samples/cloud-cap-samples.git", - "license": "SAP SAMPLE CODE LICENSE", - "dependencies": { - "@sap/cds": "latest", - "express": "*" - } -} diff --git a/packages/orders-service/srv/orders-service.cds b/packages/orders-service/srv/orders-service.cds deleted file mode 100644 index 766cc012..00000000 --- a/packages/orders-service/srv/orders-service.cds +++ /dev/null @@ -1,6 +0,0 @@ -namespace sap.capire.orders; -using { sap.capire.orders as my } from '../db/schema'; - -service OrdersService { - entity Orders as projection on my.Orders; -} diff --git a/packages/products-service/db/schema.cds b/packages/products-service/db/schema.cds deleted file mode 100644 index 573e93ad..00000000 --- a/packages/products-service/db/schema.cds +++ /dev/null @@ -1,18 +0,0 @@ -namespace sap.capire.products; - -using { Currency, cuid, managed, sap.common.CodeList } from '@sap/cds/common'; - -entity Products : cuid, managed { - title : localized String(111); - descr : localized String(1111); - stock : Integer; - price : Decimal(9,2); - currency : Currency; - category : Association to Categories; -} - -entity Categories : CodeList { - key ID : Integer; - parent : Association to Categories; - children : Composition of many Categories on children.parent = $self; -} diff --git a/packages/products-service/index.cds b/packages/products-service/index.cds deleted file mode 100644 index 581fba09..00000000 --- a/packages/products-service/index.cds +++ /dev/null @@ -1,2 +0,0 @@ -using from './db/schema'; -using from './srv/admin-service'; diff --git a/packages/products-service/package.json b/packages/products-service/package.json deleted file mode 100644 index 3415c423..00000000 --- a/packages/products-service/package.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "@sap/capire-products", - "version": "1.0.0", - "description": "A reuse package providing domain models and services to manage product catalogs.", - "repository": "https://github.com/SAP-samples/cloud-cap-samples.git", - "license": "SAP SAMPLE CODE LICENSE", - "dependencies": { - "@sap/cds": "latest", - "express": "*" - }, - "files": [ - "db", - "srv", - "index.cds" - ] -} \ No newline at end of file diff --git a/packages/products-service/srv/admin-service.cds b/packages/products-service/srv/admin-service.cds deleted file mode 100644 index a7ebd575..00000000 --- a/packages/products-service/srv/admin-service.cds +++ /dev/null @@ -1,7 +0,0 @@ -using { sap.capire.products as db } from '../db/schema'; -namespace sap.capire.products; - -service AdminService @(_requires:'admin') { - entity Products as projection on db.Products; - entity Categories as projection on db.Categories; -} diff --git a/packages/products-service/tests/categories.test.js b/packages/products-service/tests/categories.test.js deleted file mode 100644 index 8e541a4b..00000000 --- a/packages/products-service/tests/categories.test.js +++ /dev/null @@ -1,68 +0,0 @@ -const cds = require ('@sap/cds') - -describe('reading/writing hierarchies', ()=>{ - - it ('should prepare to sqlite in-memory', async()=>{ - await cds.deploy (__dirname+'/../db') .to ('sqlite::memory:') - expect (cds.model) .toBeDefined() - }) - - it ('should insert hierarchy of categories', ()=>{ - const { Categories } = cds.entities - return INSERT.into (Categories) .entries ( - { ID:100, name:'Some Sample Categories...', children:[ - { ID:101, name:'Cat', children:[ - { ID:102, name:'Kitty', children:[ - { ID:103, name:'Kitty Cat', children:[ - { ID:104, name:'Aristocat' } ]}, - { ID:105, name:'Kitty Bat' } ]}, - { ID:106, name:'Catwoman', children:[ - { ID:107, name:'Catalina' } ]} ]}, - { ID:108, name:'Catweazle' } - ]} - ) - }) - - it ('should read categories with children', async()=>{ - const { Categories } = cds.entities - expect (await - - SELECT.one.from (Categories, c=>{ - c.ID, c.name.as('parent'), c.children (c=>{ - c.name.as('child') - }) - }) .where ({name:'Cat'}) - - ) .toMatchObject ( - - { ID:101, parent:'Cat', children:[ - { child:'Kitty' }, - { child:'Catwoman' }, - ]} - - ) - }) - - it ('should read hierarchy of categories', async()=>{ - const { Categories } = cds.entities - expect (await - - SELECT.one.from (Categories, c=>{ - c.ID, c.name, c.children (c=>{ c.name },{levels:3}) - }) .where ({name:'Cat'}) - - ) .toMatchObject ( - - { ID:101, name:'Cat', children:[ - { name:'Kitty', children:[ - { name:'Kitty Cat', children:[ - { name:'Aristocat' }, ]}, - { name:'Kitty Bat' }, ]}, - { name:'Catwoman', children:[ - { name:'Catalina' } ]}, - ]} - - ) - }) - -}) diff --git a/packages/products-service/tests/data/sap.capire.products-Categories.csv b/packages/products-service/tests/data/sap.capire.products-Categories.csv deleted file mode 100644 index 20183828..00000000 --- a/packages/products-service/tests/data/sap.capire.products-Categories.csv +++ /dev/null @@ -1,10 +0,0 @@ -ID;parent_ID;name -0;;Some Sample Categories... -1;;Cat -2;1;Kitty -3;2;Kitty Cat -4;3;Aristocat -5;2;Kitty Bat -6;1;Catwoman -7;6;Catalina -8;;Catweazle diff --git a/packages/products-service/tests/postman.json b/packages/products-service/tests/postman.json deleted file mode 100644 index 6fbc8a8c..00000000 --- a/packages/products-service/tests/postman.json +++ /dev/null @@ -1,157 +0,0 @@ -{ - "info": { - "_postman_id": "0f8d4e79-a1c2-47fe-aeab-0319fb4ce180", - "name": "@sap/capire-products", - "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" - }, - "item": [ - { - "name": "Categories", - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{ \"ID\":0, \"name\":\"Some Sample Categories...\", \"children\":[\n { \"ID\":1, \"name\":\"Cat\", \"children\":[\n { \"ID\":2, \"name\":\"Kitty\", \"children\":[\n { \"ID\":3, \"name\":\"Kitty Cat\", \"children\":[\n { \"ID\":4, \"name\":\"Aristocat\" }\n ]},\n { \"ID\":5, \"name\":\"Kitty Bat\" }\n ]},\n { \"ID\":6, \"name\":\"Catwoman\", \"children\":[\n { \"ID\":7, \"name\":\"Catalina\" }\n ]}\n ] },\n { \"ID\":8, \"name\":\"Catweazle\" }\n]}\n" - }, - "url": { - "raw": "http://localhost:4004/admin/Categories", - "protocol": "http", - "host": [ - "localhost" - ], - "port": "4004", - "path": [ - "admin", - "Categories" - ] - } - }, - "response": [] - }, - { - "name": "Categories", - "request": { - "method": "GET", - "header": [], - "body": { - "mode": "raw", - "raw": "" - }, - "url": { - "raw": "http://localhost:4004/admin/Categories/0?$expand=children($expand=children($expand=children($expand=children)))", - "protocol": "http", - "host": [ - "localhost" - ], - "port": "4004", - "path": [ - "admin", - "Categories", - "0" - ], - "query": [ - { - "key": "$expand", - "value": "children($expand=children($expand=children($expand=children)))" - } - ] - } - }, - "response": [ - { - "name": "Categories", - "originalRequest": { - "method": "GET", - "header": [], - "body": { - "mode": "raw", - "raw": "" - }, - "url": { - "raw": "http://localhost:4004/admin/Categories/0?$expand=children($expand=children($expand=children($expand=children)))", - "protocol": "http", - "host": [ - "localhost" - ], - "port": "4004", - "path": [ - "admin", - "Categories", - "0" - ], - "query": [ - { - "key": "$expand", - "value": "children($expand=children($expand=children($expand=children)))" - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "X-Powered-By", - "value": "Express" - }, - { - "key": "OData-Version", - "value": "4.0" - }, - { - "key": "content-type", - "value": "application/json;odata.metadata=minimal" - }, - { - "key": "Date", - "value": "Tue, 21 May 2019 19:20:24 GMT" - }, - { - "key": "Connection", - "value": "keep-alive" - }, - { - "key": "Content-Length", - "value": "767" - } - ], - "cookie": [], - "body": "{\n \"@odata.context\": \"$metadata#cats(children(children(children(children()))))/$entity\",\n \"@odata.metadataEtag\": \"W/\\\"+AAp4JKNOcr+OusjrdQo55RCfM+UHKpTh8EbhsxyPhM=\\\"\",\n \"name\": \"Some Sample Categories...\",\n \"descr\": null,\n \"ID\": 0,\n \"parent_ID\": null,\n \"children\": [\n {\n \"name\": \"Cat\",\n \"descr\": null,\n \"ID\": 1,\n \"parent_ID\": 0,\n \"children\": [\n {\n \"name\": \"Kitty\",\n \"descr\": null,\n \"ID\": 2,\n \"parent_ID\": 1,\n \"children\": [\n {\n \"name\": \"Kitty Cat\",\n \"descr\": null,\n \"ID\": 3,\n \"parent_ID\": 2,\n \"children\": [\n {\n \"name\": \"Aristocat\",\n \"descr\": null,\n \"ID\": 4,\n \"parent_ID\": 3\n }\n ]\n },\n {\n \"name\": \"Kitty Bat\",\n \"descr\": null,\n \"ID\": 5,\n \"parent_ID\": 2,\n \"children\": []\n }\n ]\n },\n {\n \"name\": \"Catwoman\",\n \"descr\": null,\n \"ID\": 6,\n \"parent_ID\": 1,\n \"children\": [\n {\n \"name\": \"Catalina\",\n \"descr\": null,\n \"ID\": 7,\n \"parent_ID\": 6,\n \"children\": []\n }\n ]\n }\n ]\n },\n {\n \"name\": \"Catweazle\",\n \"descr\": null,\n \"ID\": 8,\n \"parent_ID\": 0,\n \"children\": []\n }\n ]\n}" - } - ] - }, - { - "name": "Categories", - "request": { - "method": "DELETE", - "header": [], - "body": { - "mode": "raw", - "raw": "" - }, - "url": { - "raw": "http://localhost:4004/admin/Categories/0", - "protocol": "http", - "host": [ - "localhost" - ], - "port": "4004", - "path": [ - "admin", - "Categories", - "0" - ] - } - }, - "response": [] - } - ] - -} \ No newline at end of file diff --git a/packages/reviews-service/db/schema.cds b/packages/reviews-service/db/schema.cds deleted file mode 100644 index 9b07b02b..00000000 --- a/packages/reviews-service/db/schema.cds +++ /dev/null @@ -1,31 +0,0 @@ -namespace sap.capire.reviews; -using { User } from '@sap/cds/common'; - -// Reviewed subjects can be any entity that is uniquely identified -// by a single key element such as a UUID -type ReviewedSubject : String(111); - -entity Reviews { - key ID : UUID; - subject : ReviewedSubject; - reviewer : User; - rating : Rating; - title : String(111); - text : String(1111); - date : DateTime; - likes : Composition of many Likes on likes.review = $self; - liked : Integer default 0; // counter for likes as helpful review (count of all _likes belonging to this review) -} - -type Rating : Decimal(3,2) enum { - Best = 5; - Good = 4; - Avg = 3; - Poor = 2; - Worst = 1; -} - -entity Likes { - key review : Association to Reviews; - key user : User; -} \ No newline at end of file diff --git a/packages/reviews-service/index.cds b/packages/reviews-service/index.cds deleted file mode 100644 index c126bf5e..00000000 --- a/packages/reviews-service/index.cds +++ /dev/null @@ -1 +0,0 @@ -using from './srv/reviews-service'; diff --git a/packages/reviews-service/package.json b/packages/reviews-service/package.json deleted file mode 100644 index 990f4e35..00000000 --- a/packages/reviews-service/package.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "@sap/capire-reviews", - "version": "1.0.0", - "description": "A reuse service providing generic means to add reviews and ratings to target objects, e.g. products.", - "repository": "https://github.com/SAP-samples/cloud-cap-samples.git", - "license": "SAP SAMPLE CODE LICENSE", - "dependencies": { - "@sap/cds": "latest", - "express": "*" - }, - "scripts": { - "start": "cds run --in-memory?", - "watch": "cds watch" - }, - "files": [ - "db", - "srv", - "index.cds" - ], - "cds": { - "requires": { - "db": { - "kind": "sql" - }, - "messaging": { - "kind": "file-based-messaging" - } - } - } -} \ No newline at end of file diff --git a/packages/reviews-service/srv/reviews-service.cds b/packages/reviews-service/srv/reviews-service.cds deleted file mode 100644 index 9634c183..00000000 --- a/packages/reviews-service/srv/reviews-service.cds +++ /dev/null @@ -1,41 +0,0 @@ -using { sap.capire.reviews as my } from '../db/schema'; -namespace sap.capire.reviews; - -service ReviewsService { - // Sync API - entity Reviews as projection on my.Reviews excluding { likes } - action like (review:Reviews.ID); // TODO: can be a bound action in OData - action unlike (review:Reviews.ID); // TODO: can be a bound action in OData - - // Async API - event reviewed : { subject: Reviews.subject; rating: Decimal(2,1) }; - - // Input validation - annotate Reviews with { - subject @mandatory; - title @mandatory; - rating @mandatory @assert.enum; - } - - // Auto-fill reviewers and review dates - annotate Reviews with { - reviewer @cds.on.insert:$user; - date @cds.on.insert:$now; - date @cds.on.update:$now; - } - -} - - -// Access control restrictions -annotate ReviewsService.Reviews with @restrict_:[ - { grant:'READ', to:'any' }, // everybody can read reviews - { grant:'CREATE', to:'authenticated-user' }, // users must login to add reviews - { grant:'UPDATE', to:'authenticated-user', where:'reviewer=$user' }, - { grant:'DELETE', to:'admin' }, -]; - -annotate ReviewsService with @restrict_:[ - { grant:'like', to:'identified-user' }, - { grant:'unlike', to:'identified-user', where:'user=$user' }, -]; diff --git a/packages/reviews-service/srv/reviews-service.js b/packages/reviews-service/srv/reviews-service.js deleted file mode 100644 index ae24ebba..00000000 --- a/packages/reviews-service/srv/reviews-service.js +++ /dev/null @@ -1,41 +0,0 @@ -const cds = require ('@sap/cds') -module.exports = cds.service.impl (function(){ - - // Get the CSN definition for Reviews from the db schema for sub-sequent queries - // ( Note: we explicitly specify the namespace to support embedded reuse ) - const { Reviews, Likes } = this.entities ('sap.capire.reviews') - - // Emit an event to inform subscribers about new avg ratings for reviewed subjects - // ( Note: req.on.succeeded ensures we only do that if there's no error ) - this.after (['CREATE','UPDATE','DELETE'], 'Reviews', async(_,req) => { - const {subject} = req.data - const {rating} = await cds.transaction(req) .run ( - SELECT.one (['round(avg(rating),2) as rating']) .from (Reviews) .where ({subject}) - ) - req.on ('succeeded', ()=>{ - console.log ('< emitting:', 'reviewed', { subject, rating }) - this.emit ('reviewed', { subject, rating }) - }) - }) - - // Increment counter for reviews considered helpful - this.on ('like', (req) => { - if (!req.user) return req.reject(400, 'You must be identified to like a review') - const {review} = req.data, {user} = req - const tx = cds.transaction(req) - return tx.run ([ - INSERT.into (Likes) .entries ({review_ID: review, user: user.id}), - UPDATE (Reviews) .set({liked: {'+=': 1}}) .where({ID:review}) - ]).catch(() => req.reject(400, 'You already liked that review')) - }) - - // Delete a former like by the same user - this.on ('unlike', async (req) => { - if (!req.user) return req.reject(400, 'You must be identified to remove a former like of yours') - const {review} = req.data, {user} = req - const tx = cds.transaction(req) - const affectedRows = await tx.run (DELETE.from (Likes) .where ({review_ID: review,user: user.id})) - if (affectedRows === 1) return tx.run (UPDATE (Reviews) .set ({liked: {'-=': 1}}) .where ({ID:review})) - }) - -}) diff --git a/packages/reviews-service/tests/messaging.test.js b/packages/reviews-service/tests/messaging.test.js deleted file mode 100644 index a814a79d..00000000 --- a/packages/reviews-service/tests/messaging.test.js +++ /dev/null @@ -1,69 +0,0 @@ -const _model = __dirname+'/..' -const cds = require ('@sap/cds') - -describe('messaging tests', ()=>{ - - it ('should bootstrap sqlite in-memory db', async()=>{ - const db = await cds.deploy (_model) .to ('sqlite::memory:') - expect (db.model) .toBeDefined() - }) - - let srv - it ('should serve reviews services', async()=>{ - srv = await cds.serve('ReviewsService') .from (_model) - expect (srv.name) .toMatch ('ReviewsService') - }) - - let N=0, received=[], M=0 - it ('should add messaging event handlers', ()=>{ - srv.on('reviewed', (msg)=> received.push(msg)) - }) - - it ('should add more messaging event handlers', ()=>{ - srv.on('reviewed', ()=> ++M) - }) - - it ('should add review', async ()=>{ - const review = { - ID: 111 + (++N), // FIXME: why does the generic handler not fill this in automatically ?!? --> it does so when the request comes in via Postman / OData - subject: "201", title: "Captivating", rating: N - } - const response = await srv.create ('Reviews') .entries (review) - expect (response) .toMatchObject (review) - },100) - - it ('should add more reviews', ()=> Promise.all ([ - // REVISIT: mass operation should trigger one message per entry - // srv.create('Reviews').entries( - // { ID: 111 + (++N), subject: "201", title: "Captivating", rating: N }, - // { ID: 111 + (++N), subject: "201", title: "Captivating", rating: N }, - // { ID: 111 + (++N), subject: "201", title: "Captivating", rating: N }, - // { ID: 111 + (++N), subject: "201", title: "Captivating", rating: N }, - // ), - srv.create ('Reviews') .entries ( - { ID: 111 + (++N), subject: "201", title: "Captivating", rating: N } - ), - srv.create ('Reviews') .entries ( - { ID: 111 + (++N), subject: "201", title: "Captivating", rating: N } - ), - srv.create ('Reviews') .entries ( - { ID: 111 + (++N), subject: "201", title: "Captivating", rating: N } - ), - srv.create ('Reviews') .entries ( - { ID: 111 + (++N), subject: "201", title: "Captivating", rating: N } - ), - ]) ,100) - - it ('should have received all messages', async()=> { - await new Promise((done)=>setImmediate(done)) - expect(M).toBe(N) - expect(received.length).toBe(N) - expect(received.map(m=>m.data)).toEqual([ - { subject: '201', rating: 1 }, - { subject: '201', rating: 1.5 }, - { subject: '201', rating: 2 }, - { subject: '201', rating: 2.5 }, - { subject: '201', rating: 3 }, - ]) - }) -}) diff --git a/packages/users-service/index.cds b/packages/users-service/index.cds deleted file mode 100644 index 8b17f004..00000000 --- a/packages/users-service/index.cds +++ /dev/null @@ -1 +0,0 @@ -using from './srv/services'; diff --git a/packages/users-service/package.json b/packages/users-service/package.json deleted file mode 100644 index e3f995b4..00000000 --- a/packages/users-service/package.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "name": "@sap/capire-users", - "version": "1.0.0", - "description": "A reuse service for users-related functions, like registration, user profile mgmt, etc.", - "repository": "https://github.com/SAP-samples/cloud-cap-samples.git", - "license": "SAP SAMPLE CODE LICENSE", - "dependencies": { - "@sap/capire-contacts": "^1.0.0", - "@sap/cds": "latest", - "express": "*" - } -} diff --git a/packages/users-service/srv/services.cds b/packages/users-service/srv/services.cds deleted file mode 100644 index 05e5b9ac..00000000 --- a/packages/users-service/srv/services.cds +++ /dev/null @@ -1,7 +0,0 @@ -using { sap.capire.contacts.Contacts as RegisteredUsers } from '@sap/capire-contacts'; -namespace sap.capire.users; - -service UsersService @(requires:'authenticated-user') { - entity MyProfile as select from RegisteredUsers; - action login (); -} \ No newline at end of file