@syncmatters/script-api 1.0.48 → 1.0.49

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncmatters/script-api",
3
- "version": "1.0.48",
3
+ "version": "1.0.49",
4
4
  "description": "TypeScript type definitions for the SyncMatters script API (types only - scripts execute on the SyncMatters platform)",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -28,7 +28,7 @@
28
28
  "license": "MIT",
29
29
  "author": "SyncMatters",
30
30
  "homepage": "https://syncmatters.com",
31
- "typesContentHash": "3b3f9a1819ead36e76339d125e5cee98c7a95c5a4a2acc308d1b849be72b9f46",
31
+ "typesContentHash": "9f3c55aae0159e15414998799adafbf82999beae5147c4049bde00af30954edd",
32
32
  "dependencies": {
33
33
  "@types/node": "*"
34
34
  }
@@ -661,7 +661,7 @@ export interface RowFilterData {
661
661
  fields?: Array<API.JsonValuePath>;
662
662
  /**
663
663
  * The row-filter query must fail (error; e.g. a timeout forced with requestTimeoutOverride), or the rows it returns
664
- * must hold these values (rows). With error set, expectedRowIds may be empty.
664
+ * must hold these values (rows). With error set, expectedRowIds may be empty; with noRows set it must be.
665
665
  */
666
666
  expect?: Expect;
667
667
  }
@@ -672,6 +672,13 @@ export interface RowFilterData {
672
672
  export interface Expect {
673
673
  /** the operation must fail, and fail like this; a success is a failure of the test */
674
674
  error?: ExpectedError;
675
+ /**
676
+ * The query must succeed and return no rows: an unknown id that reads as nothing, a filter or match that finds
677
+ * nothing, a parent without children, a checkpoint with nothing newer. Honoured by row filters, match rules, related
678
+ * filters and checkpoint step 2, where an empty expected id list is otherwise rejected as invalid test data (a prepare
679
+ * hook that found nothing must not pass by accident). The expected id list must be empty when this is set.
680
+ */
681
+ noRows?: true;
675
682
  /**
676
683
  * Assertions on returned rows' values by path, keyed by row meta.key; "*" applies to every returned row, and an
677
684
  * assertion under a row's own key overrides a "*" assertion on the same path.