cozy-client 38.2.1 → 38.4.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.
- package/dist/CozyClient.js +1 -1
- package/dist/assets/qualifications.json +3 -0
- package/dist/models/document/documentTypeData.js +10 -0
- package/dist/models/document/locales/en.json +1 -0
- package/dist/models/document/locales/fr.json +2 -1
- package/dist/types.js +4 -2
- package/package.json +2 -2
- package/types/types.d.ts +3 -2
package/dist/CozyClient.js
CHANGED
|
@@ -2677,7 +2677,7 @@ var CozyClient = /*#__PURE__*/function () {
|
|
|
2677
2677
|
CozyClient.hooks = CozyClient.hooks || {};
|
|
2678
2678
|
CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
|
|
2679
2679
|
|
|
2680
|
-
CozyClient.version = "38.
|
|
2680
|
+
CozyClient.version = "38.4.0";
|
|
2681
2681
|
|
|
2682
2682
|
_microee.default.mixin(CozyClient);
|
|
2683
2683
|
|
|
@@ -71,6 +71,11 @@ var financeLabels = ['tax_return', 'tax_notice', 'tax_timetable', 'real_estate_t
|
|
|
71
71
|
*/
|
|
72
72
|
|
|
73
73
|
var invoiceLabels = ['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'];
|
|
74
|
+
/**
|
|
75
|
+
* @type {Array<import("../../types").OthersLabels>}
|
|
76
|
+
*/
|
|
77
|
+
|
|
78
|
+
var othersLabels = ['other_administrative_document'];
|
|
74
79
|
/**
|
|
75
80
|
* @type {import("../../types").ThemesList}
|
|
76
81
|
*/
|
|
@@ -123,5 +128,10 @@ var themesList = [{
|
|
|
123
128
|
label: 'invoice',
|
|
124
129
|
icon: 'bill',
|
|
125
130
|
items: buildItemsByLabel(invoiceLabels)
|
|
131
|
+
}, {
|
|
132
|
+
id: 'theme10',
|
|
133
|
+
label: 'others',
|
|
134
|
+
icon: 'dots',
|
|
135
|
+
items: buildItemsByLabel(othersLabels)
|
|
126
136
|
}];
|
|
127
137
|
exports.themesList = themesList;
|
|
@@ -72,6 +72,7 @@
|
|
|
72
72
|
"other_tax_document": "Other tax document |||| Other tax documents",
|
|
73
73
|
"other_transport_document": "Other transport document |||| Other transport documents",
|
|
74
74
|
"other_work_document": "Other work document |||| Other work documents",
|
|
75
|
+
"other_administrative_document": "Other administrative document |||| Other administrative documents",
|
|
75
76
|
"others": "Others",
|
|
76
77
|
"pacs": "Civil union |||| Civil unions",
|
|
77
78
|
"passport": "Passeport |||| Passeports",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"citizen_registration_certificate": "Attestation de recensement citoyen |||| Attestations de recensement citoyen",
|
|
31
31
|
"diploma": "Diplôme |||| Diplômes",
|
|
32
32
|
"divorce": "Attestation de divorce |||| Attestations de divorce",
|
|
33
|
-
"driver_license": "Permis",
|
|
33
|
+
"driver_license": "Permis de conduire",
|
|
34
34
|
"electoral_card": "Carte électorale |||| Cartes électorales",
|
|
35
35
|
"employment_center_certificate": "Attestation de Pôle emploi |||| Attestations de Pôle emploi",
|
|
36
36
|
"energy_contract": "Contrat de fournisseur d'énergies |||| Contrats de fournisseur d'énergies",
|
|
@@ -72,6 +72,7 @@
|
|
|
72
72
|
"other_tax_document": "Impôts - Autre document |||| Impôts - Autres documents",
|
|
73
73
|
"other_transport_document": "Autre document de transport |||| Autres documents de transport",
|
|
74
74
|
"other_work_document": "Autre document de travail |||| Autres documents de travail",
|
|
75
|
+
"other_administrative_document": "Autre document administratif |||| Autres documents administratifs",
|
|
75
76
|
"others": "Autres",
|
|
76
77
|
"pacs": "Attestation de PACS |||| Attestations de PACS",
|
|
77
78
|
"passport": "Passeport |||| Passeports",
|
package/dist/types.js
CHANGED
|
@@ -372,7 +372,7 @@ var _dsl = require("./queries/dsl");
|
|
|
372
372
|
*
|
|
373
373
|
* @typedef {Array<Theme>} ThemesList
|
|
374
374
|
*
|
|
375
|
-
* @typedef {'identity'|'family'|'work_study'|'health'|'home'|'transport'|'finance'|'invoice'} ThemesLabels
|
|
375
|
+
* @typedef {'identity'|'family'|'work_study'|'health'|'home'|'transport'|'finance'|'invoice'|'others'} ThemesLabels
|
|
376
376
|
*/
|
|
377
377
|
|
|
378
378
|
/**
|
|
@@ -403,7 +403,9 @@ var _dsl = require("./queries/dsl");
|
|
|
403
403
|
*
|
|
404
404
|
* @typedef {'personal_sporting_licence'|'other_activity_document'|'fidelity_card'|'library_card'} ActivityLabels
|
|
405
405
|
*
|
|
406
|
-
* @typedef {
|
|
406
|
+
* @typedef {'other_administrative_document'} OthersLabels
|
|
407
|
+
*
|
|
408
|
+
* @typedef {IdentityLabel|FamilyLabel|WorkStudyLabels|HealthLabels|HomeLabels|TransportLabels|FinanceLabels|InvoiceLabels|ActivityLabels|OthersLabels} ItemsLabels
|
|
407
409
|
*/
|
|
408
410
|
|
|
409
411
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-client",
|
|
3
|
-
"version": "38.
|
|
3
|
+
"version": "38.4.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": "
|
|
76
|
+
"gitHead": "18fc2cfe800c7bb20290e2c2402ea2104b52e668"
|
|
77
77
|
}
|
package/types/types.d.ts
CHANGED
|
@@ -566,7 +566,7 @@ export type Theme = {
|
|
|
566
566
|
defaultItems?: Array<string>;
|
|
567
567
|
};
|
|
568
568
|
export type ThemesList = Theme[];
|
|
569
|
-
export type ThemesLabels = "transport" | "identity" | "family" | "health" | "invoice" | "work_study" | "home" | "finance";
|
|
569
|
+
export type ThemesLabels = "transport" | "identity" | "family" | "health" | "invoice" | "work_study" | "home" | "finance" | "others";
|
|
570
570
|
export type QualificationAttributes = {
|
|
571
571
|
label: string;
|
|
572
572
|
purpose?: string;
|
|
@@ -583,7 +583,8 @@ export type TransportLabels = "driver_license" | "transport_card" | "vehicle_reg
|
|
|
583
583
|
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";
|
|
584
584
|
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";
|
|
585
585
|
export type ActivityLabels = "fidelity_card" | "library_card" | "personal_sporting_licence" | "other_activity_document";
|
|
586
|
-
export type
|
|
586
|
+
export type OthersLabels = "other_administrative_document";
|
|
587
|
+
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" | "other_administrative_document";
|
|
587
588
|
/**
|
|
588
589
|
* See https://github.com/cozy/DACC
|
|
589
590
|
*/
|