@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/api/mablApiClient.js +8 -0
- package/browserEngines/chromiumBrowserEngine.js +4 -0
- package/cli.js +1 -1
- package/commands/constants.js +3 -3
- package/commands/environments/environments_cmds/build-files.js +5 -0
- package/commands/environments/environments_cmds/build-files_cmds/add.js +73 -0
- package/commands/environments/environments_cmds/build-files_cmds/list.js +54 -0
- package/commands/environments/environments_cmds/build-files_cmds/update.js +71 -0
- package/commands/mobile-build-files/mobile-build-files.js +5 -0
- package/commands/{app-files/app-files_cmds → mobile-build-files/mobile-build-files_cmds}/delete.js +4 -4
- package/commands/{app-files/app-files_cmds → mobile-build-files/mobile-build-files_cmds}/download.js +5 -5
- package/commands/{app-files/app-files_cmds → mobile-build-files/mobile-build-files_cmds}/list.js +2 -2
- package/commands/{app-files/app-files_cmds/create.js → mobile-build-files/mobile-build-files_cmds/upload.js} +12 -10
- package/commands/tests/tests_cmds/run-mobile.js +12 -11
- package/core/execution/ApiTestUtils.js +8 -3
- package/core/messaging/messaging.js +14 -2
- package/execution/index.js +2 -2
- package/index.d.ts +35 -2
- package/mablApi/index.js +1 -1
- package/mablscript/steps/IfConditionStep.js +26 -7
- package/package.json +3 -3
- package/upload/index.js +1 -1
- package/util/analytics-events.js +13 -0
- package/util/analytics.js +34 -4
- package/commands/app-files/app-files.js +0 -5
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<
|
|
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>;
|