cozy-client 35.2.0 → 35.2.2
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/registry.js +7 -3
- package/package.json +4 -4
- package/types/registry.d.ts +12 -7
package/dist/CozyClient.js
CHANGED
|
@@ -2669,7 +2669,7 @@ var CozyClient = /*#__PURE__*/function () {
|
|
|
2669
2669
|
CozyClient.hooks = CozyClient.hooks || {};
|
|
2670
2670
|
CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
|
|
2671
2671
|
|
|
2672
|
-
CozyClient.version = "35.2.
|
|
2672
|
+
CozyClient.version = "35.2.2";
|
|
2673
2673
|
|
|
2674
2674
|
_microee.default.mixin(CozyClient);
|
|
2675
2675
|
|
package/dist/registry.js
CHANGED
|
@@ -56,6 +56,7 @@ var getBaseRoute = function getBaseRoute(app) {
|
|
|
56
56
|
* @property {string} slug
|
|
57
57
|
* @property {object} terms
|
|
58
58
|
* @property {boolean} installed
|
|
59
|
+
* @property {string} type
|
|
59
60
|
*/
|
|
60
61
|
|
|
61
62
|
/**
|
|
@@ -129,6 +130,9 @@ var Registry = /*#__PURE__*/function () {
|
|
|
129
130
|
}()
|
|
130
131
|
/**
|
|
131
132
|
* Uninstalls an app.
|
|
133
|
+
*
|
|
134
|
+
* @param {RegistryApp} app - App to be installed
|
|
135
|
+
* @returns {Promise}
|
|
132
136
|
*/
|
|
133
137
|
|
|
134
138
|
}, {
|
|
@@ -218,7 +222,7 @@ var Registry = /*#__PURE__*/function () {
|
|
|
218
222
|
/**
|
|
219
223
|
* Fetch the list of apps that are in maintenance mode
|
|
220
224
|
*
|
|
221
|
-
* @returns {Array<RegistryApp
|
|
225
|
+
* @returns {Promise<Array<RegistryApp>>}
|
|
222
226
|
*/
|
|
223
227
|
|
|
224
228
|
}, {
|
|
@@ -231,7 +235,7 @@ var Registry = /*#__PURE__*/function () {
|
|
|
231
235
|
*
|
|
232
236
|
* @param {string} slug - The slug of the app to fetch
|
|
233
237
|
*
|
|
234
|
-
* @returns {RegistryApp}
|
|
238
|
+
* @returns {Promise<RegistryApp>}
|
|
235
239
|
*/
|
|
236
240
|
|
|
237
241
|
}, {
|
|
@@ -247,7 +251,7 @@ var Registry = /*#__PURE__*/function () {
|
|
|
247
251
|
* @param {RegistryAppChannel} params.channel - The channel of the app to fetch
|
|
248
252
|
* @param {string} params.version - The version of the app to fetch. Can also be "latest"
|
|
249
253
|
*
|
|
250
|
-
* @returns {RegistryApp}
|
|
254
|
+
* @returns {Promise<RegistryApp>}
|
|
251
255
|
*/
|
|
252
256
|
|
|
253
257
|
}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-client",
|
|
3
|
-
"version": "35.2.
|
|
3
|
+
"version": "35.2.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.node.js",
|
|
6
6
|
"browser": "dist/index.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@testing-library/react-hooks": "3.7.0",
|
|
49
49
|
"babel-plugin-search-and-replace": "1.1.1",
|
|
50
50
|
"btoa": "1.2.1",
|
|
51
|
-
"cozy-device-helper": "2.
|
|
51
|
+
"cozy-device-helper": "2.7.0",
|
|
52
52
|
"cozy-flags": "2.10.2",
|
|
53
53
|
"cozy-logger": "1.7.0",
|
|
54
54
|
"cozy-ui": "48.0.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"mockdate": "2.0.5",
|
|
57
57
|
"react": "16.14.0",
|
|
58
58
|
"react-inspector": "5.1.1",
|
|
59
|
-
"react-redux": "7.2.
|
|
59
|
+
"react-redux": "7.2.9",
|
|
60
60
|
"react-test-renderer": "16.14.0",
|
|
61
61
|
"server-destroy": "1.0.1",
|
|
62
62
|
"typescript": "4.1.5"
|
|
@@ -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": "
|
|
76
|
+
"gitHead": "ed214226db8aff7f81a6724bc88223e430301f83"
|
|
77
77
|
}
|
package/types/registry.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export type RegistryApp = {
|
|
|
5
5
|
slug: string;
|
|
6
6
|
terms: object;
|
|
7
7
|
installed: boolean;
|
|
8
|
+
type: string;
|
|
8
9
|
};
|
|
9
10
|
export type RegistryAppChannel = "stable" | "dev" | "beta";
|
|
10
11
|
/**
|
|
@@ -12,6 +13,7 @@ export type RegistryAppChannel = "stable" | "dev" | "beta";
|
|
|
12
13
|
* @property {string} slug
|
|
13
14
|
* @property {object} terms
|
|
14
15
|
* @property {boolean} installed
|
|
16
|
+
* @property {string} type
|
|
15
17
|
*/
|
|
16
18
|
/**
|
|
17
19
|
* @typedef {"dev"|"beta"|"stable"} RegistryAppChannel
|
|
@@ -31,8 +33,11 @@ declare class Registry {
|
|
|
31
33
|
installApp(app: RegistryApp, source: string): Promise<any>;
|
|
32
34
|
/**
|
|
33
35
|
* Uninstalls an app.
|
|
36
|
+
*
|
|
37
|
+
* @param {RegistryApp} app - App to be installed
|
|
38
|
+
* @returns {Promise}
|
|
34
39
|
*/
|
|
35
|
-
uninstallApp(app:
|
|
40
|
+
uninstallApp(app: RegistryApp): Promise<any>;
|
|
36
41
|
/**
|
|
37
42
|
* Fetch at most 200 apps from the channel
|
|
38
43
|
*
|
|
@@ -51,17 +56,17 @@ declare class Registry {
|
|
|
51
56
|
/**
|
|
52
57
|
* Fetch the list of apps that are in maintenance mode
|
|
53
58
|
*
|
|
54
|
-
* @returns {Array<RegistryApp
|
|
59
|
+
* @returns {Promise<Array<RegistryApp>>}
|
|
55
60
|
*/
|
|
56
|
-
fetchAppsInMaintenance(): Array<RegistryApp
|
|
61
|
+
fetchAppsInMaintenance(): Promise<Array<RegistryApp>>;
|
|
57
62
|
/**
|
|
58
63
|
* Fetch the status of a single app on the registry
|
|
59
64
|
*
|
|
60
65
|
* @param {string} slug - The slug of the app to fetch
|
|
61
66
|
*
|
|
62
|
-
* @returns {RegistryApp}
|
|
67
|
+
* @returns {Promise<RegistryApp>}
|
|
63
68
|
*/
|
|
64
|
-
fetchApp(slug: string): RegistryApp
|
|
69
|
+
fetchApp(slug: string): Promise<RegistryApp>;
|
|
65
70
|
/**
|
|
66
71
|
* Fetch the latest version of an app for the given channel and slug
|
|
67
72
|
*
|
|
@@ -70,11 +75,11 @@ declare class Registry {
|
|
|
70
75
|
* @param {RegistryAppChannel} params.channel - The channel of the app to fetch
|
|
71
76
|
* @param {string} params.version - The version of the app to fetch. Can also be "latest"
|
|
72
77
|
*
|
|
73
|
-
* @returns {RegistryApp}
|
|
78
|
+
* @returns {Promise<RegistryApp>}
|
|
74
79
|
*/
|
|
75
80
|
fetchAppVersion(params: {
|
|
76
81
|
slug: string;
|
|
77
82
|
channel: RegistryAppChannel;
|
|
78
83
|
version: string;
|
|
79
|
-
}): RegistryApp
|
|
84
|
+
}): Promise<RegistryApp>;
|
|
80
85
|
}
|