@diagonal-hq/cli 0.30.1 → 0.30.3

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/index.d.ts CHANGED
@@ -1177,7 +1177,8 @@ export type NotificationScheduleTiming = 'day' | 'exact';
1177
1177
  * `notifications/<folder>/<handle>.schedule.ts` file. A schedule sends one
1178
1178
  * template of its type on dates of a resource, for example 7 days after each
1179
1179
  * member's `joined_on`. The deployed schedule is a System Notification: it
1180
- * sends with no staff identity, and `filters` decides who gets it. The file
1180
+ * sends with no staff identity. `filters` decides who gets it, and
1181
+ * `automaticFilters` decides who gets it without a staff action. The file
1181
1182
  * holds the rule. The workspace keeps the generated notifications, their edits
1182
1183
  * and holds, and the pause state. `diagonal check` writes a missing `uid`. No
1183
1184
  * file refers to a schedule, so a schedule has a uid but no slug.
@@ -1200,8 +1201,14 @@ export type NotificationScheduleDefinition = UidOption & {
1200
1201
  * before in exact timing). A duration without a sign counts after the date.
1201
1202
  */
1202
1203
  offsets: readonly string[];
1203
- /** Only the source records that match. */
1204
+ /** Only the source records that match, for automatic and staff sends. */
1204
1205
  filters?: FilterGroup;
1206
+ /**
1207
+ * Of the records that match `filters`, the ones whose notifications the
1208
+ * schedule makes and sends on its own. Staff can still send to the other
1209
+ * records. Leave it out to send to every record that matches `filters`.
1210
+ */
1211
+ automaticFilters?: FilterGroup;
1205
1212
  /**
1206
1213
  * The path of single-record relations from the source record to the type's
1207
1214
  * recipient, for example `'member'` on a `memberships` source. Leave it out
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diagonal-hq/cli",
3
- "version": "0.30.1",
3
+ "version": "0.30.3",
4
4
  "description": "The diagonal CLI and the configuration helpers for file-based Diagonal workspaces.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {
@@ -48,8 +48,8 @@
48
48
  "bun": "1.4.4"
49
49
  },
50
50
  "optionalDependencies": {
51
- "@diagonal-hq/workflow-script-compiler-darwin-arm64": "0.1.0-h40b8d96b5efe",
52
- "@diagonal-hq/workflow-script-compiler-linux-x64": "0.1.0-h40b8d96b5efe",
53
- "@diagonal-hq/workflow-script-compiler-linux-arm64": "0.1.0-h40b8d96b5efe"
51
+ "@diagonal-hq/workflow-script-compiler-darwin-arm64": "0.1.0-hb42f056a50fe",
52
+ "@diagonal-hq/workflow-script-compiler-linux-x64": "0.1.0-hb42f056a50fe",
53
+ "@diagonal-hq/workflow-script-compiler-linux-arm64": "0.1.0-hb42f056a50fe"
54
54
  }
55
55
  }