cozy-client 38.4.0 → 38.5.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.
@@ -2677,7 +2677,7 @@ var CozyClient = /*#__PURE__*/function () {
2677
2677
  CozyClient.hooks = CozyClient.hooks || {};
2678
2678
  CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
2679
2679
 
2680
- CozyClient.version = "38.4.0";
2680
+ CozyClient.version = "38.5.0";
2681
2681
 
2682
2682
  _microee.default.mixin(CozyClient);
2683
2683
 
package/dist/types.js CHANGED
@@ -37,9 +37,42 @@ var _dsl = require("./queries/dsl");
37
37
 
38
38
  /**
39
39
  * @typedef {object} KonnectorsDocument
40
- * @property {String} slug - slug of konnector
41
- * @property {ManifestFields} fields - konnector fields
42
- * @property {Boolean} clientSide - whether the konnector runs on client or not
40
+ * See https://docs.cozy.io/en/cozy-doctypes/docs/io.cozy.konnectors/
41
+ *
42
+ * @property {object} [aggregator] - object containing aggregator data
43
+ * @property {String[]} [categories] - list of categories (default: ['others'])
44
+ * @property {Boolean} [clientSide] - whether the konnector runs on client or not
45
+ * @property {String[]} [data_types] - list of data types managed by the connector
46
+ * @property {object} [developer] - identity information on the connector developer
47
+ * @property {String} [developer.name] - name of the developer
48
+ * @property {String} [developer.url] - url of the developer
49
+ * @property {String} editor - name of the editor
50
+ * @property {object[]} [features] - list of features added in the konnector
51
+ * @property {ManifestFields} [fields] - konnector fields
52
+ * @property {object[]} [folders] - list of folders required by the konnector to store files according to data types
53
+ * @property {"monthly"|"weekly"|"daily"} [frequency] - interval of time between two runs of the konnector (default: weekly)
54
+ * @property {String} [icon] - path to the icon for the cozy-home
55
+ * @property {string[]} [langs] - available languages (may differ from local)
56
+ * @property {object} [locales] - an object with language slug as property, each name property is an object of localized informations
57
+ * @property {String} [language] - konnector development language used (ex: node)
58
+ * @property {String} [manifest_version] - current manifest version number
59
+ * @property {String[]} [measures] - list of message identifiers, which can be used to display information in known zones
60
+ * @property {String} name - name of the konnector
61
+ * @property {String} [name_prefix] - prefix to display with the name
62
+ * @property {object} [oauth] - object containing oAuth information, like scope
63
+ * @property {object} [parameters] - additional parameters which should be passed to the konnector
64
+ * @property {object} [partnership] - object to provide informations about a partnership related to the konnector
65
+ * @property {object} [permissions] - map of permissions needed by the konnector
66
+ * @property {String[]} [qualification_labels] - list of one or more cozy-client qualification labels that the connector will associate with the files it retrieves
67
+ * @property {String[]} [screenshots] - an array of paths to the screenshots of the konnector (paths in the build)
68
+ * @property {String} slug - slug of the konnector
69
+ * @property {String} state - installation state of the konnector
70
+ * @property {String} [source] - where the files of the konnector can be downloaded (default: build branch)
71
+ * @property {object} [terms] - object defining properties for terms that need to be displayed/accepted by the user when installing the konnector
72
+ * @property {number[]} [time_interval] - list of two values, first is the interval start hour, second is the interval end hour (ex: [15, 21]) based on GMT time zone
73
+ * @property {String} type - type of application (konnector or webapp)
74
+ * @property {String} [vendor_link] - Store the installation state of the konnector
75
+ * @property {String} version - current version number of the konnector
43
76
  * @typedef {CozyClientDocument & KonnectorsDocument} IOCozyKonnector - An io.cozy.konnectors document
44
77
  */
45
78
 
@@ -51,7 +84,7 @@ var _dsl = require("./queries/dsl");
51
84
  * @property {object} message - Parameters to pass to the the worker. For example, when the worker is set to konnector, message contains the related konnector and the related account.
52
85
  * @property {TriggerState} [current_state] - state of the last executed jobs related to this trigger
53
86
  * @property {String} [arguments] - Arguments related to the type attribute. For example it's a cron configuration when the type is set to @cron.
54
- * @typedef {CozyClientDocument & TriggersDocument} IOCozyTrigger - An io.cozy.konnectors document
87
+ * @typedef {CozyClientDocument & TriggersDocument} IOCozyTrigger - An io.cozy.triggers document
55
88
  */
56
89
 
57
90
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-client",
3
- "version": "38.4.0",
3
+ "version": "38.5.0",
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": "18fc2cfe800c7bb20290e2c2402ea2104b52e668"
76
+ "gitHead": "c14ae8fe2ea2a6f5d8936696ba9521e545722d01"
77
77
  }
