Skip to content

Commit

Permalink
Fix: date of birth issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ManojNathIC committed Nov 28, 2024
1 parent e4da20a commit 5e78268
Show file tree
Hide file tree
Showing 2 changed files with 127 additions and 129 deletions.
252 changes: 125 additions & 127 deletions schemas/janAadharCertificate.json
Original file line number Diff line number Diff line change
@@ -1,132 +1,130 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"type": "object",
"properties": {
"janAadharCertificate": {
"$ref": "#/definitions/janAadharCertificate"
}
},
"required": ["janAadharCertificate"],
"title": "JanAadharCertificate",
"definitions": {
"janAadharCertificate": {
"$id": "#/properties/janAadharCertificate",
"type": "object",
"title": "JanAadharCertificate Schema",
"required": [
"studentId",
"familyIdentificationNumber",
"firstName",
"lastName",
"gender",
"dob",
"personalIdentificationNumber",
"addressLine1",
"vtc",
"district",
"state",
"country"
],
"uniqueIndexFields": ["studentId"],
"properties": {
"studentId": {
"type": "string",
"title": "Student Identifier"
},
"schoolId": {
"type": "string",
"title": "School Identifier"
},
"familyIdentificationNumber": {
"type": "string",
"title": "Family Identification Number"
},
"firstName": {
"type": "string",
"title": "First Name"
},
"middleName": {
"type": "string",
"title": "Middle Name"
},
"lastName": {
"type": "string",
"title": "Last Name"
},
"gender": {
"type": "string",
"title": "Gender"
},
"dob": {
"type": "string",
"format": "date",
"title": "Date of Birth"
},
"personalIdentificationNumber": {
"type": "string",
"title": "Personal Identification Number"
},
"familyBankAccountNumber": {
"type": "string",
"title": "Family Bank Account Number"
},
"addressLine1": {
"type": "string",
"title": "Address Line 1"
},
"addressLine2": {
"type": "string",
"title": "Address Line 2"
},
"vtc": {
"type": "string",
"title": "Village/Town/City"
},
"district": {
"type": "string",
"title": "District"
},
"pin": {
"type": "string",
"title": "PIN Code"
},
"state": {
"type": "string",
"title": "State"
},
"country": {
"type": "string",
"title": "Country"
},
"relationwithFamilyLeader": {
"type": "string",
"title": "Relation with Family Leader"
},
"orgName": {
"type": "string",
"title": "Organization Name"
},
"orgType": {
"type": "string",
"title": "Organization Type"
},
"idNumber": {
"type": "string",
"title": "ID Number"
},
"certificateNo": {
"type": "string",
"title": "Certificate No"
},
"certificateId": {
"type": "string",
"title": "Certificate Id"
}
"$schema": "http://json-schema.org/draft-07/schema",
"type": "object",
"properties": {
"janAadharCertificate": {
"$ref": "#/definitions/janAadharCertificate"
}
},
"required": ["janAadharCertificate"],
"title": "JanAadharCertificate",
"definitions": {
"janAadharCertificate": {
"$id": "#/properties/janAadharCertificate",
"type": "object",
"title": "JanAadharCertificate Schema",
"required": [
"studentId",
"familyIdentificationNumber",
"firstName",
"lastName",
"gender",
"dateOfBirth",
"personalIdentificationNumber",
"addressLine1",
"vtc",
"district",
"state",
"country"
],
"uniqueIndexFields": ["studentId"],
"properties": {
"studentId": {
"type": "string",
"title": "Student Identifier"
},
"schoolId": {
"type": "string",
"title": "School Identifier"
},
"familyIdentificationNumber": {
"type": "string",
"title": "Family Identification Number"
},
"firstName": {
"type": "string",
"title": "First Name"
},
"middleName": {
"type": "string",
"title": "Middle Name"
},
"lastName": {
"type": "string",
"title": "Last Name"
},
"gender": {
"type": "string",
"title": "Gender"
},
"dateOfBirth": {
"type": "string",
"title": "Date of Birth"
},
"personalIdentificationNumber": {
"type": "string",
"title": "Personal Identification Number"
},
"familyBankAccountNumber": {
"type": "string",
"title": "Family Bank Account Number"
},
"addressLine1": {
"type": "string",
"title": "Address Line 1"
},
"addressLine2": {
"type": "string",
"title": "Address Line 2"
},
"vtc": {
"type": "string",
"title": "Village/Town/City"
},
"district": {
"type": "string",
"title": "District"
},
"pin": {
"type": "string",
"title": "PIN Code"
},
"state": {
"type": "string",
"title": "State"
},
"country": {
"type": "string",
"title": "Country"
},
"relationwithFamilyLeader": {
"type": "string",
"title": "Relation with Family Leader"
},
"orgName": {
"type": "string",
"title": "Organization Name"
},
"orgType": {
"type": "string",
"title": "Organization Type"
},
"idNumber": {
"type": "string",
"title": "ID Number"
},
"certificateNo": {
"type": "string",
"title": "Certificate No"
},
"certificateId": {
"type": "string",
"title": "Certificate Id"
}
}
},
"_osConfig": {
"inviteRoles": ["anonymous"]
}
},
"_osConfig": {
"inviteRoles": ["anonymous"]
}
}
4 changes: 2 additions & 2 deletions src/Helper/transformers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export const sportsParticipationCertificate = (data) => {
certificateNo:
record.schoolId?.trim(' ') +
'/' +
record.pin.trim(' ') +
record.pin?.trim(' ') +
'/' +
record.studentUniqueId?.trim(' '),
status: 'pending',
Expand All @@ -228,7 +228,7 @@ export const janAadharCertificate = (data) => {
middleName: record.middleName,
lastName: record.lastName,
gender: record.gender,
dob: record.dateOfBirth,
dateOfBirth: record.dateOfBirth,
personalIdentificationNumber: record.personalId,
familyBankAccountNumber: record.familyBankAccount,
addressLine1: record.addressLine1,
Expand Down

0 comments on commit 5e78268

Please sign in to comment.