@lokalise/maestro-expert-tenant-lib 2.7.0 → 2.7.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/dist/index.cjs CHANGED
@@ -29,8 +29,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
29
29
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
30
 
31
31
  // index.ts
32
- var maestro_expert_tenant_lib_exports = {};
33
- __export(maestro_expert_tenant_lib_exports, {
32
+ var index_exports = {};
33
+ __export(index_exports, {
34
34
  AI_MT_TRANSLATION_STEP_FORM_SCHEMA: () => AI_MT_TRANSLATION_STEP_FORM_SCHEMA,
35
35
  AI_MT_TRANSLATION_STEP_SETTINGS_SCHEMA: () => AI_MT_TRANSLATION_STEP_SETTINGS_SCHEMA,
36
36
  API_ERROR: () => API_ERROR,
@@ -103,7 +103,7 @@ __export(maestro_expert_tenant_lib_exports, {
103
103
  WORKFLOW_PARAMS: () => WORKFLOW_PARAMS,
104
104
  WORKFLOW_STATUS: () => WORKFLOW_STATUS
105
105
  });
106
- module.exports = __toCommonJS(maestro_expert_tenant_lib_exports);
106
+ module.exports = __toCommonJS(index_exports);
107
107
 
108
108
  // src/apiContract/schemas.ts
109
109
  var import_api_common = require("@lokalise/api-common");
@@ -291,7 +291,9 @@ var TASK_LANGUAGE_ASSIGNEES = import_zod3.z.object({
291
291
  }).refine(({ userIds, userGroupIds }) => userIds !== void 0 || userGroupIds !== void 0, {
292
292
  message: "Either users or groups should be specified"
293
293
  });
294
- var TRANSLATION_ENGINE = import_zod3.z.enum(["ai", "deepl", "google"]);
294
+ var TRANSLATION_ENGINE = import_zod3.z.enum(["ai", "deepl", "google"], {
295
+ errorMap: /* @__PURE__ */ __name(() => ({ message: "Please choose a translation engine" }), "errorMap")
296
+ });
295
297
  var CREATE_TASK_STEP_SETTINGS_SCHEMA = import_maestro_common3.WORKFLOW_LAYOUT_STEP_SETTINGS.extend({
296
298
  stepType: import_zod3.z.enum(["translate_task_step", "review_task_step", "ai_mt_translation_step"]),
297
299
  stepTitle: import_zod3.z.string().trim().min(1),
@@ -392,7 +394,7 @@ var DEFAULT_AI_MT_TRANSLATION_STEP_SETTINGS = {
392
394
  stepTitle: "AI Translation Task",
393
395
  taskType: "translation",
394
396
  aiInstructions: void 0,
395
- translationEngine: "ai",
397
+ translationEngine: void 0,
396
398
  taskTitle: void 0,
397
399
  tagKeysAfterClose: false,
398
400
  tagsToAddAfterClose: [],
@@ -558,9 +560,9 @@ var STEP_TYPES = [
558
560
  // src/templates/resources/clear-translations-mt-ai-review-task.template.ts
559
561
  var CLEAR_TRANSLATIONS_MT_AI_REVIEW_TASK_TEMPLATE = {
560
562
  id: "clearTranslationsMtAiReviewTask",
561
- title: "AI \u2022 Review task",
562
- summary: "Apply AI translation after clearing existing translations, and then create a review task.",
563
- description: "This template sets up a workflow that clears existing translations, applies AI translation, and creates a review task for human verification.",
563
+ title: "AI/MT \u2022 Review task",
564
+ summary: "Apply AI/MT translation after clearing existing translations, and then create a review task.",
565
+ description: "This template sets up a workflow that clears existing translations, applies AI/MT translation, and creates a review task for human verification.",
564
566
  layout: {
565
567
  initial: "TriggerStep",
566
568
  states: {
@@ -647,9 +649,9 @@ var CLEAR_TRANSLATIONS_MT_AI_REVIEW_TASK_TEMPLATE = {
647
649
  // src/templates/resources/clear-translations-mt-ai-task.template.ts
648
650
  var CLEAR_TRANSLATIONS_MT_AI_TASK_TEMPLATE = {
649
651
  id: "clearTranslationsMtAiTask",
650
- title: "AI",
651
- summary: "Apply AI translation after clearing existing translations.",
652
- description: "This template sets up a workflow that first clears existing translations and then applies AI translation.",
652
+ title: "AI/MT (AI/Machine translation)",
653
+ summary: "Apply AI/MT translation after clearing existing translations.",
654
+ description: "This template sets up a workflow that first clears existing translations and then applies AI/MT translation.",
653
655
  layout: {
654
656
  initial: "TriggerStep",
655
657
  states: {
@@ -711,9 +713,9 @@ var CLEAR_TRANSLATIONS_MT_AI_TASK_TEMPLATE = {
711
713
  // src/templates/resources/clear-translations-tm-mt-ai-review-task.template.ts
712
714
  var CLEAR_TRANSLATIONS_TM_MT_AI_REVIEW_TASK_TEMPLATE = {
713
715
  id: "clearTranslationsTmMtAiReviewTask",
714
- title: "TM \u2022 AI \u2022 Review task",
715
- summary: "Translate content using Translation Memory, apply AI translation for the rest, and then create a review task",
716
- description: "This template sets up a workflow that clears existing translations, applies Translation Memory, then AI translation, and creates a review task for human verification.",
716
+ title: "TM \u2022 AI/MT \u2022 Review task",
717
+ summary: "Translate content using Translation Memory, apply AI/MT translation for the rest, and then create a review task",
718
+ description: "This template sets up a workflow that clears existing translations, applies Translation Memory, then AI/MT translation, and creates a review task for human verification.",
717
719
  layout: {
718
720
  initial: "TriggerStep",
719
721
  states: {
@@ -814,9 +816,9 @@ var CLEAR_TRANSLATIONS_TM_MT_AI_REVIEW_TASK_TEMPLATE = {
814
816
  // src/templates/resources/clear-translations-tm-mt-ai-task.template.ts
815
817
  var CLEAR_TRANSLATIONS_TM_MT_AI_TASK_TEMPLATE = {
816
818
  id: "clearTranslationsTmMtAiTask",
817
- title: "TM \u2022 AI",
818
- summary: "Translate content using Translation Memory, apply AI translation for the rest",
819
- description: "This template sets up a workflow that clears existing translations, applies Translation Memory, then AI translation.",
819
+ title: "TM \u2022 AI/MT",
820
+ summary: "Translate content using Translation Memory, apply AI/MT translation for the rest",
821
+ description: "This template sets up a workflow that clears existing translations, applies Translation Memory, then AI/MT translation.",
820
822
  layout: {
821
823
  initial: "TriggerStep",
822
824
  states: {