cozy-client 25.0.5 → 27.0.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 +51 -0
- package/dist/CozyClient.js +1 -1
- package/dist/assets/qualifications.json +20 -9
- package/dist/models/file.js +3 -4
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,57 @@
|
|
|
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.0.0](https://github.com/cozy/cozy-client/compare/v26.0.2...v27.0.0) (2021-11-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package cozy-client
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [26.0.2](https://github.com/cozy/cozy-client/compare/v26.0.1...v26.0.2) (2021-11-01)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* Use regex supported by Safari ([1497318](https://github.com/cozy/cozy-client/commit/149731833c1830f4091f9361d717413caac4e664))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [26.0.1](https://github.com/cozy/cozy-client/compare/v26.0.0...v26.0.1) (2021-10-30)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package cozy-client
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# [26.0.0](https://github.com/cozy/cozy-client/compare/v25.1.0...v26.0.0) (2021-10-29)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Features
|
|
37
|
+
|
|
38
|
+
* Update & added qualification labels ([4bcf889](https://github.com/cozy/cozy-client/commit/4bcf889054ab3bf58c24d92ad179f94aad6d3d20))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### BREAKING CHANGES
|
|
42
|
+
|
|
43
|
+
* Renamed label `national_insurance_card`
|
|
44
|
+
to `national_health_insurance_card`.
|
|
45
|
+
|
|
46
|
+
Replace `Qualification.getByLabel('national_insurance_card')` to
|
|
47
|
+
`Qualification.getByLabel('national_health_insurance_card')`
|
|
48
|
+
if necessary
|
|
49
|
+
|
|
50
|
+
Please update your `cozy-scanner` to `2.0.0` version
|
|
51
|
+
to be synchronized with the right translations
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
6
57
|
## [25.0.5](https://github.com/cozy/cozy-client/compare/v25.0.4...v25.0.5) (2021-10-25)
|
|
7
58
|
|
|
8
59
|
**Note:** Version bump only for package cozy-client
|
package/dist/CozyClient.js
CHANGED
|
@@ -2411,7 +2411,7 @@ var CozyClient = /*#__PURE__*/function () {
|
|
|
2411
2411
|
CozyClient.hooks = CozyClient.hooks || {};
|
|
2412
2412
|
CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
|
|
2413
2413
|
|
|
2414
|
-
CozyClient.version = "
|
|
2414
|
+
CozyClient.version = "27.0.0";
|
|
2415
2415
|
|
|
2416
2416
|
_microee.default.mixin(CozyClient);
|
|
2417
2417
|
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"qualifications": [
|
|
3
|
+
{
|
|
4
|
+
"label": "identity_photo",
|
|
5
|
+
"purpose": "attestation",
|
|
6
|
+
"subjects": ["identity"]
|
|
7
|
+
},
|
|
3
8
|
{
|
|
4
9
|
"label": "national_id_card",
|
|
5
10
|
"purpose": "attestation",
|
|
@@ -145,29 +150,35 @@
|
|
|
145
150
|
},
|
|
146
151
|
{
|
|
147
152
|
"label": "health_book",
|
|
148
|
-
"purpose": "
|
|
153
|
+
"purpose": "attestation",
|
|
149
154
|
"sourceCategory": "health",
|
|
150
|
-
"subjects": ["
|
|
155
|
+
"subjects": ["identity", "capacity", "vaccine"]
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"label": "health_certificate",
|
|
159
|
+
"purpose": "attestation",
|
|
160
|
+
"sourceCategory": "health",
|
|
161
|
+
"subjects": ["identity", "capacity", "vaccine"]
|
|
151
162
|
},
|
|
152
163
|
{
|
|
153
|
-
"label": "
|
|
164
|
+
"label": "national_health_insurance_card",
|
|
154
165
|
"purpose": "attestation",
|
|
155
166
|
"sourceCategory": "gov",
|
|
156
167
|
"sourceSubCategory": "health",
|
|
157
|
-
"subjects": ["insurance"]
|
|
168
|
+
"subjects": ["identity", "insurance"]
|
|
158
169
|
},
|
|
159
170
|
{
|
|
160
171
|
"label": "health_insurance_card",
|
|
161
172
|
"purpose": "attestation",
|
|
162
173
|
"sourceCategory": "insurance",
|
|
163
174
|
"sourceSubCategory": "health",
|
|
164
|
-
"subjects": ["insurance"]
|
|
175
|
+
"subjects": ["identity", "insurance"]
|
|
165
176
|
},
|
|
166
177
|
{
|
|
167
178
|
"label": "prescription",
|
|
168
179
|
"purpose": "attestation",
|
|
169
180
|
"sourceCategory": "health",
|
|
170
|
-
"subjects": ["right"]
|
|
181
|
+
"subjects": ["identity", "right", "medecine"]
|
|
171
182
|
},
|
|
172
183
|
{
|
|
173
184
|
"label": "health_invoice",
|
|
@@ -366,14 +377,14 @@
|
|
|
366
377
|
"real_estate", "web"
|
|
367
378
|
],
|
|
368
379
|
"sourceSubCategoryKnownValues": [
|
|
369
|
-
"civil_registration", "immigration", "transport", "family", "tax", "health",
|
|
380
|
+
"civil_registration", "immigration", "transport", "family", "tax", "health",
|
|
370
381
|
"real_estate", "mobile", "internet"
|
|
371
382
|
],
|
|
372
383
|
"subjectsKnownValues": [
|
|
373
384
|
"identity", "permit", "family", "driving", "right", "subvention", "achievement",
|
|
374
385
|
"degree", "work", "employment", "revenues", "history", "insurance", "drugs",
|
|
375
386
|
"medical_act", "car", "moto", "truck", "boat", "subscription", "buy/sale",
|
|
376
|
-
"house", "compliance", "building", "food", "real_estate", "tax",
|
|
377
|
-
"education", "statement", "course", "internet", "phone"
|
|
387
|
+
"house", "compliance", "building", "food", "real_estate", "tax",
|
|
388
|
+
"education", "statement", "course", "internet", "phone", "vaccine", "capacity"
|
|
378
389
|
]
|
|
379
390
|
}
|
package/dist/models/file.js
CHANGED
|
@@ -690,15 +690,14 @@ exports.overrideFileForPath = overrideFileForPath;
|
|
|
690
690
|
|
|
691
691
|
var generateNewFileNameOnConflict = function generateNewFileNameOnConflict(filenameWithoutExtension) {
|
|
692
692
|
//Check if the string ends by _1
|
|
693
|
-
var regex = new RegExp('(
|
|
694
|
-
|
|
693
|
+
var regex = new RegExp('(_)([0-9]+)$');
|
|
695
694
|
var matches = filenameWithoutExtension.match(regex);
|
|
696
695
|
|
|
697
696
|
if (matches) {
|
|
698
|
-
var versionNumber = parseInt(matches[
|
|
697
|
+
var versionNumber = parseInt(matches[2]); //increment versionNumber
|
|
699
698
|
|
|
700
699
|
versionNumber++;
|
|
701
|
-
var newFilenameWithoutExtension = filenameWithoutExtension.replace(
|
|
700
|
+
var newFilenameWithoutExtension = filenameWithoutExtension.replace(new RegExp('(_)([0-9]+)$'), "_".concat(versionNumber));
|
|
702
701
|
return newFilenameWithoutExtension;
|
|
703
702
|
} else {
|
|
704
703
|
return "".concat(filenameWithoutExtension, "_1");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "27.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.node.js",
|
|
6
6
|
"browser": "dist/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"cozy-device-helper": "^1.12.0",
|
|
22
22
|
"cozy-flags": "2.7.1",
|
|
23
23
|
"cozy-logger": "^1.6.0",
|
|
24
|
-
"cozy-stack-client": "^
|
|
24
|
+
"cozy-stack-client": "^27.0.0",
|
|
25
25
|
"json-stable-stringify": "^1.0.1",
|
|
26
26
|
"lodash": "^4.17.13",
|
|
27
27
|
"microee": "^0.0.6",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"mockdate": "^2.0.2",
|
|
57
57
|
"react": "16.14.0",
|
|
58
58
|
"react-inspector": "5.1.1",
|
|
59
|
-
"react-redux": "7.2.
|
|
59
|
+
"react-redux": "7.2.5",
|
|
60
60
|
"react-test-renderer": "16.14.0",
|
|
61
61
|
"server-destroy": "^1.0.1",
|
|
62
62
|
"typescript": "^4.1.5"
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"react-native-inappbrowser-reborn": "^3.5.1"
|
|
69
69
|
},
|
|
70
70
|
"sideEffects": false,
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "eb3e306e97d0447509e8ac6a3f1012c2e1070a04"
|
|
72
72
|
}
|