cozy-client 27.9.0 → 27.10.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/CHANGELOG.md +11 -0
- package/dist/CozyClient.js +1 -1
- package/dist/assets/qualifications.json +5 -0
- package/dist/models/document/documentTypeData.js +12 -2
- package/dist/models/document/locales/en.json +4 -2
- package/dist/models/document/locales/fr.json +4 -2
- package/dist/types.js +3 -1
- package/package.json +2 -2
- package/types/types.d.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [27.10.0](https://github.com/cozy/cozy-client/compare/v27.9.0...v27.10.0) (2022-01-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* Add activity theme ([44eb0a8](https://github.com/cozy/cozy-client/commit/44eb0a8d8b0bed4a5f081efe7cd42223d7935768))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [27.9.0](https://github.com/cozy/cozy-client/compare/v27.8.0...v27.9.0) (2022-01-12)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package cozy-client
|
package/dist/CozyClient.js
CHANGED
|
@@ -2463,7 +2463,7 @@ var CozyClient = /*#__PURE__*/function () {
|
|
|
2463
2463
|
CozyClient.hooks = CozyClient.hooks || {};
|
|
2464
2464
|
CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
|
|
2465
2465
|
|
|
2466
|
-
CozyClient.version = "27.
|
|
2466
|
+
CozyClient.version = "27.10.0";
|
|
2467
2467
|
|
|
2468
2468
|
_microee.default.mixin(CozyClient);
|
|
2469
2469
|
|
|
@@ -429,6 +429,11 @@
|
|
|
429
429
|
"sourceCategory": "gov",
|
|
430
430
|
"sourceSubCategory": "sport",
|
|
431
431
|
"subjects": ["permit", "invoice"]
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"label": "other_activity_document",
|
|
435
|
+
"sourceSubCategory": "sport",
|
|
436
|
+
"subjects": ["permit", "invoice"]
|
|
432
437
|
}
|
|
433
438
|
],
|
|
434
439
|
"purposeKnownValues": [
|
|
@@ -32,7 +32,7 @@ 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', '
|
|
35
|
+
var identityLabels = ['identity_photo', 'national_id_card', 'passport', 'residence_permit', 'family_record_book', 'birth_certificate', 'driver_license', 'citizen_registration_certificate', 'other_identity_document'];
|
|
36
36
|
/**
|
|
37
37
|
* @type {Array<FamilyLabel>}
|
|
38
38
|
*/
|
|
@@ -58,6 +58,11 @@ var homeLabels = ['phone_invoice', 'isp_invoice', 'telecom_invoice', 'energy_inv
|
|
|
58
58
|
*/
|
|
59
59
|
|
|
60
60
|
var transportLabels = ['driver_license', 'vehicle_registration', 'car_insurance', 'mechanic_invoice', 'transport_invoice', 'other_transport_document'];
|
|
61
|
+
/**
|
|
62
|
+
* @type {Array<ActivityLabels>}
|
|
63
|
+
*/
|
|
64
|
+
|
|
65
|
+
var activityLabels = ['personal_sporting_licence', 'other_activity_document'];
|
|
61
66
|
/**
|
|
62
67
|
* @type {Array<FinanceLabels>}
|
|
63
68
|
*/
|
|
@@ -107,11 +112,16 @@ var themesList = [{
|
|
|
107
112
|
defaultItems: ['driver_license']
|
|
108
113
|
}, {
|
|
109
114
|
id: 'theme7',
|
|
115
|
+
label: 'activity',
|
|
116
|
+
icon: 'compass',
|
|
117
|
+
items: buildItemsByLabel(activityLabels)
|
|
118
|
+
}, {
|
|
119
|
+
id: 'theme8',
|
|
110
120
|
label: 'finance',
|
|
111
121
|
icon: 'bank',
|
|
112
122
|
items: buildItemsByLabel(financeLabels)
|
|
113
123
|
}, {
|
|
114
|
-
id: '
|
|
124
|
+
id: 'theme9',
|
|
115
125
|
label: 'invoice',
|
|
116
126
|
icon: 'bill',
|
|
117
127
|
items: buildItemsByLabel(invoiceLabels)
|
|
@@ -98,7 +98,8 @@
|
|
|
98
98
|
"other_bank_document": "Other banking document",
|
|
99
99
|
"invoices": "Invoices",
|
|
100
100
|
"personal_sporting_licence": "Sporting licence",
|
|
101
|
-
"other_invoice": "Other invoice"
|
|
101
|
+
"other_invoice": "Other invoice",
|
|
102
|
+
"other_activity_document": "Other sports document"
|
|
102
103
|
},
|
|
103
104
|
"themes": {
|
|
104
105
|
"identity": "Identity",
|
|
@@ -110,7 +111,8 @@
|
|
|
110
111
|
"invoice": "Invoice",
|
|
111
112
|
"others": "Others",
|
|
112
113
|
"undefined": "Undefined",
|
|
113
|
-
"finance": "Finance"
|
|
114
|
+
"finance": "Finance",
|
|
115
|
+
"activity": "Activities"
|
|
114
116
|
}
|
|
115
117
|
}
|
|
116
118
|
}
|
|
@@ -98,7 +98,8 @@
|
|
|
98
98
|
"other_bank_document": "Autre document bancaire",
|
|
99
99
|
"invoices": "Factures",
|
|
100
100
|
"personal_sporting_licence": "Licences sportives",
|
|
101
|
-
"other_invoice": "Autre facture"
|
|
101
|
+
"other_invoice": "Autre facture",
|
|
102
|
+
"other_activity_document": "Autre document sportif"
|
|
102
103
|
},
|
|
103
104
|
"themes": {
|
|
104
105
|
"identity": "Identité",
|
|
@@ -110,7 +111,8 @@
|
|
|
110
111
|
"invoice": "Factures",
|
|
111
112
|
"others": "Autres",
|
|
112
113
|
"undefined": "Indéfini",
|
|
113
|
-
"finance": "Finances"
|
|
114
|
+
"finance": "Finances",
|
|
115
|
+
"activity": "Activités & loisirs"
|
|
114
116
|
}
|
|
115
117
|
}
|
|
116
118
|
}
|
package/dist/types.js
CHANGED
|
@@ -292,7 +292,9 @@ var _dsl = require("./queries/dsl");
|
|
|
292
292
|
*
|
|
293
293
|
* @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
|
|
294
294
|
*
|
|
295
|
-
* @typedef {
|
|
295
|
+
* @typedef {'personal_sporting_licence'|'other_activity_document'} ActivityLabels
|
|
296
|
+
*
|
|
297
|
+
* @typedef {IdentityLabel|FamilyLabel|WorkStudyLabels|HealthLabels|HomeLabels|TransportLabels|FinanceLabels|InvoiceLabels|ActivityLabels} ItemsLabels
|
|
296
298
|
*/
|
|
297
299
|
var _default = {};
|
|
298
300
|
exports.default = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-client",
|
|
3
|
-
"version": "27.
|
|
3
|
+
"version": "27.10.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.node.js",
|
|
6
6
|
"browser": "dist/index.js",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"react-native-ios11-devicecheck": "https://github.com/cozy/react-native-devicecheck#app-attest-v0.1"
|
|
72
72
|
},
|
|
73
73
|
"sideEffects": false,
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "9feb3af42ffa1a2efbfcbf414754147d63f88edc"
|
|
75
75
|
}
|
package/types/types.d.ts
CHANGED
|
@@ -323,5 +323,6 @@ export type HomeLabels = "phone_invoice" | "isp_invoice" | "telecom_invoice" | "
|
|
|
323
323
|
export type TransportLabels = "driver_license" | "vehicle_registration" | "car_insurance" | "mechanic_invoice" | "transport_invoice" | "other_transport_document";
|
|
324
324
|
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";
|
|
325
325
|
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";
|
|
326
|
-
export type
|
|
326
|
+
export type ActivityLabels = "personal_sporting_licence" | "other_activity_document";
|
|
327
|
+
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" | "other_activity_document";
|
|
327
328
|
import { QueryDefinition } from "./queries/dsl";
|