package/types/types.d.ts CHANGED
@@ -41,19 +41,141 @@ export type AccountsDocument = {
41
41
  * - An io.cozy.accounts document
42
42
  */
43
43
  export type IOCozyAccount = CozyClientDocument & AccountsDocument;
44
+ /**
45
+ * See https://docs.cozy.io/en/cozy-doctypes/docs/io.cozy.konnectors/
46
+ */
44
47
  export type KonnectorsDocument = {
45
48
  /**
46
- * - slug of konnector
49
+ * - object containing aggregator data
47
50
  */
48
- slug: string;
51
+ aggregator?: object;
49
52
  /**
50
- * - konnector fields
53
+ * - list of categories (default: ['others'])
51
54
  */
52
- fields: ManifestFields;
55
+ categories?: string[];
53
56
  /**
54
57
  * - whether the konnector runs on client or not
55
58
  */
56
- clientSide: boolean;
59
+ clientSide?: boolean;
60
+ /**
61
+ * - list of data types managed by the connector
62
+ */
63
+ data_types?: string[];
64
+ /**
65
+ * - identity information on the connector developer
66
+ */
67
+ developer?: {
68
+ name: string;
69
+ url: string;
70
+ };
71
+ /**
72
+ * - name of the editor
73
+ */
74
+ editor: string;
75
+ /**
76
+ * - list of features added in the konnector
77
+ */
78
+ features?: object[];
79
+ /**
80
+ * - konnector fields
81
+ */
82
+ fields?: ManifestFields;
83
+ /**
84
+ * - list of folders required by the konnector to store files according to data types
85
+ */
86
+ folders?: object[];
87
+ /**
88
+ * - interval of time between two runs of the konnector (default: weekly)
89
+ */
90
+ frequency?: "monthly" | "weekly" | "daily";
91
+ /**
92
+ * - path to the icon for the cozy-home
93
+ */
94
+ icon?: string;
95
+ /**
96
+ * - available languages (may differ from local)
97
+ */
98
+ langs?: string[];
99
+ /**
100
+ * - an object with language slug as property, each name property is an object of localized informations
101
+ */
102
+ locales?: object;
103
+ /**
104
+ * - konnector development language used (ex: node)
105
+ */
106
+ language?: string;
107
+ /**
108
+ * - current manifest version number
109
+ */
110
+ manifest_version?: string;
111
+ /**
112
+ * - list of message identifiers, which can be used to display information in known zones
113
+ */
114
+ measures?: string[];
115
+ /**
116
+ * - name of the konnector
117
+ */
118
+ name: string;
119
+ /**
120
+ * - prefix to display with the name
121
+ */
122
+ name_prefix?: string;
123
+ /**
124
+ * - object containing oAuth information, like scope
125
+ */
126
+ oauth?: object;
127
+ /**
128
+ * - additional parameters which should be passed to the konnector
129
+ */
130
+ parameters?: object;
131
+ /**
132
+ * - object to provide informations about a partnership related to the konnector
133
+ */
134
+ partnership?: object;
135
+ /**
136
+ * - map of permissions needed by the konnector
137
+ */
138
+ permissions?: object;
139
+ /**
140
+ * - list of one or more cozy-client qualification labels that the connector will associate with the files it retrieves
141
+ */
142
+ qualification_labels?: string[];
143
+ /**
144
+ * - an array of paths to the screenshots of the konnector (paths in the build)
145
+ */
146
+ screenshots?: string[];
147
+ /**
148
+ * - slug of the konnector
149
+ */
150
+ slug: string;
151
+ /**
152
+ * - installation state of the konnector
153
+ */
154
+ state: string;
155
+ /**
156
+ * - where the files of the konnector can be downloaded (default: build branch)
157
+ */
158
+ source?: string;
159
+ /**
160
+ * - object defining properties for terms that need to be displayed/accepted by the user when installing the konnector
161
+ */
162
+ terms?: object;
163
+ /**
164
+ * - list of two values, first is the interval start hour, second is the interval end hour (ex: [15, 21]) based on GMT time zone
165
+ */
166
+ time_interval?: number[];
167
+ /**
168
+ * - type of application (konnector or webapp)
169
+ */
170
+ type: string;
171
+ /**
172
+ * - Store the installation state of the konnector
173
+ */
174
+ vendor_link?: string;
175
+ /**
176
+ * - current version number of the konnector
177
+ */
178
+ version: string;
57
179
  };
58
180
  /**
59
181
  * - An io.cozy.konnectors document
@@ -86,7 +208,7 @@ export type TriggersDocument = {
86
208
  arguments?: string;
87
209
  };
88
210
  /**
89
- * - An io.cozy.konnectors document
211
+ * - An io.cozy.triggers document
90
212
  */
91
213
  export type IOCozyTrigger = CozyClientDocument & TriggersDocument;
92
214
  export type TriggerState = {