cozy-client 49.4.0 → 49.6.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/types.js +5 -0
- package/package.json +2 -2
- package/types/types.d.ts +20 -0
package/dist/CozyClient.js
CHANGED
|
@@ -2997,7 +2997,7 @@ var CozyClient = /*#__PURE__*/function () {
|
|
|
2997
2997
|
CozyClient.hooks = CozyClient.hooks || {};
|
|
2998
2998
|
CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
|
|
2999
2999
|
|
|
3000
|
-
CozyClient.version = "49.
|
|
3000
|
+
CozyClient.version = "49.6.0";
|
|
3001
3001
|
|
|
3002
3002
|
_microee.default.mixin(CozyClient);
|
|
3003
3003
|
|
package/dist/types.js
CHANGED
|
@@ -490,6 +490,9 @@ var _dsl = require("./queries/dsl");
|
|
|
490
490
|
* @property {boolean} executable - Whether or not the file is executable
|
|
491
491
|
* @property {boolean} encrypted - Whether or not the file is client-side encrypted
|
|
492
492
|
* @property {string} created_at - Creation date of the file
|
|
493
|
+
* @property {string} updated_at - Last modification date of the file
|
|
494
|
+
* @property {number} size - Size of the file, in bytes
|
|
495
|
+
* @property {boolean} trashed - Whether the folder is in the trash
|
|
493
496
|
* @typedef {CozyClientDocument & FileDocument} IOCozyFile - An io.cozy.files document
|
|
494
497
|
*/
|
|
495
498
|
|
|
@@ -512,9 +515,11 @@ var _dsl = require("./queries/dsl");
|
|
|
512
515
|
* @property {NextcloudFilesDoctype} _type - Doctype of the folder
|
|
513
516
|
* @property {string} name - Name of the file
|
|
514
517
|
* @property {string} path - Path to the file
|
|
518
|
+
* @property {number} size - Size of the file, in bytes
|
|
515
519
|
* @property {string} parentPath - Path to the folder containing the file
|
|
516
520
|
* @property {string} [restore_path] - Old path when the file is in the trash
|
|
517
521
|
* @property {'file'|'directory'} type - Type of the file
|
|
522
|
+
* @property {string} updated_at - Last modification date of the file
|
|
518
523
|
* @property {object} cozyMetadata - Mime of the file
|
|
519
524
|
* @property {string} cozyMetadata.sourceAccount - Id of the io.cozy.account associated to the Nextcloud
|
|
520
525
|
* @property {{self: string}} links - Links to the file into nextcloud server
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-client",
|
|
3
|
-
"version": "49.
|
|
3
|
+
"version": "49.6.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.node.js",
|
|
6
6
|
"browser": "dist/index.js",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"react-native-ios11-devicecheck": "https://github.com/cozy/react-native-devicecheck#app-attest-v0.1"
|
|
76
76
|
},
|
|
77
77
|
"sideEffects": false,
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "ca70ddbfd2c7a5e942a5625fec57f1c96d467460"
|
|
79
79
|
}
|
package/types/types.d.ts
CHANGED
|
@@ -882,6 +882,18 @@ export type FileDocument = {
|
|
|
882
882
|
* - Creation date of the file
|
|
883
883
|
*/
|
|
884
884
|
created_at: string;
|
|
885
|
+
/**
|
|
886
|
+
* - Last modification date of the file
|
|
887
|
+
*/
|
|
888
|
+
updated_at: string;
|
|
889
|
+
/**
|
|
890
|
+
* - Size of the file, in bytes
|
|
891
|
+
*/
|
|
892
|
+
size: number;
|
|
893
|
+
/**
|
|
894
|
+
* - Whether the folder is in the trash
|
|
895
|
+
*/
|
|
896
|
+
trashed: boolean;
|
|
885
897
|
};
|
|
886
898
|
/**
|
|
887
899
|
* - An io.cozy.files document
|
|
@@ -948,6 +960,10 @@ export type NextcloudFile = {
|
|
|
948
960
|
* - Path to the file
|
|
949
961
|
*/
|
|
950
962
|
path: string;
|
|
963
|
+
/**
|
|
964
|
+
* - Size of the file, in bytes
|
|
965
|
+
*/
|
|
966
|
+
size: number;
|
|
951
967
|
/**
|
|
952
968
|
* - Path to the folder containing the file
|
|
953
969
|
*/
|
|
@@ -960,6 +976,10 @@ export type NextcloudFile = {
|
|
|
960
976
|
* - Type of the file
|
|
961
977
|
*/
|
|
962
978
|
type: 'file' | 'directory';
|
|
979
|
+
/**
|
|
980
|
+
* - Last modification date of the file
|
|
981
|
+
*/
|
|
982
|
+
updated_at: string;
|
|
963
983
|
/**
|
|
964
984
|
* - Mime of the file
|
|
965
985
|
*/
|