@diagonal-hq/cli 0.30.0 → 0.30.2

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/README.md CHANGED
@@ -685,10 +685,11 @@ This sends the Standard welcome 7 days after each active member's `joined_on`.
685
685
  - `offsets` holds one to 30 distinct ISO 8601 durations in days, hours, or minutes: `'-P30D'` is 30 days before, `'P0D'` is the day, `'-PT2H'` is 2 hours before in exact timing. A duration without a sign counts after the date, so `'P7D'` and `'+P7D'` are the same offset.
686
686
  - `timing` defaults to `'day'`, which sends at 8 a.m. in the workspace timezone on the day, so `'-PT2H'` sends at 6 a.m. `'exact'` sends at the time of a datetime field or the start of an event schedule field, plus the offset.
687
687
  - `filters` is optional. It is a filter tree, `{ operator, conditions }`, with the shape of a policy `filter`. See [Policies](#policies).
688
+ - `automaticFilters` is optional and has the shape of `filters`. Of the records that match `filters`, the schedule makes and sends notifications on its own only for the records that also match `automaticFilters`. Staff can still send to the other records from the schedule page. Leave it out to send on its own to every record that matches `filters`. For example, `automaticFilters: { operator: 'and', conditions: [{ field: 'renewal_notice_mode', operator: '=', value: 'automatic' }] }` sends on its own only to the members who chose automatic renewal notices.
688
689
  - `recipient` is the path of single-record relations from the source record to the type's recipient, for example `'member'` on a `memberships` source. Leave it out when the source resource is the recipient, as here.
689
690
  - `variables` maps each variable of the type to a field path on the source record. A record variable maps to a record's `id`.
690
691
 
691
- A deployed schedule is a System Notification. It sends with no staff identity, and `filters` decides who gets it. A file cannot name a person to send as. Staff actions on one generated notification, such as **Send now** or an edit, still act as the person who clicks.
692
+ A deployed schedule is a System Notification. It sends with no staff identity. `filters` decides who gets it, and `automaticFilters` decides who gets it without a staff action. A file cannot name a person to send as. Staff actions on one generated notification, such as **Send now** or an edit, still act as the person who clicks.
692
693
 
693
694
  A deploy writes the schedule into the workspace and makes its upcoming notifications. A later deploy updates the same schedule. An offset that stays in the list keeps its notifications, with their edits and holds. When the file is gone, the publish deletes the schedule, as **Delete** on the schedule page does: the notifications that were not sent are archived, and the send history stays. A publish never pauses or enables a schedule. Staff can still pause it on the schedule page, which shows the other fields as read-only, with the path of the file.
694
695