cozy-client 46.9.0 → 46.9.1
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 +2 -2
- package/package.json +2 -2
- package/types/CozyClient.d.ts +3 -3
package/dist/CozyClient.js
CHANGED
|
@@ -2555,7 +2555,7 @@ var CozyClient = /*#__PURE__*/function () {
|
|
|
2555
2555
|
*
|
|
2556
2556
|
* @param {string} slug - the cozy-app's slug containing the setting (can be 'instance' for global settings)
|
|
2557
2557
|
* @param {T[]} keys - The names of the settings to retrieve
|
|
2558
|
-
* @returns {Promise<any
|
|
2558
|
+
* @returns {Promise<Record<T, any>>} - The value of the requested setting
|
|
2559
2559
|
*/
|
|
2560
2560
|
|
|
2561
2561
|
}, {
|
|
@@ -2782,7 +2782,7 @@ var CozyClient = /*#__PURE__*/function () {
|
|
|
2782
2782
|
CozyClient.hooks = CozyClient.hooks || {};
|
|
2783
2783
|
CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
|
|
2784
2784
|
|
|
2785
|
-
CozyClient.version = "46.9.
|
|
2785
|
+
CozyClient.version = "46.9.1";
|
|
2786
2786
|
|
|
2787
2787
|
_microee.default.mixin(CozyClient);
|
|
2788
2788
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-client",
|
|
3
|
-
"version": "46.9.
|
|
3
|
+
"version": "46.9.1",
|
|
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": "24ff9fa1c4abd0573c1f49fce91155732e657d46"
|
|
79
79
|
}
|
package/types/CozyClient.d.ts
CHANGED
|
@@ -725,9 +725,9 @@ declare class CozyClient {
|
|
|
725
725
|
*
|
|
726
726
|
* @param {string} slug - the cozy-app's slug containing the setting (can be 'instance' for global settings)
|
|
727
727
|
* @param {T[]} keys - The names of the settings to retrieve
|
|
728
|
-
* @returns {Promise<any
|
|
728
|
+
* @returns {Promise<Record<T, any>>} - The value of the requested setting
|
|
729
729
|
*/
|
|
730
|
-
getSettings<T extends string>(slug: string, keys: T[]): Promise<any
|
|
730
|
+
getSettings<T extends string>(slug: string, keys: T[]): Promise<Record<T, any>>;
|
|
731
731
|
/**
|
|
732
732
|
* Save the given value into the corresponding cozy-app setting
|
|
733
733
|
*
|
|
@@ -741,7 +741,7 @@ declare class CozyClient {
|
|
|
741
741
|
* @param {T[]=} setterKeys - The new values of the settings to save. It can be a raw dictionnary, or a callback that should return a new dictionnary
|
|
742
742
|
* @returns {Promise<any>} - The result of the `client.save()` call
|
|
743
743
|
*/
|
|
744
|
-
saveAfterFetchSettings<
|
|
744
|
+
saveAfterFetchSettings<T_2 extends string>(slug: string, itemsOrSetter: Record<string, any> | ((oldValue: any) => Record<T_2, any>), setterKeys?: T_2[]): Promise<any>;
|
|
745
745
|
}
|
|
746
746
|
declare namespace CozyClient {
|
|
747
747
|
export const hooks: {};
|