@atomic-ehr/codegen 0.0.1-canary.20251007094146.5297616 → 0.0.1-canary.20251007114955.88a8afc
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/cli/index.js +19 -19
- package/dist/index.d.ts +5 -3
- package/dist/index.js +290 -77
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ interface LogOptions {
|
|
|
17
17
|
*/
|
|
18
18
|
declare class CodegenLogger {
|
|
19
19
|
private options;
|
|
20
|
+
private dryWarnSet;
|
|
20
21
|
constructor(options?: LogOptions);
|
|
21
22
|
private formatMessage;
|
|
22
23
|
/**
|
|
@@ -31,6 +32,7 @@ declare class CodegenLogger {
|
|
|
31
32
|
* Warning message with warning sign
|
|
32
33
|
*/
|
|
33
34
|
warn(message: string): void;
|
|
35
|
+
dry_warn(message: string): void;
|
|
34
36
|
/**
|
|
35
37
|
* Info message with info icon
|
|
36
38
|
*/
|
|
@@ -619,13 +621,13 @@ declare class TypeSchemaGenerator {
|
|
|
619
621
|
private options;
|
|
620
622
|
private cacheConfig?;
|
|
621
623
|
private cache?;
|
|
622
|
-
private logger
|
|
624
|
+
private logger?;
|
|
623
625
|
constructor(options?: TypeschemaGeneratorOptions, cacheConfig?: TypeSchemaConfig);
|
|
624
626
|
private initializeCache;
|
|
625
627
|
registerFromPackageMetas(packageMetas: PackageMeta[]): Promise<Register>;
|
|
626
628
|
generateFhirSchemas(structureDefinitions: StructureDefinition[]): FHIRSchema[];
|
|
627
|
-
generateValueSetSchemas(valueSets: RichValueSet[]): Promise<TypeSchema[]>;
|
|
628
|
-
generateFromPackage(packageName: string, packageVersion?:
|
|
629
|
+
generateValueSetSchemas(valueSets: RichValueSet[], logger?: CodegenLogger): Promise<TypeSchema[]>;
|
|
630
|
+
generateFromPackage(packageName: string, packageVersion: string | undefined, logger?: CodegenLogger): Promise<TypeSchema[]>;
|
|
629
631
|
/**
|
|
630
632
|
* Apply treeshaking to StructureDefinitions before FHIR schema transformation
|
|
631
633
|
* This is more efficient and includes smart reference handling
|