@opengovsg/myinfo-gov-client
Advanced tools
Comparing version 4.0.0-beta.0 to 4.0.0
import { MyInfoField, StringValue, CodeAndDesc, MyInfoAttribute } from './base'; | ||
declare type MyInfoChildFull = { | ||
declare type MyInfoChildFull = Partial<{ | ||
birthcertno: StringValue; | ||
@@ -16,3 +16,3 @@ name: StringValue; | ||
tob: StringValue; | ||
}; | ||
}>; | ||
export declare type MyInfoChildBirthRecordBelow21 = MyInfoChildFull; | ||
@@ -19,0 +19,0 @@ export declare type MyInfoChildBirthRecordAbove21 = Pick<MyInfoChildFull, 'birthcertno'>; |
import { MyInfoField, StringValue, NumberValue, CodeAndDesc, MyInfoAttribute } from './base'; | ||
declare type StartEndDate = { | ||
declare type StartEndDate = Partial<{ | ||
startdate: StringValue; | ||
enddate: StringValue; | ||
}; | ||
declare type PDL = { | ||
}>; | ||
declare type PDL = Partial<{ | ||
validity: CodeAndDesc; | ||
@@ -12,4 +12,4 @@ expirydate: StringValue; | ||
}[]; | ||
}; | ||
declare type QDL = { | ||
}>; | ||
declare type QDL = Partial<{ | ||
validity: CodeAndDesc; | ||
@@ -21,4 +21,4 @@ expirydate: StringValue; | ||
}[]; | ||
}; | ||
declare type DrivingLicenceCustomFields = { | ||
}>; | ||
declare type DrivingLicenceCustomFields = Partial<{ | ||
comstatus: CodeAndDesc; | ||
@@ -32,5 +32,5 @@ totaldemeritpoints: NumberValue; | ||
photocardserialno: StringValue; | ||
}; | ||
}>; | ||
export declare type MyInfoDrivingLicence = MyInfoField<DrivingLicenceCustomFields>; | ||
export declare type DrivingLicenceScope = `${MyInfoAttribute.DrivingLicence}.${Exclude<keyof DrivingLicenceCustomFields, 'suspension' | 'disqualification' | 'revocation' | 'pdl' | 'qdl'>}` | `${MyInfoAttribute.DrivingLicence}.${'suspension' | 'disqualification' | 'revocation'}.${keyof StartEndDate}` | `${MyInfoAttribute.DrivingLicence}.pdl.${keyof PDL}` | `${MyInfoAttribute.DrivingLicence}.qdl.${keyof QDL}`; | ||
export {}; |
import { MyInfoSingaporeAddress, MyInfoUnformattedAddress } from './address'; | ||
import { CodeAndDesc, MyInfoAttribute, MyInfoField, NumberValue, StringValue } from './base'; | ||
declare type HdbOwnershipCustomFields = { | ||
declare type HdbOwnershipCustomFields = Partial<{ | ||
noofowners: NumberValue; | ||
@@ -19,5 +19,5 @@ address: MyInfoSingaporeAddress | MyInfoUnformattedAddress; | ||
monthlyloaninstalment: NumberValue; | ||
}; | ||
}>; | ||
export declare type MyInfoHdbOwnership = MyInfoField<HdbOwnershipCustomFields>; | ||
export declare type HdbOwnershipScope = `${MyInfoAttribute.HDBOwnership}.${keyof HdbOwnershipCustomFields}`; | ||
export {}; |
import { MyInfoField, StringValue, CodeAndDesc, MyInfoAttribute, MyInfoNotApplicable } from './base'; | ||
export declare type MyInfoSponsoredChildFull = { | ||
export declare type MyInfoSponsoredChildFull = Partial<{ | ||
nric: StringValue; | ||
@@ -19,3 +19,3 @@ name: StringValue; | ||
scprgrantdate: StringValue; | ||
}; | ||
}>; | ||
export declare type MyInfoSponsoredChildBelow21 = MyInfoSponsoredChildFull; | ||
@@ -22,0 +22,0 @@ export declare type MyInfoSponsoredChildAbove21 = Pick<MyInfoSponsoredChildFull, 'nric'>; |
import { MyInfoField, StringValue, NumberValue, CodeAndDesc, MyInfoAttribute } from './base'; | ||
export declare type MyInfoVehicleFull = { | ||
export declare type MyInfoVehicleFull = Partial<{ | ||
vehicleno: StringValue; | ||
@@ -40,4 +40,4 @@ type: StringValue; | ||
vpc: StringValue; | ||
}; | ||
}>; | ||
export declare type MyInfoVehicle = MyInfoField<MyInfoVehicleFull>; | ||
export declare type VehiclesScope = `${MyInfoAttribute.Vehicles}.${keyof MyInfoVehicleFull}`; |
{ | ||
"name": "@opengovsg/myinfo-gov-client", | ||
"version": "4.0.0-beta.0", | ||
"version": "4.0.0", | ||
"description": "A lightweight client to easily call the MyInfo Person v3.2 endpoint for the Singapore government. Tested with NodeJS version >=12.", | ||
@@ -42,3 +42,3 @@ "main": "build/index.js", | ||
"@opengovsg/eslint-config-opengovsg": "^1.0.5", | ||
"@opengovsg/mockpass": "^2.6.1", | ||
"@opengovsg/mockpass": "^2.6.10", | ||
"@types/express": "^4.17.11", | ||
@@ -45,0 +45,0 @@ "@types/jest": "^26.0.20", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
78811
0
1