- Update axios to v1.7.4
- allow
decryptKey
for util function to accept JWKS strings when format isjson
- make use of util function for verifying payload against possible keys
- add convenience test suite (skipped) for testing/verifying actual ndi oidc integration/configs
- Updated helper to try all possible keys in keyset from SP/CP keys endpoint instead of assuming key position
- Updated dependencies to fix npm audit
- Migrated from
tslint
toeslint
andprettier
- Add optional
overrideDecryptKey
to corppass and singpass helper'sgetIdTokenPayload
method - Add
extractJwtHeader
andextractKidFromIdToken
method
- Add all new profiles for book facilities UAT
- Add new profiles for book facilities UAT
- Add new profiles for book facilities UAT
- [WARNING] Remove
vehiclestatus
as a mock param option forgetPersonInfo
in fake helper - Add
vehicles
as a mock param option forgetPersonInfo
in fake helper to mock multiple registered vehicles- add
vehicleno
,status
andiulabelno
as mock param options forvehicles
- add
- Add
regadd
as mock param options for fake profile - Add
mrSGFromBedok
- Update
proxy-agent
from5.0.0
to6.3.0
- [WARNING] Updated deps
- Updated
axios
from~0.27.2
to~1.3.5
- Updated
- [WARNING] Changed tsconfig target from
ES6
toES2019
- Update fake profile of mrsMYMommyPerfect to cater for marital status and marriage cert of 50 chars
- take in new parameter for corppass ndi helper, to allow for proxy endpoints to be called instead of directly calling corppass endpoints
- patch the additionalHeaders to be send along with the request
- add additionalHeaders optional params to corppass helper
- add overrideAuthUrl to corppass helper's constructAuthorizationUrl method
- Update dev dependencies, no breaking changes expected
- Add support for new Singpass domain
- [BREAKING] Generate schema based on MyInfo API TUO 3.2.0
- Change
PersonCommon
toPersonBasic
where basic profile return type is expected - Update
MyInfoHelper.getPersonCommon()
toMyInfoHelper.getPersonBasic()
- Update mock profiles to match the latest specs
- Change
- [BREAKING] Update MyInfo domain
merdekagen
,gstvoucher
, andsilversupport
have been moved fromPersonCommon
toPersonCommunity
merdekagen.code
is now string instead of enumsilversupport.year
and gstvoucher.year are now string instead of number (note: still returned as number in prod)occupation.code
andoccupation.desc
have been removed (note: still returned as empty strings in prod)address.type
is now "UNFORMATTED" instead of "unformatted"
- Added NDI helper
- update app reviewer mock profile
- Added corppass helper
- Updated UINFIN regex to support M series users
- Reduce brv2 archetypes name length
- Use BaseProfile instead of MrSGDaddyPerfect to generate brv2 archetypes
- Add missing marriage date to brv2 archetypes
- Fix proxy profile status url
- update BRV2 ICA UAT archetypes
- add BRV2 ICA UAT archetypes
- Export Util to root
- add setLogger method to override logging behaviour
- add overrideAuthUrl to singpass helper's constructAuthorizationUrl method
- Updated depedencies, no breaking changes expected
- [BREAKING] Removed
moment
- [WARNING] Updated npm dependencies
- [WARNING] Replaced
js-joda
with@js-joda/core
- add proxyProfileStatusUrl optional param to myinfo helper
- add additionalHeaders optional params to myinfo and singpass helper
- Reset child nric for testing
- Fixed proxyUrl to not be constructed if not provided
- Added 3 optional keys to MyInfoHelper: proxyTokenUrl, proxyPersonUrl, proxyPersonBasicUrl to support proxying MyInfo calls without affecting signature generation
- Update axios to 0.24.0
- Update axios to 0.23.0
- merge PRs for security fixes
- redacting sensitive values in error logs
- Fixed logging to ensure that uinfin is never logged even for errors
- Update occupation logic in fake helper
- Don't add the field in transformed mockParams when value is not specified
- Update yearofAssesment to string
- update test cases
- Convert all the amounts to Number, while transforming CPF/Income data from mockParams
- Add a value for last updatedAt in finances Mock Data
- Add fake profile of Singapore citizen without address
- Fix cpfcontribution history bug
- Update test cases
- intialized cpfContributions
- Added test cases for getPerson
- Removed request library dependency
- Made state param optional in myinfo-helper's getToken
- Made all props in myinfo-helper constructor that are only required for retrieval of full person data optional
- Fixed fake-helper typing
- Revert back to using querystring lib to generate url query in myinfo-helper's constructAuthorizationUrl
- Remove attributes from myinfo helper's constructor, take in attributes in separate myinfo helper functions
- Fixed myinfo-helper's getPerson missing await and slash
- Fixed myinfo-helper's contructAuthorizationUrl querystring encoding
- Fixed myinfo-helper's authorization url
- Fixed myinfo-request post
- Added getPerson in fake-helper
- fixing lint errors
- Added employment in mock params for bypass login
- Added cpf details and noa-basic for finances card
- Add missing parameter 'grant_type' in myinfo-helper's getToken function
- Add functionalities in myinfo-helper for retrieving full person data
- Update japanese profile to have employer and occupation
- [WARNING] Updated Myinfo model typings and renamed the namespace from
Components
toMyInfoComponents
- [WARNING] Myinfo enum descriptions are now capitalized as per latest Myinfo swagger
- [WARNING] Updated npm dependencies
- Added
generate-myinfo-typings
script to dynamically generate typings from Myinfo swagger to keep them in sync - Added Myinfo enum typings (e.g.
MyInfoEdulevel
) - Manually add / overwrite some
PersonCommon
data properties (e.g. addgstvoucher
, changevehicles
to array)
- Update dependencies
- Update female profiles to have alias name = LEE XIU
- Add msSGTeenager17 female
- Update mrSGTeenager17 to be single and no child
- Remove logs on SingpassSessionId in refreshSession in singpass-helper.
- Update logic for refreshSession: set maxRedirects to 0 to prevent calling callback API with session id header
- Update pioneergen and merdekagen profile generation
- dob check to fallback to archetype dob
- set eligibility to false for opt out archetypes
- set MG archetypes dob year to 1959
- clear eligibility / quantum values from PG archetypes
- add dob to PG archetypes
- add children in fake-helper
- add divorcedate in fake-helper
- minor changes in pioneergen quantum value when dob is given during login
- Update pioneergen quantum value when dob is given during login
- Update merdekagen and pioneergen eligibility values when dob is given during login
- Update fake profiles quantum value
- Change pioneergen quantum from number to string in myinfo-domain
- Add fake profiles for Pioneergen
- Add pioneergen property in myinfo-domain
- Update profile to have default passportNumber and passport expiryDate
- Add tob & sex to child
- Add tob & sex to child
- Revert update constructAuthorizationUrl
- Update constructAuthorizationUrl to set redirectUri if exist
- Restore refreshSession for singpass-helper
- Fix vulnerability 1598
- Upgrade jest to 26
- Reset child nric for testing
- Updated
request
module to fixajv
lib vulnerability
- export new mock profile aged 17
- added new mock profile aged 17
- Add empty string for remaining marital types
- updated node-jose to v2.0.0, only compatible with node 10 and above
- updated mock profile to include drivinglicence
- added default response fields for mock profile (lastupdated, source, classification)
- [BREAKING] Update mock profiles to match new deprecated myinfo fields
- remove http-status-codes lib
- update child6YearsOld to use nric which is valid for immunisation records
- updated filterThroughMyInfoAttributes to include vehicle array
- updated edulevel and residentialstatus typing with empty string
- updated person and personbasic with prod resemblance response
- updated vehicles to array for personbasic (so that it is the same structure as person)
- updated housingtype, hdbtype, comstatus with empty strings
- updated base profile with updated personbasic interface
- updated
mrSGFreshGradYoungParent
,mrsPRHdbOwnerWorkingAdult
,mrSGUncleRetiree
,mrSGDaddyPerfect
,mrAppReviewer
mock profiles - updated fake-helper with corrected response
- added default lifestatus param to children mock data
- udpated bypass to allow customise name
- udpated bypass to allow customise alias name
- udpated handling in fake-helper for hdb and housing params
- updated
mrSGFreshGradYoungParent
,mrsPRHdbOwnerWorkingAdult
,mrSGUncleRetiree
mock profiles
- fixed handling for new params in fake-helper
- added
qdlValidity
in myinfo domain map
- removed
ownerprivate
andhouseholdincome
from mock profiles - updated
mrSGFreshGradYoungParent
,mrsPRHdbOwnerWorkingAdult
,mrSGUncleRetiree
mock profiles - updated fake-helper to handle new mock params
hdbtype
,housingtype
,drivingqdlvalidity
,vehiclestatus
- updated default values of some params in base mock profiles
- add aliasname for MrAppReviewer profile
- removed uinfin from MrAppReviewer profile
- refactored
filterThroughAttributes
method in fake-helper to checked for nested paths
- add
mrSGFreshGradYoungParent
,mrsPRHdbOwnerWorkingAdult
,mrSGUncleRetiree
in fake-profiles.ts
- add
MrAppReviewer
in fake-profiles.ts
- add
MR_APP_REVIEWER
as fake profile
- change baseProfile merdekagen.eligibility value to false
- add merdekagen.eligibility value of True to all uncle profiles
- add logic to handle merdekagen.eligibility value to True if overwrite age is higher than 60
- Changed basic person and Mr SG Daddy Perfect email addresses from "[email protected]" to test email address
- Changed the phone numbers of basic person, Mr SG Perfect, and profiles with sponsored children to the test number
- Added dynamic dob to baseProfile to ensure profile is always age 59
- added uneditable field sex to mrSGDaddyMissingUneditableFields mock profile
- Updated comments regarding axios proxy-agent
- Organized imports for index.ts
- Update axios client to use proxy-agent (axios/axios#925 (comment))
- Replaced with axios-https-proxy-fix with axios (axios/axios#925)
- Sync'd configurations with mol-lib-connfig
- Updated dependencies
- added fake profiles for SG/PR with no local addresses
- added fake profile for foreigner with blank address fields
- added fake profile for foreigner with absent address object
- Using mol-lib-config
- Removed baseurl (doesn't play nice with declaration files)
- Updated with myinfo v3 Person declarations
- Added prepush scripts to ensure code quality