@lokalise/maestro-expert-tenant-lib 3.2.2 → 3.3.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/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import z, { z as z$1 } from 'zod';
2
- import { WorkflowLayoutStepSettings, WorkflowLayout, WorkflowLayoutStep, WorkflowLayoutStepTriggerList, WorkflowLayoutStepTriggerEvent, WorkflowLayoutStepSettingsList, WorkflowMetadata } from '@lokalise/maestro-common';
2
+ import { WorkflowLayoutStepSettings, BaseTemplate, WorkflowLayout, WorkflowLayoutStep, WorkflowLayoutStepTriggerList, WorkflowLayoutStepTriggerEvent, WorkflowLayoutStepSettingsList, WorkflowMetadata } from '@lokalise/maestro-common';
3
3
 
4
4
  declare const GROUP_ID: z.ZodString;
5
5
  declare const METADATA_FIELDS: z.ZodEnum<["targetLanguageIds", "error"]>;
@@ -12441,7 +12441,7 @@ type FrontendLayoutStep<StateName extends string> = {
12441
12441
  values: Record<string, unknown>;
12442
12442
  };
12443
12443
  type FrontendLayout<StateName extends string> = FrontendLayoutStep<StateName>[];
12444
- type InternalTemplate<StateName extends string> = {
12444
+ type InternalTemplate<StateName extends string> = BaseTemplate<StateName> & {
12445
12445
  id: TemplateId;
12446
12446
  title: string;
12447
12447
  summary: string;
@@ -12472,7 +12472,7 @@ type LayoutTranslatorInterface = {
12472
12472
  translateTemplateToFrontendLayout(template: any): any;
12473
12473
  getTriggerSchedulerExpression(settings: WorkflowLayoutStepSettingsList): string | undefined;
12474
12474
  getTriggerSchedulerStartDate(settings: WorkflowLayoutStepSettingsList): string | undefined;
12475
- getTemplateGateLevel(schema: any): number | undefined;
12475
+ findTemplate(frontendLayout: any): BaseTemplate<string> | undefined;
12476
12476
  };
12477
12477
 
12478
12478
  declare class LayoutTranslator implements LayoutTranslatorInterface {
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import z, { z as z$1 } from 'zod';
2
- import { WorkflowLayoutStepSettings, WorkflowLayout, WorkflowLayoutStep, WorkflowLayoutStepTriggerList, WorkflowLayoutStepTriggerEvent, WorkflowLayoutStepSettingsList, WorkflowMetadata } from '@lokalise/maestro-common';
2
+ import { WorkflowLayoutStepSettings, BaseTemplate, WorkflowLayout, WorkflowLayoutStep, WorkflowLayoutStepTriggerList, WorkflowLayoutStepTriggerEvent, WorkflowLayoutStepSettingsList, WorkflowMetadata } from '@lokalise/maestro-common';
3
3
 
4
4
  declare const GROUP_ID: z.ZodString;
5
5
  declare const METADATA_FIELDS: z.ZodEnum<["targetLanguageIds", "error"]>;
@@ -12441,7 +12441,7 @@ type FrontendLayoutStep<StateName extends string> = {
12441
12441
  values: Record<string, unknown>;
12442
12442
  };
12443
12443
  type FrontendLayout<StateName extends string> = FrontendLayoutStep<StateName>[];
12444
- type InternalTemplate<StateName extends string> = {
12444
+ type InternalTemplate<StateName extends string> = BaseTemplate<StateName> & {
12445
12445
  id: TemplateId;
12446
12446
  title: string;
12447
12447
  summary: string;
@@ -12472,7 +12472,7 @@ type LayoutTranslatorInterface = {
12472
12472
  translateTemplateToFrontendLayout(template: any): any;
12473
12473
  getTriggerSchedulerExpression(settings: WorkflowLayoutStepSettingsList): string | undefined;
12474
12474
  getTriggerSchedulerStartDate(settings: WorkflowLayoutStepSettingsList): string | undefined;
12475
- getTemplateGateLevel(schema: any): number | undefined;
12475
+ findTemplate(frontendLayout: any): BaseTemplate<string> | undefined;
12476
12476
  };
12477
12477
 
12478
12478
  declare class LayoutTranslator implements LayoutTranslatorInterface {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lokalise/maestro-expert-tenant-lib",
3
- "version": "3.2.2",
3
+ "version": "3.3.0",
4
4
  "license": "Apache-2.0",
5
5
  "homepage": "https://github.com/lokalise/maestro",
6
6
  "description": "This library provides shared objects, types and zod schemas for Maestro",