@syncmatters/script-api 1.0.47 → 1.0.48

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.47",
3
+ "version": "1.0.48",
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": "4f485525e7c4b00e1dd8f5a311a21818a14d533c9e8d0686a9e5c72866351c22",
31
+ "typesContentHash": "3b3f9a1819ead36e76339d125e5cee98c7a95c5a4a2acc308d1b849be72b9f46",
32
32
  "dependencies": {
33
33
  "@types/node": "*"
34
34
  }
@@ -304,6 +304,22 @@ export interface BeforeOptions {
304
304
  connection: unknown;
305
305
  /** Logger to use for logging. */
306
306
  log: API.Logger;
307
+ /**
308
+ * What this run was narrowed to, so before() can clean up and seed only what the run will use. Absent on a
309
+ * runner that predates it: treat absent as a full run.
310
+ */
311
+ selection?: BeforeSelection;
312
+ }
313
+ /** What a run was narrowed to (sm connector test --object / --check / --only, or the web UI's choices). */
314
+ export interface BeforeSelection {
315
+ /** "all": every object of the suite; "selected": only objectIds; "none": no object features run. */
316
+ objects: "all" | "selected" | "none";
317
+ /** Native ids of the objects to test when objects is "selected", otherwise empty. */
318
+ objectIds: string[];
319
+ /** The object features the run tests; ["all"] when it is not restricted to some. */
320
+ features: ObjectFeature[];
321
+ /** Ids of the custom checks the run was narrowed to; empty when it was not narrowed to named checks. */
322
+ checkIds: string[];
307
323
  }
308
324
  /** Result of testing a connector. */
309
325
  export interface ConnectorTestResult {