cozy-client 32.2.6 → 32.3.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
CHANGED
|
@@ -2550,7 +2550,7 @@ var CozyClient = /*#__PURE__*/function () {
|
|
|
2550
2550
|
CozyClient.hooks = CozyClient.hooks || {};
|
|
2551
2551
|
CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
|
|
2552
2552
|
|
|
2553
|
-
CozyClient.version = "32.
|
|
2553
|
+
CozyClient.version = "32.3.0";
|
|
2554
2554
|
|
|
2555
2555
|
_microee.default.mixin(CozyClient);
|
|
2556
2556
|
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Permissions": {
|
|
3
|
+
"io": {
|
|
4
|
+
"cozy": {
|
|
5
|
+
"accounts": "Login details",
|
|
6
|
+
"apps": "List of installed applications",
|
|
7
|
+
"apps.suggestions": "Application suggestions",
|
|
8
|
+
"bank.accounts": "Banking accounts",
|
|
9
|
+
"bank.accounts.stats": "Stats on banking accounts",
|
|
10
|
+
"bank.balancehistories": "Bank balances",
|
|
11
|
+
"bank.groups": "Banking groups",
|
|
12
|
+
"bank.operations": "Bank operations",
|
|
13
|
+
"bank.settings": "Banks app settings",
|
|
14
|
+
"bank.recipients": "Banking transfer recipients",
|
|
15
|
+
"bank.recurrence": "Banks recurrence groups",
|
|
16
|
+
"bills": "Bills",
|
|
17
|
+
"certified.carbon_copy": "Carbon copy",
|
|
18
|
+
"certified.electronic_safe": "Electronic safe",
|
|
19
|
+
"coachco2.settings": "CoachCO2 app settings",
|
|
20
|
+
"contacts": "Contacts",
|
|
21
|
+
"contacts.groups": "Contacts groups",
|
|
22
|
+
"contacts.accounts": "Accounts linked to the contacts",
|
|
23
|
+
"files": "Files",
|
|
24
|
+
"files.versions": "Files versions",
|
|
25
|
+
"files.*": "File-related data (files, folders, versions, ...)",
|
|
26
|
+
"identities": "Identities",
|
|
27
|
+
"jobs": "Jobs",
|
|
28
|
+
"konnectors": "Connectors for importing data",
|
|
29
|
+
"konnectors.result": "Connectors results",
|
|
30
|
+
"netflix.views": "Netflix history",
|
|
31
|
+
"netflix.opinions": "Netflix opinions",
|
|
32
|
+
"notifications": "Notifications",
|
|
33
|
+
"oauth.clients": "Connected devices",
|
|
34
|
+
"permissions": "Delegating permissions",
|
|
35
|
+
"photos.albums": "Photo albums",
|
|
36
|
+
"photos.settings": "Photo settings",
|
|
37
|
+
"settings": "Settings",
|
|
38
|
+
"sharings": "Sharing",
|
|
39
|
+
"timeseries.geojson": "Trips",
|
|
40
|
+
"triggers": "Scheduling jobs"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Permissions": {
|
|
3
|
+
"io": {
|
|
4
|
+
"cozy": {
|
|
5
|
+
"accounts": "Identifiants",
|
|
6
|
+
"apps": "Liste des applications installées",
|
|
7
|
+
"apps.suggestions": "Suggestions d'applications",
|
|
8
|
+
"bank.accounts": "Comptes bancaires",
|
|
9
|
+
"bank.accounts.stats": "Statistiques sur les comptes bancaires",
|
|
10
|
+
"bank.balancehistories": "Soldes bancaires",
|
|
11
|
+
"bank.groups": "Groupes de comptes bancaires",
|
|
12
|
+
"bank.operations": "Opérations bancaires",
|
|
13
|
+
"bank.settings": "Paramètres de l'application Banks",
|
|
14
|
+
"bank.recipients": "Bénéficiaires de virements bancaires",
|
|
15
|
+
"bank.recurrence": "Groupes de récurrence bancaire",
|
|
16
|
+
"bills": "Factures",
|
|
17
|
+
"certified.carbon_copy": "Copie carbone",
|
|
18
|
+
"certified.electronic_safe": "Coffre-fort numérique",
|
|
19
|
+
"coachco2.settings": "Paramètres de l'application CoachCO2",
|
|
20
|
+
"contacts": "Contacts",
|
|
21
|
+
"contacts.groups": "Groupe de contacts",
|
|
22
|
+
"contacts.accounts": "Comptes associés aux contacts",
|
|
23
|
+
"files": "Fichiers",
|
|
24
|
+
"files.versions": "Versions des fichiers",
|
|
25
|
+
"files.*": "Données liées aux fichiers (fichiers, dossiers, versions, ...)",
|
|
26
|
+
"identities": "Identities",
|
|
27
|
+
"jobs": "Tâches à exécuter",
|
|
28
|
+
"konnectors": "Connecteurs pour importer des données",
|
|
29
|
+
"konnectors.result": "Résultats de connecteurs",
|
|
30
|
+
"netflix.views": "Historique Netflix",
|
|
31
|
+
"netflix.opinions": "Opinions Netflix",
|
|
32
|
+
"notifications": "Notifications",
|
|
33
|
+
"oauth.clients": "Appareils connectés",
|
|
34
|
+
"permissions": "Délégation de permissions",
|
|
35
|
+
"photos.albums": "Albums photos",
|
|
36
|
+
"photos.settings": "Paramètres des photos",
|
|
37
|
+
"settings": "Paramètres",
|
|
38
|
+
"sharings": "Partage",
|
|
39
|
+
"timeseries.geojson": "Déplacements",
|
|
40
|
+
"triggers": "Planification de tâches à exécuter dans le futur"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
package/dist/store/documents.js
CHANGED
|
@@ -192,7 +192,7 @@ var extractAndMergeDocument = function extractAndMergeDocument(data, updatedStat
|
|
|
192
192
|
var id = (0, _helpers.properId)(data);
|
|
193
193
|
|
|
194
194
|
if (mergedData[doctype][id]) {
|
|
195
|
-
mergedData[doctype][id] = (0, _merge.default)(mergedData[doctype][id], data);
|
|
195
|
+
mergedData[doctype][id] = (0, _merge.default)({}, mergedData[doctype][id], data);
|
|
196
196
|
} else {
|
|
197
197
|
mergedData[doctype][id] = data;
|
|
198
198
|
}
|
|
@@ -148,7 +148,24 @@ describe('extractAndMerge', () => {
|
|
|
148
148
|
).toBeFalsy()
|
|
149
149
|
}
|
|
150
150
|
)
|
|
151
|
+
it(
|
|
152
|
+
'should assign a new object for doctype[id] of document to update' +
|
|
153
|
+
'in order to allow selector to recompute their data when documents are updated',
|
|
154
|
+
() => {
|
|
155
|
+
const returnedDatas = extractAndMergeDocument(
|
|
156
|
+
data,
|
|
157
|
+
updatedStateWithIncluded
|
|
158
|
+
)
|
|
151
159
|
|
|
160
|
+
// Then
|
|
161
|
+
expect(
|
|
162
|
+
returnedDatas['io.cozy.files']['b6ff135b34e041ffb2d4a4865f3e0a53'] ===
|
|
163
|
+
updatedStateWithIncluded['io.cozy.files'][
|
|
164
|
+
'b6ff135b34e041ffb2d4a4865f3e0a53'
|
|
165
|
+
]
|
|
166
|
+
).toBeFalsy()
|
|
167
|
+
}
|
|
168
|
+
)
|
|
152
169
|
it(
|
|
153
170
|
'should assign a new object for doctype of document to update' +
|
|
154
171
|
'even if the mergedData is the same, because reselect createSelector update ' +
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-client",
|
|
3
|
-
"version": "32.
|
|
3
|
+
"version": "32.3.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": "17febe46fab581b9bb87d8fb4fd28060447c8841"
|
|
77
77
|
}
|