diff --git a/docs/api/cozy-client/modules/models.document.themes.md b/docs/api/cozy-client/modules/models.document.themes.md index 37d6b9a1d..330778e29 100644 --- a/docs/api/cozy-client/modules/models.document.themes.md +++ b/docs/api/cozy-client/modules/models.document.themes.md @@ -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) diff --git a/packages/cozy-client/src/assets/qualifications.json b/packages/cozy-client/src/assets/qualifications.json index 6eecea663..9fea79c47 100644 --- a/packages/cozy-client/src/assets/qualifications.json +++ b/packages/cozy-client/src/assets/qualifications.json @@ -49,7 +49,8 @@ }, { "label": "other_identity_document", - "purpose": "attestation" + "purpose": "attestation", + "subjects": ["identity"] }, { "label": "wedding", @@ -86,7 +87,8 @@ "subjects": ["right"] }, { - "label": "other_family_document" + "label": "other_family_document", + "subjects": ["family"] }, { "label": "diploma", @@ -133,7 +135,7 @@ "label": "student_card", "purpose": "attestation", "sourceCategory": "education", - "subjects": ["identity"] + "subjects": ["identity", "right", "employment", "education"] }, { "label": "resume", @@ -146,39 +148,59 @@ "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", @@ -186,14 +208,15 @@ "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", @@ -213,7 +236,8 @@ "sourceCategory": "transport" }, { - "label": "other_transport_document" + "label": "other_transport_document", + "sourceCategory": "transport" }, { "label": "house_sale_agreeement", @@ -266,7 +290,8 @@ "subjects": ["building", "house"] }, { - "label": "other_house_document" + "label": "other_house_document", + "subjects": ["house"] }, { "label": "phone_invoice", @@ -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", @@ -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" ] } diff --git a/packages/cozy-client/src/models/document/documentTypeData.js b/packages/cozy-client/src/models/document/documentTypeData.js index 2190eee1a..497bbd95e 100644 --- a/packages/cozy-client/src/models/document/documentTypeData.js +++ b/packages/cozy-client/src/models/document/documentTypeData.js @@ -42,6 +42,8 @@ const identityLabels = [ 'family_record_book', 'birth_certificate', 'driver_license', + 'citizen_registration_certificate', + 'personal_sporting_licence', 'other_identity_document' ] @@ -56,6 +58,7 @@ const familyLabels = [ 'divorce', 'large_family_card', 'caf', + 'payment_proof_family_allowance', 'other_family_document' ] @@ -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' @@ -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' ] /** @@ -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', @@ -132,6 +143,7 @@ const financeLabels = [ 'bank_details', 'bank_statement', 'loan_agreement', + 'payment_proof_family_allowance', 'other_bank_document' ] diff --git a/packages/cozy-client/src/models/document/locales/en.json b/packages/cozy-client/src/models/document/locales/en.json index 4f060e12f..48b05724d 100644 --- a/packages/cozy-client/src/models/document/locales/en.json +++ b/packages/cozy-client/src/models/document/locales/en.json @@ -19,7 +19,7 @@ "items": { "identity": "Identity", "family": "Family", - "work_study": "Work", + "work_study": "Work & Study", "health": "Health", "home": "Home", "transport": "Transport", @@ -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", @@ -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", @@ -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", @@ -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", diff --git a/packages/cozy-client/src/models/document/locales/fr.json b/packages/cozy-client/src/models/document/locales/fr.json index f7ccce33e..f4b482039 100644 --- a/packages/cozy-client/src/models/document/locales/fr.json +++ b/packages/cozy-client/src/models/document/locales/fr.json @@ -19,7 +19,7 @@ "items": { "identity": "Identité", "family": "Famille", - "work_study": "Travail", + "work_study": "Travail & Études", "health": "Santé", "home": "Logement", "transport": "Transport", @@ -31,13 +31,15 @@ "residence_permit": "Titre de séjour", "family_record_book": "Livret de famille", "birth_certificate": "Certificat de naissance", + "citizen_registration_certificate": "Attestation de recensement citoyen", "driver_license": "Permis", "other_identity_document": "Autre identité", "wedding": "Contrat de mariage", "pacs": "Attestation de PACS", "divorce": "Attestation de divorce", "large_family_card": "Carte famille nombreuse", - "caf": "CAF", + "caf": "Attestation de quotient familial (CAF)", + "payment_proof_family_allowance": "Attestation de paiement CAF", "other_family_document": "Autre document de famille", "diploma": "Diplôme", "work_contract": "Contrat de travail", @@ -47,12 +49,16 @@ "other_revenue": "Autres revenues", "gradebook": "Bulletin de notes", "student_card": "Carte d'étudiant", + "school_attendance_certificate": "Certificat de scolarité", "resume": "CV", "motivation_letter": "Lettre de motivation", "other_work_document": "Autre document de travail", "health_book": "Carnet de santé", "health_certificate": "Certificat de santé/vaccination", + "work_disability_recognition": "Reconnaissance de handicap - RQTH", + "pregnancy_medical_certificate": "Certificat de grossesse", "national_health_insurance_card": "Carte vitale", + "national_health_insurance_right_certificate": "Attestation de droits de l'Assurance Maladie (vitale)", "health_insurance_card": "Carte de mutuelle", "prescription": "Ordonnance", "health_invoice": "Facture médicale", @@ -74,27 +80,30 @@ "building_permit": "Permis de construire", "technical_diagnostic_record": "Dossier de diagnostic technique", "lease": "Bail", + "unfit_for_habitation_declaration": "Arrêté d'insalubrité", "house_insurance": "Assurance logement", "rent_receipt": "Quittance de loyer", + "accommodation_proof": "Attestation d'hébergement", "work_quote": "Devis de travaux", "work_invoice": "Facture de travaux", "other_house_document": "Autre document de logement", - "tax_return": "Déclaration d'impôt", - "tax_notice": "Avis d'imposition", - "tax_timetable": "Echéancier d'imposition", + "tax_return": "Impôts - Déclaration de revenus", + "tax_notice": "Impôts - Avis d'imposition", + "tax_timetable": "Impôts - Echéancier", "receipt": "Accusé de réception", - "other_tax_document": "Autre document d'impôt", + "other_tax_document": "Impôts - Autre document", "bank_details": "IBAN", "bank_statement": "Relevé de compte", "loan_agreement": "Contrat de prêt", "other_bank_document": "Autre document bancaire", "invoices": "Factures", + "personal_sporting_licence": "Licences sportives", "other_invoice": "Autre facture" }, "themes": { "identity": "Identité", "family": "Famille", - "work_study": "Travail", + "work_study": "Travail & Études", "health": "Santé", "home": "Logement", "transport": "Transport", diff --git a/packages/cozy-client/src/types.js b/packages/cozy-client/src/types.js index 17c8aea18..3ea378793 100644 --- a/packages/cozy-client/src/types.js +++ b/packages/cozy-client/src/types.js @@ -269,19 +269,19 @@ import { QueryDefinition } from './queries/dsl' */ /** - * @typedef {'identity_photo'|'national_id_card'|'passport'|'residence_permit'|'family_record_book'|'birth_certificate'|'driver_license'|'other_identity_document'} IdentityLabel + * @typedef {'identity_photo'|'national_id_card'|'passport'|'residence_permit'|'family_record_book'|'birth_certificate'|'driver_license'|'other_identity_document'|'citizen_registration_certificate'|'personal_sporting_licence'} IdentityLabel * - * @typedef {'family_record_book'|'birth_certificate'|'wedding'|'pacs'|'divorce'|'large_family_card'|'caf'|'other_family_document'} FamilyLabel + * @typedef {'family_record_book'|'birth_certificate'|'wedding'|'pacs'|'divorce'|'large_family_card'|'caf'|'other_family_document'|'payment_proof_family_allowance'} FamilyLabel * - * @typedef {'diploma'|'work_contract'|'pay_sheet'|'unemployment_benefit'|'pension'|'other_revenue'|'gradebook'|'student_card'|'resume'|'motivation_letter'|'other_work_document'} WorkStudyLabels + * @typedef {'diploma'|'work_contract'|'pay_sheet'|'unemployment_benefit'|'pension'|'other_revenue'|'gradebook'|'student_card'|'resume'|'motivation_letter'|'other_work_document'|'work_disability_recognition'|'school_attendance_certificate'} WorkStudyLabels * - * @typedef {'health_certificate'|'health_book'|'national_health_insurance_card'|'health_insurance_card'|'prescription'|'health_invoice'} HealthLabels + * @typedef {'health_certificate'|'health_book'|'national_health_insurance_card'|'health_insurance_card'|'prescription'|'health_invoice'|'national_health_insurance_right_certificate'|'work_disability_recognition'|'pregnancy_medical_certificate'|'other_health_document'} HealthLabels * - * @typedef {'phone_invoice'|'isp_invoice'|'telecom_invoice'|'energy_invoice'|'water_invoice'|'house_sale_agreeement'|'building_permit'|'technical_diagnostic_record'|'lease'|'rent_receipt'|'house_insurance'|'work_quote'|'work_invoice'|'other_house_document'} HomeLabels + * @typedef {'phone_invoice'|'isp_invoice'|'telecom_invoice'|'energy_invoice'|'water_invoice'|'house_sale_agreeement'|'building_permit'|'technical_diagnostic_record'|'lease'|'rent_receipt'|'house_insurance'|'work_quote'|'work_invoice'|'other_house_document'|'unfit_for_habitation_declaration'|'accommodation_proof'|'house_insurance'} HomeLabels * * @typedef {'driver_license'|'vehicle_registration'|'car_insurance'|'mechanic_invoice'|'transport_invoice'|'other_transport_document'} TransportLabels * - * @typedef {'tax_return'|'tax_notice'|'tax_timetable'|'receipt'|'other_tax_document'|'bank_details'|'bank_statement'|'loan_agreement'|'other_bank_document'} FinanceLabels + * @typedef {'tax_return'|'tax_notice'|'tax_timetable'|'receipt'|'other_tax_document'|'bank_details'|'bank_statement'|'loan_agreement'|'other_bank_document'|'payment_proof_family_allowance'} FinanceLabels * * @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'} InvoiceLabels * diff --git a/packages/cozy-client/types/types.d.ts b/packages/cozy-client/types/types.d.ts index 4b39f6ad2..d97b22c47 100644 --- a/packages/cozy-client/types/types.d.ts +++ b/packages/cozy-client/types/types.d.ts @@ -315,13 +315,13 @@ export type QualificationAttributes = { sourceSubCategory?: string; subjects?: Array; }; -export type IdentityLabel = "identity_photo" | "national_id_card" | "passport" | "residence_permit" | "family_record_book" | "birth_certificate" | "driver_license" | "other_identity_document"; -export type FamilyLabel = "family_record_book" | "birth_certificate" | "wedding" | "pacs" | "divorce" | "large_family_card" | "caf" | "other_family_document"; -export type WorkStudyLabels = "resume" | "diploma" | "work_contract" | "pay_sheet" | "unemployment_benefit" | "pension" | "other_revenue" | "gradebook" | "student_card" | "motivation_letter" | "other_work_document"; -export type HealthLabels = "health_certificate" | "health_book" | "national_health_insurance_card" | "health_insurance_card" | "prescription" | "health_invoice"; -export type HomeLabels = "phone_invoice" | "isp_invoice" | "telecom_invoice" | "energy_invoice" | "water_invoice" | "house_sale_agreeement" | "building_permit" | "technical_diagnostic_record" | "lease" | "rent_receipt" | "house_insurance" | "work_quote" | "work_invoice" | "other_house_document"; +export type IdentityLabel = "identity_photo" | "national_id_card" | "passport" | "residence_permit" | "family_record_book" | "birth_certificate" | "driver_license" | "other_identity_document" | "citizen_registration_certificate" | "personal_sporting_licence"; +export type FamilyLabel = "family_record_book" | "birth_certificate" | "wedding" | "pacs" | "divorce" | "large_family_card" | "caf" | "other_family_document" | "payment_proof_family_allowance"; +export type WorkStudyLabels = "resume" | "diploma" | "work_contract" | "pay_sheet" | "unemployment_benefit" | "pension" | "other_revenue" | "gradebook" | "student_card" | "motivation_letter" | "other_work_document" | "work_disability_recognition" | "school_attendance_certificate"; +export type HealthLabels = "work_disability_recognition" | "health_certificate" | "health_book" | "national_health_insurance_card" | "health_insurance_card" | "prescription" | "health_invoice" | "national_health_insurance_right_certificate" | "pregnancy_medical_certificate" | "other_health_document"; +export type HomeLabels = "phone_invoice" | "isp_invoice" | "telecom_invoice" | "energy_invoice" | "water_invoice" | "house_sale_agreeement" | "building_permit" | "technical_diagnostic_record" | "lease" | "rent_receipt" | "house_insurance" | "work_quote" | "work_invoice" | "other_house_document" | "unfit_for_habitation_declaration" | "accommodation_proof"; export type TransportLabels = "driver_license" | "vehicle_registration" | "car_insurance" | "mechanic_invoice" | "transport_invoice" | "other_transport_document"; -export type FinanceLabels = "tax_return" | "tax_notice" | "tax_timetable" | "receipt" | "other_tax_document" | "bank_details" | "bank_statement" | "loan_agreement" | "other_bank_document"; +export type FinanceLabels = "payment_proof_family_allowance" | "tax_return" | "tax_notice" | "tax_timetable" | "receipt" | "other_tax_document" | "bank_details" | "bank_statement" | "loan_agreement" | "other_bank_document"; export type InvoiceLabels = "health_invoice" | "phone_invoice" | "isp_invoice" | "telecom_invoice" | "energy_invoice" | "water_invoice" | "work_invoice" | "transport_invoice" | "appliance_invoice" | "web_service_invoice" | "restaurant_invoice" | "other_invoice"; -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" | "unemployment_benefit" | "pension" | "other_revenue" | "gradebook" | "student_card" | "motivation_letter" | "other_work_document" | "health_certificate" | "health_book" | "national_health_insurance_card" | "health_insurance_card" | "prescription" | "health_invoice" | "phone_invoice" | "isp_invoice" | "telecom_invoice" | "energy_invoice" | "water_invoice" | "house_sale_agreeement" | "building_permit" | "technical_diagnostic_record" | "lease" | "rent_receipt" | "house_insurance" | "work_quote" | "work_invoice" | "other_house_document" | "vehicle_registration" | "car_insurance" | "mechanic_invoice" | "transport_invoice" | "other_transport_document" | "tax_return" | "tax_notice" | "tax_timetable" | "receipt" | "other_tax_document" | "bank_details" | "bank_statement" | "loan_agreement" | "other_bank_document" | "appliance_invoice" | "web_service_invoice" | "restaurant_invoice" | "other_invoice"; +export type ItemsLabels = "resume" | "identity_photo" | "national_id_card" | "passport" | "residence_permit" | "family_record_book" | "birth_certificate" | "driver_license" | "other_identity_document" | "citizen_registration_certificate" | "personal_sporting_licence" | "wedding" | "pacs" | "divorce" | "large_family_card" | "caf" | "other_family_document" | "payment_proof_family_allowance" | "diploma" | "work_contract" | "pay_sheet" | "unemployment_benefit" | "pension" | "other_revenue" | "gradebook" | "student_card" | "motivation_letter" | "other_work_document" | "work_disability_recognition" | "school_attendance_certificate" | "health_certificate" | "health_book" | "national_health_insurance_card" | "health_insurance_card" | "prescription" | "health_invoice" | "national_health_insurance_right_certificate" | "pregnancy_medical_certificate" | "other_health_document" | "phone_invoice" | "isp_invoice" | "telecom_invoice" | "energy_invoice" | "water_invoice" | "house_sale_agreeement" | "building_permit" | "technical_diagnostic_record" | "lease" | "rent_receipt" | "house_insurance" | "work_quote" | "work_invoice" | "other_house_document" | "unfit_for_habitation_declaration" | "accommodation_proof" | "vehicle_registration" | "car_insurance" | "mechanic_invoice" | "transport_invoice" | "other_transport_document" | "tax_return" | "tax_notice" | "tax_timetable" | "receipt" | "other_tax_document" | "bank_details" | "bank_statement" | "loan_agreement" | "other_bank_document" | "appliance_invoice" | "web_service_invoice" | "restaurant_invoice" | "other_invoice"; import { QueryDefinition } from "./queries/dsl";