cozy-client 24.8.1 → 24.9.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 CHANGED
@@ -3,6 +3,17 @@
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
+ # [24.9.0](https://github.com/cozy/cozy-client/compare/v24.8.1...v24.9.0) (2021-09-22)
7
+
8
+
9
+ ### Features
10
+
11
+ * Add papers path to MAGIC_FOLDERS contante ([3e31d5b](https://github.com/cozy/cozy-client/commit/3e31d5b5e3de64b810366aee64610d92925de823))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [24.8.1](https://github.com/cozy/cozy-client/compare/v24.8.0...v24.8.1) (2021-09-20)
7
18
 
8
19
  **Note:** Version bump only for package cozy-client
@@ -2386,7 +2386,7 @@ var CozyClient = /*#__PURE__*/function () {
2386
2386
  CozyClient.hooks = CozyClient.hooks || {};
2387
2387
  CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
2388
2388
 
2389
- CozyClient.version = "24.8.1";
2389
+ CozyClient.version = "24.9.0";
2390
2390
 
2391
2391
  _microee.default.mixin(CozyClient);
2392
2392
 
@@ -20,13 +20,16 @@ var _types = require("../types");
20
20
  var _const = require("../const");
21
21
 
22
22
  var APP_DOCTYPE = 'io.cozy.apps';
23
+ var administrative = 'administrative';
24
+ var photos = 'photos';
23
25
  var MAGIC_FOLDERS = {
24
- ADMINISTRATIVE: "".concat(APP_DOCTYPE, "/administrative"),
25
- PHOTOS: "".concat(APP_DOCTYPE, "/photos"),
26
- PHOTOS_BACKUP: "".concat(APP_DOCTYPE, "/photos/mobile"),
27
- PHOTOS_UPLOAD: "".concat(APP_DOCTYPE, "/photos/upload"),
26
+ ADMINISTRATIVE: "".concat(APP_DOCTYPE, "/").concat(administrative),
27
+ PHOTOS: "".concat(APP_DOCTYPE, "/").concat(photos),
28
+ PHOTOS_BACKUP: "".concat(APP_DOCTYPE, "/").concat(photos, "/mobile"),
29
+ PHOTOS_UPLOAD: "".concat(APP_DOCTYPE, "/").concat(photos, "/upload"),
28
30
  NOTES: "".concat(APP_DOCTYPE, "/notes"),
29
- HOME: "".concat(APP_DOCTYPE, "/home")
31
+ HOME: "".concat(APP_DOCTYPE, "/home"),
32
+ PAPERS: "".concat(APP_DOCTYPE, "/").concat(administrative, "/papers")
30
33
  };
31
34
  /**
32
35
  * Returns a "Magic Folder", given its id. See https://docs.cozy.io/en/cozy-doctypes/docs/io.cozy.apps/#special-iocozyapps-doctypes
@@ -21,6 +21,7 @@ describe('Folder model', () => {
21
21
  expect(MAGIC_FOLDERS.PHOTOS_BACKUP).toBeDefined()
22
22
  expect(MAGIC_FOLDERS.NOTES).toBeDefined()
23
23
  expect(MAGIC_FOLDERS.HOME).toBeDefined()
24
+ expect(MAGIC_FOLDERS.PAPERS).toBeDefined()
24
25
  })
25
26
 
26
27
  describe('ensureMagicFolder', () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-client",
3
- "version": "24.8.1",
3
+ "version": "24.9.0",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.node.js",
6
6
  "browser": "dist/index.js",
@@ -68,5 +68,5 @@
68
68
  "react-native-inappbrowser-reborn": "^3.5.1"
69
69
  },
70
70
  "sideEffects": false,
71
- "gitHead": "0e084319f68986304ef400016b9b10fa2f604ab3"
71
+ "gitHead": "87a93ed928ae826ada9deaaeb2d88ac4d0879af7"
72
72
  }
@@ -5,6 +5,7 @@ export namespace MAGIC_FOLDERS {
5
5
  const PHOTOS_UPLOAD: string;
6
6
  const NOTES: string;
7
7
  const HOME: string;
8
+ const PAPERS: string;
8
9
  }
9
10
  export function ensureMagicFolder(client: CozyClient, id: string, path: string): Promise<IOCozyFolder>;
10
11
  export function createFolderWithReference(client: CozyClient, path: string, document: CozyClientDocument): Promise<IOCozyFolder>;