UNPKG

@codetanzania/emis-stakeholder

Version:

A representation of an entity (e.g municipal, individual, agency, organization etc) consisting of contact information (e.g. name, e-mail addresses, phone numbers) and other descriptive information of interest in emergency(or disaster) management.

381 lines (242 loc) 19.8 kB
#### 2.9.0 (2021-06-05) ##### Chores * **build:** externalize irina utils ([05c89dd9](https://github.com/codetanzania/emis-stakeholder/commit/05c89dd9f20f6ea363ee843c5ad7e053566c8ea1)) * **deps:** * force latest version & audit fix ([32fe9c9e](https://github.com/codetanzania/emis-stakeholder/commit/32fe9c9ef77fae9aadcd014226d0b60c610a1105)) * force latest version ([75dc10d0](https://github.com/codetanzania/emis-stakeholder/commit/75dc10d09aae539a4c4eaee7072c291e560a28ba)) * bump nodemailer from 6.4.11 to 6.6.0 ([31be7557](https://github.com/codetanzania/emis-stakeholder/commit/31be755747a191bf86fba796e6324a5d327c4945)) * bump hosted-git-info from 2.7.1 to 2.8.9 ([6eb671e7](https://github.com/codetanzania/emis-stakeholder/commit/6eb671e76e2b00588a8936eeab69d1ce20533ea7)) * bump lodash from 4.17.19 to 4.17.21 ([b244e431](https://github.com/codetanzania/emis-stakeholder/commit/b244e431c83303659133ebeeaf2e9a111823fff8)) * bump underscore from 1.9.1 to 1.13.1 ([82e593df](https://github.com/codetanzania/emis-stakeholder/commit/82e593df88e538cfbb6aa13f52e931982bf5e8ee)) * bump redis from 3.0.2 to 3.1.1 ([d5108118](https://github.com/codetanzania/emis-stakeholder/commit/d51081182587ad4a4df40b6d70f3093c31030f62)) * bump y18n from 3.2.1 to 3.2.2 ([b2e7f710](https://github.com/codetanzania/emis-stakeholder/commit/b2e7f710b9ce82f4a4e09f2eb3027dd078162a04)) * bump pug-code-gen from 2.0.1 to 2.0.3 ([c6ba3428](https://github.com/codetanzania/emis-stakeholder/commit/c6ba3428a7bc5e7d55ae9d3f108baca6964911df)) * bump ini from 1.3.5 to 1.3.7 ([4a2b942c](https://github.com/codetanzania/emis-stakeholder/commit/4a2b942c1cb08f6cf831fe1d8e6e33d62737ec30)) * bump bl from 2.2.0 to 2.2.1 ([346fe989](https://github.com/codetanzania/emis-stakeholder/commit/346fe98909058f4be9cdf49d8a91d7a38c60338d)) * force latest version & audit fix ([7a26dd63](https://github.com/codetanzania/emis-stakeholder/commit/7a26dd631277e1dc4c2cc14ae703f7a0221775d2)) * **deps-dev:** bump handlebars from 4.7.6 to 4.7.7 ([bb4940ba](https://github.com/codetanzania/emis-stakeholder/commit/bb4940ba8f401d9812e5db76d4dfb01fced201c3)) * **config:** add editors & config files on git ignore ([76f82ba4](https://github.com/codetanzania/emis-stakeholder/commit/76f82ba41198227bf34218d1e4f81315deb1b95c)) ##### Documentation Changes * **changelog:** generate latest release notes ([e406a0d6](https://github.com/codetanzania/emis-stakeholder/commit/e406a0d6d09931a7c2477b7c4307609ebcd3e8c9)) * **readme:** * update test coverage badge ([cbfb3640](https://github.com/codetanzania/emis-stakeholder/commit/cbfb364071166e160c800ed143b38d6b0a8de76a)) * use common format & badges ([d5452469](https://github.com/codetanzania/emis-stakeholder/commit/d545246932a6fce44f9e74aa88c826da61411fa5)) ##### New Features * **schema:** add radio call sign ([be4a8bf0](https://github.com/codetanzania/emis-stakeholder/commit/be4a8bf079c919b22538f89b7353c94aa5afc27d)) * **model:** add administrative level ([024522b6](https://github.com/codetanzania/emis-stakeholder/commit/024522b69ca502894eb3860b1715970c6d5d098d)) ##### Refactors * re-write using es6 ([73ba536c](https://github.com/codetanzania/emis-stakeholder/commit/73ba536c445a272596279c1542fca16d53d6fbc3)) * drop docs and add common predefine namespaces ([4f7dc7f1](https://github.com/codetanzania/emis-stakeholder/commit/4f7dc7f16f4b3883a4bbf6fd5b0e3373e08e66f2)) * introduce es6 config ([0a43ca8e](https://github.com/codetanzania/emis-stakeholder/commit/0a43ca8eca532fade3f32d236e15634eebf3379b)) ##### Tests * **unit:** derive ownership from parent ([846436f8](https://github.com/codetanzania/emis-stakeholder/commit/846436f8a0c2aed4c4e8b86cda0153732c3ab410)) #### 2.8.0 (2020-05-08) ##### Chores * **deps:** force latest version & audit fix ([b2e7b931](https://github.com/CodeTanzania/emis-stakeholder/commit/b2e7b9319847615e93544ea624694554dcb32e03)) ##### Refactors * **model:** ensure area level populated ([a6d0ea1d](https://github.com/CodeTanzania/emis-stakeholder/commit/a6d0ea1d5ebdd8d3e43dfaf245df690ca334f119)) #### 2.7.0 (2020-05-05) ##### Chores * **deps:** force latest version & audit fix ([eba5fc34](https://github.com/CodeTanzania/emis-stakeholder/commit/eba5fc34b736591750d271dcc6b86db0c9bbf83e)) ##### New Features * **model:** add ownership & gender fields ([6e563d51](https://github.com/CodeTanzania/emis-stakeholder/commit/6e563d51939779c8381e96c4d29abe2c951e3eec)) #### 2.6.0 (2020-04-28) ##### Chores * **deps:** force latest version & audit fix ([e26e9952](https://github.com/CodeTanzania/emis-stakeholder/commit/e26e9952774f9d2e0762f7c436dcd08c89c70445)) ##### New Features * **aggregation:** make fields party, group, area, level, role aggregatable ([04e042ad](https://github.com/CodeTanzania/emis-stakeholder/commit/04e042adbe8a7a3a0f12af8fafa3bedb3849d68d)) #### 2.5.0 (2020-04-28) ##### Chores * **deps:** * force latest version & audit fix ([6df8986b](https://github.com/CodeTanzania/emis-stakeholder/commit/6df8986bec7c61076d6d9e98bbbb50ecbf36ad0a)) * force latest version & audit fix ([cd77b041](https://github.com/CodeTanzania/emis-stakeholder/commit/cd77b041d8ecd46b9c0c379e5f9b0450aacd2d5f)) ##### New Features * allow find parent & children recursive ([9015b78c](https://github.com/CodeTanzania/emis-stakeholder/commit/9015b78ca4f8cdb29e43820915f36d9d4f532154)) #### 2.4.0 (2020-04-19) ##### Chores * **deps:** force latest version & audit fix ([c0d3743e](https://github.com/CodeTanzania/emis-stakeholder/commit/c0d3743e52657649913706bcb68d807e0f110134)) ##### New Features * **modela:** add admnistrative level ([f2db0ab5](https://github.com/CodeTanzania/emis-stakeholder/commit/f2db0ab57584b058894ec79f7cef0974d8c717c2)) ##### Bug Fixes * **model:** ensure level from area ([fa8c36fb](https://github.com/CodeTanzania/emis-stakeholder/commit/fa8c36fb1045c9319e0abb2d012be88407e9dc57)) #### 2.3.0 (2020-04-04) ##### Chores * **deps:** force latest version & audit fix ([d90d7fa8](https://github.com/CodeTanzania/emis-stakeholder/commit/d90d7fa88b98ece49c79b73aa51b5a26323195c7)) ##### New Features * allow find distinct areas, roles & groups in parallel ([63d1186b](https://github.com/CodeTanzania/emis-stakeholder/commit/63d1186b3969e0f83c4159ba2d0de91013020015)) * allow find distinct groups & roles ([0cbf67d5](https://github.com/CodeTanzania/emis-stakeholder/commit/0cbf67d5c95d169fceac2c39f603b68ff77ae673)) * allow find distict areas ([ef148c8e](https://github.com/CodeTanzania/emis-stakeholder/commit/ef148c8ef304524fe49630127c4cd518d3bf78d8)) * force fresh api token & apply latest code format ([f081e12c](https://github.com/CodeTanzania/emis-stakeholder/commit/f081e12c8c999ae5247e1c79754768b8edeb85a7)) #### 2.2.1 (2020-03-02) ##### Bug Fixes * **auth:** encode id as payload ([e0680028](https://github.com/CodeTanzania/emis-stakeholder/commit/e06800286d3099c81a7988897191dfdb0d435c42)) #### 2.2.0 (2020-03-02) ##### Chores * **deps:** force latest version & audit fix ([9900e531](https://github.com/CodeTanzania/emis-stakeholder/commit/9900e531c14862c49c62772614222d371a896cb9)) ##### New Features * **party:** * ensure api token before save ([d6825585](https://github.com/CodeTanzania/emis-stakeholder/commit/d68255851c2bb251e7af51f7e6f79b41d2f1c90c)) * add api token schema field ([020af02b](https://github.com/CodeTanzania/emis-stakeholder/commit/020af02b7623ce40c6dacd49a3ff7c261e013ea2)) * add convert to contact helper ([f917c22b](https://github.com/CodeTanzania/emis-stakeholder/commit/f917c22bc8360715f79e9529e55cff9ca9bd9e4e)) * add jwt auth helpers ([a56cb3c1](https://github.com/CodeTanzania/emis-stakeholder/commit/a56cb3c194ef058f8141a6731a32ab2a2541e7e3)) ##### Tests * add jwt configs ([effa827f](https://github.com/CodeTanzania/emis-stakeholder/commit/effa827f65f99ae7f5ef28f82d4590d91b657a85)) #### 2.1.0 (2020-01-23) ##### Chores * **deps:** force latest versions ([221c362d](https://github.com/CodeTanzania/emis-stakeholder/commit/221c362dcefe8653310ea07a6aaad09a03da05b4)) ##### Refactors * rename Focal Person to Focal ([017f8fdb](https://github.com/CodeTanzania/emis-stakeholder/commit/017f8fdbf319aa5987e810dbb52d7a0693c4962b)) #### 2.0.0 (2019-11-27) ##### Chores * **deps:** * force latest version & audit fix ([d6390ac4](https://github.com/CodeTanzania/emis-stakeholder/commit/d6390ac41d6c09aafe6832a0edbb26914dd9d748)) * force latest version & audit fix ([a9e3ba78](https://github.com/CodeTanzania/emis-stakeholder/commit/a9e3ba78704534ca0102cb21892adb9ed0ad4a22)) * update dependencies to latest versions ([918bc1d7](https://github.com/CodeTanzania/emis-stakeholder/commit/918bc1d7f529044def8afe88cd7bf521e98a1bbc)) ##### Other Changes * CodeTanzania/emis-stakeholder into develop ([2e4f27c5](https://github.com/CodeTanzania/emis-stakeholder/commit/2e4f27c5f2e3ce96554bade4c04c4a627c00f178)) ##### Refactors * use predefine for area, role & group ([8949f8c6](https://github.com/CodeTanzania/emis-stakeholder/commit/8949f8c606fb9f7ea2d9baa6cdf0334979cf0e56)) #### 1.9.0 (2019-06-20) ##### Chores * **examples:** configure postman to use fetchAccounts ([1d562068](https://github.com/CodeTanzania/emis-stakeholder/commit/1d562068402b5da0fadd9fb06f0326b7e262a7de)) * **deps:** force latest version & audit fix ([50bee646](https://github.com/CodeTanzania/emis-stakeholder/commit/50bee646cb6395a87771be80d518690706876bf4)) #### 1.8.1 (2019-06-19) ##### Chores * **deps:** * force latest version & audit fix ([2a6e6870](https://github.com/CodeTanzania/emis-stakeholder/commit/2a6e6870ebf06f4a377489c6688df7f2629f9d1a)) * fix security alerts ([8d86af2e](https://github.com/CodeTanzania/emis-stakeholder/commit/8d86af2ed8e9ddceaa105366ac281cfdace21d85)) * force latest version & audit fix ([deb02829](https://github.com/CodeTanzania/emis-stakeholder/commit/deb028298310f17b0b05a3fb6b40416c3c3c7c8a)) * **examples:** expose campaign and messages http router ([2b395621](https://github.com/CodeTanzania/emis-stakeholder/commit/2b3956219898b6b7ef3b457b24174f8b64cbb29d)) ##### New Features * implement initial party fetchContacts ([56e0adc4](https://github.com/CodeTanzania/emis-stakeholder/commit/56e0adc417eae8440453b35cb9475b589b611eee)) ##### Tests * imporve fetch contacts specs ([8fcc8975](https://github.com/CodeTanzania/emis-stakeholder/commit/8fcc8975adf6e9fcd375fc90b89ebcd3f55576e7)) * add fetch contacts specs holder ([4f970dbc](https://github.com/CodeTanzania/emis-stakeholder/commit/4f970dbc79c5fef041f01eb3905a0b83fc59419f)) * add party fetch contacts specs ([78e917f1](https://github.com/CodeTanzania/emis-stakeholder/commit/78e917f1b49517f1aa6c65242c9dc5701c2a586d)) #### 1.8.0 (2019-06-15) ##### Chores * **package:** update package version to 1.8.0 ([6bed0b64](https://github.com/CodeTanzania/emis-stakeholder/commit/6bed0b64a394b50ab760ec5bd0ca4b647b57967b)) * **deps:** * update dependencies to latest versions ([43fb1568](https://github.com/CodeTanzania/emis-stakeholder/commit/43fb15685a1f9cd21b921b71426ed7df8c5677d4)) * install dependency locally ([c3d15316](https://github.com/CodeTanzania/emis-stakeholder/commit/c3d15316f7997804e4eb7e3d7589aee44eec086e)) * **examples:** refactor seeds to fix duplicates seeds ([c75c3ad0](https://github.com/CodeTanzania/emis-stakeholder/commit/c75c3ad0cac925c65ad933f76b709aec3894d69d)) ##### New Features * **auth:** allow signin username to be email or phone number ([fa8180ed](https://github.com/CodeTanzania/emis-stakeholder/commit/fa8180edd130a497fb0a01c3a7366f658cb5f1fd)) ##### Bug Fixes * **party:** ensure party mobile is formatted ([689f0df9](https://github.com/CodeTanzania/emis-stakeholder/commit/689f0df9d945bfbb75ba1e7d6c9514d8d515c22a)) ##### Tests * **party:** check if mobile number is formatted on post ([4b56ddc7](https://github.com/CodeTanzania/emis-stakeholder/commit/4b56ddc78bf9d43eb32216af04706c288656c909)) #### 1.7.0 (2019-06-11) ##### Chores * **package.json:** update package version to 1.7.0 ([1b93f2e5](https://github.com/CodeTanzania/emis-stakeholder/commit/1b93f2e5aa6f7e492436f3595fc8b721c72de05e)) * **deps:** * install dependency locally ([371d5527](https://github.com/CodeTanzania/emis-stakeholder/commit/371d55272441a80fac9f2aa089cd445ece8758ae)) * force latest version & audit fix ([5ac0b010](https://github.com/CodeTanzania/emis-stakeholder/commit/5ac0b010960cfb867873d2e44830d9902024c391)) * force latest version & audit fix ([5c107a89](https://github.com/CodeTanzania/emis-stakeholder/commit/5c107a89c70056f97c07e405c6ec9c087b605307)) * add predefine ([a4e01541](https://github.com/CodeTanzania/emis-stakeholder/commit/a4e01541a1b5b243dae974af1cf028e4663903cf)) * force latest dependencies ([d4631cf8](https://github.com/CodeTanzania/emis-stakeholder/commit/d4631cf87f21b93839669e06ffef82875bde840c)) * **example:** ensure .env follows standards ([1f70587d](https://github.com/CodeTanzania/emis-stakeholder/commit/1f70587d1c272a77ed75f751160ee29d924857ed)) * **examples:** * fix partygroups seeding ([dbc5e440](https://github.com/CodeTanzania/emis-stakeholder/commit/dbc5e44010bae3d2ecb9d65eec86c6503c270030)) * add predefine namespaces ([dae04ce1](https://github.com/CodeTanzania/emis-stakeholder/commit/dae04ce189ec1cb8763cb9ec80ca22da43c0ccd4)) * add party groups predefine seed ([aa9f2aab](https://github.com/CodeTanzania/emis-stakeholder/commit/aa9f2aabe6340fa21a3a5a25f109f46697fb7561)) ##### Bug Fixes * prevent auth libs to override email field ([8e086442](https://github.com/CodeTanzania/emis-stakeholder/commit/8e086442dfa572138b53f050a45eeb508a02fba9)) ##### Refactors * **model:** migrate to use predefine on party group ([ed2f7ada](https://github.com/CodeTanzania/emis-stakeholder/commit/ed2f7adad2d29cada0601094957cbeccdf920515)) #### 1.6.1 (2019-06-04) ##### Chores * **package.json:** * update package version to 1.6.1 ([eacfc0ce](https://github.com/CodeTanzania/emis-stakeholder/commit/eacfc0ceace63d6f243f3aeb37f7bddbd3fa00ba)) * format file ([978c0925](https://github.com/CodeTanzania/emis-stakeholder/commit/978c09254d3e30a9863292db6dea8a29244a495a)) ##### New Features * **example:** mount authentication router on example app ([e0b4360b](https://github.com/CodeTanzania/emis-stakeholder/commit/e0b4360b7c87b36db113686a4c5da4f20ed92f0a)) ##### Bug Fixes * **seed:** resolve duplication error and add default password to party ([d594a6f0](https://github.com/CodeTanzania/emis-stakeholder/commit/d594a6f0ef974d7e6d9e5eab3816de5793865be1)) * **auth:** expose authentication router ([78d57525](https://github.com/CodeTanzania/emis-stakeholder/commit/78d57525b821d736580475472c52069cbf04d139)) ##### Code Style Changes * fix a typo ([f6815240](https://github.com/CodeTanzania/emis-stakeholder/commit/f6815240f2d4ff20a293d15d0d4dc61cd18008f7)) #### 1.6.0 (2019-06-03) ##### Chores - **deps:** - install and configure changelog generator ([5f7e800e](https://github.com/CodeTanzania/emis-stakeholder/commit/5f7e800eb1fb89a118efc83dff1e06905145314f)) - install dependency locally ([6afe7608](https://github.com/CodeTanzania/emis-stakeholder/commit/6afe7608acfbc185043878baa2ecedcf5dbc26bb)) - **package.json:** update package version to 1.6.0 ([472c9f04](https://github.com/CodeTanzania/emis-stakeholder/commit/472c9f04d950c4e97de7a7d1be3402735e293fab)) - **.gitignore:** ignore configuration folders ([1c106da3](https://github.com/CodeTanzania/emis-stakeholder/commit/1c106da34d34143d0611d028667e11bc41096d89)) ##### New Features - **auth:** - allow user to change password and mount auth router ([c69ba541](https://github.com/CodeTanzania/emis-stakeholder/commit/c69ba54166ad0fc0e274772dad0b8133ebe72026)) - support authentication in party router ([afb81b4c](https://github.com/CodeTanzania/emis-stakeholder/commit/afb81b4c7fcd0cd88c0559225134f0fe83f5cd08)) - install and configure irina in party model ([fbb1c78b](https://github.com/CodeTanzania/emis-stakeholder/commit/fbb1c78b4caf81af5176df4f63ee1c57852499b5)) ##### Refactors - **seed:** resolve seed for party location ([3d704381](https://github.com/CodeTanzania/emis-stakeholder/commit/3d704381d91a81903776744d5928ed128b918aa2)) - **model:** re-implement seed to use new API ([5b2ad987](https://github.com/CodeTanzania/emis-stakeholder/commit/5b2ad9877ea4e64fc88ba2df74f55e37ad9d9010)) #### 1.5.0 (2019-05-30) ##### Chores - **deps:** - force latest version & audit fix ([30a0b860](https://github.com/CodeTanzania/emis-stakeholder/commit/30a0b8605e3b4181157855481f023d1470204a69)) - force latest version & audit fix ([b41f7357](https://github.com/CodeTanzania/emis-stakeholder/commit/b41f73574f9a1ce46d4493403414f40c5d6c0228)) - ignore docs files from being formatted by prettier ([9ec349f4](https://github.com/CodeTanzania/emis-stakeholder/commit/9ec349f42a5c280a0bd4162c6f9eaea8241c43fc)) - remove unused jsbeautify file ([35ee8af7](https://github.com/CodeTanzania/emis-stakeholder/commit/35ee8af713538f521a54c68b225ffee1626cde3d)) - ignore neovim config file ([8b239959](https://github.com/CodeTanzania/emis-stakeholder/commit/8b23995940bcaaf630b1c77325ffa812bf35b21d)) - install and configure prettier ([55f8fe0a](https://github.com/CodeTanzania/emis-stakeholder/commit/55f8fe0a1e8fb1172e3fd6c0b759846340f96024)) - force latest dependencies ([bf4cf46d](https://github.com/CodeTanzania/emis-stakeholder/commit/bf4cf46d8657369c636844b1ba864146032e6a32)) ##### Refactors - **deps:** migrate to use latest api ([f1b4a4fa](https://github.com/CodeTanzania/emis-stakeholder/commit/f1b4a4fa806a5e125216e4379c20d5b3f7b670bb)) ##### Code Style Changes - format files with prettier ([dd239db8](https://github.com/CodeTanzania/emis-stakeholder/commit/dd239db886a90816b8dd441403baa62da1ff0aa2)) #### 1.4.0 (2019-02-21) ##### New Features - allow party export ([25001229](https://github.com/CodeTanzania/emis-stakeholder/commit/25001229342e31b4afa6a5580338b737d096675f)) #### 1.3.1 (2019-02-18) ##### Bug Fixes - make role not required ([8b046856](https://github.com/CodeTanzania/emis-stakeholder/commit/8b0468567b2ce820a4c951f62fc556faa4397544)) #### 1.3.0 (2019-02-18) ##### Refactors - extract seed to self script ([54fcb6ac](https://github.com/CodeTanzania/emis-stakeholder/commit/54fcb6acb54034fa405c7f0396cf191de7f3e597)) - remove unused fields ([c5c84232](https://github.com/CodeTanzania/emis-stakeholder/commit/c5c842327c59d379e63980cc4fa8e60b62cb95b8)) # 1.2.2 / 24-12-2018 - Build latest apidoc - Force latest dependencies & audit fix - Refactor and improve specs readability # 1.2.0 / 17-12-2018 - Force latest emis-role dependency - Build latest apidoc # 1.2.0 / 16-12-2018 - Build latest apidoc - Add taggable plugin - Fixes #6 - Force lateste dependencies & audit fix - Improve example app # 1.1.1 / 18-11-2018 - Force latest dependencies - Update module jsdoc - Add example queue worker # 1.1.0 / 09-10-2018 - Add persistent partie and roles seed - Add env variables on example - Add SMTP_FROM to fix travis crash - Allow queue email send - Add email notification integration spec - Add runInBackround plugin to party schema - Add POST /notifications route - Add helpers to get party distinct phone numbers - Add helpers to get party distinct emails - Add postman dependencies - Add party upsert logic - Add party seed logic - Add party upsert integration spec - ADD party seed integration spec # 1.0.2 / 26-10-2018 - Force responsibilities to undefined if not given - Force latest dependencies # 1.0.1 / 26-10-2018 - Update API Doc to include Role and Permission - Update usage doc - Improve test coverage # 1.0.0 / 26-10-2018 - Clone @lykmapipo/party - Refactor package details for emis-stakeholder - Fix integration specs - Improve package keywords - Build API Doc