cozy-client 35.1.0 → 35.2.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.
@@ -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.1.0";
2672
+ CozyClient.version = "35.2.1";
2673
2673
 
2674
2674
  _microee.default.mixin(CozyClient);
2675
2675
 
@@ -18,7 +18,6 @@
18
18
  "successful": {
19
19
  "qualified_ok": "You just have successfully described your file! "
20
20
  },
21
-
22
21
  "items": {
23
22
  "accommodation_proof": "Proof of accommodation",
24
23
  "appliance_invoice": "Appliance invoice",
@@ -114,6 +113,15 @@
114
113
  "work_quote": "Work quote",
115
114
  "work_study": "Work & Study"
116
115
  },
116
+ "attributes":{
117
+ "contractType": {
118
+ "cdi": "CDI",
119
+ "cdd": "CDD",
120
+ "alternate": "Alternate",
121
+ "internship": "Internship",
122
+ "other": "Other"
123
+ }
124
+ },
117
125
  "themes": {
118
126
  "activity": "Activities",
119
127
  "family": "Family",
@@ -18,7 +18,6 @@
18
18
  "successful": {
19
19
  "qualified_ok": "Vous venez de qualifier votre fichier avec succès !"
20
20
  },
21
-
22
21
  "items": {
23
22
  "accommodation_proof": "Attestation d'hébergement",
24
23
  "appliance_invoice": "Facture d'électroménager",
@@ -114,6 +113,15 @@
114
113
  "work_quote": "Devis de travaux",
115
114
  "work_study": "Travail & Études"
116
115
  },
116
+ "attributes":{
117
+ "contractType": {
118
+ "cdi": "CDI",
119
+ "cdd": "CDD",
120
+ "alternate": "Alternance",
121
+ "internship": "Stage",
122
+ "other": "Autre"
123
+ }
124
+ },
117
125
  "themes": {
118
126
  "activity": "Activités & loisirs",
119
127
  "family": "Famille",
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.1.0",
3
+ "version": "35.2.1",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.node.js",
6
6
  "browser": "dist/index.js",
@@ -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": "13f6b8880b6b9bdc31e541682bb4c767b4c0224b"
76
+ "gitHead": "1b0381874ee85ce8bb84bb118310d2154842dbad"
77
77
  }
@@ -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: any): Promise<any>;
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
  }