cozy-client 38.10.0 → 38.11.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.
@@ -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.10.0";
2680
+ CozyClient.version = "38.11.1";
2681
2681
 
2682
2682
  _microee.default.mixin(CozyClient);
2683
2683
 
@@ -186,18 +186,16 @@ var HasManyFiles = /*#__PURE__*/function (_HasMany) {
186
186
  switch (_context3.prev = _context3.next) {
187
187
  case 0:
188
188
  ids = Array.isArray(idsArg) ? idsArg : [idsArg];
189
+ this.addTargetRelationships(ids);
189
190
  relations = ids.map(function (id) {
190
191
  return {
191
192
  _id: id,
192
193
  _type: _this2.doctype
193
194
  };
194
195
  });
195
- _context3.next = 4;
196
+ _context3.next = 5;
196
197
  return this.mutate(this.addReferences(relations));
197
198
 
198
- case 4:
199
- this.addTargetRelationships(ids);
200
-
201
199
  case 5:
202
200
  case "end":
203
201
  return _context3.stop();
@@ -224,18 +222,16 @@ var HasManyFiles = /*#__PURE__*/function (_HasMany) {
224
222
  switch (_context4.prev = _context4.next) {
225
223
  case 0:
226
224
  ids = Array.isArray(idsArg) ? idsArg : [idsArg];
225
+ this.removeTargetRelationships(idsArg);
227
226
  references = ids.map(function (id) {
228
227
  return {
229
228
  _id: id,
230
229
  _type: _this3.doctype
231
230
  };
232
231
  });
233
- _context4.next = 4;
232
+ _context4.next = 5;
234
233
  return this.mutate(this.removeReferences(references));
235
234
 
236
- case 4:
237
- this.removeTargetRelationships(ids);
238
-
239
235
  case 5:
240
236
  case "end":
241
237
  return _context4.stop();
@@ -61,15 +61,15 @@
61
61
  "national_health_insurance_card": "National health insurance card |||| National health insurance cards",
62
62
  "national_health_insurance_right_certificate": "National health insurance right certificate |||| National health insurance right certificates",
63
63
  "national_id_card": "ID card |||| ID cards",
64
- "note_identity_document": "Note / reminder |||| Notes / reminders",
65
- "note_family_document": "Note / reminder |||| Notes / reminders",
66
- "note_work_document": "Note / reminder |||| Notes / reminders",
67
- "note_health_document": "Note / reminder |||| Notes / reminders",
68
- "note_house_document": "Note / reminder |||| Notes / reminders",
69
- "note_transport_document": "Note / reminder |||| Notes / reminders",
70
- "note_activity_document": "Note / reminder |||| Notes / reminders",
71
- "note_finance": "Note / reminder |||| Notes / reminders",
72
- "note_invoice": "Note / reminder |||| Notes / reminders",
64
+ "note_identity_document": "Reminder Identity |||| Reminders Identity",
65
+ "note_family_document": "Reminder Family |||| Reminders Family",
66
+ "note_work_document": "Reminder Work & Study |||| Reminders Work & Study",
67
+ "note_health_document": "Reminder Health |||| Reminders Health",
68
+ "note_house_document": "Reminder Home |||| Reminders Home",
69
+ "note_transport_document": "Reminder Transport |||| Reminders Transport",
70
+ "note_activity_document": "Reminder Activities |||| Reminders Activities",
71
+ "note_finance": "Reminder Finance |||| Reminders Finance",
72
+ "note_invoice": "Reminder Invoice |||| Reminders Invoice",
73
73
  "other_activity_document": "Other sports document |||| Other sports documents",
74
74
  "other_bank_document": "Other banking document |||| Other banking documents",
75
75
  "other_family_document": "Other family document |||| Other family documents",
@@ -61,15 +61,15 @@
61
61
  "national_health_insurance_card": "Carte vitale |||| Cartes vitales",
62
62
  "national_health_insurance_right_certificate": "Attestation de droits de l'Assurance Maladie (vitale) |||| Attestations de droits de l'Assurance Maladie (vitale)",
63
63
  "national_id_card": "Carte d'identité |||| Cartes d'identité",
64
- "note_identity_document": "Note / aide-mémoire |||| Notes / aide-mémoires",
65
- "note_family_document": "Note / aide-mémoire |||| Notes / aide-mémoires",
66
- "note_work_document": "Note / aide-mémoire |||| Notes / aide-mémoires",
67
- "note_health_document": "Note / aide-mémoire |||| Notes / aide-mémoires",
68
- "note_house_document": "Note / aide-mémoire |||| Notes / aide-mémoires",
69
- "note_transport_document": "Note / aide-mémoire |||| Notes / aide-mémoires",
70
- "note_activity_document": "Note / aide-mémoire |||| Notes / aide-mémoires",
71
- "note_finance": "Note / aide-mémoire |||| Notes / aide-mémoires",
72
- "note_invoice": "Note / aide-mémoire |||| Notes / aide-mémoires",
64
+ "note_identity_document": "Aide-mémoire Identité |||| Aide-mémoires Identité",
65
+ "note_family_document": "Aide-mémoire Famille |||| Aide-mémoires Famille",
66
+ "note_work_document": "Aide-mémoire Travail & Études |||| Aide-mémoires Travail & Études",
67
+ "note_health_document": "Aide-mémoire Santé |||| Aide-mémoires Santé",
68
+ "note_house_document": "Aide-mémoire Logement |||| Aide-mémoires Logement",
69
+ "note_transport_document": "Aide-mémoire Transport |||| Aide-mémoires Transport",
70
+ "note_activity_document": "Aide-mémoire Activités & loisirs |||| Aide-mémoires Activités & loisirs",
71
+ "note_finance": "Aide-mémoire Finances |||| Aide-mémoires Finances",
72
+ "note_invoice": "Aide-mémoire Factures |||| Aide-mémoires Factures",
73
73
  "other_activity_document": "Autre document sportif |||| Autres documents sportifs",
74
74
  "other_bank_document": "Autre document bancaire |||| Autres documents bancaires",
75
75
  "other_family_document": "Autre document de famille |||| Autres documents de famille",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-client",
3
- "version": "38.10.0",
3
+ "version": "38.11.1",
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": "a2a811593b4181f559583c994a91d95cf3f7e289"
76
+ "gitHead": "fb1e1e8e207406a8c88193eab81d4a3120c0cc30"
77
77
  }