cozy-client 41.6.0 → 41.7.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.
- package/dist/CozyClient.js +1 -1
- package/dist/index.node.js +19 -10
- package/dist/types.js +4 -0
- package/package.json +2 -2
- package/types/index.node.d.ts +1 -0
- package/types/types.d.ts +6 -1
package/dist/CozyClient.js
CHANGED
|
@@ -2703,7 +2703,7 @@ var CozyClient = /*#__PURE__*/function () {
|
|
|
2703
2703
|
CozyClient.hooks = CozyClient.hooks || {};
|
|
2704
2704
|
CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
|
|
2705
2705
|
|
|
2706
|
-
CozyClient.version = "41.
|
|
2706
|
+
CozyClient.version = "41.7.0";
|
|
2707
2707
|
|
|
2708
2708
|
_microee.default.mixin(CozyClient);
|
|
2709
2709
|
|
package/dist/index.node.js
CHANGED
|
@@ -22,6 +22,7 @@ var _exportNames = {
|
|
|
22
22
|
HasOneInPlace: true,
|
|
23
23
|
HasManyInPlace: true,
|
|
24
24
|
HasManyTriggers: true,
|
|
25
|
+
getReferencedBy: true,
|
|
25
26
|
deconstructCozyWebLinkWithSlug: true,
|
|
26
27
|
deconstructRedirectLink: true,
|
|
27
28
|
dehydrate: true,
|
|
@@ -129,58 +130,64 @@ Object.defineProperty(exports, "HasManyTriggers", {
|
|
|
129
130
|
return _associations.HasManyTriggers;
|
|
130
131
|
}
|
|
131
132
|
});
|
|
133
|
+
Object.defineProperty(exports, "getReferencedBy", {
|
|
134
|
+
enumerable: true,
|
|
135
|
+
get: function get() {
|
|
136
|
+
return _helpers.getReferencedBy;
|
|
137
|
+
}
|
|
138
|
+
});
|
|
132
139
|
Object.defineProperty(exports, "deconstructCozyWebLinkWithSlug", {
|
|
133
140
|
enumerable: true,
|
|
134
141
|
get: function get() {
|
|
135
|
-
return
|
|
142
|
+
return _helpers2.deconstructCozyWebLinkWithSlug;
|
|
136
143
|
}
|
|
137
144
|
});
|
|
138
145
|
Object.defineProperty(exports, "deconstructRedirectLink", {
|
|
139
146
|
enumerable: true,
|
|
140
147
|
get: function get() {
|
|
141
|
-
return
|
|
148
|
+
return _helpers2.deconstructRedirectLink;
|
|
142
149
|
}
|
|
143
150
|
});
|
|
144
151
|
Object.defineProperty(exports, "dehydrate", {
|
|
145
152
|
enumerable: true,
|
|
146
153
|
get: function get() {
|
|
147
|
-
return
|
|
154
|
+
return _helpers2.dehydrate;
|
|
148
155
|
}
|
|
149
156
|
});
|
|
150
157
|
Object.defineProperty(exports, "generateWebLink", {
|
|
151
158
|
enumerable: true,
|
|
152
159
|
get: function get() {
|
|
153
|
-
return
|
|
160
|
+
return _helpers2.generateWebLink;
|
|
154
161
|
}
|
|
155
162
|
});
|
|
156
163
|
Object.defineProperty(exports, "ensureFirstSlash", {
|
|
157
164
|
enumerable: true,
|
|
158
165
|
get: function get() {
|
|
159
|
-
return
|
|
166
|
+
return _helpers2.ensureFirstSlash;
|
|
160
167
|
}
|
|
161
168
|
});
|
|
162
169
|
Object.defineProperty(exports, "rootCozyUrl", {
|
|
163
170
|
enumerable: true,
|
|
164
171
|
get: function get() {
|
|
165
|
-
return
|
|
172
|
+
return _helpers2.rootCozyUrl;
|
|
166
173
|
}
|
|
167
174
|
});
|
|
168
175
|
Object.defineProperty(exports, "InvalidCozyUrlError", {
|
|
169
176
|
enumerable: true,
|
|
170
177
|
get: function get() {
|
|
171
|
-
return
|
|
178
|
+
return _helpers2.InvalidCozyUrlError;
|
|
172
179
|
}
|
|
173
180
|
});
|
|
174
181
|
Object.defineProperty(exports, "InvalidProtocolError", {
|
|
175
182
|
enumerable: true,
|
|
176
183
|
get: function get() {
|
|
177
|
-
return
|
|
184
|
+
return _helpers2.InvalidProtocolError;
|
|
178
185
|
}
|
|
179
186
|
});
|
|
180
187
|
Object.defineProperty(exports, "BlockedCozyError", {
|
|
181
188
|
enumerable: true,
|
|
182
189
|
get: function get() {
|
|
183
|
-
return
|
|
190
|
+
return _helpers2.BlockedCozyError;
|
|
184
191
|
}
|
|
185
192
|
});
|
|
186
193
|
Object.defineProperty(exports, "cancelable", {
|
|
@@ -227,7 +234,9 @@ var _dsl = require("./queries/dsl");
|
|
|
227
234
|
|
|
228
235
|
var _associations = require("./associations");
|
|
229
236
|
|
|
230
|
-
var _helpers = require("./helpers");
|
|
237
|
+
var _helpers = require("./associations/helpers");
|
|
238
|
+
|
|
239
|
+
var _helpers2 = require("./helpers");
|
|
231
240
|
|
|
232
241
|
var _utils = require("./utils");
|
|
233
242
|
|
package/dist/types.js
CHANGED
|
@@ -82,6 +82,10 @@ var _dsl = require("./queries/dsl");
|
|
|
82
82
|
* @property {String} type - type of the trigger. Can be "at", "cron", "event", "every", "in", "webhook", "client"
|
|
83
83
|
* @property {String} worker - type of worker. Can be "konnector" or "sendmail"
|
|
84
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.
|
|
85
|
+
* @property {IOCozyAccount['id']} [message.account] - Id of the account associated to this trigger, if any
|
|
86
|
+
* @property {IOCozyKonnector['slug']} [message.konnector] - Slug of the konnector associated to this trigger, if any
|
|
87
|
+
* @property {IOCozyFolder['_id']} [message.folder_to_save] - Id of the destination folder of the konnector associated to this trigger, if any
|
|
88
|
+
* @property {String} [message.Data] - Legacy, same message data but encoded in base64 json string
|
|
85
89
|
* @property {TriggerState} [current_state] - state of the last executed jobs related to this trigger
|
|
86
90
|
* @property {String} [arguments] - Arguments related to the type attribute. For example it's a cron configuration when the type is set to @cron.
|
|
87
91
|
* @typedef {CozyClientDocument & TriggersDocument} IOCozyTrigger - An io.cozy.triggers document
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-client",
|
|
3
|
-
"version": "41.
|
|
3
|
+
"version": "41.7.0",
|
|
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": "fd9cc49956ab74b86d71db44cdcc331a3526294b"
|
|
79
79
|
}
|
package/types/index.node.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { default } from "./CozyClient";
|
|
|
2
2
|
export { default as CozyLink } from "./CozyLink";
|
|
3
3
|
export { default as StackLink } from "./StackLink";
|
|
4
4
|
export { default as compose } from "lodash/flow";
|
|
5
|
+
export { getReferencedBy } from "./associations/helpers";
|
|
5
6
|
export { cancelable } from "./utils";
|
|
6
7
|
export { getQueryFromState } from "./store";
|
|
7
8
|
export { default as Registry } from "./registry";
|
package/types/types.d.ts
CHANGED
|
@@ -197,7 +197,12 @@ export type TriggersDocument = {
|
|
|
197
197
|
/**
|
|
198
198
|
* - 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.
|
|
199
199
|
*/
|
|
200
|
-
message:
|
|
200
|
+
message: {
|
|
201
|
+
account: IOCozyAccount['id'];
|
|
202
|
+
konnector: IOCozyKonnector['slug'];
|
|
203
|
+
folder_to_save: IOCozyFolder['_id'];
|
|
204
|
+
Data: string;
|
|
205
|
+
};
|
|
201
206
|
/**
|
|
202
207
|
* - state of the last executed jobs related to this trigger
|
|
203
208
|
*/
|