Skip to content

Commit

Permalink
feat: Add of missing papers targeted for v1
Browse files Browse the repository at this point in the history
Adding multiples missing Qualifications.
Adding information to multiples existing Qualifications.
Required for the "Mes papiers" application for the moment,
in order to qualify more documents.
  • Loading branch information
Merkur39 committed Jan 3, 2022
1 parent 6c0a473 commit 25e4953
Show file tree
Hide file tree
Showing 7 changed files with 145 additions and 51 deletions.
2 changes: 1 addition & 1 deletion docs/api/cozy-client/modules/models.document.themes.md
Expand Up @@ -12,4 +12,4 @@

*Defined in*

[packages/cozy-client/src/models/document/documentTypeData.js:159](https://github.com/cozy/cozy-client/blob/master/packages/cozy-client/src/models/document/documentTypeData.js#L159)
[packages/cozy-client/src/models/document/documentTypeData.js:171](https://github.com/cozy/cozy-client/blob/master/packages/cozy-client/src/models/document/documentTypeData.js#L171)
114 changes: 89 additions & 25 deletions packages/cozy-client/src/assets/qualifications.json
Expand Up @@ -49,7 +49,8 @@
},
{
"label": "other_identity_document",
"purpose": "attestation"
"purpose": "attestation",
"subjects": ["identity"]
},
{
"label": "wedding",
Expand Down Expand Up @@ -86,7 +87,8 @@
"subjects": ["right"]
},
{
"label": "other_family_document"
"label": "other_family_document",
"subjects": ["family"]
},
{
"label": "diploma",
Expand Down Expand Up @@ -133,7 +135,7 @@
"label": "student_card",
"purpose": "attestation",
"sourceCategory": "education",
"subjects": ["identity"]
"subjects": ["identity", "right", "employment", "education"]
},
{
"label": "resume",
Expand All @@ -146,54 +148,75 @@
"subjects": ["employment"]
},
{
"label": "other_work_document"
"label": "other_work_document",
"purpose": "employment"
},
{
"label": "health_book",
"purpose": "attestation",
"sourceCategory": "health",
"subjects": ["identity", "capacity", "vaccine"]
"subjects": ["capacity", "vaccine"]
},
{
"label": "health_certificate",
"purpose": "attestation",
"sourceCategory": "health",
"subjects": ["identity", "capacity", "vaccine"]
"subjects": ["capacity", "vaccine"]
},
{
"label": "pregnancy_medical_certificate",
"purpose": "attestation",
"sourceCategory": "health",
"subjects": ["pregnancy"]
},
{
"label": "work_disability_recognition",
"purpose": "attestation",
"sourceCategory": "health",
"subjects": ["right"]
},
{
"label": "national_health_insurance_card",
"purpose": "attestation",
"sourceCategory": "gov",
"sourceSubCategory": "health",
"subjects": ["identity", "insurance"]
"subjects": ["insurance"]
},
{
"label": "national_health_insurance_right_certificate",
"purpose": "attestation",
"sourceCategory": "gov",
"sourceSubCategory": "health",
"subjects": ["right", "insurance"]
},
{
"label": "health_insurance_card",
"purpose": "attestation",
"sourceCategory": "insurance",
"sourceSubCategory": "health",
"subjects": ["identity", "insurance"]
"subjects": ["insurance"]
},
{
"label": "prescription",
"purpose": "attestation",
"sourceCategory": "health",
"subjects": ["identity", "right", "medecine"]
"subjects": ["right", "medecine"]
},
{
"label": "health_invoice",
"purpose": "invoice",
"sourceCategory": "health"
},
{
"label": "other_health_document"
"label": "other_health_document",
"subjects": ["health"]
},
{
"label": "vehicle_registration",
"purpose": "attestation",
"sourceCategory": "gov",
"sourceSubCategory": "transport",
"subjects": ["right", "identity"]
"subjects": ["vehicule", "indentity", "right"]
},
{
"label": "car_insurance",
Expand All @@ -213,7 +236,8 @@
"sourceCategory": "transport"
},
{
"label": "other_transport_document"
"label": "other_transport_document",
"sourceCategory": "transport"
},
{
"label": "house_sale_agreeement",
Expand Down Expand Up @@ -266,7 +290,8 @@
"subjects": ["building", "house"]
},
{
"label": "other_house_document"
"label": "other_house_document",
"subjects": ["house"]
},
{
"label": "phone_invoice",
Expand Down Expand Up @@ -338,15 +363,13 @@
},
{
"label": "other_tax_document",
"sourceCategory": "gov",
"sourceSubCategory": "tax",
"subjects": ["tax"]
},
{
"label": "bank_details",
"purpose": "attestation",
"sourceCategory": "bank",
"subjects": ["identity"]
"subjects": ["bank_account"]
},
{
"label": "bank_statement",
Expand All @@ -366,25 +389,66 @@
{
"label": "receipt",
"purpose": "report"
},
{
"label": "payment_proof_family_allowance",
"purpose": "attestation",
"sourceCategory": "gov",
"sourceSubCategory": "tax",
"subjects": ["subvention"]
},
{
"label": "school_attendance_certificate",
"purpose": "attestation",
"sourceCategory": "education",
"subjects": ["identity", "right", "education"]
},
{
"label": "unfit_for_habitation_declaration",
"purpose": "attestation",
"sourceCategory": "gov",
"sourceSubCategory": "real_estate",
"subjects": ["compliance"]
},
{
"label": "accommodation_proof",
"purpose": "attestation",
"sourceCategory": "individual",
"subjects": ["address"]
},
{
"label": "citizen_registration_certificate",
"purpose": "attestation",
"sourceCategory": "gov",
"sourceSubCategory": "civil_registration",
"subjects": ["achievement","education"]
},
{
"label": "personal_sporting_licence",
"purpose": "attestation",
"sourceCategory": "gov",
"sourceSubCategory": "sport",
"subjects": ["permit", "invoice"]
}
],
"purposeKnownValues": [
"attestation", "contract", "invoice", "report", "description", "evaluation"
"attestation", "contract", "invoice", "report", "description", "evaluation", "employment"
],
"sourceCategoryKnownValues": [
"bank", "insurance", "retail", "telecom", "energy", "water", "health", "gov",
"bank", "insurance", "retail", "telecom", "energy", "water", "health", "gov", "association",
"education", "employer", "transport", "goods", "alimentation", "building",
"real_estate", "web"
"real_estate", "web", "individual"
],
"sourceSubCategoryKnownValues": [
"civil_registration", "immigration", "transport", "family", "tax", "health",
"real_estate", "mobile", "internet"
"real_estate", "mobile", "internet", "citizen", "sport"
],
"subjectsKnownValues": [
"identity", "permit", "family", "driving", "right", "subvention", "achievement",
"degree", "work", "employment", "revenues", "history", "insurance", "drugs",
"medical_act", "car", "moto", "truck", "boat", "subscription", "buy/sale",
"house", "compliance", "building", "food", "real_estate", "tax",
"education", "statement", "course", "internet", "phone", "vaccine", "capacity"
"identity", "permit", "family", "address", "driving", "right", "subvention", "achievement",
"degree", "work", "employment", "revenues", "history", "insurance",
"medical_act", "vehicule", "car", "moto", "truck", "boat", "subscription", "buy/sale",
"house", "compliance", "building", "food", "real_estate", "tax", "address",
"education", "statement", "course", "internet", "phone", "vaccine", "capacity",
"health", "drugs", "child", "pregnancy", "bank_account"
]
}
14 changes: 13 additions & 1 deletion packages/cozy-client/src/models/document/documentTypeData.js
Expand Up @@ -42,6 +42,8 @@ const identityLabels = [
'family_record_book',
'birth_certificate',
'driver_license',
'citizen_registration_certificate',
'personal_sporting_licence',
'other_identity_document'
]

