@lokalise/maestro-expert-tenant-lib 8.1.0 → 9.0.0
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/apiContract/workflowRunContracts.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/steps/{StepInterface.d.ts → Step.d.ts} +1 -1
- package/dist/steps/Step.js +2 -0
- package/dist/steps/Step.js.map +1 -0
- package/dist/steps/StepRegistry.d.ts +12 -12
- package/dist/steps/resources/AiMtTranslationStep.d.ts +2 -2
- package/dist/steps/resources/AiMtTranslationWithAiScoringStep.d.ts +2 -2
- package/dist/steps/resources/ApplyTmStep.d.ts +2 -2
- package/dist/steps/resources/ClearTranslationsStep.d.ts +2 -2
- package/dist/steps/resources/EndStep.d.ts +2 -2
- package/dist/steps/resources/ReviewTaskStep.d.ts +2 -2
- package/dist/steps/resources/ReviewTaskWithAiScoringStep.d.ts +2 -2
- package/dist/steps/resources/ScheduledTriggerStep.d.ts +2 -2
- package/dist/steps/resources/TranslateTaskStep.d.ts +2 -2
- package/dist/steps/resources/rebranded/AiMtTranslationStep.d.ts +3 -3
- package/dist/steps/resources/rebranded/AiMtTranslationWithAiScoringStep.d.ts +4 -4
- package/dist/steps/resources/rebranded/ReviewTaskWithAiScoringStep.d.ts +4 -4
- package/dist/templates/schemas.js +2 -2
- package/dist/templates/schemas.js.map +1 -1
- package/dist/workflow/{LayoutTranslator.d.ts → ExpertLayoutTranslator.d.ts} +3 -3
- package/dist/workflow/{LayoutTranslator.js → ExpertLayoutTranslator.js} +2 -2
- package/dist/workflow/ExpertLayoutTranslator.js.map +1 -0
- package/dist/workflow/{LayoutValidator.d.ts → ExpertLayoutValidator.d.ts} +2 -2
- package/dist/workflow/{LayoutValidator.js → ExpertLayoutValidator.js} +2 -2
- package/dist/workflow/ExpertLayoutValidator.js.map +1 -0
- package/package.json +1 -1
- package/dist/steps/StepInterface.js +0 -2
- package/dist/steps/StepInterface.js.map +0 -1
- package/dist/workflow/LayoutTranslator.js.map +0 -1
- package/dist/workflow/LayoutValidator.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { COMMON_ERROR_RESPONSE_SCHEMA } from '@lokalise/api-common';
|
|
2
2
|
import { buildGetRoute, buildPayloadRoute } from '@lokalise/api-contracts';
|
|
3
3
|
import { AUTHORIZATION_REQUEST_HEADER } from '@lokalise/maestro-common';
|
|
4
|
-
import { GET_WORKFLOW_RUN_LIST_REQUEST_QUERY, GET_WORKFLOW_RUN_LIST_RESPONSE, POST_START_WORKFLOW_RUN_RESPONSE, UNSPECIFIED_WORKFLOW_PARAMS, WORKFLOW_PARAMS, } from
|
|
4
|
+
import { GET_WORKFLOW_RUN_LIST_REQUEST_QUERY, GET_WORKFLOW_RUN_LIST_RESPONSE, POST_START_WORKFLOW_RUN_RESPONSE, UNSPECIFIED_WORKFLOW_PARAMS, WORKFLOW_PARAMS, } from './schemas.js';
|
|
5
5
|
export const postWorkflowRunContract = buildPayloadRoute({
|
|
6
6
|
method: 'post',
|
|
7
7
|
pathResolver: (params) => `/v1/groups/${params.groupId}/workflows/${params.workflowId}/actions/run`,
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,6 @@ export { ADVANCED_SCHEDULING_DAILY_SUPPLEMENTARY_FORM_SCHEMA, ADVANCED_SCHEDULIN
|
|
|
7
7
|
export * from './steps/StepRegistry.js';
|
|
8
8
|
export { TEMPLATES, type TemplateId } from './templates/schemas.js';
|
|
9
9
|
export type { FrontendLayout, Template } from './templates/types.js';
|
|
10
|
-
export {
|
|
10
|
+
export { ExpertLayoutTranslator } from './workflow/ExpertLayoutTranslator.js';
|
|
11
11
|
export * from './workflow/messages.js';
|
|
12
12
|
export * from './workflow/schemas.js';
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ export { MAX_STEP_ID_LENGTH, MAX_STEPS, TRANSLATION_ENGINE } from './steps/commo
|
|
|
6
6
|
export { ADVANCED_SCHEDULING_DAILY_SUPPLEMENTARY_FORM_SCHEMA, ADVANCED_SCHEDULING_HOURLY_SUPPLEMENTARY_FORM_SCHEMA, ADVANCED_SCHEDULING_MONTHLY_SUPPLEMENTARY_FORM_SCHEMA, ADVANCED_SCHEDULING_WEEKLY_SUPPLEMENTARY_FORM_SCHEMA, } from './steps/resources/ScheduledTriggerStep.js';
|
|
7
7
|
export * from './steps/StepRegistry.js';
|
|
8
8
|
export { TEMPLATES } from './templates/schemas.js';
|
|
9
|
-
export {
|
|
9
|
+
export { ExpertLayoutTranslator } from './workflow/ExpertLayoutTranslator.js';
|
|
10
10
|
export * from './workflow/messages.js';
|
|
11
11
|
export * from './workflow/schemas.js';
|
|
12
12
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAA;AACrD,cAAc,0BAA0B,CAAA;AACxC,cAAc,oCAAoC,CAAA;AAClD,cAAc,uCAAuC,CAAA;AACrD,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AACrF,OAAO,EACL,mDAAmD,EACnD,oDAAoD,EACpD,qDAAqD,EACrD,oDAAoD,GACrD,MAAM,2CAA2C,CAAA;AAClD,cAAc,yBAAyB,CAAA;AACvC,OAAO,EAAE,SAAS,EAAmB,MAAM,wBAAwB,CAAA;AAEnE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAA;AACrD,cAAc,0BAA0B,CAAA;AACxC,cAAc,oCAAoC,CAAA;AAClD,cAAc,uCAAuC,CAAA;AACrD,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AACrF,OAAO,EACL,mDAAmD,EACnD,oDAAoD,EACpD,qDAAqD,EACrD,oDAAoD,GACrD,MAAM,2CAA2C,CAAA;AAClD,cAAc,yBAAyB,CAAA;AACvC,OAAO,EAAE,SAAS,EAAmB,MAAM,wBAAwB,CAAA;AAEnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAA;AAC7E,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA"}
|
|
@@ -11,7 +11,7 @@ export type CommonStepDtoSchema = z.ZodObject<{
|
|
|
11
11
|
}>;
|
|
12
12
|
export type CommonStepDto = z.infer<CommonStepDtoSchema>;
|
|
13
13
|
export type CommonStepToLayout = (targetId: CommonStepDto['id'] | undefined) => WorkflowLayoutStep;
|
|
14
|
-
export interface
|
|
14
|
+
export interface Step<Type extends string, Name extends string, AddStepTitle extends string, FormSchema extends CommonStepFormSchema, LayoutSchema extends CommonStepLayoutSchema, LiveDtoSchema extends CommonStepDtoSchema, DraftDtoSchema extends CommonStepDtoSchema, DefaultValues extends WorkflowLayoutStepSettings, MapToLayout extends CommonStepToLayout> {
|
|
15
15
|
/**
|
|
16
16
|
* Type of the step
|
|
17
17
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Step.js","sourceRoot":"","sources":["../../src/steps/Step.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { WorkflowLayoutStep } from '@lokalise/maestro-common';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
3
|
import type { StrictWorkflowLayoutStepSettings } from '../templates/types.js';
|
|
4
|
-
import type { CommonStepDto, CommonStepToLayout,
|
|
5
|
-
declare const STEP_REGISTRY: readonly [
|
|
4
|
+
import type { CommonStepDto, CommonStepToLayout, Step } from './Step.js';
|
|
5
|
+
declare const STEP_REGISTRY: readonly [Step<"trigger_step", "TriggerStep", "Trigger and scope", z.ZodObject<{
|
|
6
6
|
stepTitle: z.ZodString;
|
|
7
7
|
scheduleFrequencyExpression: z.ZodString;
|
|
8
8
|
scheduleStartingDate: z.ZodISODate;
|
|
@@ -146,7 +146,7 @@ declare const STEP_REGISTRY: readonly [StepInterface<"trigger_step", "TriggerSte
|
|
|
146
146
|
weekdays?: ("mo" | "tu" | "we" | "th" | "fr" | "sa" | "su")[] | undefined;
|
|
147
147
|
monthDayPosition?: "first" | "current" | "last" | undefined;
|
|
148
148
|
projectFilterId?: string | null | undefined;
|
|
149
|
-
}>, CommonStepToLayout>,
|
|
149
|
+
}>, CommonStepToLayout>, Step<"clear_translations_step", "ClearTranslationsStep", "Clear existing translations", z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
150
150
|
stepType: z.ZodLiteral<"clear_translations_step">;
|
|
151
151
|
}, z.core.$strip>, z.ZodObject<{
|
|
152
152
|
id: z.ZodString;
|
|
@@ -161,7 +161,7 @@ declare const STEP_REGISTRY: readonly [StepInterface<"trigger_step", "TriggerSte
|
|
|
161
161
|
stepType: string;
|
|
162
162
|
} & Partial<{
|
|
163
163
|
stepType: "clear_translations_step";
|
|
164
|
-
}>, CommonStepToLayout>,
|
|
164
|
+
}>, CommonStepToLayout>, Step<"apply_tm_step", "ApplyTmStep", "Apply TM", z.ZodObject<{
|
|
165
165
|
stepTitle: z.ZodString;
|
|
166
166
|
threshold: z.ZodNumber;
|
|
167
167
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -189,7 +189,7 @@ declare const STEP_REGISTRY: readonly [StepInterface<"trigger_step", "TriggerSte
|
|
|
189
189
|
stepTitle: string;
|
|
190
190
|
threshold: number;
|
|
191
191
|
stepType: "apply_tm_step";
|
|
192
|
-
}>, CommonStepToLayout>,
|
|
192
|
+
}>, CommonStepToLayout>, Step<"translate_task_step", "TranslateTaskStep", "Translate by team member", z.ZodObject<{
|
|
193
193
|
stepTitle: z.ZodString;
|
|
194
194
|
taskTitle: z.ZodOptional<z.ZodString>;
|
|
195
195
|
taskDescription: z.ZodOptional<z.ZodString>;
|
|
@@ -323,7 +323,7 @@ declare const STEP_REGISTRY: readonly [StepInterface<"trigger_step", "TriggerSte
|
|
|
323
323
|
saveTranslationsToTm?: boolean | undefined;
|
|
324
324
|
markVerified?: boolean | undefined;
|
|
325
325
|
reviewLanguageType?: "target" | "source" | undefined;
|
|
326
|
-
}>, CommonStepToLayout>,
|
|
326
|
+
}>, CommonStepToLayout>, Step<"ai_mt_translation_step", "AiMtTranslationStep", "Translate with AI/MT", z.ZodObject<{
|
|
327
327
|
stepTitle: z.ZodString;
|
|
328
328
|
translationEngine: z.ZodEnum<{
|
|
329
329
|
ai: "ai";
|
|
@@ -396,7 +396,7 @@ declare const STEP_REGISTRY: readonly [StepInterface<"trigger_step", "TriggerSte
|
|
|
396
396
|
customTranslationStatusIds?: number[] | undefined;
|
|
397
397
|
saveTranslationsToTm?: boolean | undefined;
|
|
398
398
|
markVerified?: boolean | undefined;
|
|
399
|
-
}>, CommonStepToLayout>,
|
|
399
|
+
}>, CommonStepToLayout>, Step<"ai_mt_translation_ai_scoring_step", "AiMtTranslationWithAiScoringStep", "Translate with AI", z.ZodObject<{
|
|
400
400
|
stepTitle: z.ZodString;
|
|
401
401
|
taskTitle: z.ZodOptional<z.ZodString>;
|
|
402
402
|
aiInstructions: z.ZodOptional<z.ZodString>;
|
|
@@ -463,7 +463,7 @@ declare const STEP_REGISTRY: readonly [StepInterface<"trigger_step", "TriggerSte
|
|
|
463
463
|
customTranslationStatusIds?: number[] | undefined;
|
|
464
464
|
saveTranslationsToTm?: boolean | undefined;
|
|
465
465
|
markVerified?: boolean | undefined;
|
|
466
|
-
}>, CommonStepToLayout>,
|
|
466
|
+
}>, CommonStepToLayout>, Step<"review_task_step", "ReviewTaskStep", "Review task for contributors", z.ZodObject<{
|
|
467
467
|
stepTitle: z.ZodString;
|
|
468
468
|
taskTitle: z.ZodOptional<z.ZodString>;
|
|
469
469
|
taskDescription: z.ZodOptional<z.ZodString>;
|
|
@@ -593,7 +593,7 @@ declare const STEP_REGISTRY: readonly [StepInterface<"trigger_step", "TriggerSte
|
|
|
593
593
|
saveTranslationsToTm?: boolean | undefined;
|
|
594
594
|
markVerified?: boolean | undefined;
|
|
595
595
|
reviewLanguageType?: "target" | "source" | undefined;
|
|
596
|
-
}>, CommonStepToLayout>,
|
|
596
|
+
}>, CommonStepToLayout>, Step<"review_task_ai_scoring_step", "ReviewTaskWithAiScoringStep", "Review task with AI scoring", z.ZodObject<{
|
|
597
597
|
stepTitle: z.ZodString;
|
|
598
598
|
taskTitle: z.ZodOptional<z.ZodString>;
|
|
599
599
|
taskDescription: z.ZodOptional<z.ZodString>;
|
|
@@ -724,7 +724,7 @@ declare const STEP_REGISTRY: readonly [StepInterface<"trigger_step", "TriggerSte
|
|
|
724
724
|
aiInstructions?: string | undefined;
|
|
725
725
|
saveTranslationsToTm?: boolean | undefined;
|
|
726
726
|
markVerified?: boolean | undefined;
|
|
727
|
-
}>, CommonStepToLayout>,
|
|
727
|
+
}>, CommonStepToLayout>, Step<"end_step", "EndStep", "End", z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
728
728
|
stepType: z.ZodLiteral<"end_step">;
|
|
729
729
|
}, z.core.$strip>, z.ZodObject<{
|
|
730
730
|
id: z.ZodLiteral<"EndStep">;
|
|
@@ -1173,7 +1173,7 @@ export declare const STEP_DEFAULT_VALUES: Record<StepType, StrictWorkflowLayoutS
|
|
|
1173
1173
|
export declare const REBRANDED_STEP_DEFAULT_VALUES: Record<StepType, StrictWorkflowLayoutStepSettings>;
|
|
1174
1174
|
export declare const generateRandomHex: () => string;
|
|
1175
1175
|
export declare const buildStepId: (name: string) => string;
|
|
1176
|
-
export declare const AVAILABLE_STEPS: (
|
|
1176
|
+
export declare const AVAILABLE_STEPS: (Step<"trigger_step" | "clear_translations_step" | "apply_tm_step" | "translate_task_step" | "ai_mt_translation_step" | "ai_mt_translation_ai_scoring_step" | "review_task_step" | "review_task_ai_scoring_step" | "end_step", "TriggerStep" | "ClearTranslationsStep" | "ApplyTmStep" | "TranslateTaskStep" | "AiMtTranslationStep" | "AiMtTranslationWithAiScoringStep" | "ReviewTaskStep" | "ReviewTaskWithAiScoringStep" | "EndStep", "Trigger and scope" | "Clear existing translations" | "Apply TM" | "Translate by team member" | "Translate with AI/MT" | "Translate with AI" | "Review task for contributors" | "Review task with AI scoring" | "End", z.ZodObject<{
|
|
1177
1177
|
stepTitle: z.ZodString;
|
|
1178
1178
|
scheduleFrequencyExpression: z.ZodString;
|
|
1179
1179
|
scheduleStartingDate: z.ZodISODate;
|
|
@@ -1913,7 +1913,7 @@ export declare const AVAILABLE_STEPS: (StepInterface<"trigger_step" | "clear_tra
|
|
|
1913
1913
|
}>), CommonStepToLayout> & {
|
|
1914
1914
|
id: string;
|
|
1915
1915
|
})[];
|
|
1916
|
-
export declare const REBRANDED_AVAILABLE_STEPS: (
|
|
1916
|
+
export declare const REBRANDED_AVAILABLE_STEPS: (Step<"trigger_step" | "clear_translations_step" | "apply_tm_step" | "translate_task_step" | "ai_mt_translation_step" | "ai_mt_translation_ai_scoring_step" | "review_task_step" | "review_task_ai_scoring_step" | "end_step", "TriggerStep" | "ClearTranslationsStep" | "ApplyTmStep" | "TranslateTaskStep" | "AiMtTranslationStep" | "AiMtTranslationWithAiScoringStep" | "ReviewTaskStep" | "ReviewTaskWithAiScoringStep" | "EndStep", "Trigger and scope" | "Clear existing translations" | "Apply TM" | "Translate by team member" | "Review task for contributors" | "End" | "Translate with Pro/Standard AI" | "Translate with Pro AI" | "Review task with Pro AI scoring", z.ZodObject<{
|
|
1917
1917
|
stepTitle: z.ZodString;
|
|
1918
1918
|
scheduleFrequencyExpression: z.ZodString;
|
|
1919
1919
|
scheduleStartingDate: z.ZodISODate;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { WorkflowLayoutStepSettings } from '@lokalise/maestro-common';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
|
-
import type { CommonStepToLayout,
|
|
3
|
+
import type { CommonStepToLayout, Step } from '../Step.js';
|
|
4
4
|
declare const TYPE = "ai_mt_translation_step";
|
|
5
5
|
declare const NAME = "AiMtTranslationStep";
|
|
6
6
|
declare const ADD_STEP_TITLE = "Translate with AI/MT";
|
|
@@ -65,5 +65,5 @@ declare const DRAFT_DTO_SCHEMA: z.ZodObject<{
|
|
|
65
65
|
taskType: z.ZodLiteral<"translation">;
|
|
66
66
|
values: z.ZodObject<{}, z.core.$loose>;
|
|
67
67
|
}, z.core.$strip>;
|
|
68
|
-
export declare const AiMtTranslationStep:
|
|
68
|
+
export declare const AiMtTranslationStep: Step<typeof TYPE, typeof NAME, typeof ADD_STEP_TITLE, typeof FORM_SCHEMA, typeof LAYOUT_SCHEMA, typeof LIVE_DTO_SCHEMA, typeof DRAFT_DTO_SCHEMA, WorkflowLayoutStepSettings & Partial<z.infer<typeof LAYOUT_SCHEMA>>, CommonStepToLayout>;
|
|
69
69
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { WorkflowLayoutStepSettings } from '@lokalise/maestro-common';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
|
-
import type { CommonStepToLayout,
|
|
3
|
+
import type { CommonStepToLayout, Step } from '../Step.js';
|
|
4
4
|
declare const TYPE = "ai_mt_translation_ai_scoring_step";
|
|
5
5
|
declare const NAME = "AiMtTranslationWithAiScoringStep";
|
|
6
6
|
declare const ADD_STEP_TITLE = "Translate with AI";
|
|
@@ -59,5 +59,5 @@ declare const DRAFT_DTO_SCHEMA: z.ZodObject<{
|
|
|
59
59
|
taskType: z.ZodLiteral<"translation">;
|
|
60
60
|
values: z.ZodObject<{}, z.core.$loose>;
|
|
61
61
|
}, z.core.$strip>;
|
|
62
|
-
export declare const AiMtTranslationWithAiScoringStep:
|
|
62
|
+
export declare const AiMtTranslationWithAiScoringStep: Step<typeof TYPE, typeof NAME, typeof ADD_STEP_TITLE, typeof FORM_SCHEMA, typeof LAYOUT_SCHEMA, typeof LIVE_DTO_SCHEMA, typeof DRAFT_DTO_SCHEMA, WorkflowLayoutStepSettings & Partial<z.infer<typeof LAYOUT_SCHEMA>>, CommonStepToLayout>;
|
|
63
63
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { WorkflowLayoutStepSettings } from '@lokalise/maestro-common';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
|
-
import type { CommonStepToLayout,
|
|
3
|
+
import type { CommonStepToLayout, Step } from '../Step.js';
|
|
4
4
|
declare const TYPE = "apply_tm_step";
|
|
5
5
|
declare const NAME = "ApplyTmStep";
|
|
6
6
|
declare const ADD_STEP_TITLE = "Apply TM";
|
|
@@ -29,5 +29,5 @@ declare const DRAFT_DTO_SCHEMA: z.ZodObject<{
|
|
|
29
29
|
threshold: z.ZodOptional<z.ZodNumber>;
|
|
30
30
|
}, z.core.$strip>;
|
|
31
31
|
}, z.core.$strip>;
|
|
32
|
-
export declare const ApplyTmStep:
|
|
32
|
+
export declare const ApplyTmStep: Step<typeof TYPE, typeof NAME, typeof ADD_STEP_TITLE, typeof FORM_SCHEMA, typeof LAYOUT_SCHEMA, typeof LIVE_DTO_SCHEMA, typeof DRAFT_DTO_SCHEMA, WorkflowLayoutStepSettings & Partial<z.infer<typeof LAYOUT_SCHEMA>>, CommonStepToLayout>;
|
|
33
33
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { WorkflowLayoutStepSettings } from '@lokalise/maestro-common';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
|
-
import type { CommonStepToLayout,
|
|
3
|
+
import type { CommonStepToLayout, Step } from '../Step.js';
|
|
4
4
|
declare const TYPE = "clear_translations_step";
|
|
5
5
|
declare const NAME = "ClearTranslationsStep";
|
|
6
6
|
declare const ADD_STEP_TITLE = "Clear existing translations";
|
|
@@ -18,5 +18,5 @@ declare const DRAFT_DTO_SCHEMA: z.ZodObject<{
|
|
|
18
18
|
values: z.ZodObject<{}, z.core.$strip>;
|
|
19
19
|
type: z.ZodLiteral<"clear_translations_step">;
|
|
20
20
|
}, z.core.$strip>;
|
|
21
|
-
export declare const ClearTranslationsStep:
|
|
21
|
+
export declare const ClearTranslationsStep: Step<typeof TYPE, typeof NAME, typeof ADD_STEP_TITLE, typeof FORM_SCHEMA, typeof LAYOUT_SCHEMA, typeof LIVE_DTO_SCHEMA, typeof DRAFT_DTO_SCHEMA, WorkflowLayoutStepSettings & Partial<z.infer<typeof LAYOUT_SCHEMA>>, CommonStepToLayout>;
|
|
22
22
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { WorkflowLayoutStepSettings } from '@lokalise/maestro-common';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
|
-
import type { CommonStepToLayout,
|
|
3
|
+
import type { CommonStepToLayout, Step } from '../Step.js';
|
|
4
4
|
declare const TYPE = "end_step";
|
|
5
5
|
declare const NAME = "EndStep";
|
|
6
6
|
declare const ADD_STEP_TITLE = "End";
|
|
@@ -18,5 +18,5 @@ declare const DRAFT_DTO_SCHEMA: z.ZodObject<{
|
|
|
18
18
|
values: z.ZodObject<{}, z.core.$strip>;
|
|
19
19
|
type: z.ZodLiteral<"end_step">;
|
|
20
20
|
}, z.core.$strip>;
|
|
21
|
-
export declare const EndStep:
|
|
21
|
+
export declare const EndStep: Step<typeof TYPE, typeof NAME, typeof ADD_STEP_TITLE, typeof FORM_SCHEMA, typeof LAYOUT_SCHEMA, typeof LIVE_DTO_SCHEMA, typeof DRAFT_DTO_SCHEMA, WorkflowLayoutStepSettings & Partial<z.infer<typeof LAYOUT_SCHEMA>>, CommonStepToLayout>;
|
|
22
22
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { WorkflowLayoutStepSettings } from '@lokalise/maestro-common';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
|
-
import type { CommonStepToLayout,
|
|
3
|
+
import type { CommonStepToLayout, Step } from '../Step.js';
|
|
4
4
|
declare const TYPE = "review_task_step";
|
|
5
5
|
declare const NAME = "ReviewTaskStep";
|
|
6
6
|
declare const ADD_STEP_TITLE = "Review task for contributors";
|
|
@@ -110,5 +110,5 @@ declare const DRAFT_DTO_SCHEMA: z.ZodObject<{
|
|
|
110
110
|
taskType: z.ZodLiteral<"review">;
|
|
111
111
|
values: z.ZodObject<{}, z.core.$loose>;
|
|
112
112
|
}, z.core.$strip>;
|
|
113
|
-
export declare const ReviewTaskStep:
|
|
113
|
+
export declare const ReviewTaskStep: Step<typeof TYPE, typeof NAME, typeof ADD_STEP_TITLE, typeof FORM_SCHEMA, typeof LAYOUT_SCHEMA, typeof LIVE_DTO_SCHEMA, typeof DRAFT_DTO_SCHEMA, WorkflowLayoutStepSettings & Partial<z.infer<typeof LAYOUT_SCHEMA>>, CommonStepToLayout>;
|
|
114
114
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { WorkflowLayoutStepSettings } from '@lokalise/maestro-common';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
|
-
import type { CommonStepToLayout,
|
|
3
|
+
import type { CommonStepToLayout, Step } from '../Step.js';
|
|
4
4
|
declare const TYPE = "review_task_ai_scoring_step";
|
|
5
5
|
declare const NAME = "ReviewTaskWithAiScoringStep";
|
|
6
6
|
declare const ADD_STEP_TITLE = "Review task with AI scoring";
|
|
@@ -110,5 +110,5 @@ declare const DRAFT_DTO_SCHEMA: z.ZodObject<{
|
|
|
110
110
|
taskType: z.ZodLiteral<"review">;
|
|
111
111
|
values: z.ZodObject<{}, z.core.$loose>;
|
|
112
112
|
}, z.core.$strip>;
|
|
113
|
-
export declare const ReviewTaskWithAiScoringStep:
|
|
113
|
+
export declare const ReviewTaskWithAiScoringStep: Step<typeof TYPE, typeof NAME, typeof ADD_STEP_TITLE, typeof FORM_SCHEMA, typeof LAYOUT_SCHEMA, typeof LIVE_DTO_SCHEMA, typeof DRAFT_DTO_SCHEMA, WorkflowLayoutStepSettings & Partial<z.infer<typeof LAYOUT_SCHEMA>>, CommonStepToLayout>;
|
|
114
114
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type WorkflowLayoutStepSettings } from '@lokalise/maestro-common';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
|
-
import type { CommonStepToLayout,
|
|
3
|
+
import type { CommonStepToLayout, Step } from '../Step.js';
|
|
4
4
|
export declare const ianaTzValidator: z.ZodString;
|
|
5
5
|
declare const TYPE = "trigger_step";
|
|
6
6
|
declare const NAME = "TriggerStep";
|
|
@@ -305,5 +305,5 @@ declare const DRAFT_DTO_SCHEMA: z.ZodObject<{
|
|
|
305
305
|
triggerType: z.ZodLiteral<"Scheduled">;
|
|
306
306
|
values: z.ZodObject<{}, z.core.$loose>;
|
|
307
307
|
}, z.core.$strip>;
|
|
308
|
-
export declare const ScheduledTriggerStep:
|
|
308
|
+
export declare const ScheduledTriggerStep: Step<typeof TYPE, typeof NAME, typeof ADD_STEP_TITLE, typeof FORM_SCHEMA, typeof LAYOUT_SCHEMA, typeof LIVE_DTO_SCHEMA, typeof DRAFT_DTO_SCHEMA, WorkflowLayoutStepSettings & Partial<z.infer<typeof LAYOUT_SCHEMA>>, CommonStepToLayout>;
|
|
309
309
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { WorkflowLayoutStepSettings } from '@lokalise/maestro-common';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
|
-
import type { CommonStepToLayout,
|
|
3
|
+
import type { CommonStepToLayout, Step } from '../Step.js';
|
|
4
4
|
declare const TYPE = "translate_task_step";
|
|
5
5
|
declare const NAME = "TranslateTaskStep";
|
|
6
6
|
declare const ADD_STEP_TITLE = "Translate by team member";
|
|
@@ -113,5 +113,5 @@ declare const DRAFT_DTO_SCHEMA: z.ZodObject<{
|
|
|
113
113
|
taskType: z.ZodLiteral<"translation">;
|
|
114
114
|
values: z.ZodObject<{}, z.core.$loose>;
|
|
115
115
|
}, z.core.$strip>;
|
|
116
|
-
export declare const TranslateTaskStep:
|
|
116
|
+
export declare const TranslateTaskStep: Step<typeof TYPE, typeof NAME, typeof ADD_STEP_TITLE, typeof FORM_SCHEMA, typeof LAYOUT_SCHEMA, typeof LIVE_DTO_SCHEMA, typeof DRAFT_DTO_SCHEMA, WorkflowLayoutStepSettings & Partial<z.infer<typeof LAYOUT_SCHEMA>>, CommonStepToLayout>;
|
|
117
117
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { CommonStepToLayout,
|
|
1
|
+
import type { CommonStepToLayout, Step } from '../../Step.js';
|
|
2
2
|
declare const ADD_STEP_TITLE = "Translate with Pro/Standard AI";
|
|
3
|
-
declare const sourceStep:
|
|
3
|
+
declare const sourceStep: Step<"ai_mt_translation_step", "AiMtTranslationStep", "Translate with AI/MT", import("zod/v4").ZodObject<{
|
|
4
4
|
stepTitle: import("zod/v4").ZodString;
|
|
5
5
|
translationEngine: import("zod/v4").ZodEnum<{
|
|
6
6
|
ai: "ai";
|
|
@@ -74,5 +74,5 @@ declare const sourceStep: StepInterface<"ai_mt_translation_step", "AiMtTranslati
|
|
|
74
74
|
saveTranslationsToTm?: boolean | undefined;
|
|
75
75
|
markVerified?: boolean | undefined;
|
|
76
76
|
}>, CommonStepToLayout>;
|
|
77
|
-
export declare const RebrandedAiMtTranslationStep:
|
|
77
|
+
export declare const RebrandedAiMtTranslationStep: Step<typeof sourceStep.type, typeof sourceStep.name, typeof ADD_STEP_TITLE, typeof sourceStep.formSchema, typeof sourceStep.layoutSchema, typeof sourceStep.liveDtoSchema, typeof sourceStep.draftDtoSchema, typeof sourceStep.defaultValues, CommonStepToLayout>;
|
|
78
78
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Step } from '../../Step.js';
|
|
2
2
|
declare const ADD_STEP_TITLE = "Translate with Pro AI";
|
|
3
|
-
declare const sourceStep:
|
|
3
|
+
declare const sourceStep: Step<"ai_mt_translation_ai_scoring_step", "AiMtTranslationWithAiScoringStep", "Translate with AI", import("zod/v4").ZodObject<{
|
|
4
4
|
stepTitle: import("zod/v4").ZodString;
|
|
5
5
|
taskTitle: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
6
6
|
aiInstructions: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
@@ -67,6 +67,6 @@ declare const sourceStep: StepInterface<"ai_mt_translation_ai_scoring_step", "Ai
|
|
|
67
67
|
customTranslationStatusIds?: number[] | undefined;
|
|
68
68
|
saveTranslationsToTm?: boolean | undefined;
|
|
69
69
|
markVerified?: boolean | undefined;
|
|
70
|
-
}>, import("../../
|
|
71
|
-
export declare const RebrandedAiMtTranslationWithAiScoringStep:
|
|
70
|
+
}>, import("../../Step.js").CommonStepToLayout>;
|
|
71
|
+
export declare const RebrandedAiMtTranslationWithAiScoringStep: Step<typeof sourceStep.type, typeof sourceStep.name, typeof ADD_STEP_TITLE, typeof sourceStep.formSchema, typeof sourceStep.layoutSchema, typeof sourceStep.liveDtoSchema, typeof sourceStep.draftDtoSchema, typeof sourceStep.defaultValues, typeof sourceStep.mapToLayout>;
|
|
72
72
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Step } from '../../Step.js';
|
|
2
2
|
declare const ADD_STEP_TITLE = "Review task with Pro AI scoring";
|
|
3
|
-
declare const sourceStep:
|
|
3
|
+
declare const sourceStep: Step<"review_task_ai_scoring_step", "ReviewTaskWithAiScoringStep", "Review task with AI scoring", import("zod/v4").ZodObject<{
|
|
4
4
|
stepTitle: import("zod/v4").ZodString;
|
|
5
5
|
taskTitle: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
6
6
|
taskDescription: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
@@ -131,6 +131,6 @@ declare const sourceStep: StepInterface<"review_task_ai_scoring_step", "ReviewTa
|
|
|
131
131
|
aiInstructions?: string | undefined;
|
|
132
132
|
saveTranslationsToTm?: boolean | undefined;
|
|
133
133
|
markVerified?: boolean | undefined;
|
|
134
|
-
}>, import("../../
|
|
135
|
-
export declare const RebrandedReviewTaskWithAiScoringStep:
|
|
134
|
+
}>, import("../../Step.js").CommonStepToLayout>;
|
|
135
|
+
export declare const RebrandedReviewTaskWithAiScoringStep: Step<typeof sourceStep.type, typeof sourceStep.name, typeof ADD_STEP_TITLE, typeof sourceStep.formSchema, typeof sourceStep.layoutSchema, typeof sourceStep.liveDtoSchema, typeof sourceStep.draftDtoSchema, typeof sourceStep.defaultValues, typeof sourceStep.mapToLayout>;
|
|
136
136
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExpertLayoutTranslator } from '../workflow/ExpertLayoutTranslator.js';
|
|
2
2
|
import { CLEAR_TRANSLATIONS_MT_AI_REVIEW_AI_SCORING_TASK_TEMPLATE } from './resources/clear-translations-mt-ai-review-ai-scoring-task.template.js';
|
|
3
3
|
import { CLEAR_TRANSLATIONS_MT_AI_REVIEW_TASK_TEMPLATE } from './resources/clear-translations-mt-ai-review-task.template.js';
|
|
4
4
|
import { CLEAR_TRANSLATIONS_MT_AI_TASK_TEMPLATE } from './resources/clear-translations-mt-ai-task.template.js';
|
|
@@ -38,7 +38,7 @@ export const TEMPLATE_IDS = [
|
|
|
38
38
|
'reviewTranslateReviewTask',
|
|
39
39
|
];
|
|
40
40
|
const buildTemplate = (internalTemplate) => {
|
|
41
|
-
const layoutTranslator = new
|
|
41
|
+
const layoutTranslator = new ExpertLayoutTranslator();
|
|
42
42
|
const frontendLayout = layoutTranslator.translateTemplateToFrontendLayout(internalTemplate);
|
|
43
43
|
return {
|
|
44
44
|
...internalTemplate,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../src/templates/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../src/templates/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM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mEAAmE;AACnE,2EAA2E;AAC3E,MAAM,CAAC,MAAM,mBAAmB,GAAyC;IACvE,eAAe;IACf,aAAa,EAAE,aAAa,CAAC,uBAAuB,CAAC;IACrD,UAAU,EAAE,aAAa,CAAC,oBAAoB,CAAC;IAC/C,sBAAsB,EAAE,aAAa,CAAC,kCAAkC,CAAC;IACzE,mBAAmB,EAAE,aAAa,CAAC,8BAA8B,CAAC;IAClE,yBAAyB,EAAE,aAAa,CAAC,gDAAgD,CAAC,EAAE,YAAY;IACxG,+BAA+B,EAAE,aAAa,CAC5C,uDAAuD,CACxD,EAAE,YAAY;IACf,eAAe;IACf,mBAAmB,EAAE,aAAa,CAAC,8BAA8B,CAAC;IAClE,gCAAgC,EAAE,aAAa,CAAC,6CAA6C,CAAC;IAC9F,sCAAsC,EAAE,aAAa,CACnD,oDAAoD,CACrD;IACD,2BAA2B,EAAE,aAAa,CAAC,mDAAmD,CAAC,EAAE,YAAY;IAC7G,iCAAiC,EAAE,aAAa,CAC9C,0DAA0D,CAC3D,EAAE,YAAY;IACf,eAAe;IACf,4CAA4C,EAAE,aAAa,CACzD,kEAAkE,CACnE,EAAE,YAAY;IACf,8CAA8C,EAAE,aAAa,CAC3D,qEAAqE,CACtE,EAAE,YAAY;IACf,yBAAyB,EAAE,aAAa,CAAC,qCAAqC,CAAC;IAC/E,yBAAyB,EAAE,aAAa,CAAC,qCAAqC,CAAC;CAChF,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { CommonStepDto } from '../steps/
|
|
1
|
+
import type { LayoutTranslator, RruleConfiguration, WorkflowLayout, WorkflowLayoutStep, WorkflowLayoutStepSettingsList, WorkflowMetadata } from '@lokalise/maestro-common';
|
|
2
|
+
import type { CommonStepDto } from '../steps/Step.js';
|
|
3
3
|
import { type StepType } from '../steps/StepRegistry.js';
|
|
4
4
|
import type { FrontendLayout, InternalTemplate, StrictWorkflowLayoutSettings, Template } from '../templates/types.js';
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class ExpertLayoutTranslator implements LayoutTranslator {
|
|
6
6
|
translateTemplateToFrontendLayout<StateName extends string>(template: InternalTemplate<StateName>): FrontendLayout;
|
|
7
7
|
translateFrontendLayoutToTemplate<StateName extends string>(frontendLayout: FrontendLayout): Pick<InternalTemplate<StateName>, 'layout' | 'settings'> | undefined;
|
|
8
8
|
translateFrontendLayoutToBackendLayout(frontendLayout: FrontendLayout): {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { areDeepEqual } from '@lokalise/universal-ts-utils/node';
|
|
2
2
|
import { FRONTEND_TO_BACKEND_STEPS_MAP, } from '../steps/StepRegistry.js';
|
|
3
3
|
import { TEMPLATES } from '../templates/schemas.js';
|
|
4
|
-
export class
|
|
4
|
+
export class ExpertLayoutTranslator {
|
|
5
5
|
translateTemplateToFrontendLayout(template) {
|
|
6
6
|
return this.buildFrontendLayout(template.settings, template.sort);
|
|
7
7
|
}
|
|
@@ -166,4 +166,4 @@ export class LayoutTranslator {
|
|
|
166
166
|
return stepBuilder(targetId);
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
//# sourceMappingURL=
|
|
169
|
+
//# sourceMappingURL=ExpertLayoutTranslator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExpertLayoutTranslator.js","sourceRoot":"","sources":["../../src/workflow/ExpertLayoutTranslator.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AAEhE,OAAO,EACL,6BAA6B,GAG9B,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAUnD,MAAM,OAAO,sBAAsB;IAC1B,iCAAiC,CACtC,QAAqC;QAErC,OAAO,IAAI,CAAC,mBAAmB,CAAY,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAA;IAC9E,CAAC;IAEM,iCAAiC,CACt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AE,CAAC;YACjB,OAAO,SAAS,CAAA;QAClB,CAAC;QAED,OAAO,WAAW,CAAC,QAAQ,CAAC,CAAA;IAC9B,CAAC;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type LayoutValidator, type WorkflowLayoutStepSettingsList, type WorkflowValidationViolation } from '@lokalise/maestro-common';
|
|
2
2
|
import type { StrictWorkflowLayout, StrictWorkflowLayoutSettings } from '../templates/types.js';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class ExpertLayoutValidator implements LayoutValidator {
|
|
4
4
|
validateWorkflowLayout({ layout, settings, }: {
|
|
5
5
|
layout: StrictWorkflowLayout<string>;
|
|
6
6
|
settings: StrictWorkflowLayoutSettings<string>;
|
|
@@ -3,7 +3,7 @@ import { areDeepEqual } from '@lokalise/universal-ts-utils/node';
|
|
|
3
3
|
import { ZodError } from 'zod/v4';
|
|
4
4
|
import { MAX_STEPS } from '../steps/common.js';
|
|
5
5
|
import { STEP_TYPES, WORKFLOW_STEP_LAYOUT_SCHEMA } from '../steps/StepRegistry.js';
|
|
6
|
-
export class
|
|
6
|
+
export class ExpertLayoutValidator {
|
|
7
7
|
validateWorkflowLayout({ layout, settings, }) {
|
|
8
8
|
const violations = this.validateLayout(layout, settings);
|
|
9
9
|
if (violations.length > 0) {
|
|
@@ -145,4 +145,4 @@ export class LayoutValidator {
|
|
|
145
145
|
return violations;
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
|
-
//# sourceMappingURL=
|
|
148
|
+
//# sourceMappingURL=ExpertLayoutValidator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExpertLayoutValidator.js","sourceRoot":"","sources":["../../src/workflow/ExpertLayoutValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EACf,kCAAkC,GAGnC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AAChE,OAAO,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ACF"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StepInterface.js","sourceRoot":"","sources":["../../src/steps/StepInterface.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutTranslator.js","sourceRoot":"","sources":["../../src/workflow/LayoutTranslator.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AAEhE,OAAO,EACL,6BAA6B,GAG9B,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAUnD,MAAM,OAAO,gBAAgB;IACpB,iCAAiC,CACtC,QAAqC;QAErC,OAAO,IAAI,CAAC,mBAAmB,CAAY,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAA;IAC9E,CAAC;IAEM,iCAAiC,CACtC,cAA8B;QAE9B,MAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC,CAAA;QAClD,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,OAAO,SAAS,CAAA;QAClB,CAAC;QAED,MAAM,cAAc,GAAG,IAAI,CAAC,yBAAyB,CAAY,cAAc,CAAC,CAAA;QAEhF,OAAO;YACL,MAAM,EAAE,QAAQ,CAAC,MAAyC;YAC1D,QAAQ,EAAE,cAAc;SACzB,CAAA;IACH,CAAC;IAEM,sCAAsC,CAAC,cAA8B;QAM1E,MAAM,cAAc,GAAmB,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,EAAE,CAAA;QAE7E,KAAK,MAAM,GAAG,IAAI,cAAc,EAAE,CAAC;YACjC,IAAI,cAAc,CAAC,GAAG,CAAC,KAAK,SAAS,EAAE,CAAC;gBACtC,OAAO,SAAS,CAAA;YAClB,CAAC;YAED,MAAM,WAAW,GAAG,IAAI,CAAC,iBAAiB,CACxC,cAAc,CAAC,GAAG,CA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