cozy-client 34.7.3 → 34.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2656,7 +2656,7 @@ var CozyClient = /*#__PURE__*/function () {
2656
2656
  CozyClient.hooks = CozyClient.hooks || {};
2657
2657
  CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
2658
2658
 
2659
- CozyClient.version = "34.7.3";
2659
+ CozyClient.version = "34.9.0";
2660
2660
 
2661
2661
  _microee.default.mixin(CozyClient);
2662
2662
 
@@ -108,6 +108,36 @@
108
108
  "sourceCategory": "employer",
109
109
  "subjects": ["work", "revenues"]
110
110
  },
111
+ {
112
+ "label": "fidelity_card",
113
+ "sourceCategory": "shopping"
114
+ },
115
+ {
116
+ "label": "library_card",
117
+ "sourceCategory": "individual"
118
+ },
119
+ {
120
+ "label": "single_parent_benefit",
121
+ "purpose": "attestation",
122
+ "sourceCategory": "gov",
123
+ "sourceSubCategory": "family",
124
+ "subjects": ["revenues"]
125
+ },
126
+ {
127
+ "label": "transport_card",
128
+ "sourceCategory": "transport",
129
+ "subjects": ["vehicule"]
130
+ },
131
+ {
132
+ "label": "electoral_card",
133
+ "sourceCategory": "gov"
134
+ },
135
+ {
136
+ "label": "employment_center_certificate",
137
+ "purpose": "attestation",
138
+ "sourceCategory": "gov",
139
+ "subjects": ["employment"]
140
+ },
111
141
  {
112
142
  "label": "unemployment_benefit",
113
143
  "purpose": "attestation",
@@ -245,6 +275,13 @@
245
275
  "sourceCategory": "real_estate",
246
276
  "subjects": ["house"]
247
277
  },
278
+ {
279
+ "label": "real_estate_tax",
280
+ "purpose": "invoice",
281
+ "sourceCategory": "gov",
282
+ "sourceSubCategory": "real_estate",
283
+ "subjects": ["tax", "house"]
284
+ },
248
285
  {
249
286
  "label": "building_permit",
250
287
  "purpose": "attestation",
@@ -413,6 +450,12 @@
413
450
  "sourceCategory": "education",
414
451
  "subjects": ["identity", "right", "education"]
415
452
  },