Expand All @@ -56,6 +58,7 @@ const familyLabels = [
'divorce',
'large_family_card',
'caf',
'payment_proof_family_allowance',
'other_family_document'
]

Expand All @@ -68,9 +71,11 @@ const workStudyLabels = [
'pay_sheet',
'unemployment_benefit',
'pension',
'work_disability_recognition',
'other_revenue',
'gradebook',
'student_card',
'school_attendance_certificate',
'resume',
'motivation_letter',
'other_work_document'
Expand All @@ -83,9 +88,13 @@ const healthLabels = [
'health_certificate',
'health_book',
'national_health_insurance_card',
'national_health_insurance_right_certificate',
'health_insurance_card',
'prescription',
'health_invoice'
'health_invoice',
'work_disability_recognition',
'pregnancy_medical_certificate',
'other_health_document'
]

/**
Expand All @@ -100,8 +109,10 @@ const homeLabels = [
'house_sale_agreeement',
'building_permit',
'technical_diagnostic_record',
'unfit_for_habitation_declaration',
'lease',
'rent_receipt',
'accommodation_proof',
'house_insurance',
'work_quote',
'work_invoice',
Expand Down Expand Up @@ -132,6 +143,7 @@ const financeLabels = [
'bank_details',
'bank_statement',
'loan_agreement',
'payment_proof_family_allowance',
'other_bank_document'
]

Expand Down
17 changes: 13 additions & 4 deletions packages/cozy-client/src/models/document/locales/en.json
Expand Up @@ -19,7 +19,7 @@
"items": {
"identity": "Identity",
"family": "Family",
"work_study": "Work",
"work_study": "Work & Study",
"health": "Health",
"home": "Home",
"transport": "Transport",
Expand All @@ -31,13 +31,15 @@
"residence_permit": "Residence permit",
"family_record_book": "Family record book",
"birth_certificate": "Birth certificate",
"citizen_registration_certificate": "Certificate of citizen registration",
"driver_license": "Driving license",
"other_identity_document": "Other identity",
"wedding": "Wedding contract",
"pacs": "Civil union",
"divorce": "Divorce",
"large_family_card": " Large Family Card",
"caf": "Social benefit",
"caf": "Social benefit rate",
"payment_proof_family_allowance": "family allowance payment proof",
"other_family_document": "Other family document",
"diploma": "Diploma",
"work_contract": "Work contract",
Expand All @@ -47,12 +49,16 @@
"other_revenue": "Other revenues",
"gradebook": "Gradebook",
"student_card": "Student card",
"school_attendance_certificate": "Certificate of school attendance",
"resume": "Resume",
"motivation_letter": "Motivation letter",
"other_work_document": "Other work document",
"health_book": "Health book",
"health_certificate": "Health/Vaccination certificate",
"national_health_insurance_card": "National insurance card",
"disability_recognition": "Recognition of disability",
"pregnancy_medical_certificate": "Certificate of pregnancy",
"national_health_insurance_card": "National health insurance card",
"national_health_insurance_right_certificate": "National health insurance right certificate",
"health_insurance_card": "Insurance card",
"prescription": "Prescription",
"health_invoice": "Health invoice",
Expand All @@ -75,7 +81,9 @@
"technical_diagnostic_record": "Technical diagnostic record",
"lease": "Lease",
"house_insurance": "Home insurance",
"unfit_for_habitation_declaration": "Declaration of unfit for habitation",
"rent_receipt": "Rent receipt",
"accommodation_proof": "Proof of accommodation",
"work_quote": "Work quote",
"work_invoice": "Work invoice",
"other_house_document": "Other house document",
Expand All @@ -89,12 +97,13 @@
"loan_agreement": "Loan agreement",
"other_bank_document": "Other banking document",
"invoices": "Invoices",
"personal_sporting_licence": "Sporting licence",
"other_invoice": "Other invoice"
},
"themes": {
"identity": "Identity",
"family": "Family",
"work_study": "Work",
"work_study": "Work & Study",
"health": "Health",
"home": "Home",
"transport": "Transport",
Expand Down

0 comments on commit 25e4953

Please sign in to comment.