-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Add trigger message details documentation #1398
Conversation
@Crash-- @paultranvan @Merkur39 Can I have a review for this please ? |
packages/cozy-client/src/types.js
Outdated
@@ -75,6 +75,10 @@ import { QueryDefinition } from './queries/dsl' | |||
* @property {String} type - type of the trigger. Can be "at", "cron", "event", "every", "in", "webhook", "client" | |||
* @property {String} worker - type of worker. Can be "konnector" or "sendmail" | |||
* @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. | |||
* @property {String} [message.account] - Id of the account associated to this trigger, if any | |||
* @property {String} [message.konnector] - Slug of the konnector associated to this trigger, if any | |||
* @property {String} [message.folder_to_save] - Id of the destination folder of the konnector associated to this trigger, if any |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use something like this:
* @property {IOCozyAccount['id']} [message.account] - Id of the account associated to this trigger, if any
* @property {IOCozyKonnector['slug']} [message.konnector] - Slug of the konnector associated to this trigger, if any
* @property {IOCozyFolder['path']} [message.folder_to_save] - Id of the destination folder of the konnector associated to this trigger, if any
Like that, we add the "relation" between data.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I see.
I just fixed the message.folder_to_save attribute which is actually the id of the folder and not the path.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK cool 👍
ddd15d6
to
0e8ffaf
Compare
Last thing... If you tag a commit Since you are editing the types and that types are used everywhere, you can tag it as a |
0e8ffaf
to
46b5d1f
Compare
No description provided.