assuremind 1.2.1 → 1.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.mts CHANGED
@@ -421,6 +421,7 @@ declare const TestStepSchema: z.ZodObject<{
421
421
  mockStatus: z.ZodOptional<z.ZodNumber>;
422
422
  runAudit: z.ZodOptional<z.ZodBoolean>;
423
423
  soft: z.ZodOptional<z.ZodBoolean>;
424
+ visualCheck: z.ZodOptional<z.ZodBoolean>;
424
425
  }, "strip", z.ZodTypeAny, {
425
426
  id: string;
426
427
  order: number;
@@ -436,6 +437,7 @@ declare const TestStepSchema: z.ZodObject<{
436
437
  mockStatus?: number | undefined;
437
438
  runAudit?: boolean | undefined;
438
439
  soft?: boolean | undefined;
440
+ visualCheck?: boolean | undefined;
439
441
  }, {
440
442
  id: string;
441
443
  order: number;
@@ -451,6 +453,7 @@ declare const TestStepSchema: z.ZodObject<{
451
453
  mockStatus?: number | undefined;
452
454
  runAudit?: boolean | undefined;
453
455
  soft?: boolean | undefined;
456
+ visualCheck?: boolean | undefined;
454
457
  }>;
455
458
  declare const TestCaseSchema: z.ZodObject<{
456
459
  id: z.ZodString;
@@ -487,6 +490,7 @@ declare const TestCaseSchema: z.ZodObject<{
487
490
  mockStatus: z.ZodOptional<z.ZodNumber>;
488
491
  runAudit: z.ZodOptional<z.ZodBoolean>;
489
492
  soft: z.ZodOptional<z.ZodBoolean>;
493
+ visualCheck: z.ZodOptional<z.ZodBoolean>;
490
494
  }, "strip", z.ZodTypeAny, {
491
495
  id: string;
492
496
  order: number;
@@ -502,6 +506,7 @@ declare const TestCaseSchema: z.ZodObject<{
502
506
  mockStatus?: number | undefined;
503
507
  runAudit?: boolean | undefined;
504
508
  soft?: boolean | undefined;
509
+ visualCheck?: boolean | undefined;
505
510
  }, {
506
511
  id: string;
507
512
  order: number;
@@ -517,6 +522,7 @@ declare const TestCaseSchema: z.ZodObject<{
517
522
  mockStatus?: number | undefined;
518
523
  runAudit?: boolean | undefined;
519
524
  soft?: boolean | undefined;
525
+ visualCheck?: boolean | undefined;
520
526
  }>, "many">;
521
527
  caseHooks: z.ZodDefault<z.ZodObject<{
522
528
  before: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -602,6 +608,7 @@ declare const TestCaseSchema: z.ZodObject<{
602
608
  mockStatus?: number | undefined;
603
609
  runAudit?: boolean | undefined;
604
610
  soft?: boolean | undefined;
611
+ visualCheck?: boolean | undefined;
605
612
  }[];
606
613
  caseHooks: {
607
614
  before: {
@@ -647,6 +654,7 @@ declare const TestCaseSchema: z.ZodObject<{
647
654
  mockStatus?: number | undefined;
648
655
  runAudit?: boolean | undefined;
649
656
  soft?: boolean | undefined;
657
+ visualCheck?: boolean | undefined;
650
658
  }[];
651
659
  createdAt: string;
652
660
  updatedAt: string;
@@ -3138,6 +3146,24 @@ declare function clearEnvCache(): void;
3138
3146
  /** Returns the validated env without throwing — for non-critical reads. */
3139
3147
  declare function tryGetEnv(): ValidatedEnv | null;
3140
3148
 
3149
+ interface GeneratorCategory {
3150
+ category: string;
3151
+ methods: {
3152
+ name: string;
3153
+ example: string;
3154
+ }[];
3155
+ }
3156
+ /**
3157
+ * Returns a structured list of available faker categories and methods
3158
+ * for the UI to display in the Faker Data modal.
3159
+ */
3160
+ declare function getAvailableGenerators(): GeneratorCategory[];
3161
+ /**
3162
+ * Call a faker method by category and method name.
3163
+ * Returns the generated string value.
3164
+ */
3165
+ declare function callFaker(category: string, method: string): string;
3166
+
3141
3167
  /**
3142
3168
  * defineConfig — type-safe helper for autotest.config.ts.
3143
3169
  * Validates the config at definition time and returns it unchanged.
@@ -3145,4 +3171,4 @@ declare function tryGetEnv(): ValidatedEnv | null;
3145
3171
  */
3146
3172
  declare function defineConfig(config: Partial<AutotestConfig>): AutotestConfig;
3147
3173
 
3148
- export { type AIProvider, AssuremindError, type AutotestConfig, type BrowserName, ConfigError, ExecutionError, type GeneratedCase, type GeneratedStep, type GeneratedSuite, type GenerationResult, type GenerationStrategy$1 as GenerationStrategy, type HealingConfig, type HealingDecision, HealingError, type HealingEvent, type HealingReport, type HealingStatus, type HealingStrategy, type PageContext, type Priority, ProviderError, type ReportingConfig, type ResolvedVariables, type RouterStats, type RunConfig, type RunResult, type RunStatus, type ScreenshotMode, type SecretVariable, type StepFailure, type StepResult, StorageError, type SuiteResult, type TestCase, type TestCaseResult, type TestStep, type TestSuite, type TraceMode, ValidationError, type VariableStore, type VariableValue, type VideoMode, acceptHealingEvent, appendPendingEvent, clearEnvCache, configExists, createCase, createChildLogger, createSuite, defineConfig, deleteCase, deleteGlobalVariable, deleteResult, deleteSuite, formatError, generateCacheKey, getCasePath, getHealingStats, isAssuremindError, listCasePaths, listCases, listHealingReportIds, listResultIds, listResults, listSuiteDirs, listSuites, listSuitesWithCounts, listVariableFiles, logger, normalizeUrl, pruneResolvedEvents, readCase, readConfig, readEnvVariables, readGlobalVariables, readHealingReport, readPendingEvents, readResult, readSuite, readVariables, redactSecrets, rejectHealingEvent, resolveVariables, sanitizeGeneratedCode, screenshotsDir, setGlobalVariable, sha256, toSlug, tracesDir, tryGetEnv, updateCase, updateConfig, updateSuite, validateConfig, validateEnv, videosDir, writeCase, writeConfig, writeHealingReport, writeResult, writeSuite, writeVariables };
3174
+ export { type AIProvider, AssuremindError, type AutotestConfig, type BrowserName, ConfigError, ExecutionError, type GeneratedCase, type GeneratedStep, type GeneratedSuite, type GenerationResult, type GenerationStrategy$1 as GenerationStrategy, type HealingConfig, type HealingDecision, HealingError, type HealingEvent, type HealingReport, type HealingStatus, type HealingStrategy, type PageContext, type Priority, ProviderError, type ReportingConfig, type ResolvedVariables, type RouterStats, type RunConfig, type RunResult, type RunStatus, type ScreenshotMode, type SecretVariable, type StepFailure, type StepResult, StorageError, type SuiteResult, type TestCase, type TestCaseResult, type TestStep, type TestSuite, type TraceMode, ValidationError, type VariableStore, type VariableValue, type VideoMode, acceptHealingEvent, appendPendingEvent, callFaker, clearEnvCache, configExists, createCase, createChildLogger, createSuite, defineConfig, deleteCase, deleteGlobalVariable, deleteResult, deleteSuite, formatError, generateCacheKey, getAvailableGenerators, getCasePath, getHealingStats, isAssuremindError, listCasePaths, listCases, listHealingReportIds, listResultIds, listResults, listSuiteDirs, listSuites, listSuitesWithCounts, listVariableFiles, logger, normalizeUrl, pruneResolvedEvents, readCase, readConfig, readEnvVariables, readGlobalVariables, readHealingReport, readPendingEvents, readResult, readSuite, readVariables, redactSecrets, rejectHealingEvent, resolveVariables, sanitizeGeneratedCode, screenshotsDir, setGlobalVariable, sha256, toSlug, tracesDir, tryGetEnv, updateCase, updateConfig, updateSuite, validateConfig, validateEnv, videosDir, writeCase, writeConfig, writeHealingReport, writeResult, writeSuite, writeVariables };
package/dist/index.d.ts CHANGED
@@ -421,6 +421,7 @@ declare const TestStepSchema: z.ZodObject<{
421
421
  mockStatus: z.ZodOptional<z.ZodNumber>;
422
422
  runAudit: z.ZodOptional<z.ZodBoolean>;
423
423
  soft: z.ZodOptional<z.ZodBoolean>;
424
+ visualCheck: z.ZodOptional<z.ZodBoolean>;
424
425
  }, "strip", z.ZodTypeAny, {
425
426
  id: string;
426
427
  order: number;
@@ -436,6 +437,7 @@ declare const TestStepSchema: z.ZodObject<{
436
437
  mockStatus?: number | undefined;
437
438
  runAudit?: boolean | undefined;
438
439
  soft?: boolean | undefined;
440
+ visualCheck?: boolean | undefined;
439
441
  }, {
440
442
  id: string;
441
443
  order: number;
@@ -451,6 +453,7 @@ declare const TestStepSchema: z.ZodObject<{
451
453
  mockStatus?: number | undefined;
452
454
  runAudit?: boolean | undefined;
453
455
  soft?: boolean | undefined;
456
+ visualCheck?: boolean | undefined;
454
457
  }>;
455
458
  declare const TestCaseSchema: z.ZodObject<{
456
459
  id: z.ZodString;
@@ -487,6 +490,7 @@ declare const TestCaseSchema: z.ZodObject<{
487
490
  mockStatus: z.ZodOptional<z.ZodNumber>;
488
491
  runAudit: z.ZodOptional<z.ZodBoolean>;
489
492
  soft: z.ZodOptional<z.ZodBoolean>;
493
+ visualCheck: z.ZodOptional<z.ZodBoolean>;
490
494
  }, "strip", z.ZodTypeAny, {
491
495
  id: string;
492
496
  order: number;
@@ -502,6 +506,7 @@ declare const TestCaseSchema: z.ZodObject<{
502
506
  mockStatus?: number | undefined;
503
507
  runAudit?: boolean | undefined;
504
508
  soft?: boolean | undefined;
509
+ visualCheck?: boolean | undefined;
505
510
  }, {
506
511
  id: string;
507
512
  order: number;
@@ -517,6 +522,7 @@ declare const TestCaseSchema: z.ZodObject<{
517
522
  mockStatus?: number | undefined;
518
523
  runAudit?: boolean | undefined;
519
524
  soft?: boolean | undefined;
525
+ visualCheck?: boolean | undefined;
520
526
  }>, "many">;
521
527
  caseHooks: z.ZodDefault<z.ZodObject<{
522
528
  before: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -602,6 +608,7 @@ declare const TestCaseSchema: z.ZodObject<{
602
608
  mockStatus?: number | undefined;
603
609
  runAudit?: boolean | undefined;
604
610
  soft?: boolean | undefined;
611
+ visualCheck?: boolean | undefined;
605
612
  }[];
606
613
  caseHooks: {
607
614
  before: {
@@ -647,6 +654,7 @@ declare const TestCaseSchema: z.ZodObject<{
647
654
  mockStatus?: number | undefined;
648
655
  runAudit?: boolean | undefined;
649
656
  soft?: boolean | undefined;
657
+ visualCheck?: boolean | undefined;
650
658
  }[];
651
659
  createdAt: string;
652
660
  updatedAt: string;
@@ -3138,6 +3146,24 @@ declare function clearEnvCache(): void;
3138
3146
  /** Returns the validated env without throwing — for non-critical reads. */
3139
3147
  declare function tryGetEnv(): ValidatedEnv | null;
3140
3148
 
3149
+ interface GeneratorCategory {
3150
+ category: string;
3151
+ methods: {
3152
+ name: string;
3153
+ example: string;
3154
+ }[];
3155
+ }
3156
+ /**
3157
+ * Returns a structured list of available faker categories and methods
3158
+ * for the UI to display in the Faker Data modal.
3159
+ */
3160
+ declare function getAvailableGenerators(): GeneratorCategory[];
3161
+ /**
3162
+ * Call a faker method by category and method name.
3163
+ * Returns the generated string value.
3164
+ */
3165
+ declare function callFaker(category: string, method: string): string;
3166
+
3141
3167
  /**
3142
3168
  * defineConfig — type-safe helper for autotest.config.ts.
3143
3169
  * Validates the config at definition time and returns it unchanged.
@@ -3145,4 +3171,4 @@ declare function tryGetEnv(): ValidatedEnv | null;
3145
3171
  */
3146
3172
  declare function defineConfig(config: Partial<AutotestConfig>): AutotestConfig;
3147
3173
 
3148
- export { type AIProvider, AssuremindError, type AutotestConfig, type BrowserName, ConfigError, ExecutionError, type GeneratedCase, type GeneratedStep, type GeneratedSuite, type GenerationResult, type GenerationStrategy$1 as GenerationStrategy, type HealingConfig, type HealingDecision, HealingError, type HealingEvent, type HealingReport, type HealingStatus, type HealingStrategy, type PageContext, type Priority, ProviderError, type ReportingConfig, type ResolvedVariables, type RouterStats, type RunConfig, type RunResult, type RunStatus, type ScreenshotMode, type SecretVariable, type StepFailure, type StepResult, StorageError, type SuiteResult, type TestCase, type TestCaseResult, type TestStep, type TestSuite, type TraceMode, ValidationError, type VariableStore, type VariableValue, type VideoMode, acceptHealingEvent, appendPendingEvent, clearEnvCache, configExists, createCase, createChildLogger, createSuite, defineConfig, deleteCase, deleteGlobalVariable, deleteResult, deleteSuite, formatError, generateCacheKey, getCasePath, getHealingStats, isAssuremindError, listCasePaths, listCases, listHealingReportIds, listResultIds, listResults, listSuiteDirs, listSuites, listSuitesWithCounts, listVariableFiles, logger, normalizeUrl, pruneResolvedEvents, readCase, readConfig, readEnvVariables, readGlobalVariables, readHealingReport, readPendingEvents, readResult, readSuite, readVariables, redactSecrets, rejectHealingEvent, resolveVariables, sanitizeGeneratedCode, screenshotsDir, setGlobalVariable, sha256, toSlug, tracesDir, tryGetEnv, updateCase, updateConfig, updateSuite, validateConfig, validateEnv, videosDir, writeCase, writeConfig, writeHealingReport, writeResult, writeSuite, writeVariables };
3174
+ export { type AIProvider, AssuremindError, type AutotestConfig, type BrowserName, ConfigError, ExecutionError, type GeneratedCase, type GeneratedStep, type GeneratedSuite, type GenerationResult, type GenerationStrategy$1 as GenerationStrategy, type HealingConfig, type HealingDecision, HealingError, type HealingEvent, type HealingReport, type HealingStatus, type HealingStrategy, type PageContext, type Priority, ProviderError, type ReportingConfig, type ResolvedVariables, type RouterStats, type RunConfig, type RunResult, type RunStatus, type ScreenshotMode, type SecretVariable, type StepFailure, type StepResult, StorageError, type SuiteResult, type TestCase, type TestCaseResult, type TestStep, type TestSuite, type TraceMode, ValidationError, type VariableStore, type VariableValue, type VideoMode, acceptHealingEvent, appendPendingEvent, callFaker, clearEnvCache, configExists, createCase, createChildLogger, createSuite, defineConfig, deleteCase, deleteGlobalVariable, deleteResult, deleteSuite, formatError, generateCacheKey, getAvailableGenerators, getCasePath, getHealingStats, isAssuremindError, listCasePaths, listCases, listHealingReportIds, listResultIds, listResults, listSuiteDirs, listSuites, listSuitesWithCounts, listVariableFiles, logger, normalizeUrl, pruneResolvedEvents, readCase, readConfig, readEnvVariables, readGlobalVariables, readHealingReport, readPendingEvents, readResult, readSuite, readVariables, redactSecrets, rejectHealingEvent, resolveVariables, sanitizeGeneratedCode, screenshotsDir, setGlobalVariable, sha256, toSlug, tracesDir, tryGetEnv, updateCase, updateConfig, updateSuite, validateConfig, validateEnv, videosDir, writeCase, writeConfig, writeHealingReport, writeResult, writeSuite, writeVariables };