@mablhq/mabl-cli 2.8.18 → 2.8.25
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 +17 -1
- package/commands/commandUtil/fileUtil.js +8 -7
- package/commands/config/config_cmds/install.js +2 -2
- package/execution/index.js +5 -5
- package/mablApi/index.js +1 -1
- package/mablscriptFind/index.js +1 -1
- package/package.json +1 -1
- package/resources/mablFind.js +1 -1
package/api/mablApiClient.js
CHANGED
|
@@ -248,6 +248,14 @@ class MablApiClient extends basicApiClient_1.BasicApiClient {
|
|
|
248
248
|
return undefined;
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
|
+
async evaluateFindCandidatesText(workspaceId, request) {
|
|
252
|
+
try {
|
|
253
|
+
return await this.makePostRequest(`${this.baseApiUrl}/find/${workspaceId}/evaluate/textSimilarity`, request);
|
|
254
|
+
}
|
|
255
|
+
catch (error) {
|
|
256
|
+
return undefined;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
251
259
|
async getTestFindSummaries(testId, environmentId) {
|
|
252
260
|
try {
|
|
253
261
|
return await this.makeGetRequest(`${this.baseApiUrl}/findSummary?journey_id=${testId}&environment_id=${environmentId}`).then((result) => { var _a; return (_a = result.findsummaries) !== null && _a !== void 0 ? _a : []; });
|
|
@@ -893,7 +901,15 @@ class MablApiClient extends basicApiClient_1.BasicApiClient {
|
|
|
893
901
|
workspace_id: workspaceId,
|
|
894
902
|
limit,
|
|
895
903
|
});
|
|
896
|
-
const mobileAppFiles = await this.
|
|
904
|
+
const mobileAppFiles = await this.makePostRequest(`${this.baseApiUrl}/mobile/apps/files/queryFiles?${query}`, {
|
|
905
|
+
filter_conditions: [],
|
|
906
|
+
sort_columns: [
|
|
907
|
+
{
|
|
908
|
+
column_name: 'created_time',
|
|
909
|
+
sort_direction: 'DESC',
|
|
910
|
+
},
|
|
911
|
+
],
|
|
912
|
+
}).then((result) => { var _a; return (_a = result.mobile_app_files) !== null && _a !== void 0 ? _a : []; });
|
|
897
913
|
sortTemporallyDescending(mobileAppFiles);
|
|
898
914
|
return mobileAppFiles;
|
|
899
915
|
}
|
|
@@ -35,13 +35,14 @@ function writeExportedEntityToFile(output, fileExtension, entityId, fileName) {
|
|
|
35
35
|
fileName = fileName !== null && fileName !== void 0 ? fileName : `${entityId}.mabl.${fileExtension}`.replace(':', '-');
|
|
36
36
|
const filePath = path_1.default.resolve(fileName);
|
|
37
37
|
const dirname = path_1.default.dirname(filePath);
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
try {
|
|
39
|
+
fs.mkdirSync(dirname, { recursive: true });
|
|
40
|
+
fs.writeFileSync(filePath, output);
|
|
41
|
+
loggingProvider_1.logger.info(`Created file: ${fileName}`);
|
|
42
|
+
}
|
|
43
|
+
catch (err) {
|
|
44
|
+
loggingProvider_1.logger.info(chalk.red.bold(`Error exporting flow to filesystem: ${err}`));
|
|
45
|
+
}
|
|
45
46
|
return fileName;
|
|
46
47
|
}
|
|
47
48
|
exports.writeExportedEntityToFile = writeExportedEntityToFile;
|
|
@@ -30,8 +30,8 @@ const fs = __importStar(require("fs"));
|
|
|
30
30
|
const path = __importStar(require("path"));
|
|
31
31
|
const resourceUtil_1 = require("../../../util/resourceUtil");
|
|
32
32
|
const OperatingSystemDescriptor_1 = require("../../../mablscript/types/OperatingSystemDescriptor");
|
|
33
|
-
const UI_AUTOMATOR_VERSION = '2.
|
|
34
|
-
const XCUITEST_VERSION = '
|
|
33
|
+
const UI_AUTOMATOR_VERSION = '2.35.0';
|
|
34
|
+
const XCUITEST_VERSION = '5.12.2';
|
|
35
35
|
const addOnConfigKey = 'add-on';
|
|
36
36
|
var AddOnOptions;
|
|
37
37
|
(function (AddOnOptions) {
|