cozy-client 40.2.1 → 40.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.
@@ -2685,7 +2685,7 @@ var CozyClient = /*#__PURE__*/function () {
2685
2685
  CozyClient.hooks = CozyClient.hooks || {};
2686
2686
  CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
2687
2687
 
2688
- CozyClient.version = "40.2.1";
2688
+ CozyClient.version = "40.3.0";
2689
2689
 
2690
2690
  _microee.default.mixin(CozyClient);
2691
2691
 
@@ -19,7 +19,8 @@ var PERSONAL_SPORTING_LICENCE_NOTICE_PERIOD_DAYS = 15;
19
19
  var EXPIRATION_LINK_BY_LABEL = {
20
20
  national_id_card: 'https://www.service-public.fr/particuliers/vosdroits/N358',
21
21
  residence_permit: 'https://www.service-public.fr/particuliers/vosdroits/N110',
22
- passport: 'https://www.service-public.fr/particuliers/vosdroits/N360'
22
+ passport: 'https://www.service-public.fr/particuliers/vosdroits/N360',
23
+ driver_license: 'https://permisdeconduire.ants.gouv.fr/demarches-en-ligne/perte-vol-deterioration-fin-de-validite-ou-changement-d-etat-civil'
23
24
  };
24
25
  /**
25
26
  * @param {IOCozyFile} file - io.cozy.files document
@@ -59,6 +59,11 @@ describe('Expiration', () => {
59
59
  expirationDate: '2022-09-23T11:35:58.118Z',
60
60
  noticePeriod: '90'
61
61
  })
62
+ const fakeDriverLicense = buildMockFile({
63
+ qualificationLabel: 'driver_license',
64
+ expirationDate: '2022-09-23T11:35:58.118Z',
65
+ noticePeriod: '90'
66
+ })
62
67
 
63
68
  describe('computeExpirationDate', () => {
64
69
  it('should return expirationDate', () => {
@@ -109,6 +114,7 @@ describe('Expiration', () => {
109
114
  ${fakeNationalIdCardFile} | ${'https://www.service-public.fr/particuliers/vosdroits/N358'}
110
115
  ${fakeResidencePermitFile} | ${'https://www.service-public.fr/particuliers/vosdroits/N110'}
111
116
  ${fakePassportFile} | ${'https://www.service-public.fr/particuliers/vosdroits/N360'}
117
+ ${fakeDriverLicense} | ${'https://permisdeconduire.ants.gouv.fr/demarches-en-ligne/perte-vol-deterioration-fin-de-validite-ou-changement-d-etat-civil'}
112
118
  `(
113
119
  `should return "$link" link for an file with "$file.metadata.qualification.label" qualification label`,
114
120
  ({ file, link }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-client",
3
- "version": "40.2.1",
3
+ "version": "40.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": "770246c290b4787e3947ce92a5d8f70c4e256a0a"
76
+ "gitHead": "e03c21751e68ce24db6804dadca52b367e84abfb"
77
77
  }