453
+ {
454
+ "label": "school_insurance_certificate",
455
+ "purpose": "attestation",
456
+ "sourceCategory": "education",
457
+ "subjects": ["education", "insurance"]
458
+ },
416
459
  {
417
460
  "label": "unfit_for_habitation_declaration",
418
461
  "purpose": "attestation",
package/dist/helpers.js CHANGED
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.rootCozyUrl = exports.InvalidCozyUrlError = exports.InvalidProtocolError = exports.deconstructCozyWebLinkWithSlug = exports.generateWebLink = exports.dehydrate = void 0;
8
+ exports.rootCozyUrl = exports.InvalidCozyUrlError = exports.InvalidProtocolError = exports.deconstructCozyWebLinkWithSlug = exports.generateWebLink = exports.ensureFirstSlash = exports.dehydrate = void 0;
9
9
 
10
10
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
11
11
 
@@ -92,6 +92,8 @@ var ensureFirstSlash = function ensureFirstSlash(path) {
92
92
  */
93
93
 
94
94
 
95
+ exports.ensureFirstSlash = ensureFirstSlash;
96
+
95
97
  var generateWebLink = function generateWebLink(_ref3) {
96
98
  var cozyUrl = _ref3.cozyUrl,
97
99
  searchParamsOption = _ref3.searchParams,
package/dist/index.js CHANGED
@@ -29,6 +29,7 @@ var _exportNames = {
29
29
  deconstructCozyWebLinkWithSlug: true,
30
30
  dehydrate: true,
31
31
  generateWebLink: true,
32
+ ensureFirstSlash: true,
32
33
  rootCozyUrl: true,
33
34
  InvalidCozyUrlError: true,
34
35
  InvalidProtocolError: true,
@@ -182,6 +183,12 @@ Object.defineProperty(exports, "generateWebLink", {
182
183
  return _helpers2.generateWebLink;
183
184
  }
184
185
  });
186
+ Object.defineProperty(exports, "ensureFirstSlash", {
187
+ enumerable: true,
188
+ get: function get() {
189
+ return _helpers2.ensureFirstSlash;
190
+ }
191
+ });
185
192
  Object.defineProperty(exports, "rootCozyUrl", {
186
193
  enumerable: true,
187
194
  get: function get() {
@@ -25,6 +25,7 @@ var _exportNames = {
25
25
  deconstructCozyWebLinkWithSlug: true,
26
26
  dehydrate: true,
27
27
  generateWebLink: true,
28
+ ensureFirstSlash: true,
28
29
  rootCozyUrl: true,
29
30
  InvalidCozyUrlError: true,
30
31
  InvalidProtocolError: true,
@@ -144,6 +145,12 @@ Object.defineProperty(exports, "generateWebLink", {
144
145
  return _helpers.generateWebLink;
145
146
  }
146
147
  });
148
+ Object.defineProperty(exports, "ensureFirstSlash", {
149
+ enumerable: true,
150
+ get: function get() {
151
+ return _helpers.ensureFirstSlash;
152
+ }
153
+ });
147
154
  Object.defineProperty(exports, "rootCozyUrl", {
148
155
  enumerable: true,
149
156
  get: function get() {
@@ -32,17 +32,17 @@ var buildItemsByLabel = function buildItemsByLabel(labels) {
32
32
  */
33
33
 
34
34
 
35
- var identityLabels = ['identity_photo', 'national_id_card', 'passport', 'residence_permit', 'family_record_book', 'birth_certificate', 'driver_license', 'citizen_registration_certificate', 'other_identity_document'];
35
+ var identityLabels = ['identity_photo', 'national_id_card', 'passport', 'residence_permit', 'electoral_card', 'family_record_book', 'birth_certificate', 'driver_license', 'citizen_registration_certificate', 'other_identity_document'];
36
36
  /**
37
37
  * @type {Array<FamilyLabel>}
38
38
  */
39
39
 
40
- var familyLabels = ['family_record_book', 'birth_certificate', 'wedding', 'pacs', 'divorce', 'large_family_card', 'caf', 'payment_proof_family_allowance', 'other_family_document'];
40
+ var familyLabels = ['family_record_book', 'birth_certificate', 'wedding', 'pacs', 'single_parent_benefit', 'divorce', 'large_family_card', 'caf', 'payment_proof_family_allowance', 'other_family_document'];
41
41
  /**
42
42
  * @type {Array<WorkStudyLabels>}
43
43
  */
44
44
 
45
- var workStudyLabels = ['diploma', 'work_contract', 'pay_sheet', 'unemployment_benefit', 'pension', 'work_disability_recognition', 'gradebook', 'student_card', 'school_attendance_certificate', 'resume', 'motivation_letter', 'other_work_document'];
45
+ var workStudyLabels = ['diploma', 'work_contract', 'pay_sheet', 'unemployment_benefit', 'employment_center_certificate', 'pension', 'work_disability_recognition', 'gradebook', 'student_card', 'school_attendance_certificate', 'resume', 'motivation_letter', 'other_work_document'];
46
46
  /**
47
47
  * @type {Array<HealthLabels>}
48
48
  */
@@ -52,22 +52,22 @@ var healthLabels = ['health_certificate', 'health_book', 'national_health_insura
52
52
  * @type {Array<HomeLabels>}
53
53
  */
54
54
 
55
- var homeLabels = ['phone_invoice', 'isp_invoice', 'telecom_invoice', 'energy_invoice', 'water_invoice', 'other_invoice', 'work_invoice', 'house_sale_agreeement', 'building_permit', 'technical_diagnostic_record', 'unfit_for_habitation_declaration', 'lease', 'rent_receipt', 'accommodation_proof', 'house_insurance', 'work_quote', 'other_house_document'];
55
+ var homeLabels = ['phone_invoice', 'isp_invoice', 'telecom_invoice', 'energy_invoice', 'water_invoice', 'other_invoice', 'work_invoice', 'house_sale_agreeement', 'building_permit', 'technical_diagnostic_record', 'unfit_for_habitation_declaration', 'lease', 'rent_receipt', 'accommodation_proof', 'house_insurance', 'school_insurance_certificate', 'work_quote', 'other_house_document'];
56
56
  /**
57
57
  * @type {Array<TransportLabels>}
58
58
  */
59
59
 
60
- var transportLabels = ['driver_license', 'vehicle_registration', 'car_insurance', 'mechanic_invoice', 'transport_invoice', 'other_transport_document'];
60
+ var transportLabels = ['driver_license', 'vehicle_registration', 'car_insurance', 'transport_card', 'mechanic_invoice', 'transport_invoice', 'other_transport_document'];
61
61
  /**
62
62
  * @type {Array<ActivityLabels>}
63
63
  */
64
64
 
65
- var activityLabels = ['personal_sporting_licence', 'other_activity_document'];
65
+ var activityLabels = ['personal_sporting_licence', 'fidelity_card', 'library_card', 'other_activity_document'];
66
66
  /**
67
67
  * @type {Array<FinanceLabels>}
68
68
  */
69
69
 
70
- var financeLabels = ['tax_return', 'tax_notice', 'tax_timetable', 'pay_sheet', 'receipt', 'other_tax_document', 'bank_details', 'bank_statement', 'loan_agreement', 'payment_proof_family_allowance', 'other_bank_document', 'other_revenue'];
70
+ var financeLabels = ['tax_return', 'tax_notice', 'tax_timetable', 'real_estate_tax', 'pay_sheet', 'receipt', 'single_parent_benefit', 'other_tax_document', 'bank_details', 'bank_statement', 'loan_agreement', 'payment_proof_family_allowance', 'other_bank_document', 'other_revenue'];
71
71
  /**
72
72
  * @type {Array<InvoiceLabels>}
73
73
  */
@@ -20,104 +20,112 @@
20
20
  },
21
21
 
22
22
  "items": {
23
- "identity": "Identity",
24
- "family": "Family",
25
- "work_study": "Work & Study",
26
- "health": "Health",
27
- "home": "Home",
28
- "transport": "Transport",
29
- "invoice": "Invoice",
30
- "others": "Others",
31
- "identity_photo": "Identity photo",
32
- "national_id_card": "ID card",
33
- "passport": "Passeport",
34
- "residence_permit": "Residence permit",
35
- "family_record_book": "Family record book",
23
+ "accommodation_proof": "Proof of accommodation",
24
+ "appliance_invoice": "Appliance invoice",
25
+ "bank_details": "IBAN",
26
+ "bank_statement": "Bank statement",
36
27
  "birth_certificate": "Birth certificate",
37
- "citizen_registration_certificate": "Certificate of citizen registration",
38
- "driver_license": "Driving license",
39
- "other_identity_document": "Other document of identity",
40
- "wedding": "Wedding contract",
41
- "pacs": "Civil union",
42
- "divorce": "Divorce",
43
- "large_family_card": " Large Family Card",
28
+ "building_permit": "Building permit",
44
29
  "caf": "Social benefit rate",
45
- "payment_proof_family_allowance": "family allowance payment proof",
46
- "other_family_document": "Other family document",
30
+ "car_insurance": "Car insurance certificate",
31
+ "citizen_registration_certificate": "Certificate of citizen registration",
47
32
  "diploma": "Diploma",
48
- "work_contract": "Work contract",
33
+ "divorce": "Divorce",
34
+ "driver_license": "Driving license",
35
+ "electoral_card": "Electoral card",
36
+ "employment_center_certificate": "Employment center certificate",
49
37
  "energy_contract": "Energy provider contract",
50
- "pay_sheet": "Pay sheet",
51
- "unemployment_benefit": "Unemployment benefit",
52
- "pension": "Pension",
53
- "other_revenue": "Other revenues",
38
+ "energy_invoice": "Energy invoice",
39
+ "family_record_book": "Family record book",
40
+ "family": "Family",
41
+ "fidelity_card": "Fidelity card",
54
42
  "gradebook": "Gradebook",
55
- "student_card": "Student card",
56
- "school_attendance_certificate": "Certificate of school attendance",
57
- "resume": "Resume",
58
- "motivation_letter": "Motivation letter",
59
- "other_work_document": "Other work document",
43
+ "grocery_invoice": "Grocery invoice",
60
44
  "health_book": "Health book",
61
45
  "health_certificate": "Health/Vaccination certificate",
62
- "work_disability_recognition": "Recognition of disability",
63
- "pregnancy_medical_certificate": "Certificate of pregnancy",
64
- "national_health_insurance_card": "National health insurance card",
65
- "national_health_insurance_right_certificate": "National health insurance right certificate",
66
46
  "health_insurance_card": "Insurance card",
67
- "prescription": "Prescription",
68
47
  "health_invoice": "Health invoice",
69
- "other_health_document": "Other health document",
70
- "vehicle_registration": "Vehicle registration",
71
- "car_insurance": "Car insurance certificate",
48
+ "health": "Health",
49
+ "home": "Home",
50
+ "house_insurance": "Home insurance",
51
+ "house_sale_agreeement": "House sale agreement",
52
+ "identity_photo": "Identity photo",
53
+ "identity": "Identity",
54
+ "invoice": "Invoice",
55
+ "invoices": "Invoices",
56
+ "isp_invoice": "ISP invoice",
57
+ "large_family_card": " Large Family Card",
58
+ "lease": "Lease",
59
+ "library_card": "library card",
60
+ "loan_agreement": "Loan agreement",
72
61
  "mechanic_invoice": "Repair bill",
73
- "transport_invoice": "Transport invoice",
62
+ "motivation_letter": "Motivation letter",
63
+ "national_health_insurance_card": "National health insurance card",
64
+ "national_health_insurance_right_certificate": "National health insurance right certificate",
65
+ "national_id_card": "ID card",
66
+ "other_activity_document": "Other sports document",
67
+ "other_bank_document": "Other banking document",
68
+ "other_family_document": "Other family document",
69
+ "other_health_document": "Other health document",
70
+ "other_house_document": "Other house document",
71
+ "other_identity_document": "Other document of identity",
72
+ "other_invoice": "Other invoice",
73
+ "other_revenue": "Other revenues",
74
+ "other_tax_document": "Other tax document",
74
75
  "other_transport_document": "Other transport document",
76
+ "other_work_document": "Other work document",
77
+ "others": "Others",
78
+ "pacs": "Civil union",
79
+ "passport": "Passeport",
80
+ "pay_sheet": "Pay sheet",
81
+ "payment_proof_family_allowance": "family allowance payment proof",
82
+ "pension": "Pension",
83
+ "personal_sporting_licence": "Sporting licence",
75
84
  "phone_invoice": "Phone invoice",
76
- "isp_invoice": "ISP invoice",
77
- "telecom_invoice": "Telecom invoice",
78
- "energy_invoice": "Energy invoice",
79
- "water_invoice": "Water invoice",
80
- "web_service_invoice": "Web service invoice",
81
- "appliance_invoice": "Appliance invoice",
85
+ "pregnancy_medical_certificate": "Certificate of pregnancy",
86
+ "prescription": "Prescription",
87
+ "real_estate_tax": "Real estate tax",
88
+ "receipt": "Receipt",
89
+ "rent_receipt": "Rent receipt",
90
+ "residence_permit": "Residence permit",
82
91
  "restaurant_invoice": "Restaurant invoice",
83
- "grocery_invoice": "Grocery invoice",
84
- "house_sale_agreeement": "House sale agreement",
85
- "building_permit": "Building permit",
92
+ "resume": "Resume",
93
+ "school_attendance_certificate": "Certificate of school attendance",
94
+ "school_insurance_certificate": "Certificate of school insurance",
95
+ "single_parent_benefit": "Single parent benefit",
96
+ "student_card": "Student card",
97
+ "tax_notice": "Tax notice",
98
+ "tax_return": "Tax return",
99
+ "tax_timetable": "Payment Plans Installment Agreements",
86
100
  "technical_diagnostic_record": "Technical diagnostic record",
87
- "lease": "Lease",
88
- "house_insurance": "Home insurance",
101
+ "telecom_invoice": "Telecom invoice",
102
+ "transport_card": "Transport card",
103
+ "transport_invoice": "Transport invoice",
104
+ "transport": "Transport",
105
+ "unemployment_benefit": "Unemployment benefit",
89
106
  "unfit_for_habitation_declaration": "Declaration of unfit for habitation",
90
- "rent_receipt": "Rent receipt",
91
- "accommodation_proof": "Proof of accommodation",
92
- "work_quote": "Work quote",
107
+ "vehicle_registration": "Vehicle registration",
108
+ "water_invoice": "Water invoice",
109
+ "web_service_invoice": "Web service invoice",
110
+ "wedding": "Wedding contract",
111
+ "work_contract": "Work contract",
112
+ "work_disability_recognition": "Recognition of disability",
93
113
  "work_invoice": "Work invoice",
94
- "other_house_document": "Other house document",
95
- "tax_return": "Tax return",
96
- "tax_notice": "Tax notice",
97
- "tax_timetable": "Payment Plans Installment Agreements",
98
- "receipt": "Receipt",
99
- "other_tax_document": "Other tax document",
100
- "bank_details": "IBAN",
101
- "bank_statement": "Bank statement",
102
- "loan_agreement": "Loan agreement",
103
- "other_bank_document": "Other banking document",
104
- "invoices": "Invoices",
105
- "personal_sporting_licence": "Sporting licence",
106
- "other_invoice": "Other invoice",
107
- "other_activity_document": "Other sports document"
114
+ "work_quote": "Work quote",
115
+ "work_study": "Work & Study"
108
116
  },
109
117
  "themes": {
110
- "identity": "Identity",
118
+ "activity": "Activities",
111
119
  "family": "Family",
112
- "work_study": "Work & Study",
120
+ "finance": "Finance",
113
121
  "health": "Health",
114
122
  "home": "Home",
115
- "transport": "Transport",
123
+ "identity": "Identity",
116
124
  "invoice": "Invoice",
117
125
  "others": "Others",
126
+ "transport": "Transport",
118
127
  "undefined": "Undefined",
119
- "finance": "Finance",
120
- "activity": "Activities"
128
+ "work_study": "Work & Study"
121
129
  }
122
130
  }
123
131
  }
@@ -20,104 +20,112 @@
20
20
  },
21
21
 
22
22
  "items": {
23
- "identity": "Identité",
24
- "family": "Famille",
25
- "work_study": "Travail & Études",
26
- "health": "Santé",
27
- "home": "Logement",
28
- "transport": "Transport",
29
- "invoice": "Factures",
30
- "others": "Autres",
31
- "identity_photo": "Photo d'identité",
32
- "national_id_card": "Carte d'identité",
33
- "passport": "Passeport",
34
- "residence_permit": "Titre de séjour",
35
- "family_record_book": "Livret de famille",
23
+ "accommodation_proof": "Attestation d'hébergement",
24
+ "appliance_invoice": "Facture d'électroménager",
25
+ "bank_details": "IBAN",
26
+ "bank_statement": "Relevé de compte",
36
27
  "birth_certificate": "Certificat de naissance",
37
- "citizen_registration_certificate": "Attestation de recensement citoyen",
38
- "driver_license": "Permis",
39
- "other_identity_document": "Autre document d'identité",
40
- "wedding": "Contrat de mariage",
41
- "pacs": "Attestation de PACS",
42
- "divorce": "Attestation de divorce",
43
- "large_family_card": "Carte famille nombreuse",
28
+ "building_permit": "Permis de construire",
44
29
  "caf": "Attestation de quotient familial (CAF)",
45
- "payment_proof_family_allowance": "Attestation de paiement CAF",
46
- "other_family_document": "Autre document de famille",
30
+ "car_insurance": "Attestation d'assurance auto",
31
+ "citizen_registration_certificate": "Attestation de recensement citoyen",
47
32
  "diploma": "Diplôme",
48
- "work_contract": "Contrat de travail",
33
+ "divorce": "Attestation de divorce",
34
+ "driver_license": "Permis",
35
+ "electoral_card": "Carte électorale",
36
+ "employment_center_certificate": "Attestation de Pôle emploi",
49
37
  "energy_contract": "Contrat de fournisseur d'énergies",
50
- "pay_sheet": "Fiche de paie",
51
- "unemployment_benefit": "Allocations chômage",
52
- "pension": "Retraite",
53
- "other_revenue": "Autres revenus",
38
+ "energy_invoice": "Facture d'énergie",
39
+ "family_record_book": "Livret de famille",
40
+ "family": "Famille",
41
+ "fidelity_card": "Carte de fidélité",
54
42
  "gradebook": "Bulletin de notes",
55
- "student_card": "Carte d'étudiant",
56
- "school_attendance_certificate": "Certificat de scolarité",
57
- "resume": "CV",
58
- "motivation_letter": "Lettre de motivation",
59
- "other_work_document": "Autre document de travail",
43
+ "grocery_invoice": "Facture de courses",
60
44
  "health_book": "Carnet de santé",
61
45
  "health_certificate": "Certificat de santé/vaccination",
62
- "work_disability_recognition": "Reconnaissance de handicap - RQTH",
63
- "pregnancy_medical_certificate": "Certificat de grossesse",
64
- "national_health_insurance_card": "Carte vitale",
65
- "national_health_insurance_right_certificate": "Attestation de droits de l'Assurance Maladie (vitale)",
66
46
  "health_insurance_card": "Carte de mutuelle",
67
- "prescription": "Ordonnance",
68
47
  "health_invoice": "Facture médicale",
69
- "other_health_document": "Autre document de santé",
70
- "vehicle_registration": "Carte grise",
71
- "car_insurance": "Attestation d'assurance auto",
48
+ "health": "Santé",
49
+ "home": "Logement",
50
+ "house_insurance": "Assurance logement",
51
+ "house_sale_agreeement": "Compromis de vente",
52
+ "identity_photo": "Photo d'identité",
53
+ "identity": "Identité",
54
+ "invoice": "Factures",
55
+ "invoices": "Factures",
56
+ "isp_invoice": "Facture d'internet",
57
+ "large_family_card": "Carte famille nombreuse",
58
+ "lease": "Bail",
59
+ "library_card": "Carte de bibliothèque",
60
+ "loan_agreement": "Contrat de prêt",
72
61
  "mechanic_invoice": "Facture de réparation",
73
- "transport_invoice": "Facture de transport",
62
+ "motivation_letter": "Lettre de motivation",
63
+ "national_health_insurance_card": "Carte vitale",
64
+ "national_health_insurance_right_certificate": "Attestation de droits de l'Assurance Maladie (vitale)",
65
+ "national_id_card": "Carte d'identité",
66
+ "other_activity_document": "Autre document sportif",
67
+ "other_bank_document": "Autre document bancaire",
68
+ "other_family_document": "Autre document de famille",
69
+ "other_health_document": "Autre document de santé",
70
+ "other_house_document": "Autre document de logement",
71
+ "other_identity_document": "Autre document d'identité",
72
+ "other_invoice": "Autre facture",
73
+ "other_revenue": "Autres revenus",
74
+ "other_tax_document": "Impôts - Autre document",
74
75
  "other_transport_document": "Autre document de transport",
76
+ "other_work_document": "Autre document de travail",
77
+ "others": "Autres",
78
+ "pacs": "Attestation de PACS",
79
+ "passport": "Passeport",
80
+ "pay_sheet": "Fiche de paie",
81
+ "payment_proof_family_allowance": "Attestation de paiement CAF",
82
+ "pension": "Retraite",
83
+ "personal_sporting_licence": "Licences sportives",
75
84
  "phone_invoice": "Facture de téléphone",
76
- "isp_invoice": "Facture d'internet",
77
- "telecom_invoice": "Facture de télécom",
78
- "energy_invoice": "Facture d'énergie",
79
- "water_invoice": "Facture d'eau",
80
- "web_service_invoice": "Facture de service web",
81
- "appliance_invoice": "Facture d'électroménager",
85
+ "pregnancy_medical_certificate": "Certificat de grossesse",
86
+ "prescription": "Ordonnance",
87
+ "real_estate_tax": "Taxe foncière",
88
+ "receipt": "Accusé de réception",
89
+ "rent_receipt": "Quittance de loyer",
90
+ "residence_permit": "Titre de séjour",
82
91
  "restaurant_invoice": "Facture de restaurant",
83
- "grocery_invoice": "Facture de courses",
84
- "house_sale_agreeement": "Compromis de vente",
85
- "building_permit": "Permis de construire",
92
+ "resume": "CV",
93
+ "school_attendance_certificate": "Certificat de scolarité",
94
+ "school_insurance_certificate": "Attestation d'assurance scolaire",
95
+ "single_parent_benefit": "Allocation parent isolé",
96
+ "student_card": "Carte d'étudiant",
97
+ "tax_notice": "Impôts - Avis d'imposition",
98
+ "tax_return": "Impôts - Déclaration de revenus",
99
+ "tax_timetable": "Impôts - Echéancier",
86
100
  "technical_diagnostic_record": "Dossier de diagnostic technique",
87
- "lease": "Bail",
101
+ "telecom_invoice": "Facture de télécom",
102
+ "transport_card": "Carte de transport",
103
+ "transport_invoice": "Facture de transport",
104
+ "transport": "Transport",
105
+ "unemployment_benefit": "Allocations chômage",
88
106
  "unfit_for_habitation_declaration": "Arrêté d'insalubrité",
89
- "house_insurance": "Assurance logement",
90
- "rent_receipt": "Quittance de loyer",
91
- "accommodation_proof": "Attestation d'hébergement",
92
- "work_quote": "Devis de travaux",
107
+ "vehicle_registration": "Carte grise",
108
+ "water_invoice": "Facture d'eau",
109
+ "web_service_invoice": "Facture de service web",
110
+ "wedding": "Contrat de mariage",
111
+ "work_contract": "Contrat de travail",
112
+ "work_disability_recognition": "Reconnaissance de handicap - RQTH",
93
113
  "work_invoice": "Facture de travaux",
94
- "other_house_document": "Autre document de logement",
95
- "tax_return": "Impôts - Déclaration de revenus",
96
- "tax_notice": "Impôts - Avis d'imposition",
97
- "tax_timetable": "Impôts - Echéancier",
98
- "receipt": "Accusé de réception",
99
- "other_tax_document": "Impôts - Autre document",
100
- "bank_details": "IBAN",
101
- "bank_statement": "Relevé de compte",
102
- "loan_agreement": "Contrat de prêt",
103
- "other_bank_document": "Autre document bancaire",
104
- "invoices": "Factures",
105
- "personal_sporting_licence": "Licences sportives",
106
- "other_invoice": "Autre facture",
107
- "other_activity_document": "Autre document sportif"
114
+ "work_quote": "Devis de travaux",
115
+ "work_study": "Travail & Études"
108
116
  },
109
117
  "themes": {
110
- "identity": "Identité",
118
+ "activity": "Activités & loisirs",
111
119
  "family": "Famille",
112
- "work_study": "Travail & Études",
120
+ "finance": "Finances",
113
121
  "health": "Santé",
114
122
  "home": "Logement",
115
- "transport": "Transport",
123
+ "identity": "Identité",
116
124
  "invoice": "Factures",
117
125
  "others": "Autres",
126
+ "transport": "Transport",
118
127
  "undefined": "Indéfini",
119
- "finance": "Finances",
120
- "activity": "Activités & loisirs"
128
+ "work_study": "Travail & Études"
121
129
  }
122
130
  }
123
131
  }
package/dist/types.js CHANGED
@@ -325,23 +325,23 @@ var _dsl = require("./queries/dsl");
325
325
  */
326
326
 
327
327
  /**
328
- * @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
328
+ * @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'|'electoral_card'} IdentityLabel
329
329
  *
330
- * @typedef {'family_record_book'|'birth_certificate'|'wedding'|'pacs'|'divorce'|'large_family_card'|'caf'|'other_family_document'|'payment_proof_family_allowance'} FamilyLabel
330
+ * @typedef {'family_record_book'|'birth_certificate'|'wedding'|'pacs'|'divorce'|'large_family_card'|'caf'|'other_family_document'|'payment_proof_family_allowance'|'single_parent_benefit'} FamilyLabel
331
331
  *
332
- * @typedef {'diploma'|'work_contract'|'pay_sheet'|'unemployment_benefit'|'pension'|'gradebook'|'student_card'|'resume'|'motivation_letter'|'other_work_document'|'work_disability_recognition'|'school_attendance_certificate'} WorkStudyLabels
332
+ * @typedef {'diploma'|'work_contract'|'pay_sheet'|'unemployment_benefit'|'pension'|'gradebook'|'student_card'|'resume'|'motivation_letter'|'other_work_document'|'work_disability_recognition'|'school_attendance_certificate'|'employment_center_certificate'} WorkStudyLabels
333
333
  *
334
334
  * @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
335
335
  *
336
- * @typedef {'phone_invoice'|'isp_invoice'|'telecom_invoice'|'energy_invoice'|'water_invoice'|'other_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'} HomeLabels
336
+ * @typedef {'phone_invoice'|'isp_invoice'|'telecom_invoice'|'energy_invoice'|'water_invoice'|'other_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'|'school_insurance_certificate'} HomeLabels
337
337
  *
338
- * @typedef {'driver_license'|'vehicle_registration'|'car_insurance'|'mechanic_invoice'|'transport_invoice'|'other_transport_document'} TransportLabels
338
+ * @typedef {'driver_license'|'vehicle_registration'|'car_insurance'|'mechanic_invoice'|'transport_invoice'|'other_transport_document'|'transport_card'} TransportLabels
339
339
  *
340
- * @typedef {'tax_return'|'tax_notice'|'tax_timetable'|'pay_sheet'|'receipt'|'other_tax_document'|'bank_details'|'bank_statement'|'loan_agreement'|'other_bank_document'|'payment_proof_family_allowance'|'other_revenue'} FinanceLabels
340
+ * @typedef {'tax_return'|'tax_notice'|'tax_timetable'|'pay_sheet'|'receipt'|'other_tax_document'|'bank_details'|'bank_statement'|'loan_agreement'|'other_bank_document'|'payment_proof_family_allowance'|'other_revenue'|'single_parent_benefit'|'real_estate_tax'} FinanceLabels
341
341
  *
342
342
  * @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
343
343
  *
344
- * @typedef {'personal_sporting_licence'|'other_activity_document'} ActivityLabels
344
+ * @typedef {'personal_sporting_licence'|'other_activity_document'|'fidelity_card'|'library_card'} ActivityLabels
345
345
  *
346
346
  * @typedef {IdentityLabel|FamilyLabel|WorkStudyLabels|HealthLabels|HomeLabels|TransportLabels|FinanceLabels|InvoiceLabels|ActivityLabels} ItemsLabels
347
347
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-client",
3
- "version": "34.7.3",
3
+ "version": "34.9.0",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.node.js",
6
6
  "browser": "dist/index.js",
@@ -73,5 +73,5 @@
73
73
  "react-native-ios11-devicecheck": "https://github.com/cozy/react-native-devicecheck#app-attest-v0.1"
74
74
  },
75
75
  "sideEffects": false,
76
- "gitHead": "8705a92dbd7529fe9e8683194204b6677527b157"
76
+ "gitHead": "5a1a67eb9d3b85690f92461e2d67308407d4fb7d"
77
77
  }
@@ -1,4 +1,5 @@
1
1
  export function dehydrate(document: any): {};
2
+ export function ensureFirstSlash(path: any): any;
2
3
  export function generateWebLink({ cozyUrl, searchParams: searchParamsOption, pathname, hash, slug, subDomainType }: {
3
4
  cozyUrl: string;
4
5
  searchParams: any[];
package/types/index.d.ts CHANGED
@@ -19,6 +19,6 @@ export { manifest, models };
19
19
  export { QueryDefinition, Q, Mutations, MutationTypes, getDoctypeFromOperation } from "./queries/dsl";
20
20
  export { Association, HasMany, HasOne, HasOneInPlace, HasManyInPlace, HasManyTriggers } from "./associations";
21
21
  export { isReferencedBy, isReferencedById, getReferencedBy, getReferencedById } from "./associations/helpers";
22
- export { deconstructCozyWebLinkWithSlug, dehydrate, generateWebLink, rootCozyUrl, InvalidCozyUrlError, InvalidProtocolError } from "./helpers";
22
+ export { deconstructCozyWebLinkWithSlug, dehydrate, generateWebLink, ensureFirstSlash, rootCozyUrl, InvalidCozyUrlError, InvalidProtocolError } from "./helpers";
23
23
  export { cancelable, isQueryLoading, hasQueryBeenLoaded } from "./utils";
24
24
  export { queryConnect, queryConnectFlat, withClient } from "./hoc";
@@ -14,4 +14,4 @@ import * as models from "./models";
14
14
  export { manifest, models };
15
15
  export { QueryDefinition, Mutations, MutationTypes, getDoctypeFromOperation, Q } from "./queries/dsl";
16
16
  export { Association, HasMany, HasOne, HasOneInPlace, HasManyInPlace, HasManyTriggers } from "./associations";
17
- export { deconstructCozyWebLinkWithSlug, dehydrate, generateWebLink, rootCozyUrl, InvalidCozyUrlError, InvalidProtocolError } from "./helpers";
17
+ export { deconstructCozyWebLinkWithSlug, dehydrate, generateWebLink, ensureFirstSlash, rootCozyUrl, InvalidCozyUrlError, InvalidProtocolError } from "./helpers";
package/types/types.d.ts CHANGED
@@ -403,16 +403,16 @@ export type QualificationAttributes = {
403
403
  sourceSubCategory?: string;
404
404
  subjects?: Array<string>;
405
405
  };
406
- 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";
407
- export type FamilyLabel = "family_record_book" | "birth_certificate" | "wedding" | "pacs" | "divorce" | "large_family_card" | "caf" | "other_family_document" | "payment_proof_family_allowance";
408
- export type WorkStudyLabels = "resume" | "diploma" | "work_contract" | "pay_sheet" | "unemployment_benefit" | "pension" | "gradebook" | "student_card" | "motivation_letter" | "other_work_document" | "work_disability_recognition" | "school_attendance_certificate";
406
+ export type IdentityLabel = "identity_photo" | "national_id_card" | "passport" | "residence_permit" | "family_record_book" | "birth_certificate" | "driver_license" | "other_identity_document" | "electoral_card" | "citizen_registration_certificate" | "personal_sporting_licence";
407
+ export type FamilyLabel = "family_record_book" | "birth_certificate" | "wedding" | "pacs" | "divorce" | "large_family_card" | "caf" | "other_family_document" | "single_parent_benefit" | "payment_proof_family_allowance";
408
+ export type WorkStudyLabels = "resume" | "diploma" | "work_contract" | "pay_sheet" | "employment_center_certificate" | "unemployment_benefit" | "pension" | "gradebook" | "student_card" | "motivation_letter" | "other_work_document" | "work_disability_recognition" | "school_attendance_certificate";
409
409
  export type HealthLabels = "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";
410
- export type HomeLabels = "house_sale_agreeement" | "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" | "other_invoice" | "unfit_for_habitation_declaration" | "accommodation_proof";
411
- export type TransportLabels = "driver_license" | "vehicle_registration" | "car_insurance" | "mechanic_invoice" | "transport_invoice" | "other_transport_document";
412
- export type FinanceLabels = "pay_sheet" | "other_revenue" | "tax_return" | "tax_notice" | "tax_timetable" | "other_tax_document" | "bank_details" | "bank_statement" | "loan_agreement" | "other_bank_document" | "receipt" | "payment_proof_family_allowance";
410
+ export type HomeLabels = "house_sale_agreeement" | "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" | "other_invoice" | "school_insurance_certificate" | "unfit_for_habitation_declaration" | "accommodation_proof";
411
+ export type TransportLabels = "driver_license" | "transport_card" | "vehicle_registration" | "car_insurance" | "mechanic_invoice" | "transport_invoice" | "other_transport_document";
412
+ export type FinanceLabels = "pay_sheet" | "single_parent_benefit" | "other_revenue" | "real_estate_tax" | "tax_return" | "tax_notice" | "tax_timetable" | "other_tax_document" | "bank_details" | "bank_statement" | "loan_agreement" | "other_bank_document" | "receipt" | "payment_proof_family_allowance";
413
413
  export type InvoiceLabels = "health_invoice" | "transport_invoice" | "work_invoice" | "phone_invoice" | "isp_invoice" | "telecom_invoice" | "energy_invoice" | "water_invoice" | "appliance_invoice" | "web_service_invoice" | "restaurant_invoice" | "other_invoice";
414
- export type ActivityLabels = "personal_sporting_licence" | "other_activity_document";
415
- 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_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" | "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" | "appliance_invoice" | "web_service_invoice" | "restaurant_invoice" | "other_invoice" | "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" | "unfit_for_habitation_declaration" | "accommodation_proof" | "citizen_registration_certificate" | "personal_sporting_licence" | "other_activity_document";
414
+ export type ActivityLabels = "fidelity_card" | "library_card" | "personal_sporting_licence" | "other_activity_document";
415
+ 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" | "appliance_invoice" | "web_service_invoice" | "restaurant_invoice" | "other_invoice" | "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";
416
416
  /**
417
417
  * See https://github.com/cozy/DACC
418
418
  */