{"_id":"@blueabel/assesment_utils","_rev":"6-f50780cc45d1825c3ae0fbe9a28330c0","name":"@blueabel/assesment_utils","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.0":{"name":"@blueabel/assesment_utils","version":"1.0.0","license":"MIT","publishConfig":{"access":"public"},"author":{"name":"Blueabel Team"},"main":"index.js","engines":{"node":">=14.19.1"},"keywords":["personality","items","assesment"],"gitHead":"f44a1b006c0ef83d7e5e477b2020a806ec111a0a","_id":"@blueabel/assesment_utils@1.0.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-7Ckemgfp7bAjeDl4K9IoNQ1uGX/ohAydBl3ODeLCoxVEMSfquTzA+ytH9woUpwg8HCB+gXqrSKPY8nLKhkTemQ==","shasum":"a802dcd24195b470a752e6e091d61bd0587205b1","tarball":"https://registry.npmjs.org/@blueabel/assesment_utils/-/assesment_utils-1.0.0.tgz","fileCount":2,"unpackedSize":2904,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH/OorXGaILRM/Cfa3spHhcxNfAsxKeO2HKcQ4SwJ2DHAiEAyszeYksfKkJmS8vXvPSA0ySabTlNQr77Ru6YcP74Z40="}]},"_npmUser":{"name":"ops-123abc","email":"ops@123abc.com"},"directories":{},"maintainers":[{"name":"ops-123abc","email":"ops@123abc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/assesment_utils_1.0.0_1697899071401_0.8249505656948448"},"_hasShrinkwrap":false},"1.0.1":{"name":"@blueabel/assesment_utils","version":"1.0.1","license":"MIT","publishConfig":{"access":"public"},"author":{"name":"Blueabel Team"},"main":"index.js","engines":{"node":">=14.19.1"},"keywords":["personality","items","assesment"],"gitHead":"f44a1b006c0ef83d7e5e477b2020a806ec111a0a","_id":"@blueabel/assesment_utils@1.0.1","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-p5AjskuhWXq1FAfMJ1RyBKi5c1zkkfU4eKcH3K6vSyFAMIyb6UL/LhB4CVF8fhpTl/r/2PfDHdP5nP6yfCFEhA==","shasum":"59985f710b0e6734f9bfb5347a38f613301ed02f","tarball":"https://registry.npmjs.org/@blueabel/assesment_utils/-/assesment_utils-1.0.1.tgz","fileCount":2,"unpackedSize":5559,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAZKr01lRq+9jNtm31NLgVB2RoyLHCI9z/4t4zyRxe+IAiEAgUmq+sBdbvuYXTjmigwL22mPrTYWo4k0dBahWh7mpuE="}]},"_npmUser":{"name":"ops-123abc","email":"ops@123abc.com"},"directories":{},"maintainers":[{"name":"ops-123abc","email":"ops@123abc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/assesment_utils_1.0.1_1697905250540_0.4689407376617689"},"_hasShrinkwrap":false},"1.0.2":{"name":"@blueabel/assesment_utils","version":"1.0.2","license":"MIT","publishConfig":{"access":"public"},"author":{"name":"Blueabel Team"},"main":"index.js","engines":{"node":">=14.19.1"},"keywords":["personality","items","assesment"],"gitHead":"f44a1b006c0ef83d7e5e477b2020a806ec111a0a","_id":"@blueabel/assesment_utils@1.0.2","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-jQxIJBVBXxkSf1bqjBOcfDG5h0d+h/VNbHoe6+xo1x+y41k7SvPZjEuCzZoUhNACMzJvuLcdJBxfvLmlYSLbxg==","shasum":"ae6c1762395e466eb94d3e6a0ac79a4a57c1fc37","tarball":"https://registry.npmjs.org/@blueabel/assesment_utils/-/assesment_utils-1.0.2.tgz","fileCount":2,"unpackedSize":5637,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4clDpteMiokvqS2vZrlvPJMnCEKyg65eUOoFPP74T+QIhAITbWDyXRyqs4Ue4Wr9cF69mwW2w/TWF8SB27RkINlod"}]},"_npmUser":{"name":"ops-123abc","email":"ops@123abc.com"},"directories":{},"maintainers":[{"name":"ops-123abc","email":"ops@123abc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/assesment_utils_1.0.2_1697907236311_0.18437501068293982"},"_hasShrinkwrap":false},"1.0.3":{"name":"@blueabel/assesment_utils","version":"1.0.3","license":"MIT","publishConfig":{"access":"public"},"author":{"name":"Blueabel Team"},"main":"index.js","engines":{"node":">=14.19.1"},"keywords":["personality","items","assesment"],"gitHead":"f44a1b006c0ef83d7e5e477b2020a806ec111a0a","description":"This library provides functionalities related to rating scales. The core functions allow for determining the rating scale of choices, translating scores between different scales, and aggregating scores based on provided answers.","_id":"@blueabel/assesment_utils@1.0.3","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-U/jvMV/2EYkup53EMlTSoRvpzbSAnu+ECMQW1E9Bl/y5VKNGd8QqtPYLxmErew/2pNkfIDigg9Ww14AzNj83xg==","shasum":"bcc3b3bbae170525f588ef57d94aece972985d00","tarball":"https://registry.npmjs.org/@blueabel/assesment_utils/-/assesment_utils-1.0.3.tgz","fileCount":3,"unpackedSize":7482,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1w2ShUvIvBcu9l2HWtFeC0tquuwmkarljj9c7Pe/pwQIgbq/Tn6GFFKjaaH8JjUke/l2UBy9fRVTrhebtoKNtWFM="}]},"_npmUser":{"name":"ops-123abc","email":"ops@123abc.com"},"directories":{},"maintainers":[{"name":"ops-123abc","email":"ops@123abc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/assesment_utils_1.0.3_1697908763031_0.11135917965914022"},"_hasShrinkwrap":false},"1.0.4":{"name":"@blueabel/assesment_utils","version":"1.0.4","license":"MIT","publishConfig":{"access":"public"},"author":{"name":"Blueabel Team"},"main":"index.js","engines":{"node":">=14.19.1"},"keywords":["personality","items","assesment"],"gitHead":"292b835a669026425db9a146ba51dde2cfd069d4","description":"This library provides functionalities related to rating scales. The core functions allow for determining the rating scale of choices, translating scores between different scales, and aggregating scores based on provided answers.","_id":"@blueabel/assesment_utils@1.0.4","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-WhU/SCGqAGFp37cE6F7FvPFCzZ7YhM39LK4i7SmZ4QTSiXZaaGDI3gDXwuVgi6tT24q+8toEMsDdY9b8BvZ45A==","shasum":"e229f2fe464c66736634a9ce6cf242c9f6a24e88","tarball":"https://registry.npmjs.org/@blueabel/assesment_utils/-/assesment_utils-1.0.4.tgz","fileCount":3,"unpackedSize":7638,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEKfSXNmI/iiR80le0LiRL95lroiBeusBjePmnLlvY0iAiEA5HMUVX6E+VrmN53erjUcXrHEpapn44UZu8LSepSHtn4="}]},"_npmUser":{"name":"ops-123abc","email":"ops@123abc.com"},"directories":{},"maintainers":[{"name":"ops-123abc","email":"ops@123abc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/assesment_utils_1.0.4_1697966970924_0.30651066429996354"},"_hasShrinkwrap":false},"1.0.5":{"name":"@blueabel/assesment_utils","version":"1.0.5","license":"MIT","publishConfig":{"access":"public"},"author":{"name":"Blueabel Team"},"main":"index.js","engines":{"node":">=14.19.1"},"keywords":["personality","items","assesment"],"gitHead":"292b835a669026425db9a146ba51dde2cfd069d4","description":"This library provides functionalities related to rating scales. The core functions allow for determining the rating scale of choices, translating scores between different scales, and aggregating scores based on provided answers.","_id":"@blueabel/assesment_utils@1.0.5","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-bqpf9Qr/kUIgOof1/wnGXfQFJ8svxkHe6gw1/913VY9HIbvnRMKbcy6eHYTdvpA/FUBOQBBPP7NrO6kIsyOoeQ==","shasum":"27285d86d76d7c19556d84a465a0150a8651516c","tarball":"https://registry.npmjs.org/@blueabel/assesment_utils/-/assesment_utils-1.0.5.tgz","fileCount":3,"unpackedSize":8573,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/dmKg5ZO1o+c3Hv6ZNIUs2BhX1M+Vq7ESoK7nVrc4PgIgfEK7V/X+iqQUBx2MsqGrFLN7K7jOtVn9O+5h3SqUjVk="}]},"_npmUser":{"name":"ops-123abc","email":"ops@123abc.com"},"directories":{},"maintainers":[{"name":"ops-123abc","email":"ops@123abc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/assesment_utils_1.0.5_1697981241203_0.81807347956882"},"_hasShrinkwrap":false},"1.0.6":{"name":"@blueabel/assesment_utils","version":"1.0.6","license":"MIT","publishConfig":{"access":"public"},"author":{"name":"Blueabel Team"},"main":"index.js","engines":{"node":">=14.19.1"},"keywords":["personality","items","assesment"],"gitHead":"292b835a669026425db9a146ba51dde2cfd069d4","description":"This library provides functionalities related to rating scales. The core functions allow for determining the rating scale of choices, translating scores between different scales, and aggregating scores based on provided answers.","_id":"@blueabel/assesment_utils@1.0.6","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-xdF94EoJCmEzGWprRk94fiPGZhpgx1pw80jHPvFSxhVJlhpufyhPuRTmtJw7eRF9gySkTlkOD1Q1V4+ObRb7RQ==","shasum":"bac122b4dc7d0261c3ef3e9c31e75c3a1fe3e4b8","tarball":"https://registry.npmjs.org/@blueabel/assesment_utils/-/assesment_utils-1.0.6.tgz","fileCount":3,"unpackedSize":8544,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEjUioRG6/95dADzCkUE/OJsQgzOM5pDtYxnfYQ3d5hlAiAfgY2QLA98cqiyr+qGDz0Nx6aL9Nex4d6RQTCEgyWQfA=="}]},"_npmUser":{"name":"ops-123abc","email":"ops@123abc.com"},"directories":{},"maintainers":[{"name":"ops-123abc","email":"ops@123abc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/assesment_utils_1.0.6_1697981484981_0.30849387250550153"},"_hasShrinkwrap":false}},"time":{"created":"2023-10-21T14:37:51.331Z","1.0.0":"2023-10-21T14:37:51.583Z","modified":"2023-10-22T13:31:25.457Z","1.0.1":"2023-10-21T16:20:50.719Z","1.0.2":"2023-10-21T16:53:56.484Z","1.0.3":"2023-10-21T17:19:23.220Z","1.0.4":"2023-10-22T09:29:31.095Z","1.0.5":"2023-10-22T13:27:21.419Z","1.0.6":"2023-10-22T13:31:25.200Z"},"maintainers":[{"name":"ops-123abc","email":"ops@123abc.com"}],"keywords":["personality","items","assesment"],"author":{"name":"Blueabel Team"},"license":"MIT","readme":"# Rating Scale Library\n\nThis library provides functionalities related to rating scales. The core functions allow for determining the rating scale of choices, translating scores between different scales, and aggregating scores based on provided answers.\n\n## Functions\n\n### setRatingScale(choices)\n\n- **Description**: Determines the rating scale of an array of choices based on a lookup table and adds it as a key.\n- **Input**:\n  - `choices`: An array of choice objects with a required `score` property and any other optional properties.\n- **Output**: The array with choice objects having a `rating_scale` property.\n  \n### translateScore(score, fromScale, toScale)\n\n- **Description**: Translates a score from one rating scale to another.\n- **Input**:\n  - `score`: The score to be translated.\n  - `fromScale`: The original rating scale of the score (e.g., \"7_point\").\n  - `toScale`: The target rating scale to which the score should be translated (e.g., \"5_point\").\n- **Output**: The translated score rounded to three decimal places.\n\n### calculateResult(answers, context)\n\n- **Description**: Calculates aggregated scores for each domain based on provided answers.\n- **Input**:\n  - `answers`: An array of answers where each answer contains a score, domain_id, optional facet_id, and an optional rating scale.\n  - `context`: Contextual information for processing the answers. The desired rating scale to which all answers should be translated (e.g., \"5_point\").\n- **Output**: An object where each key is a `domain_id` and each value contains aggregated scores.\n\n## Notes\n\n- Facets will not be processed if `domain_id` is an array in the `calculateResult` function.\n\n## Usage\n\n```javascript\nconst { setRatingScale, translateScore, calculateResult } = require('@blueabel/assesment_utils');\n\n```\n","readmeFilename":"README.md","description":"This library provides functionalities related to rating scales. The core functions allow for determining the rating scale of choices, translating scores between different scales, and aggregating scores based on provided answers."}