diff --git a/packages/cozy-client/src/assets/qualifications.json b/packages/cozy-client/src/assets/qualifications.json index 58c2b2656b..a7d84355b6 100644 --- a/packages/cozy-client/src/assets/qualifications.json +++ b/packages/cozy-client/src/assets/qualifications.json @@ -112,10 +112,6 @@ "label": "fidelity_card", "sourceCategory": "shopping" }, - { - "label": "library_card", - "sourceCategory": "individual" - }, { "label": "single_parent_benefit", "purpose": "attestation", diff --git a/packages/cozy-client/src/models/document/constants.js b/packages/cozy-client/src/models/document/constants.js index b535a5365c..e9810ef93c 100644 --- a/packages/cozy-client/src/models/document/constants.js +++ b/packages/cozy-client/src/models/document/constants.js @@ -119,7 +119,6 @@ export const THEME_TRANSPORT_LABELS = [ export const THEME_ACTIVITY_LABELS = [ 'personal_sporting_licence', 'fidelity_card', - 'library_card', 'note_activity_document', 'other_activity_document' ] @@ -216,11 +215,6 @@ const ICON_GLOBE_LABELS = ['residence_permit'] */ const ICON_PLANE_LABELS = ['passport'] -/** - * @type {Array} - */ -const ICON_LIBRARY_LABELS = ['library_card'] - /** * @type {Array} */ @@ -442,7 +436,6 @@ export const iconLabelPairs = [ { icon: 'image', labels: ICON_IMAGE_LABELS }, { icon: 'justice', labels: ICON_JUSTICE_LABELS }, { icon: 'laudry', labels: ICON_LAUDRY_LABELS }, - { icon: 'library', labels: ICON_LIBRARY_LABELS }, { icon: 'lightning', labels: ICON_LIGHTNING_LABELS }, { icon: 'people', labels: ICON_PEOPLE_LABELS }, { icon: 'plane', labels: ICON_PLANE_LABELS }, diff --git a/packages/cozy-client/src/models/document/locales/en.json b/packages/cozy-client/src/models/document/locales/en.json index ef23ee2759..a77d7aaf14 100644 --- a/packages/cozy-client/src/models/document/locales/en.json +++ b/packages/cozy-client/src/models/document/locales/en.json @@ -39,7 +39,7 @@ "expense_claim": "Expense claim |||| Expense claims", "family_record_book": "Family record book |||| Family record books", "family": "Family", - "fidelity_card": "Fidelity card |||| Fidelity cards", + "fidelity_card": "Benefit card |||| Benefit cards", "fine": "Fine |||| Fines", "gradebook": "Gradebook |||| Gradebooks", "grocery_invoice": "Grocery invoice |||| Grocery invoices", @@ -57,7 +57,6 @@ "isp_invoice": "ISP invoice |||| ISP invoices", "large_family_card": " Large Family Card |||| Large Family Cards", "lease": "Lease |||| Leases", - "library_card": "library card |||| library cards", "loan_agreement": "Loan agreement |||| Loan agreements", "mechanic_invoice": "Repair bill |||| Repair bills", "motivation_letter": "Motivation letter |||| Motivation letters", diff --git a/packages/cozy-client/src/models/document/locales/fr.json b/packages/cozy-client/src/models/document/locales/fr.json index dc837c7865..472a2953e5 100644 --- a/packages/cozy-client/src/models/document/locales/fr.json +++ b/packages/cozy-client/src/models/document/locales/fr.json @@ -39,7 +39,7 @@ "expense_claim": "Note de frais |||| Notes de frais", "family_record_book": "Livret de famille |||| Livrets de famille", "family": "Famille", - "fidelity_card": "Carte de fidélité |||| Cartes de fidélité", + "fidelity_card": "Carte avantage |||| Cartes avantages", "fine": "Amende |||| Amendes", "gradebook": "Bulletin de notes |||| Bulletins de notes", "grocery_invoice": "Facture de courses |||| Factures de courses", @@ -57,7 +57,6 @@ "isp_invoice": "Facture d'internet |||| Factures d'internet", "large_family_card": "Carte famille nombreuse |||| Cartes famille nombreuse", "lease": "Bail |||| Baux", - "library_card": "Carte de bibliothèque |||| Cartes de bibliothèque", "loan_agreement": "Contrat de prêt |||| Contrats de prêt", "mechanic_invoice": "Facture de réparation |||| Factures de réparation", "motivation_letter": "Lettre de motivation |||| Lettres de motivation", diff --git a/packages/cozy-client/src/types.js b/packages/cozy-client/src/types.js index 3a82d5e5d0..ca94e54e56 100644 --- a/packages/cozy-client/src/types.js +++ b/packages/cozy-client/src/types.js @@ -732,7 +732,7 @@ import { QueryDefinition } from './queries/dsl' * * @typedef {'phone_invoice'|'isp_invoice'|'telecom_invoice'|'energy_invoice'|'water_invoice'|'appliance_invoice'|'web_service_invoice'|'restaurant_invoice'|'work_invoice'|'transport_invoice'|'health_invoice'|'other_invoice'|'note_invoice'|'expense_claim'|'energy_contract'|'grocery_invoice'} InvoiceLabels * - * @typedef {'personal_sporting_licence'|'other_activity_document'|'fidelity_card'|'library_card'|'note_activity_document'} ActivityLabels + * @typedef {'personal_sporting_licence'|'other_activity_document'|'fidelity_card'|'note_activity_document'} ActivityLabels * * @typedef {'other_administrative_document'|'note_other'} OthersLabels * @@ -750,8 +750,6 @@ import { QueryDefinition } from './queries/dsl' * * @typedef {'passport'} iconPlaneLabels * - * @typedef {'library_card'} iconLibraryLabels - * * @typedef {'identity_photo'} iconImageLabels * * @typedef {'fidelity_card'|'grocery_invoice'} iconShopLabels @@ -804,7 +802,7 @@ import { QueryDefinition } from './queries/dsl' */ /** - * @typedef {'bank-check'|'bank'|'benefit'|'bill'|'car'|'child'|'email'|'euro'|'exchange'|'file-type-note'|'fitness'|'globe'|'gouv'|'heart'|'home'|'image'|'justice'|'laudry'|'library'|'lightning'|'people'|'plane'|'remboursement'|'restaurant'|'school'|'shop'|'team'|'telecom'|'telephone'|'water'|'work'} IconQualificationLabels + * @typedef {'bank-check'|'bank'|'benefit'|'bill'|'car'|'child'|'email'|'euro'|'exchange'|'file-type-note'|'fitness'|'globe'|'gouv'|'heart'|'home'|'image'|'justice'|'laudry'|'lightning'|'people'|'plane'|'remboursement'|'restaurant'|'school'|'shop'|'team'|'telecom'|'telephone'|'water'|'work'} IconQualificationLabels */ /** diff --git a/packages/cozy-client/types/types.d.ts b/packages/cozy-client/types/types.d.ts index 5cb2845842..76a6c9cdc9 100644 --- a/packages/cozy-client/types/types.d.ts +++ b/packages/cozy-client/types/types.d.ts @@ -1352,15 +1352,14 @@ export type HomeLabels = "house_sale_agreeement" | "building_permit" | "technica export type TransportLabels = "driver_license" | "transport_card" | "vehicle_registration" | "car_insurance" | "mechanic_invoice" | "transport_invoice" | "other_transport_document" | "note_transport_document"; export type FinanceLabels = "pay_sheet" | "single_parent_benefit" | "other_revenue" | "real_estate_tax" | "tax_certificate" | "tax_return" | "tax_notice" | "tax_timetable" | "other_tax_document" | "bank_details" | "bank_statement" | "loan_agreement" | "other_bank_document" | "receipt" | "payment_proof_family_allowance" | "expense_claim" | "fine" | "note_finance"; export type InvoiceLabels = "health_invoice" | "transport_invoice" | "work_invoice" | "phone_invoice" | "isp_invoice" | "telecom_invoice" | "energy_invoice" | "water_invoice" | "energy_contract" | "appliance_invoice" | "web_service_invoice" | "restaurant_invoice" | "grocery_invoice" | "other_invoice" | "expense_claim" | "note_invoice"; -export type ActivityLabels = "fidelity_card" | "library_card" | "personal_sporting_licence" | "other_activity_document" | "note_activity_document"; +export type ActivityLabels = "fidelity_card" | "personal_sporting_licence" | "other_activity_document" | "note_activity_document"; export type OthersLabels = "other_administrative_document" | "note_other"; -export type ItemsLabels = "resume" | "identity_photo" | "national_id_card" | "passport" | "residence_permit" | "family_record_book" | "birth_certificate" | "driver_license" | "other_identity_document" | "wedding" | "pacs" | "divorce" | "large_family_card" | "caf" | "other_family_document" | "diploma" | "work_contract" | "pay_sheet" | "fidelity_card" | "library_card" | "single_parent_benefit" | "transport_card" | "electoral_card" | "employment_center_certificate" | "unemployment_benefit" | "pension" | "other_revenue" | "gradebook" | "student_card" | "motivation_letter" | "other_work_document" | "health_book" | "health_certificate" | "pregnancy_medical_certificate" | "work_disability_recognition" | "national_health_insurance_card" | "national_health_insurance_right_certificate" | "health_insurance_card" | "prescription" | "health_invoice" | "other_health_document" | "vehicle_registration" | "car_insurance" | "mechanic_invoice" | "transport_invoice" | "other_transport_document" | "house_sale_agreeement" | "real_estate_tax" | "building_permit" | "technical_diagnostic_record" | "lease" | "rent_receipt" | "house_insurance" | "work_quote" | "work_invoice" | "other_house_document" | "phone_invoice" | "isp_invoice" | "telecom_invoice" | "energy_invoice" | "water_invoice" | "energy_contract" | "appliance_invoice" | "web_service_invoice" | "restaurant_invoice" | "grocery_invoice" | "other_invoice" | "tax_certificate" | "tax_return" | "tax_notice" | "tax_timetable" | "other_tax_document" | "bank_details" | "bank_statement" | "loan_agreement" | "other_bank_document" | "receipt" | "payment_proof_family_allowance" | "school_attendance_certificate" | "school_insurance_certificate" | "unfit_for_habitation_declaration" | "accommodation_proof" | "citizen_registration_certificate" | "personal_sporting_licence" | "other_activity_document" | "real_estate_insurance" | "person_insurance" | "other_administrative_document" | "expense_claim" | "fine" | "condition_report" | "note_identity_document" | "note_family_document" | "note_work_document" | "note_health_document" | "note_house_document" | "note_transport_document" | "note_activity_document" | "note_finance" | "note_invoice" | "note_other"; +export type ItemsLabels = "resume" | "identity_photo" | "national_id_card" | "passport" | "residence_permit" | "family_record_book" | "birth_certificate" | "driver_license" | "other_identity_document" | "wedding" | "pacs" | "divorce" | "large_family_card" | "caf" | "other_family_document" | "diploma" | "work_contract" | "pay_sheet" | "fidelity_card" | "single_parent_benefit" | "transport_card" | "electoral_card" | "employment_center_certificate" | "unemployment_benefit" | "pension" | "other_revenue" | "gradebook" | "student_card" | "motivation_letter" | "other_work_document" | "health_book" | "health_certificate" | "pregnancy_medical_certificate" | "work_disability_recognition" | "national_health_insurance_card" | "national_health_insurance_right_certificate" | "health_insurance_card" | "prescription" | "health_invoice" | "other_health_document" | "vehicle_registration" | "car_insurance" | "mechanic_invoice" | "transport_invoice" | "other_transport_document" | "house_sale_agreeement" | "real_estate_tax" | "building_permit" | "technical_diagnostic_record" | "lease" | "rent_receipt" | "house_insurance" | "work_quote" | "work_invoice" | "other_house_document" | "phone_invoice" | "isp_invoice" | "telecom_invoice" | "energy_invoice" | "water_invoice" | "energy_contract" | "appliance_invoice" | "web_service_invoice" | "restaurant_invoice" | "grocery_invoice" | "other_invoice" | "tax_certificate" | "tax_return" | "tax_notice" | "tax_timetable" | "other_tax_document" | "bank_details" | "bank_statement" | "loan_agreement" | "other_bank_document" | "receipt" | "payment_proof_family_allowance" | "school_attendance_certificate" | "school_insurance_certificate" | "unfit_for_habitation_declaration" | "accommodation_proof" | "citizen_registration_certificate" | "personal_sporting_licence" | "other_activity_document" | "real_estate_insurance" | "person_insurance" | "other_administrative_document" | "expense_claim" | "fine" | "condition_report" | "note_identity_document" | "note_family_document" | "note_work_document" | "note_health_document" | "note_house_document" | "note_transport_document" | "note_activity_document" | "note_finance" | "note_invoice" | "note_other"; export type iconPeopleLabels = "resume" | "national_id_card" | "other_identity_document" | "work_disability_recognition"; export type iconWorkLabels = "work_contract" | "employment_center_certificate" | "unemployment_benefit" | "student_card" | "motivation_letter" | "other_work_document" | "school_attendance_certificate" | "school_insurance_certificate"; export type iconJusticeLabels = "fine"; export type iconGlobeLabels = "residence_permit"; export type iconPlaneLabels = "passport"; -export type iconLibraryLabels = "library_card"; export type iconImageLabels = "identity_photo"; export type iconShopLabels = "fidelity_card" | "grocery_invoice"; export type iconGouvLabels = "electoral_card"; @@ -1386,7 +1385,7 @@ export type iconFitnessLabels = "personal_sporting_licence" | "other_activity_do export type iconHeartLabels = "health_book" | "health_certificate" | "pregnancy_medical_certificate" | "national_health_insurance_card" | "national_health_insurance_right_certificate" | "health_insurance_card" | "prescription" | "health_invoice" | "other_health_document" | "person_insurance"; export type iconExchangeLabels = "bank_statement"; export type iconFileTypeNoteLabels = "note_identity_document" | "note_family_document" | "note_work_document" | "note_health_document" | "note_house_document" | "note_transport_document" | "note_activity_document" | "note_finance" | "note_invoice"; -export type IconQualificationLabels = "image" | "work" | "car" | "telecom" | "water" | "bank" | "child" | "bank-check" | "benefit" | "bill" | "email" | "euro" | "exchange" | "file-type-note" | "fitness" | "globe" | "gouv" | "heart" | "home" | "justice" | "laudry" | "library" | "lightning" | "people" | "plane" | "remboursement" | "restaurant" | "school" | "shop" | "team" | "telephone"; +export type IconQualificationLabels = "image" | "work" | "car" | "telecom" | "water" | "bank" | "child" | "bank-check" | "benefit" | "bill" | "email" | "euro" | "exchange" | "file-type-note" | "fitness" | "globe" | "gouv" | "heart" | "home" | "justice" | "laudry" | "lightning" | "people" | "plane" | "remboursement" | "restaurant" | "school" | "shop" | "team" | "telephone"; export type iconLabelPairs = { icon: IconQualificationLabels; labels: Array;