@enhance-eng/sdk 0.1.0-dev.sha-3f7dd0acb078 → 0.1.158

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.mts CHANGED
@@ -1,42 +1,15 @@
1
- import { a as CaptureReceipt, c as captureManifestSchema, i as CaptureManifest, l as getCaptureRunOutputSchema, n as CaptureArtifact, o as CaptureRunDescriptor, s as captureArtifactSchema, t as selectedCaptures } from "./index-PIb9iIwo.mjs";
2
- import { t as CapturePayload } from "./capture-files.lib-CvX7Ca8M.mjs";
1
+ import { _ as captureManifestSchema, a as mergeCaptureManifests, c as CaptureArtifact, d as CaptureManifest, f as CaptureReceipt, g as captureArtifactSchema, i as captureSelection, m as CaptureVerdict, o as selectedCaptures, p as CaptureRunDescriptor, t as CaptureReview, u as CaptureLeftOut } from "./index-7uzK6oto.mjs";
2
+ import { c as CapturePayload, l as NotUploadedFile, n as CaptureRun, r as EnhanceClient, t as BeginCaptureRun } from "./capture-client.client--zU5zvd3.mjs";
3
+ import { i as createEnhance, r as CaptureEnvironment, t as CaptureClientOptions } from "./environment.config-Dx5WHap5.mjs";
3
4
  //#region src/core/capture-error.error.d.ts
4
- type CaptureErrorCode = 'configuration' | 'capture' | 'artifact' | 'authorization' | 'conversion' | 'conflict' | 'transport';
5
+ type CaptureErrorCode = 'configuration' | 'capture' | 'artifact' | 'authorization' | 'conversion' | 'conflict' | 'pending' | 'transport';
5
6
  interface CaptureError extends Error {
6
7
  readonly code: CaptureErrorCode;
7
8
  readonly runId?: string;
9
+ /** The captures left out of a run that had none left to publish. */
10
+ readonly leftOut?: readonly CaptureLeftOut[];
11
+ /** The files the SDK gave up before a run that had nothing left to publish. */
12
+ readonly notUploaded?: readonly NotUploadedFile[];
8
13
  }
9
14
  //#endregion
10
- //#region src/node/capture-transport.client.d.ts
11
- interface CaptureClientOptions {
12
- readonly apiUrl: string;
13
- readonly token: string;
14
- readonly timeoutMs?: number;
15
- readonly publicationTimeoutMs?: number;
16
- }
17
- //#endregion
18
- //#region src/node/capture-client.client.d.ts
19
- interface BeginCaptureRun {
20
- readonly canvas: string;
21
- readonly source?: string;
22
- readonly runKey: string;
23
- readonly participants?: readonly string[];
24
- readonly directory?: string;
25
- }
26
- interface CaptureRun {
27
- readonly descriptor: CaptureRunDescriptor;
28
- readonly directory: string;
29
- readonly add: (payload: CapturePayload) => Promise<void>;
30
- readonly publish: () => Promise<CaptureReceipt>;
31
- readonly cancel: () => Promise<CaptureReceipt | null>;
32
- }
33
- interface EnhanceClient {
34
- readonly captures: {
35
- readonly begin: (input: BeginCaptureRun) => Promise<CaptureRun>;
36
- readonly publishManifest: (path: string) => Promise<CaptureReceipt>;
37
- readonly get: (runId: string) => Promise<ReturnType<typeof getCaptureRunOutputSchema.parse>>;
38
- };
39
- }
40
- declare const createEnhance: (options: CaptureClientOptions) => EnhanceClient;
41
- //#endregion
42
- export { type BeginCaptureRun, type CaptureArtifact, type CaptureClientOptions, type CaptureError, type CaptureErrorCode, type CaptureManifest, type CapturePayload, type CaptureReceipt, type CaptureRun, type CaptureRunDescriptor, type EnhanceClient, captureArtifactSchema, captureManifestSchema, createEnhance, selectedCaptures };
15
+ export { type BeginCaptureRun, type CaptureArtifact, type CaptureClientOptions, type CaptureEnvironment, type CaptureError, type CaptureErrorCode, type CaptureManifest, type CapturePayload, type CaptureReceipt, type CaptureReview, type CaptureRun, type CaptureRunDescriptor, type CaptureVerdict, type EnhanceClient, captureArtifactSchema, captureManifestSchema, captureSelection, createEnhance, mergeCaptureManifests, selectedCaptures };
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { m as captureManifestSchema, p as captureArtifactSchema, u as selectedCaptures } from "./capture-files.lib-BA_KBz9W.mjs";
2
- import { t as createEnhance } from "./capture-client.client-BDphetFj.mjs";
3
- export { captureArtifactSchema, captureManifestSchema, createEnhance, selectedCaptures };
1
+ import { A as captureSelection, M as selectedCaptures, V as captureManifestSchema, j as mergeCaptureManifests, z as captureArtifactSchema } from "./stall-watch.lib-C6VmIsz-.mjs";
2
+ import { t as createEnhance } from "./environment.config-B2WQJWaS.mjs";
3
+ export { captureArtifactSchema, captureManifestSchema, captureSelection, createEnhance, mergeCaptureManifests, selectedCaptures };
@@ -0,0 +1,4 @@
1
+ //#region package.json
2
+ var version = "0.1.158";
3
+ //#endregion
4
+ export { version as t };
@@ -1,7 +1,8 @@
1
- import "../capture-files.lib-CvX7Ca8M.mjs";
1
+ import "../index-7uzK6oto.mjs";
2
2
  import { Page } from "@playwright/test";
3
3
  //#region src/playwright/capture-page.lib.d.ts
4
4
  interface CaptureStepOptions {
5
+ readonly page?: string;
5
6
  readonly journey: string;
6
7
  readonly step: string;
7
8
  readonly order?: number;
@@ -14,6 +15,11 @@ interface CaptureStepOptions {
14
15
  //#endregion
15
16
  //#region src/playwright/capture-step.lib.d.ts
16
17
  declare const enhance: {
18
+ /**
19
+ * Captures the page as it is now. Capturing the same step twice in one test keeps both; the run
20
+ * numbers the second. A capture that fails its own format check, or cannot be saved on this
21
+ * machine, is left out and named in the run's output, and the test goes on.
22
+ */
17
23
  capture: (page: Page, options: CaptureStepOptions) => Promise<void>;
18
24
  };
19
25
  //#endregion