{"_id":"@4geit/swg-notification-model","_rev":"8-e0a72acfc85c39b20ceea48f5eaee6f0","name":"@4geit/swg-notification-model","description":"notification model provides data model + endpoints for the notifications menu feature","dist-tags":{"latest":"1.31.2"},"versions":{"1.26.0":{"name":"@4geit/swg-notification-model","version":"1.26.0","description":"notification model provides data model + endpoints for the notifications menu feature","main":"index.js","bugs":{"url":"https://gitlab.com/4geit/swagger-packages/issues"},"homepage":"https://gitlab.com/4geit/swagger-packages/tree/master/packages/swg-notification-model#README","keywords":[],"author":{"name":"Geraldine Starke","email":"geraldine@starke.fr"},"license":"MIT","dependencies":{"@4geit/swg-account-security-model":"^1.x","@4geit/swg-check-availability-helper":"^1.x","@4geit/swg-dereference-swagger-helper":"^1.x","@4geit/swg-destructuring-parameters-helper":"^1.x","@4geit/swg-get-user-with-api-token-helper":"^1.x","@4geit/swg-use-db-helper":"^1.x"},"publishConfig":{"access":"public"},"_id":"@4geit/swg-notification-model@1.26.0","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"canercandan","email":"caner@candan.fr"},"dist":{"integrity":"sha512-dCCtDLudL7Wh308m5GzUUKq2a6qnjDCjfGlaN1g9d788S36vRHLdg/khUn9YyYiJuDWNsNQU3CjN46/5LmSCTw==","shasum":"81240feddce678bee26d7a4f1c0ae3df76f4f95b","tarball":"https://registry.npmjs.org/@4geit/swg-notification-model/-/swg-notification-model-1.26.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfSP0yC5npHSWwBT8Mi0Ku1ePtbDu+1ffFda/sR2Ai5wIgNy7LIJql3WyW4+0KscbSarkmtrvzzZvZo58Bn2fSpww="}]},"maintainers":[{"name":"canercandan","email":"caner@candan.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swg-notification-model-1.26.0.tgz_1507234744602_0.09099468844942749"}},"1.28.0":{"name":"@4geit/swg-notification-model","version":"1.28.0","description":"notification model provides data model + endpoints for the notifications menu feature","main":"index.js","bugs":{"url":"https://gitlab.com/4geit/swagger-packages/issues"},"homepage":"https://gitlab.com/4geit/swagger-packages/tree/master/packages/swg-notification-model#README","keywords":[],"author":{"name":"Geraldine Starke","email":"geraldine@starke.fr"},"license":"MIT","dependencies":{"@4geit/swg-account-model":"^1.28.0","@4geit/swg-account-security-model":"^1.x","@4geit/swg-check-availability-helper":"^1.28.0","@4geit/swg-dereference-swagger-helper":"^1.x","@4geit/swg-destructuring-parameters-helper":"^1.28.0","@4geit/swg-get-user-with-api-token-helper":"^1.28.0","@4geit/swg-paginate-helper":"^1.28.0","@4geit/swg-use-db-helper":"^1.28.0"},"publishConfig":{"access":"public"},"_id":"@4geit/swg-notification-model@1.28.0","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"canercandan","email":"caner@candan.fr"},"dist":{"integrity":"sha512-SRtbL8u79kdOOPqtpLsJhBSqlce+ddIhenA+mFP21o4SyOsCUd0dmpWMncqjDK6/SFJIhRIJCrW15g5WQJ1iBQ==","shasum":"673d446861540f89c666a38e6911230a46aa28b9","tarball":"https://registry.npmjs.org/@4geit/swg-notification-model/-/swg-notification-model-1.28.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHufT6xzbUlKTVwqid3zIeivJ+ScFeLbBG70PvPy6OPQAiEA/7aez+Oa4c1YaaFkIM00MLXIahzVqDaVmfHM0Q2hIdo="}]},"maintainers":[{"email":"geraldine@starke.fr","name":"geraldinestarke"},{"email":"Fabian@starke.fr","name":"fabianstarke"},{"email":"caner@candan.fr","name":"canercandan"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swg-notification-model-1.28.0.tgz_1507282959269_0.3592471512965858"}},"1.28.2":{"name":"@4geit/swg-notification-model","version":"1.28.2","description":"notification model provides data model + endpoints for the notifications menu feature","main":"index.js","bugs":{"url":"https://gitlab.com/4geit/swagger-packages/issues"},"homepage":"https://gitlab.com/4geit/swagger-packages/tree/master/packages/swg-notification-model#README","keywords":[],"author":{"name":"Geraldine Starke","email":"geraldine@starke.fr"},"license":"MIT","dependencies":{"@4geit/swg-account-model":"^1.28.0","@4geit/swg-account-security-model":"^1.x","@4geit/swg-check-availability-helper":"^1.28.0","@4geit/swg-dereference-swagger-helper":"^1.x","@4geit/swg-destructuring-parameters-helper":"^1.28.0","@4geit/swg-get-user-with-api-token-helper":"^1.28.0","@4geit/swg-paginate-helper":"^1.28.0","@4geit/swg-use-db-helper":"^1.28.0"},"publishConfig":{"access":"public"},"_id":"@4geit/swg-notification-model@1.28.2","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"canercandan","email":"caner@candan.fr"},"dist":{"integrity":"sha512-VlQMByZ7i2vl8v+g/1quvvdHJ8KU7UPc6DR8oTtyZ9ai3YijBk8lYeC2zO1BIbWv8MyIXbZWQQ391XFV2WstpA==","shasum":"db045133dfa5cddedfccc8c1a862473b1df947bd","tarball":"https://registry.npmjs.org/@4geit/swg-notification-model/-/swg-notification-model-1.28.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbOQYz7G+tf4JqjjlDKvqUfN53EwXFfx+UBRdCFY8fsAIgZNXku8lZ1wL29AaF2CVKo1jw2roS6ip7hEgooeUhGyw="}]},"maintainers":[{"email":"geraldine@starke.fr","name":"geraldinestarke"},{"email":"Fabian@starke.fr","name":"fabianstarke"},{"email":"caner@candan.fr","name":"canercandan"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swg-notification-model-1.28.2.tgz_1507543301798_0.3684962328989059"}},"1.29.1":{"name":"@4geit/swg-notification-model","version":"1.29.1","description":"notification model provides data model + endpoints for the notifications menu feature","main":"index.js","bugs":{"url":"https://gitlab.com/4geit/swagger-packages/issues"},"homepage":"https://gitlab.com/4geit/swagger-packages/tree/master/packages/swg-notification-model#README","keywords":[],"author":{"name":"Geraldine Starke","email":"geraldine@starke.fr"},"license":"MIT","dependencies":{"@4geit/swg-account-model":"^1.28.0","@4geit/swg-account-security-model":"^1.x","@4geit/swg-check-availability-helper":"^1.28.0","@4geit/swg-dereference-swagger-helper":"^1.x","@4geit/swg-destructuring-parameters-helper":"^1.28.0","@4geit/swg-get-user-with-api-token-helper":"^1.28.0","@4geit/swg-paginate-helper":"^1.28.0","@4geit/swg-use-db-helper":"^1.28.0"},"publishConfig":{"access":"public"},"_id":"@4geit/swg-notification-model@1.29.1","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"canercandan","email":"caner@candan.fr"},"dist":{"integrity":"sha512-/sQR5knJgGXKiOXVkorC+2/SG0qJgtPvRkU8Dxdgku/0yD9sR/R50ac6azGuSR9tgUzGP7wTx2Ea349joTt4KA==","shasum":"7ea5f93fdffa6913d3e6e812b6871b954cb74f76","tarball":"https://registry.npmjs.org/@4geit/swg-notification-model/-/swg-notification-model-1.29.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBhWTc03/hWMMgz4ugt36wi8Dd93vmjHFYs99grkLfv2AiAeU3w61lVa4jE9PK5YQ70865v/4TyRu9sTEVtNDnOjQA=="}]},"maintainers":[{"email":"geraldine@starke.fr","name":"geraldinestarke"},{"email":"Fabian@starke.fr","name":"fabianstarke"},{"email":"caner@candan.fr","name":"canercandan"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swg-notification-model-1.29.1.tgz_1507555073053_0.9391254261136055"}},"1.31.0":{"name":"@4geit/swg-notification-model","version":"1.31.0","description":"notification model provides data model + endpoints for the notifications menu feature","main":"index.js","bugs":{"url":"https://gitlab.com/4geit/swagger-packages/issues"},"homepage":"https://gitlab.com/4geit/swagger-packages/tree/master/packages/swg-notification-model#README","keywords":[],"author":{"name":"Geraldine Starke","email":"geraldine@starke.fr"},"license":"MIT","dependencies":{"@4geit/swg-account-model":"^1.31.0","@4geit/swg-account-security-model":"^1.x","@4geit/swg-check-availability-helper":"^1.31.0","@4geit/swg-dereference-swagger-helper":"^1.31.0","@4geit/swg-destructuring-parameters-helper":"^1.31.0","@4geit/swg-get-user-with-api-token-helper":"^1.28.0","@4geit/swg-paginate-helper":"^1.28.0","@4geit/swg-use-db-helper":"^1.28.0"},"publishConfig":{"access":"public"},"_id":"@4geit/swg-notification-model@1.31.0","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"canercandan","email":"caner@candan.fr"},"dist":{"integrity":"sha512-LR1ovRcKDFBtA+IdQI9S/Mk1KWgioSGega5S99PeTE99WSP6w9xOyXH6CmiWn3YCqize9x9G2apcJOA1wDah9w==","shasum":"e17f9a3bca97a6698a956208252061e60a495214","tarball":"https://registry.npmjs.org/@4geit/swg-notification-model/-/swg-notification-model-1.31.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFO1HTKwWtv5UTiATW3QFn8iwWloajupNdYIV+h1i0OaAiEA299JrL/DhiNV1sIhTRmWJs1WrPMNgVVVBVQrCZ0ZY3U="}]},"maintainers":[{"email":"geraldine@starke.fr","name":"geraldinestarke"},{"email":"Fabian@starke.fr","name":"fabianstarke"},{"email":"caner@candan.fr","name":"canercandan"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swg-notification-model-1.31.0.tgz_1508703120792_0.6648976881988347"}},"1.31.1":{"name":"@4geit/swg-notification-model","version":"1.31.1","description":"notification model provides data model + endpoints for the notifications menu feature","main":"index.js","bugs":{"url":"https://gitlab.com/4geit/swagger-packages/issues"},"homepage":"https://gitlab.com/4geit/swagger-packages/tree/master/packages/swg-notification-model#README","keywords":[],"author":{"name":"Geraldine Starke","email":"geraldine@starke.fr"},"license":"MIT","dependencies":{"@4geit/swg-account-model":"^1.31.1","@4geit/swg-account-security-model":"^1.x","@4geit/swg-check-availability-helper":"^1.31.0","@4geit/swg-dereference-swagger-helper":"^1.31.0","@4geit/swg-destructuring-parameters-helper":"^1.31.0","@4geit/swg-get-user-with-api-token-helper":"^1.28.0","@4geit/swg-paginate-helper":"^1.28.0","@4geit/swg-use-db-helper":"^1.28.0"},"publishConfig":{"access":"public"},"_id":"@4geit/swg-notification-model@1.31.1","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"canercandan","email":"caner@candan.fr"},"dist":{"integrity":"sha512-Zq8nMzLneTyzVoUbQpLyeNDmHK5E5dWelBMonfgVdXdKh+w6azNdsdirOhemDYZEzzAoBzy+cK9Gy9ZJ0EcUtA==","shasum":"bd40513ecc0ed1323dbb88e8eb0b7f70e28b159b","tarball":"https://registry.npmjs.org/@4geit/swg-notification-model/-/swg-notification-model-1.31.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZhky+RKr+vHfBmKgvSYZvGeC8dMSVFF3j+UNZC9AQOAIhAKg5f3i0cq+yunEWZf4REaEKG8m3jZpOFIFJjfh4AQp+"}]},"maintainers":[{"email":"geraldine@starke.fr","name":"geraldinestarke"},{"email":"Fabian@starke.fr","name":"fabianstarke"},{"email":"caner@candan.fr","name":"canercandan"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swg-notification-model-1.31.1.tgz_1508895012855_0.3901244052685797"}},"1.31.2":{"name":"@4geit/swg-notification-model","version":"1.31.2","description":"notification model provides data model + endpoints for the notifications menu feature","main":"index.js","bugs":{"url":"https://gitlab.com/4geit/swagger-packages/issues"},"homepage":"https://gitlab.com/4geit/swagger-packages/tree/master/packages/swg-notification-model#README","keywords":[],"author":{"name":"Geraldine Starke","email":"geraldine@starke.fr"},"license":"MIT","dependencies":{"@4geit/swg-account-model":"^1.31.2","@4geit/swg-account-security-model":"^1.x","@4geit/swg-check-availability-helper":"^1.31.0","@4geit/swg-dereference-swagger-helper":"^1.31.0","@4geit/swg-destructuring-parameters-helper":"^1.31.0","@4geit/swg-get-user-with-api-token-helper":"^1.28.0","@4geit/swg-paginate-helper":"^1.28.0","@4geit/swg-use-db-helper":"^1.28.0"},"publishConfig":{"access":"public"},"_id":"@4geit/swg-notification-model@1.31.2","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"canercandan","email":"caner@candan.fr"},"dist":{"integrity":"sha512-CBcOzCItszKw2vcDpIICKr5F9AtaDGY0vFbkAnglcLo5QirtfEzsJLcvmbzp9MqAEYuLrhKIHbbcaFZ5ToYEyw==","shasum":"76ec63b159c3d7db2af550f30b4b939396e1eaa1","tarball":"https://registry.npmjs.org/@4geit/swg-notification-model/-/swg-notification-model-1.31.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdjFRIMlhTBjIe5YUmtMrKTfbzFeCH43xjAIg4FzVLxgIhAIKrJ1xMG7gyrSeM6PM3/8P6YQZf1o3oWDeOFAREaTJ3"}]},"maintainers":[{"email":"geraldine@starke.fr","name":"geraldinestarke"},{"email":"Fabian@starke.fr","name":"fabianstarke"},{"email":"caner@candan.fr","name":"canercandan"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swg-notification-model-1.31.2.tgz_1510671122393_0.29623390827327967"}}},"readme":"# @4geit/swg-notification-model [![npm version](//badge.fury.io/js/@4geit%2Fswg-notification-model.svg)](//badge.fury.io/js/@4geit%2Fswg-notification-model)\n\n---\n\nnotification model provides data model + endpoints for the notifications menu feature\n\n## Installation\n\n1. A recommended way to install ***@4geit/swg-notification-model*** is through [npm](//www.npmjs.com/search?q=@4geit/swg-notification-model) package manager using the following command:\n\n```bash\nnpm i @4geit/swg-notification-model --save\n```\n\nOr use `yarn` using the following command:\n\n```bash\nyarn add @4geit/swg-notification-model\n```\n\n2. In your swagger file, you need to add a reference to the `SwgNotificationModel` definition under the `definitions` property (e.g. `/api/swagger/swagger.yaml`) as below:\n\n```yaml\nswagger: \"2.0\"\n# ...\ndefinitions:\n  SwgNotificationModel:\n    $ref: ../../node_modules/@4geit/swg-notification-model/swagger.yaml#/definitions/SwgNotificationModel\n# ...\n```\n\n3. SwgNotificationModel also comes along with some endpoints you can expose to the API, to do so you will need to add a reference to the `SwgNotificationModel` definition under the `paths` property (e.g. `/api/swagger/swagger.yaml`) as below:\n\n```yaml\nswagger: \"2.0\"\n# ...\npaths:\n  /notification:\n    $ref: ../../node_modules/@4geit/swg-notification-model/swagger.yaml#/definitions/NotificationListPath\n  /notification/{id}:\n    $ref: ../../node_modules/@4geit/swg-notification-model/swagger.yaml#/definitions/NotificationItemPath\n  /notification/populate:\n    $ref: ../../node_modules/@4geit/swg-notification-model/swagger.yaml#/definitions/PopulatePath\n# ...\n```\n\nAnd you will also need to add the path to the `controllers` folder of the `swg-notification-model` package so that swagger-node will find the relevant controller to use. Edit the file `/config/default.yaml` and add two new paths to the properties `mockControllersDirs` and `controllersDirs` as illustrated below:\n\n```yaml\nswagger:\n  # ...\n  bagpipes:\n    _router:\n      # ...\n      mockControllersDirs:\n        # ...\n        - node_modules/@4geit/swg-notification-model/mocks\n        # ...\n      controllersDirs:\n        # ...\n        - node_modules/@4geit/swg-notification-model/controllers\n        # ...\n```\n","maintainers":[{"email":"geraldine@starke.fr","name":"geraldinestarke"},{"email":"Fabian@starke.fr","name":"fabianstarke"},{"email":"caner@candan.fr","name":"canercandan"}],"time":{"modified":"2022-04-04T10:46:52.799Z","created":"2017-10-05T20:19:05.951Z","1.26.0":"2017-10-05T20:19:05.951Z","1.28.0":"2017-10-06T09:42:40.151Z","1.28.2":"2017-10-09T10:01:42.726Z","1.29.1":"2017-10-09T13:17:53.952Z","1.31.0":"2017-10-22T20:12:01.645Z","1.31.1":"2017-10-25T01:30:13.795Z","1.31.2":"2017-11-14T14:52:03.320Z"},"homepage":"https://gitlab.com/4geit/swagger-packages/tree/master/packages/swg-notification-model#README","keywords":[],"author":{"name":"Geraldine Starke","email":"geraldine@starke.fr"},"bugs":{"url":"https://gitlab.com/4geit/swagger-packages/issues"},"license":"MIT","readmeFilename":"README.md"}