@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.
@@ -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.makeGetRequest(`${this.baseApiUrl}/mobile/apps/files?${query}`).then((result) => { var _a; return (_a = result.mobile_app_files) !== null && _a !== void 0 ? _a : []; });
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
- fs.mkdirSync(dirname, { recursive: true });
39
- fs.writeFile(filePath, output, (err) => {
40
- if (err) {
41
- loggingProvider_1.logger.info(chalk.red.bold(`Error exporting flow to filesystem: ${err}`));
42
- }
43
- });
44
- loggingProvider_1.logger.info(`Created file: ${fileName}`);
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.29.5';
34
- const XCUITEST_VERSION = '4.34.1';
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) {