@lokalise/maestro-expert-tenant-lib 2.6.4 → 2.6.6

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
@@ -347,7 +347,7 @@ var AI_MT_TRANSLATION_STEP_FORM_SCHEMA = import_zod4.z.object({
347
347
  context.addIssue({
348
348
  code: import_zod4.z.ZodIssueCode.custom,
349
349
  message: 'At least one tag must be added if "Tag keys after task is closed" is checked',
350
- path: ["tags"]
350
+ path: ["tagsToAddAfterClose"]
351
351
  });
352
352
  }
353
353
  if (!tagKeysAfterClose && tagsToAddAfterClose && tagsToAddAfterClose.length > 0) {
@@ -389,7 +389,7 @@ var AI_MT_TRANSLATION_STEP_SETTINGS_SCHEMA = import_maestro_common4.WORKFLOW_LAY
389
389
  });
390
390
  var DEFAULT_AI_MT_TRANSLATION_STEP_SETTINGS = {
391
391
  stepType: "ai_mt_translation_step",
392
- stepTitle: "AI/MT Translation Task",
392
+ stepTitle: "AI Translation Task",
393
393
  taskType: "translation",
394
394
  aiInstructions: void 0,
395
395
  translationEngine: "ai",
@@ -558,9 +558,9 @@ var STEP_TYPES = [
558
558
  // src/templates/resources/clear-translations-mt-ai-review-task.template.ts
559
559
  var CLEAR_TRANSLATIONS_MT_AI_REVIEW_TASK_TEMPLATE = {
560
560
  id: "clearTranslationsMtAiReviewTask",
561
- title: "Clear translations \u2192 MT/AI translation \u2192 review task",
562
- summary: "Clear translations, apply MT/AI translation, and create a review task",
563
- description: "This template sets up a workflow that clears existing translations, applies MT/AI translation, and creates a review task for human verification.",
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.",
564
564
  layout: {
565
565
  initial: "TriggerStep",
566
566
  states: {
@@ -647,9 +647,9 @@ var CLEAR_TRANSLATIONS_MT_AI_REVIEW_TASK_TEMPLATE = {
647
647
  // src/templates/resources/clear-translations-mt-ai-task.template.ts
648
648
  var CLEAR_TRANSLATIONS_MT_AI_TASK_TEMPLATE = {
649
649
  id: "clearTranslationsMtAiTask",
650
- title: "Clear translations \u2192 MT/AI translation",
651
- summary: "Clear existing translations before applying MT/AI translation",
652
- description: "This template sets up a workflow that first clears existing translations and then applies MT/AI translation.",
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.",
653
653
  layout: {
654
654
  initial: "TriggerStep",
655
655
  states: {
@@ -711,9 +711,9 @@ var CLEAR_TRANSLATIONS_MT_AI_TASK_TEMPLATE = {
711
711
  // src/templates/resources/clear-translations-tm-mt-ai-review-task.template.ts
712
712
  var CLEAR_TRANSLATIONS_TM_MT_AI_REVIEW_TASK_TEMPLATE = {
713
713
  id: "clearTranslationsTmMtAiReviewTask",
714
- title: "Clear translations \u2192 TM \u2192 MT/AI translation \u2192 review task",
715
- summary: "Clear translations, apply TM and MT/AI translation, followed by a review task",
716
- description: "This template sets up a workflow that clears existing translations, applies Translation Memory, then MT/AI translation, and creates a review task for human verification.",
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.",
717
717
  layout: {
718
718
  initial: "TriggerStep",
719
719
  states: {
@@ -814,7 +814,7 @@ var CLEAR_TRANSLATIONS_TM_MT_AI_REVIEW_TASK_TEMPLATE = {
814
814
  // src/templates/resources/clear-translations-tm-templates.ts
815
815
  var CLEAR_TRANSLATIONS_TM_TEMPLATE = {
816
816
  id: "clearTranslationsTm",
817
- title: "Translation Memory",
817
+ title: "TM (Translation Memory)",
818
818
  summary: "Translate content using Translation Memory when content is added/updated in the project.",
819
819
  description: "Select this workflow to automatically generate a translation using Translation Memory when the content in the editor meets the conditions set in \u201CStart\u201D.",
820
820
  layout: {
@@ -869,7 +869,7 @@ var CLEAR_TRANSLATIONS_TM_TEMPLATE = {
869
869
  // src/templates/resources/clear-translations-tm-translate-review-task-template.ts
870
870
  var CLEAR_TRANSLATIONS_TM_TRANSLATE_REVIEW_TASK_TEMPLATE = {
871
871
  id: "clearTranslationsTmTranslateReviewTask",
872
- title: "Translation Memory \u2192 translation task \u2192 review task",
872
+ title: "TM \u2022 Translation task \u2022 Review task",
873
873
  summary: "Translate content using TM before creating translation and review tasks.",
874
874
  description: "This template sets up a chained workflow that enables the automatic creation of a translation task, and subsequently a review task, after applying Translation Memory. This can be used by teams that would like to avoid translating repetitive content that has already been translated in the past.",
875
875
  layout: {
@@ -969,7 +969,7 @@ var CLEAR_TRANSLATIONS_TM_TRANSLATE_REVIEW_TASK_TEMPLATE = {
969
969
  // src/templates/resources/clear-translations-tm-translate-task-template.ts
970
970
  var CLEAR_TRANSLATIONS_TM_TRANSLATE_TASK_TEMPLATE = {
971
971
  id: "clearTranslationsTmTranslateTask",
972
- title: "Translation Memory \u2192 translation task",
972
+ title: "TM \u2022 Translation task",
973
973
  summary: "Translate content using TM before creating a translation task.",
974
974
  description: "This template sets up a chained workflow that enables the automatic creation of a translation task after applying Translation Memory. This can be used by teams that would like to avoid translating repetitive content that has already been translated in the past.",
975
975
  layout: {
@@ -1091,7 +1091,7 @@ var REVIEW_TASK_TEMPLATE = {
1091
1091
  // src/templates/resources/review-translate-review-task.template.ts
1092
1092
  var REVIEW_TRANSLATE_REVIEW_TASK_TEMPLATE = {
1093
1093
  id: "reviewTranslateReviewTask",
1094
- title: "Review task \u2192 translation task \u2192 review task",
1094
+ title: "Review task \u2022 Translation task \u2022 Review task",
1095
1095
  summary: "Automatic creation of review tasks before and after a translation task.",
1096
1096
  description: "This template sets up a chained workflow that enables the automatic creation of a review task both before and after translation. This can be used by teams that check the source copy before translation and conduct a review round after translation.",
1097
1097
  layout: {
@@ -1177,7 +1177,7 @@ var REVIEW_TRANSLATE_REVIEW_TASK_TEMPLATE = {
1177
1177
  // src/templates/resources/review-translate-task.template.ts
1178
1178
  var REVIEW_TRANSLATE_TASK_TEMPLATE = {
1179
1179
  id: "reviewTranslateTask",
1180
- title: "Review task \u2192 translation task",
1180
+ title: "Review task \u2022 Translation task",
1181
1181
  summary: "Automatic creation of a review task before a translation task.",
1182
1182
  description: "Use this template to set up a chained workflow where a translation task will be created as soon as the review task is completed.",
1183
1183
  layout: {
@@ -1244,7 +1244,7 @@ var REVIEW_TRANSLATE_TASK_TEMPLATE = {
1244
1244
  // src/templates/resources/translate-and-review-task.template.ts
1245
1245
  var TRANSLATE_AND_REVIEW_TASK_TEMPLATE = {
1246
1246
  id: "translateAndReviewTask",
1247
- title: "Translation task \u2192 review task",
1247
+ title: "Translation task \u2022 Review task",
1248
1248
  summary: "Automatic creation of translation task before a review task.",
1249
1249
  description: "Use this template to set up a chained workflow where a review task will be created as soon as the translation task is completed.",
1250
1250
  layout: {
@@ -1311,7 +1311,7 @@ var TRANSLATE_AND_REVIEW_TASK_TEMPLATE = {
1311
1311
  // src/templates/resources/translate-review-review-task.template.ts
1312
1312
  var TRANSLATE_REVIEW_REVIEW_TASK_TEMPLATE = {
1313
1313
  id: "translateReviewReviewTask",
1314
- title: "Translation task \u2192 review task \u2192 review task",
1314
+ title: "Translation task \u2022 Review task \u2022 Review task",
1315
1315
  summary: "Automatic creation of a translation task followed by two review tasks.",
1316
1316
  description: "This template to set up a chained workflow where it enables the automatic creation of two review tasks after translation. This could be used by teams that e.g. have one round of proofreading before stakeholders review it.",
1317
1317
  layout: {
@@ -1467,22 +1467,22 @@ var buildTemplate = /* @__PURE__ */ __name((internalTemplate) => {
1467
1467
  };
1468
1468
  }, "buildTemplate");
1469
1469
  var TEMPLATES = {
1470
+ clearTranslationsMtAiTask: buildTemplate(CLEAR_TRANSLATIONS_MT_AI_TASK_TEMPLATE),
1471
+ translateTask: buildTemplate(TRANSLATE_TASK_TEMPLATE),
1470
1472
  clearTranslationsTm: buildTemplate(CLEAR_TRANSLATIONS_TM_TEMPLATE),
1471
- clearTranslationsTmTranslateTask: buildTemplate(CLEAR_TRANSLATIONS_TM_TRANSLATE_TASK_TEMPLATE),
1473
+ clearTranslationsMtAiReviewTask: buildTemplate(CLEAR_TRANSLATIONS_MT_AI_REVIEW_TASK_TEMPLATE),
1474
+ clearTranslationsTmMtAiReviewTask: buildTemplate(
1475
+ CLEAR_TRANSLATIONS_TM_MT_AI_REVIEW_TASK_TEMPLATE
1476
+ ),
1477
+ translateAndReviewTask: buildTemplate(TRANSLATE_AND_REVIEW_TASK_TEMPLATE),
1472
1478
  clearTranslationsTmTranslateReviewTask: buildTemplate(
1473
1479
  CLEAR_TRANSLATIONS_TM_TRANSLATE_REVIEW_TASK_TEMPLATE
1474
1480
  ),
1475
- translateTask: buildTemplate(TRANSLATE_TASK_TEMPLATE),
1476
- reviewTask: buildTemplate(REVIEW_TASK_TEMPLATE),
1477
- translateAndReviewTask: buildTemplate(TRANSLATE_AND_REVIEW_TASK_TEMPLATE),
1478
1481
  translateReviewReviewTask: buildTemplate(TRANSLATE_REVIEW_REVIEW_TASK_TEMPLATE),
1482
+ reviewTask: buildTemplate(REVIEW_TASK_TEMPLATE),
1479
1483
  reviewTranslateTask: buildTemplate(REVIEW_TRANSLATE_TASK_TEMPLATE),
1480
1484
  reviewTranslateReviewTask: buildTemplate(REVIEW_TRANSLATE_REVIEW_TASK_TEMPLATE),
1481
- clearTranslationsMtAiTask: buildTemplate(CLEAR_TRANSLATIONS_MT_AI_TASK_TEMPLATE),
1482
- clearTranslationsMtAiReviewTask: buildTemplate(CLEAR_TRANSLATIONS_MT_AI_REVIEW_TASK_TEMPLATE),
1483
- clearTranslationsTmMtAiReviewTask: buildTemplate(
1484
- CLEAR_TRANSLATIONS_TM_MT_AI_REVIEW_TASK_TEMPLATE
1485
- )
1485
+ clearTranslationsTmTranslateTask: buildTemplate(CLEAR_TRANSLATIONS_TM_TRANSLATE_TASK_TEMPLATE)
1486
1486
  };
1487
1487
 
1488
1488
  // src/apiContract/schemas.ts