cozy-client 32.3.1 → 32.3.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 +6 -3
- package/dist/authentication/mobile.js +2 -2
- package/dist/devtools/Queries.js +2 -2
- package/dist/manifest.js +2 -2
- package/package.json +3 -3
- package/types/CozyClient.d.ts +10 -3
- package/types/manifest.d.ts +2 -2
package/dist/CozyClient.js
CHANGED
|
@@ -873,8 +873,11 @@ var CozyClient = /*#__PURE__*/function () {
|
|
|
873
873
|
* - Can only be called with documents from the same doctype
|
|
874
874
|
* - Does not support automatic creation of references
|
|
875
875
|
*
|
|
876
|
-
* @param {CozyClientDocument[]} docs
|
|
877
|
-
* @param {Object} mutationOptions
|
|
876
|
+
* @param {CozyClientDocument[]} docs - Documents from the same doctype
|
|
877
|
+
* @param {Object} mutationOptions - Mutation Options
|
|
878
|
+
* @param {string} [mutationOptions.as] - Mutation id
|
|
879
|
+
* @param {Function} [mutationOptions.update] - Function to update the document
|
|
880
|
+
* @param {Function} [mutationOptions.updateQueries] - Function to update queries
|
|
878
881
|
* @returns {Promise<void>}
|
|
879
882
|
*/
|
|
880
883
|
|
|
@@ -2550,7 +2553,7 @@ var CozyClient = /*#__PURE__*/function () {
|
|
|
2550
2553
|
CozyClient.hooks = CozyClient.hooks || {};
|
|
2551
2554
|
CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
|
|
2552
2555
|
|
|
2553
|
-
CozyClient.version = "32.3.
|
|
2556
|
+
CozyClient.version = "32.3.2";
|
|
2554
2557
|
|
|
2555
2558
|
_microee.default.mixin(CozyClient);
|
|
2556
2559
|
|
|
@@ -27,7 +27,7 @@ var win = typeof window !== 'undefined' ? window : null;
|
|
|
27
27
|
/**
|
|
28
28
|
* Open a SafariView Controller and resolve with the URL containing the token
|
|
29
29
|
*
|
|
30
|
-
* @param {string} url
|
|
30
|
+
* @param {string} url - Url containing access_code and state
|
|
31
31
|
* @returns {Promise}
|
|
32
32
|
*/
|
|
33
33
|
|
|
@@ -65,7 +65,7 @@ var authenticateWithSafari = function authenticateWithSafari(url) {
|
|
|
65
65
|
/**
|
|
66
66
|
* Opens an InAppBrowser and resolves with the URL containing the token
|
|
67
67
|
*
|
|
68
|
-
* @param {string} url
|
|
68
|
+
* @param {string} url - Url containing access_code and state
|
|
69
69
|
* @returns {Promise}
|
|
70
70
|
*/
|
|
71
71
|
|
package/dist/devtools/Queries.js
CHANGED
|
@@ -93,7 +93,7 @@ var getClassNameForExecutedTimesQuery = function getClassNameForExecutedTimesQue
|
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
95
|
/**
|
|
96
|
-
* @param {{ queryState: QueryState }} props
|
|
96
|
+
* @param {{ queryState: QueryState }} props - Query state containing fetchStatus, lastError
|
|
97
97
|
*/
|
|
98
98
|
|
|
99
99
|
|
|
@@ -106,7 +106,7 @@ var FetchStatus = function FetchStatus(props) {
|
|
|
106
106
|
}, fetchStatus, fetchStatus === 'failed' ? " - ".concat(lastError) : null);
|
|
107
107
|
};
|
|
108
108
|
/**
|
|
109
|
-
* @param {{ queryState: QueryState }} props
|
|
109
|
+
* @param {{ queryState: QueryState }} props - Query state containing definition
|
|
110
110
|
*/
|
|
111
111
|
|
|
112
112
|
|
package/dist/manifest.js
CHANGED
|
@@ -38,9 +38,9 @@ function isPartnershipValid(partnership) {
|
|
|
38
38
|
return Boolean(partnership && partnership.description);
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
|
-
* Normalize app manifest,
|
|
41
|
+
* Normalize app manifest, retro-compatibility for old manifests
|
|
42
42
|
*
|
|
43
|
-
* @param {Manifest} manifest
|
|
43
|
+
* @param {Manifest} manifest - app manifest to normalize
|
|
44
44
|
* @returns {Manifest}
|
|
45
45
|
*/
|
|
46
46
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-client",
|
|
3
|
-
"version": "32.3.
|
|
3
|
+
"version": "32.3.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.node.js",
|
|
6
6
|
"browser": "dist/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@types/jest": "^26.0.20",
|
|
19
19
|
"@types/lodash": "^4.14.170",
|
|
20
20
|
"btoa": "^1.2.1",
|
|
21
|
-
"cozy-stack-client": "^32.2
|
|
21
|
+
"cozy-stack-client": "^32.3.2",
|
|
22
22
|
"json-stable-stringify": "^1.0.1",
|
|
23
23
|
"lodash": "^4.17.13",
|
|
24
24
|
"microee": "^0.0.6",
|
|
@@ -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": "5517f3f84a4d9d3e129f7bb74ea7d44dd66fa1a0"
|
|
77
77
|
}
|
package/types/CozyClient.d.ts
CHANGED
|
@@ -331,11 +331,18 @@ declare class CozyClient {
|
|
|
331
331
|
* - Can only be called with documents from the same doctype
|
|
332
332
|
* - Does not support automatic creation of references
|
|
333
333
|
*
|
|
334
|
-
* @param {CozyClientDocument[]} docs
|
|
335
|
-
* @param {Object} mutationOptions
|
|
334
|
+
* @param {CozyClientDocument[]} docs - Documents from the same doctype
|
|
335
|
+
* @param {Object} mutationOptions - Mutation Options
|
|
336
|
+
* @param {string} [mutationOptions.as] - Mutation id
|
|
337
|
+
* @param {Function} [mutationOptions.update] - Function to update the document
|
|
338
|
+
* @param {Function} [mutationOptions.updateQueries] - Function to update queries
|
|
336
339
|
* @returns {Promise<void>}
|
|
337
340
|
*/
|
|
338
|
-
saveAll(docs: CozyClientDocument[], mutationOptions?:
|
|
341
|
+
saveAll(docs: CozyClientDocument[], mutationOptions?: {
|
|
342
|
+
as?: string;
|
|
343
|
+
update?: Function;
|
|
344
|
+
updateQueries?: Function;
|
|
345
|
+
}): Promise<void>;
|
|
339
346
|
ensureCozyMetadata(document: any, options?: {
|
|
340
347
|
event: string;
|
|
341
348
|
}): any;
|
package/types/manifest.d.ts
CHANGED
|
@@ -3,9 +3,9 @@ export function sanitizeCategories(categories: any): any;
|
|
|
3
3
|
export function areTermsValid(terms: any): boolean;
|
|
4
4
|
export function isPartnershipValid(partnership: any): boolean;
|
|
5
5
|
/**
|
|
6
|
-
* Normalize app manifest,
|
|
6
|
+
* Normalize app manifest, retro-compatibility for old manifests
|
|
7
7
|
*
|
|
8
|
-
* @param {Manifest} manifest
|
|
8
|
+
* @param {Manifest} manifest - app manifest to normalize
|
|
9
9
|
* @returns {Manifest}
|
|
10
10
|
*/
|
|
11
11
|
export function sanitize(manifest: Manifest): Manifest;
|