cozy-client 41.5.0 → 41.6.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.
@@ -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.5.0";
2706
+ CozyClient.version = "41.6.1";
2707
2707
 
2708
2708
  _microee.default.mixin(CozyClient);
2709
2709
 
@@ -5,7 +5,7 @@ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWild
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.user = exports.paper = exports.dacc = exports.sharing = exports.timeseries = exports.document = exports.contact = exports.utils = exports.permission = exports.note = exports.account = exports.konnectorFolder = exports.folder = exports.file = exports.applications = exports.instance = exports.trigger = exports.accounts = exports.triggers = void 0;
8
+ exports.geo = exports.user = exports.paper = exports.dacc = exports.sharing = exports.timeseries = exports.document = exports.contact = exports.utils = exports.permission = exports.note = exports.account = exports.konnectorFolder = exports.folder = exports.file = exports.applications = exports.instance = exports.trigger = exports.accounts = exports.triggers = void 0;
9
9
 
10
10
  var trigger = _interopRequireWildcard(require("./trigger"));
11
11
 
@@ -74,6 +74,10 @@ exports.paper = paper;
74
74
  var user = _interopRequireWildcard(require("./user"));
75
75
 
76
76
  exports.user = user;
77
+
78
+ var geo = _interopRequireWildcard(require("./geo"));
79
+
80
+ exports.geo = geo;
77
81
  // For backward compatibility before 9.0.0
78
82
  var triggers = trigger;
79
83
  exports.triggers = triggers;
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.5.0",
3
+ "version": "41.6.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": "8930f3135808b75c0b2c52eab95ec0d06fa4c5f8"
78
+ "gitHead": "7581135cce0b70f5d23907bf3776e490995606b1"
79
79
  }
@@ -17,4 +17,5 @@ import * as sharing from "./sharing";
17
17
  import * as dacc from "./dacc";
18
18
  import * as paper from "./paper";
19
19
  import * as user from "./user";
20
- export { trigger, instance, applications, file, folder, konnectorFolder, note, account, permission, utils, contact, document, timeseries, sharing, dacc, paper, user };
20
+ import * as geo from "./geo";
21
+ export { trigger, instance, applications, file, folder, konnectorFolder, note, account, permission, utils, contact, document, timeseries, sharing, dacc, paper, user, geo };
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: object;
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
  */