@orval/mock 8.17.0 → 8.19.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
@@ -1,4 +1,4 @@
1
- import { ClientMockGeneratorBuilder, ContextSpec, FakerMockOptions, FinalizeMockImplementationOptions, GenerateMockImports, GeneratorImport, GeneratorOptions, GeneratorSchema, GeneratorVerbOptions, GlobalMockOptions, MswMockOptions } from "@orval/core";
1
+ import { ClientMockGeneratorBuilder, ContextSpec, FakerMockOptions, FinalizeMockImplementationOptions, GenerateMockImports, GeneratorImport, GeneratorOptions, GeneratorSchema, GeneratorVerbOptions, GlobalMockOptions, MswMockOptions, StrictMockSchemaKind, StrictMockSchemaKind as StrictMockSchemaKind$1 } from "@orval/core";
2
2
 
3
3
  //#region src/faker/index.d.ts
4
4
  /**
@@ -18,6 +18,7 @@ interface GenerateFakerForSchemasResult {
18
18
  implementation: string;
19
19
  imports: GeneratorImport[];
20
20
  strictMockSchemaTypeNames?: string[];
21
+ strictMockSchemaKinds?: Record<string, StrictMockSchemaKind>;
21
22
  }
22
23
  /**
23
24
  * Builds the contents of a consolidated faker mock file for every entry under
@@ -31,7 +32,7 @@ interface GenerateFakerForSchemasResult {
31
32
  declare function generateFakerForSchemas(schemas: GeneratorSchema[], context: ContextSpec, options: GlobalMockOptions): GenerateFakerForSchemasResult;
32
33
  //#endregion
33
34
  //#region src/mock-types.d.ts
34
- declare function buildStrictMockTypeFileHeader(schemaTypeNames: Iterable<string>): string;
35
+ declare function buildStrictMockTypeFileHeader(schemaTypeNames: Iterable<string>, kinds?: Readonly<Record<string, StrictMockSchemaKind$1>>): string;
35
36
  /**
36
37
  * Prepends shared strict-mock helper types and each `{Schema}Mock` alias once at
37
38
  * the top of a mock file. Generators pass `strictSchemaTypeNames`; no scraping.