@atomic-ehr/codegen 0.0.1-canary.20250925150012.6169b6d → 0.0.1-canary.20250929141928.699688c
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/api/builder.d.ts
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import type { Config, TypeSchemaConfig } from "../config";
|
|
8
8
|
import type { TypeSchema } from "@typeschema/types";
|
|
9
9
|
import type { CodegenLogger } from "../utils/codegen-logger";
|
|
10
|
+
import type { CanonicalManager } from "@atomic-ehr/fhir-canonical-manager";
|
|
10
11
|
/**
|
|
11
12
|
* Configuration options for the API builder
|
|
12
13
|
*/
|
|
@@ -18,6 +19,7 @@ export interface APIBuilderOptions {
|
|
|
18
19
|
cache?: boolean;
|
|
19
20
|
typeSchemaConfig?: TypeSchemaConfig;
|
|
20
21
|
logger?: CodegenLogger;
|
|
22
|
+
manager?: ReturnType<typeof CanonicalManager> | null;
|
|
21
23
|
}
|
|
22
24
|
/**
|
|
23
25
|
* Progress callback for long-running operations
|
package/dist/api/builder.js
CHANGED
|
@@ -31,6 +31,7 @@ export class APIBuilder {
|
|
|
31
31
|
validate: options.validate ?? true,
|
|
32
32
|
cache: options.cache ?? true,
|
|
33
33
|
typeSchemaConfig: options.typeSchemaConfig,
|
|
34
|
+
manager: options.manager || null,
|
|
34
35
|
};
|
|
35
36
|
this.typeSchemaConfig = options.typeSchemaConfig;
|
|
36
37
|
// Use provided logger or create a default one
|
|
@@ -217,6 +218,7 @@ export class APIBuilder {
|
|
|
217
218
|
verbose: this.options.verbose,
|
|
218
219
|
logger: this.logger.child("Schema"),
|
|
219
220
|
treeshake: this.typeSchemaConfig?.treeshake,
|
|
221
|
+
manager: this.options.manager,
|
|
220
222
|
}, this.typeSchemaConfig);
|
|
221
223
|
this.typeSchemaGenerator = generator;
|
|
222
224
|
const schemas = await generator.generateFromPackage(packageName, version);
|