assuremind 1.2.0 → 1.2.3

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 };
package/dist/index.js CHANGED
@@ -39,6 +39,7 @@ __export(src_exports, {
39
39
  ValidationError: () => ValidationError,
40
40
  acceptHealingEvent: () => acceptHealingEvent,
41
41
  appendPendingEvent: () => appendPendingEvent,
42
+ callFaker: () => callFaker,
42
43
  clearEnvCache: () => clearEnvCache,
43
44
  configExists: () => configExists,
44
45
  createCase: () => createCase,
@@ -51,6 +52,7 @@ __export(src_exports, {
51
52
  deleteSuite: () => deleteSuite,
52
53
  formatError: () => formatError,
53
54
  generateCacheKey: () => generateCacheKey,
55
+ getAvailableGenerators: () => getAvailableGenerators,
54
56
  getCasePath: () => getCasePath,
55
57
  getHealingStats: () => getHealingStats,
56
58
  isAssuremindError: () => isAssuremindError,
@@ -304,8 +306,10 @@ var TestStepSchema = import_zod2.z.object({
304
306
  mockStatus: import_zod2.z.number().int().optional(),
305
307
  runAudit: import_zod2.z.boolean().optional(),
306
308
  // Mark this step as a Lighthouse audit checkpoint
307
- soft: import_zod2.z.boolean().optional()
309
+ soft: import_zod2.z.boolean().optional(),
308
310
  // Use expect.soft() — test continues on assertion failure
311
+ visualCheck: import_zod2.z.boolean().optional()
312
+ // Enable visual regression comparison for this step
309
313
  });
310
314
  var DataSourceSchema = import_zod2.z.object({
311
315
  type: import_zod2.z.enum(["inline", "json-file", "csv-file"]),
@@ -1631,6 +1635,203 @@ function tryGetEnv() {
1631
1635
  }
1632
1636
  }
1633
1637
 
1638
+ // src/engine/data-generator.ts
1639
+ var import_faker = require("@faker-js/faker");
1640
+ function getAvailableGenerators() {
1641
+ return [
1642
+ {
1643
+ category: "person",
1644
+ methods: [
1645
+ { name: "fullName", example: import_faker.faker.person.fullName() },
1646
+ { name: "firstName", example: import_faker.faker.person.firstName() },
1647
+ { name: "lastName", example: import_faker.faker.person.lastName() },
1648
+ { name: "middleName", example: import_faker.faker.person.middleName() },
1649
+ { name: "sex", example: import_faker.faker.person.sex() },
1650
+ { name: "prefix", example: import_faker.faker.person.prefix() },
1651
+ { name: "suffix", example: import_faker.faker.person.suffix() },
1652
+ { name: "jobTitle", example: import_faker.faker.person.jobTitle() },
1653
+ { name: "jobArea", example: import_faker.faker.person.jobArea() },
1654
+ { name: "jobType", example: import_faker.faker.person.jobType() },
1655
+ { name: "bio", example: import_faker.faker.person.bio() }
1656
+ ]
1657
+ },
1658
+ {
1659
+ category: "internet",
1660
+ methods: [
1661
+ { name: "email", example: import_faker.faker.internet.email() },
1662
+ { name: "userName", example: import_faker.faker.internet.username() },
1663
+ { name: "password", example: import_faker.faker.internet.password() },
1664
+ { name: "url", example: import_faker.faker.internet.url() },
1665
+ { name: "domainName", example: import_faker.faker.internet.domainName() },
1666
+ { name: "domainWord", example: import_faker.faker.internet.domainWord() },
1667
+ { name: "ip", example: import_faker.faker.internet.ip() },
1668
+ { name: "ipv6", example: import_faker.faker.internet.ipv6() },
1669
+ { name: "mac", example: import_faker.faker.internet.mac() },
1670
+ { name: "userAgent", example: import_faker.faker.internet.userAgent() },
1671
+ { name: "emoji", example: import_faker.faker.internet.emoji() }
1672
+ ]
1673
+ },
1674
+ {
1675
+ category: "phone",
1676
+ methods: [
1677
+ { name: "number", example: import_faker.faker.phone.number() },
1678
+ { name: "imei", example: import_faker.faker.phone.imei() }
1679
+ ]
1680
+ },
1681
+ {
1682
+ category: "location",
1683
+ methods: [
1684
+ { name: "streetAddress", example: import_faker.faker.location.streetAddress() },
1685
+ { name: "street", example: import_faker.faker.location.street() },
1686
+ { name: "city", example: import_faker.faker.location.city() },
1687
+ { name: "state", example: import_faker.faker.location.state() },
1688
+ { name: "zipCode", example: import_faker.faker.location.zipCode() },
1689
+ { name: "country", example: import_faker.faker.location.country() },
1690
+ { name: "countryCode", example: import_faker.faker.location.countryCode() },
1691
+ { name: "county", example: import_faker.faker.location.county() },
1692
+ { name: "latitude", example: String(import_faker.faker.location.latitude()) },
1693
+ { name: "longitude", example: String(import_faker.faker.location.longitude()) },
1694
+ { name: "timeZone", example: import_faker.faker.location.timeZone() },
1695
+ { name: "buildingNumber", example: import_faker.faker.location.buildingNumber() }
1696
+ ]
1697
+ },
1698
+ {
1699
+ category: "company",
1700
+ methods: [
1701
+ { name: "name", example: import_faker.faker.company.name() },
1702
+ { name: "catchPhrase", example: import_faker.faker.company.catchPhrase() },
1703
+ { name: "buzzPhrase", example: import_faker.faker.company.buzzPhrase() },
1704
+ { name: "buzzNoun", example: import_faker.faker.company.buzzNoun() },
1705
+ { name: "buzzVerb", example: import_faker.faker.company.buzzVerb() },
1706
+ { name: "buzzAdjective", example: import_faker.faker.company.buzzAdjective() }
1707
+ ]
1708
+ },
1709
+ {
1710
+ category: "finance",
1711
+ methods: [
1712
+ { name: "accountNumber", example: import_faker.faker.finance.accountNumber() },
1713
+ { name: "accountName", example: import_faker.faker.finance.accountName() },
1714
+ { name: "creditCardNumber", example: import_faker.faker.finance.creditCardNumber() },
1715
+ { name: "creditCardCVV", example: import_faker.faker.finance.creditCardCVV() },
1716
+ { name: "currencyCode", example: import_faker.faker.finance.currencyCode() },
1717
+ { name: "currencyName", example: import_faker.faker.finance.currencyName() },
1718
+ { name: "amount", example: import_faker.faker.finance.amount() },
1719
+ { name: "iban", example: import_faker.faker.finance.iban() },
1720
+ { name: "bic", example: import_faker.faker.finance.bic() },
1721
+ { name: "bitcoinAddress", example: import_faker.faker.finance.bitcoinAddress() },
1722
+ { name: "transactionType", example: import_faker.faker.finance.transactionType() }
1723
+ ]
1724
+ },
1725
+ {
1726
+ category: "date",
1727
+ methods: [
1728
+ { name: "past", example: import_faker.faker.date.past().toISOString() },
1729
+ { name: "future", example: import_faker.faker.date.future().toISOString() },
1730
+ { name: "recent", example: import_faker.faker.date.recent().toISOString() },
1731
+ { name: "soon", example: import_faker.faker.date.soon().toISOString() },
1732
+ { name: "birthdate", example: import_faker.faker.date.birthdate().toISOString() },
1733
+ { name: "month", example: import_faker.faker.date.month() },
1734
+ { name: "weekday", example: import_faker.faker.date.weekday() }
1735
+ ]
1736
+ },
1737
+ {
1738
+ category: "lorem",
1739
+ methods: [
1740
+ { name: "word", example: import_faker.faker.lorem.word() },
1741
+ { name: "words", example: import_faker.faker.lorem.words() },
1742
+ { name: "sentence", example: import_faker.faker.lorem.sentence() },
1743
+ { name: "sentences", example: import_faker.faker.lorem.sentences() },
1744
+ { name: "paragraph", example: import_faker.faker.lorem.paragraph() },
1745
+ { name: "slug", example: import_faker.faker.lorem.slug() },
1746
+ { name: "lines", example: import_faker.faker.lorem.lines(1) }
1747
+ ]
1748
+ },
1749
+ {
1750
+ category: "string",
1751
+ methods: [
1752
+ { name: "uuid", example: import_faker.faker.string.uuid() },
1753
+ { name: "alphanumeric", example: import_faker.faker.string.alphanumeric(10) },
1754
+ { name: "numeric", example: import_faker.faker.string.numeric(6) },
1755
+ { name: "alpha", example: import_faker.faker.string.alpha(8) },
1756
+ { name: "nanoid", example: import_faker.faker.string.nanoid() },
1757
+ { name: "hexadecimal", example: import_faker.faker.string.hexadecimal({ length: 8 }) },
1758
+ { name: "sample", example: import_faker.faker.string.sample(12) }
1759
+ ]
1760
+ },
1761
+ {
1762
+ category: "number",
1763
+ methods: [
1764
+ { name: "int", example: String(import_faker.faker.number.int({ max: 9999 })) },
1765
+ { name: "float", example: String(import_faker.faker.number.float({ max: 100, fractionDigits: 2 })) }
1766
+ ]
1767
+ },
1768
+ {
1769
+ category: "datatype",
1770
+ methods: [
1771
+ { name: "boolean", example: String(import_faker.faker.datatype.boolean()) }
1772
+ ]
1773
+ },
1774
+ {
1775
+ category: "image",
1776
+ methods: [
1777
+ { name: "avatar", example: import_faker.faker.image.avatar() },
1778
+ { name: "url", example: import_faker.faker.image.url() }
1779
+ ]
1780
+ },
1781
+ {
1782
+ category: "color",
1783
+ methods: [
1784
+ { name: "human", example: import_faker.faker.color.human() },
1785
+ { name: "rgb", example: import_faker.faker.color.rgb() },
1786
+ { name: "hex", example: import_faker.faker.color.rgb({ format: "hex" }) }
1787
+ ]
1788
+ },
1789
+ {
1790
+ category: "commerce",
1791
+ methods: [
1792
+ { name: "productName", example: import_faker.faker.commerce.productName() },
1793
+ { name: "price", example: import_faker.faker.commerce.price() },
1794
+ { name: "department", example: import_faker.faker.commerce.department() },
1795
+ { name: "productDescription", example: import_faker.faker.commerce.productDescription().slice(0, 60) + "..." },
1796
+ { name: "isbn", example: import_faker.faker.commerce.isbn() }
1797
+ ]
1798
+ },
1799
+ {
1800
+ category: "vehicle",
1801
+ methods: [
1802
+ { name: "vehicle", example: import_faker.faker.vehicle.vehicle() },
1803
+ { name: "manufacturer", example: import_faker.faker.vehicle.manufacturer() },
1804
+ { name: "model", example: import_faker.faker.vehicle.model() },
1805
+ { name: "vin", example: import_faker.faker.vehicle.vin() },
1806
+ { name: "vrm", example: import_faker.faker.vehicle.vrm() }
1807
+ ]
1808
+ },
1809
+ {
1810
+ category: "system",
1811
+ methods: [
1812
+ { name: "fileName", example: import_faker.faker.system.fileName() },
1813
+ { name: "mimeType", example: import_faker.faker.system.mimeType() },
1814
+ { name: "fileExt", example: import_faker.faker.system.fileExt() },
1815
+ { name: "filePath", example: import_faker.faker.system.filePath() },
1816
+ { name: "semver", example: import_faker.faker.system.semver() }
1817
+ ]
1818
+ }
1819
+ ];
1820
+ }
1821
+ var METHOD_ALIASES = {
1822
+ "internet.userName": "username"
1823
+ };
1824
+ function callFaker(category, method) {
1825
+ const fakerModule = import_faker.faker[category];
1826
+ const resolvedMethod = METHOD_ALIASES[`${category}.${method}`] ?? method;
1827
+ if (!fakerModule || typeof fakerModule[resolvedMethod] !== "function") {
1828
+ return `[unknown: ${category}.${method}]`;
1829
+ }
1830
+ const result = fakerModule[resolvedMethod]();
1831
+ if (result instanceof Date) return result.toISOString();
1832
+ return String(result);
1833
+ }
1834
+
1634
1835
  // src/index.ts
1635
1836
  function defineConfig(config) {
1636
1837
  const merged = { ...DEFAULT_CONFIG, ...config };
@@ -1653,6 +1854,7 @@ ${issues}`);
1653
1854
  ValidationError,
1654
1855
  acceptHealingEvent,
1655
1856
  appendPendingEvent,
1857
+ callFaker,
1656
1858
  clearEnvCache,
1657
1859
  configExists,
1658
1860
  createCase,
@@ -1665,6 +1867,7 @@ ${issues}`);
1665
1867
  deleteSuite,
1666
1868
  formatError,
1667
1869
  generateCacheKey,
1870
+ getAvailableGenerators,
1668
1871
  getCasePath,
1669
1872
  getHealingStats,
1670
1873
  isAssuremindError,