cozy-client 25.0.2 → 26.0.1
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/RealTimeQueries.js +1 -0
- package/dist/RealTimeQueries.spec.jsx +8 -0
- package/dist/assets/qualifications.json +20 -9
- package/dist/models/file.js +561 -11
- package/dist/models/file.spec.js +414 -48
- package/dist/types.js +1 -0
- package/package.json +4 -4
- package/types/models/file.d.ts +33 -0
- package/types/types.d.ts +4 -0
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
|
+
## [26.0.1](https://github.com/cozy/cozy-client/compare/v26.0.0...v26.0.1) (2021-10-30)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package cozy-client
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [26.0.0](https://github.com/cozy/cozy-client/compare/v25.1.0...v26.0.0) (2021-10-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* Update & added qualification labels ([4bcf889](https://github.com/cozy/cozy-client/commit/4bcf889054ab3bf58c24d92ad179f94aad6d3d20))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### BREAKING CHANGES
|
|
23
|
+
|
|
24
|
+
* Renamed label `national_insurance_card`
|
|
25
|
+
to `national_health_insurance_card`.
|
|
26
|
+
|
|
27
|
+
Replace `Qualification.getByLabel('national_insurance_card')` to
|
|
28
|
+
`Qualification.getByLabel('national_health_insurance_card')`
|
|
29
|
+
if necessary
|
|
30
|
+
|
|
31
|
+
Please update your `cozy-scanner` to `2.0.0` version
|
|
32
|
+
to be synchronized with the right translations
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## [25.0.5](https://github.com/cozy/cozy-client/compare/v25.0.4...v25.0.5) (2021-10-25)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package cozy-client
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## [25.0.3](https://github.com/cozy/cozy-client/compare/v25.0.2...v25.0.3) (2021-10-21)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### Bug Fixes
|
|
50
|
+
|
|
51
|
+
* Add id in CozyClientDocument for RealTime ([5e242d6](https://github.com/cozy/cozy-client/commit/5e242d6d5fcb34e9f09c8b5661133b63aa35f93e))
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
6
57
|
## [25.0.2](https://github.com/cozy/cozy-client/compare/v25.0.1...v25.0.2) (2021-10-14)
|
|
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 = "26.0.1";
|
|
2415
2415
|
|
|
2416
2416
|
_microee.default.mixin(CozyClient);
|
|
2417
2417
|
|
package/dist/RealTimeQueries.js
CHANGED
|
@@ -38,6 +38,7 @@ describe('RealTimeQueries', () => {
|
|
|
38
38
|
definition: {
|
|
39
39
|
document: {
|
|
40
40
|
_id: 'mock-created',
|
|
41
|
+
id: 'mock-created',
|
|
41
42
|
_type: 'io.cozy.files',
|
|
42
43
|
type: 'file'
|
|
43
44
|
},
|
|
@@ -47,6 +48,7 @@ describe('RealTimeQueries', () => {
|
|
|
47
48
|
response: {
|
|
48
49
|
data: {
|
|
49
50
|
_id: 'mock-created',
|
|
51
|
+
id: 'mock-created',
|
|
50
52
|
_type: 'io.cozy.files',
|
|
51
53
|
type: 'file'
|
|
52
54
|
}
|
|
@@ -60,6 +62,7 @@ describe('RealTimeQueries', () => {
|
|
|
60
62
|
definition: {
|
|
61
63
|
document: {
|
|
62
64
|
_id: 'mock-updated',
|
|
65
|
+
id: 'mock-updated',
|
|
63
66
|
_type: 'io.cozy.files',
|
|
64
67
|
type: 'file'
|
|
65
68
|
},
|
|
@@ -69,6 +72,7 @@ describe('RealTimeQueries', () => {
|
|
|
69
72
|
response: {
|
|
70
73
|
data: {
|
|
71
74
|
_id: 'mock-updated',
|
|
75
|
+
id: 'mock-updated',
|
|
72
76
|
_type: 'io.cozy.files',
|
|
73
77
|
type: 'file'
|
|
74
78
|
}
|
|
@@ -81,6 +85,7 @@ describe('RealTimeQueries', () => {
|
|
|
81
85
|
definition: {
|
|
82
86
|
document: {
|
|
83
87
|
_id: 'mock-deleted',
|
|
88
|
+
id: 'mock-deleted',
|
|
84
89
|
_type: 'io.cozy.files',
|
|
85
90
|
type: 'file',
|
|
86
91
|
_deleted: true
|
|
@@ -91,6 +96,7 @@ describe('RealTimeQueries', () => {
|
|
|
91
96
|
response: {
|
|
92
97
|
data: {
|
|
93
98
|
_id: 'mock-deleted',
|
|
99
|
+
id: 'mock-deleted',
|
|
94
100
|
_type: 'io.cozy.files',
|
|
95
101
|
type: 'file',
|
|
96
102
|
_deleted: true
|
|
@@ -118,6 +124,7 @@ describe('RealTimeQueries', () => {
|
|
|
118
124
|
definition: {
|
|
119
125
|
document: {
|
|
120
126
|
_id: 'mock-created',
|
|
127
|
+
id: 'mock-created',
|
|
121
128
|
_type: 'io.cozy.oauth.clients',
|
|
122
129
|
client_kind: 'desktop',
|
|
123
130
|
client_name: 'Cozy Drive (hostname)'
|
|
@@ -128,6 +135,7 @@ describe('RealTimeQueries', () => {
|
|
|
128
135
|
response: {
|
|
129
136
|
data: {
|
|
130
137
|
_id: 'mock-created',
|
|
138
|
+
id: 'mock-created',
|
|
131
139
|
_type: 'io.cozy.oauth.clients',
|
|
132
140
|
client_kind: 'desktop',
|
|
133
141
|
client_name: 'Cozy Drive (hostname)'
|
|
@@ -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
|
}
|