Socket
Socket
Sign inDemoInstall

@opengovsg/myinfo-gov-client

Package Overview
Dependencies
Maintainers
4
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opengovsg/myinfo-gov-client - npm Package Compare versions

Comparing version 4.0.0-beta.0 to 4.0.0

4

build/types/childrenbirthrecords.d.ts
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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc