@wdio/browserstack-service 9.38.0 → 9.39.0
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.
|
@@ -51,6 +51,26 @@ export declare class GrpcClient {
|
|
|
51
51
|
* @private
|
|
52
52
|
*/
|
|
53
53
|
stopBinSession(): Promise<unknown>;
|
|
54
|
+
/**
|
|
55
|
+
* Render end-of-build customer-visible summary entries.
|
|
56
|
+
*
|
|
57
|
+
* Per the binary proto contract (CustomerVisibleSummaryEntry in
|
|
58
|
+
* sdk-messages.proto): iterate by `severity` + `body`, write `body` verbatim,
|
|
59
|
+
* and pick the stream from `severity`. Never branches on `entryType`, so new
|
|
60
|
+
* entry types need no SDK change.
|
|
61
|
+
* @private
|
|
62
|
+
*/
|
|
63
|
+
private renderCustomerVisibleSummary;
|
|
64
|
+
/**
|
|
65
|
+
* Tint a summary block by severity — yellow for warn (an outdated SDK), red for
|
|
66
|
+
* error (a deprecated one), untouched otherwise.
|
|
67
|
+
*
|
|
68
|
+
* Each line is wrapped and reset on its own rather than the block as a whole, so
|
|
69
|
+
* a truncated or interleaved write cannot leave the customer's terminal stuck in
|
|
70
|
+
* colour. The first non-blank, non-border line is emphasised.
|
|
71
|
+
* @private
|
|
72
|
+
*/
|
|
73
|
+
private colouriseSummaryBody;
|
|
54
74
|
testSessionEvent(data: Omit<TestSessionEventRequest, 'binSessionId'>): Promise<TestSessionEventResponse | undefined>;
|
|
55
75
|
/**
|
|
56
76
|
*
|
|
@@ -146,6 +146,27 @@ export interface StopBinSessionResponse {
|
|
|
146
146
|
error?: string | undefined;
|
|
147
147
|
automateBuildlink?: string | undefined;
|
|
148
148
|
hashedId?: string | undefined;
|
|
149
|
+
/**
|
|
150
|
+
* End-of-build customer-visible summary entries. Populated on EVERY response
|
|
151
|
+
* shape — success, error, and clean-build alike (empty when nothing to
|
|
152
|
+
* surface). Iterate by `severity` + `body`; do not branch on `entry_type`,
|
|
153
|
+
* so new entry types need no SDK change.
|
|
154
|
+
*/
|
|
155
|
+
entries: CustomerVisibleSummaryEntry[];
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* A single customer-visible summary entry surfaced at end of build via
|
|
159
|
+
* StopBinSessionResponse.entries. The binary owns the prose so all SDKs render
|
|
160
|
+
* consistent text; SDKs choose the output stream from `severity`.
|
|
161
|
+
*/
|
|
162
|
+
export interface CustomerVisibleSummaryEntry {
|
|
163
|
+
/** Stable machine-readable identifier (e.g. "network_restrictions"). */
|
|
164
|
+
entryType: string;
|
|
165
|
+
/** One of: "info" | "warn" | "error". */
|
|
166
|
+
severity: string;
|
|
167
|
+
/** Pre-formatted block to display verbatim. May contain embedded newlines. */
|
|
168
|
+
body: string;
|
|
169
|
+
docLink?: string | undefined;
|
|
149
170
|
}
|
|
150
171
|
export interface ConnectBinSessionRequest {
|
|
151
172
|
binSessionId: string;
|
|
@@ -265,6 +286,7 @@ export declare const TestOrchestrationRequest: MessageFns<TestOrchestrationReque
|
|
|
265
286
|
export declare const TestOrchestrationResponse: MessageFns<TestOrchestrationResponse>;
|
|
266
287
|
export declare const StopBinSessionRequest: MessageFns<StopBinSessionRequest>;
|
|
267
288
|
export declare const StopBinSessionResponse: MessageFns<StopBinSessionResponse>;
|
|
289
|
+
export declare const CustomerVisibleSummaryEntry: MessageFns<CustomerVisibleSummaryEntry>;
|
|
268
290
|
export declare const ConnectBinSessionRequest: MessageFns<ConnectBinSessionRequest>;
|
|
269
291
|
export declare const TestFrameworkEventRequest: MessageFns<TestFrameworkEventRequest>;
|
|
270
292
|
export declare const ExecutionContext: MessageFns<ExecutionContext>;
|