cozy-client 27.15.0 → 27.16.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 +1 -1
- package/dist/models/folder.js +2 -1
- package/dist/models/folder.spec.js +1 -0
- package/package.json +11 -11
- package/types/models/folder.d.ts +1 -0
- package/CHANGELOG.md +0 -5874
package/dist/CozyClient.js
CHANGED
|
@@ -2464,7 +2464,7 @@ var CozyClient = /*#__PURE__*/function () {
|
|
|
2464
2464
|
CozyClient.hooks = CozyClient.hooks || {};
|
|
2465
2465
|
CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
|
|
2466
2466
|
|
|
2467
|
-
CozyClient.version = "27.
|
|
2467
|
+
CozyClient.version = "27.16.0";
|
|
2468
2468
|
|
|
2469
2469
|
_microee.default.mixin(CozyClient);
|
|
2470
2470
|
|
package/dist/models/folder.js
CHANGED
|
@@ -29,7 +29,8 @@ var MAGIC_FOLDERS = {
|
|
|
29
29
|
PHOTOS_UPLOAD: "".concat(APP_DOCTYPE, "/").concat(photos, "/upload"),
|
|
30
30
|
NOTES: "".concat(APP_DOCTYPE, "/notes"),
|
|
31
31
|
HOME: "".concat(APP_DOCTYPE, "/home"),
|
|
32
|
-
PAPERS: "".concat(APP_DOCTYPE, "/").concat(administrative, "/papers")
|
|
32
|
+
PAPERS: "".concat(APP_DOCTYPE, "/").concat(administrative, "/papers"),
|
|
33
|
+
COACH_CO2: "".concat(APP_DOCTYPE, "/").concat(administrative, "/coachco2")
|
|
33
34
|
};
|
|
34
35
|
/**
|
|
35
36
|
* Returns a "Magic Folder", given its id. See https://docs.cozy.io/en/cozy-doctypes/docs/io.cozy.apps/#special-iocozyapps-doctypes
|
|
@@ -22,6 +22,7 @@ describe('Folder model', () => {
|
|
|
22
22
|
expect(MAGIC_FOLDERS.NOTES).toBeDefined()
|
|
23
23
|
expect(MAGIC_FOLDERS.HOME).toBeDefined()
|
|
24
24
|
expect(MAGIC_FOLDERS.PAPERS).toBeDefined()
|
|
25
|
+
expect(MAGIC_FOLDERS.COACH_CO2).toBeDefined()
|
|
25
26
|
})
|
|
26
27
|
|
|
27
28
|
describe('ensureMagicFolder', () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-client",
|
|
3
|
-
"version": "27.
|
|
3
|
+
"version": "27.16.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.node.js",
|
|
6
6
|
"browser": "dist/index.js",
|
|
@@ -44,23 +44,23 @@
|
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@babel/cli": "7.12.8",
|
|
47
|
-
"@cozy/codemods": "
|
|
48
|
-
"@material-ui/core": "4",
|
|
49
|
-
"@testing-library/react": "
|
|
50
|
-
"@testing-library/react-hooks": "
|
|
47
|
+
"@cozy/codemods": "1.7.0",
|
|
48
|
+
"@material-ui/core": "4.11.3",
|
|
49
|
+
"@testing-library/react": "10.4.9",
|
|
50
|
+
"@testing-library/react-hooks": "3.4.2",
|
|
51
51
|
"babel-plugin-search-and-replace": "1.1.0",
|
|
52
|
-
"btoa": "
|
|
52
|
+
"btoa": "1.2.1",
|
|
53
53
|
"cozy-logger": "1.7.0",
|
|
54
54
|
"cozy-ui": "48.0.0",
|
|
55
55
|
"date-fns": "2.27.0",
|
|
56
|
-
"jsdoc-plugin-intersection": "
|
|
57
|
-
"mockdate": "
|
|
56
|
+
"jsdoc-plugin-intersection": "1.0.4",
|
|
57
|
+
"mockdate": "2.0.5",
|
|
58
58
|
"react": "16.14.0",
|
|
59
59
|
"react-inspector": "5.1.1",
|
|
60
60
|
"react-redux": "7.2.5",
|
|
61
61
|
"react-test-renderer": "16.14.0",
|
|
62
|
-
"server-destroy": "
|
|
63
|
-
"typescript": "
|
|
62
|
+
"server-destroy": "1.0.1",
|
|
63
|
+
"typescript": "4.1.5"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"cozy-ui": ">34.0.0",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"react-native-ios11-devicecheck": "https://github.com/cozy/react-native-devicecheck#app-attest-v0.1"
|
|
72
72
|
},
|
|
73
73
|
"sideEffects": false,
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "b52a6830a34c3a13bee265132f527c0b30d580a5"
|
|
75
75
|
}
|
package/types/models/folder.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export namespace MAGIC_FOLDERS {
|
|
|
6
6
|
const NOTES: string;
|
|
7
7
|
const HOME: string;
|
|
8
8
|
const PAPERS: string;
|
|
9
|
+
const COACH_CO2: string;
|
|
9
10
|
}
|
|
10
11
|
export function ensureMagicFolder(client: CozyClient, id: string, path: string): Promise<IOCozyFolder>;
|
|
11
12
|
export function createFolderWithReference(client: CozyClient, path: string, document: CozyClientDocument): Promise<IOCozyFolder>;
|