@mablhq/mabl-cli 2.37.7 → 2.41.1

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/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import {BrowserContext, Locator, Page} from 'playwright-core';
1
+ import {BrowserContext, Locator, Page, Frame} from 'playwright-core';
2
2
 
3
3
  declare module '@mablhq/mabl-cli' {
4
4
  export enum TestResultStatus {
@@ -155,6 +155,30 @@ export interface GenAiAssertionResponse {
155
155
  success: boolean;
156
156
  explanation?: string;
157
157
  }
158
+ export interface DatabaseQueryParameter {
159
+ id?: string;
160
+ type: 'String' | 'Number' | 'Boolean';
161
+ value: string;
162
+ }
163
+
164
+ export interface DatabaseQueryResultSet {
165
+ workspace_id?: string;
166
+ database_query_execution_id?: string;
167
+ metadata?: {
168
+ status?: 'success' | 'failed' | 'error';
169
+ duration?: number;
170
+ message?: string;
171
+ error_message?: string;
172
+ row_count?: number;
173
+ column_count?: number;
174
+ rows_affected?: number;
175
+ additional_properties?: object;
176
+ };
177
+ columns?: any[];
178
+ rows?: Array<{
179
+ [key: string]: any;
180
+ }>;
181
+ }
158
182
 
159
183
  export interface MablToolset {
160
184
  constructor(options?: MablToolsetOptions);
@@ -168,11 +192,19 @@ export interface MablToolset {
168
192
  createMailBoxAddress(): Promise<string>;
169
193
  waitForEmail(
170
194
  emailAddress: string,
195
+ page: Page | Frame,
171
196
  emailFindOptions?: EmailFindOptions,
172
- ): Promise<string>;
197
+ ): Promise<MablMailboxEmail>;
173
198
  openEmailUrl(page: any, emailUrl: string): Promise<MablMailboxEmail>;
174
199
  getCredentials(credentialsId: string): Promise<UsernamePasswordCredential>;
175
200
  getMfaCode(credentialsId: string): Promise<string>;
201
+ executeQuery(
202
+ dbConnectionId: string,
203
+ query: string,
204
+ queryParameters?: DatabaseQueryParameter[],
205
+ environmentId?: string,
206
+ timeoutMillis?: number,
207
+ ): Promise<DatabaseQueryResultSet>;
176
208
  }
177
209
 
178
210
  export interface MablFixtures {
@@ -196,6 +228,7 @@ export interface UsernamePasswordCredential {
196
228
  }
197
229
 
198
230
  export interface MablMailboxEmail {
231
+ open(): Promise<void>;
199
232
  getToAddress(): Promise<string | null>;
200
233
  getFromAddress(): Promise<string | null>;
201
234
  getSubject(): Promise<string | null>;