@atomic-ehr/codegen 0.0.1-canary.20251003145920.e824710 → 0.0.1-canary.20251003150631.104cb21

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.
@@ -78,27 +78,3 @@ export declare class TypeSchemaCache {
78
78
  */
79
79
  clearDisk(): Promise<void>;
80
80
  }
81
- /**
82
- * Get the global cache instance
83
- */
84
- export declare function getGlobalCache(config?: TypeSchemaConfig): TypeSchemaCache;
85
- /**
86
- * Initialize global cache with configuration
87
- */
88
- export declare function initializeGlobalCache(config?: TypeSchemaConfig): Promise<TypeSchemaCache>;
89
- /**
90
- * Clear the global cache
91
- */
92
- export declare function clearGlobalCache(): void;
93
- /**
94
- * Cache a schema using global cache
95
- */
96
- export declare function cacheSchema(schema: TypeSchema): void;
97
- /**
98
- * Get cached schema using global cache
99
- */
100
- export declare function getCachedSchema(identifier: Identifier): TypeSchema | null;
101
- /**
102
- * Check if schema is cached using global cache
103
- */
104
- export declare function isCached(identifier: Identifier): boolean;
@@ -237,49 +237,3 @@ export class TypeSchemaCache {
237
237
  }
238
238
  }
239
239
  }
240
- // Global cache instance
241
- let globalCache = null;
242
- /**
243
- * Get the global cache instance
244
- */
245
- export function getGlobalCache(config) {
246
- if (!globalCache) {
247
- globalCache = new TypeSchemaCache(config);
248
- }
249
- return globalCache;
250
- }
251
- /**
252
- * Initialize global cache with configuration
253
- */
254
- export async function initializeGlobalCache(config) {
255
- globalCache = new TypeSchemaCache(config);
256
- await globalCache.initialize();
257
- return globalCache;
258
- }
259
- /**
260
- * Clear the global cache
261
- */
262
- export function clearGlobalCache() {
263
- if (globalCache) {
264
- globalCache.clear();
265
- }
266
- globalCache = null;
267
- }
268
- /**
269
- * Cache a schema using global cache
270
- */
271
- export function cacheSchema(schema) {
272
- getGlobalCache().set(schema);
273
- }
274
- /**
275
- * Get cached schema using global cache
276
- */
277
- export function getCachedSchema(identifier) {
278
- return getGlobalCache().get(identifier);
279
- }
280
- /**
281
- * Check if schema is cached using global cache
282
- */
283
- export function isCached(identifier) {
284
- return getGlobalCache().has(identifier);
285
- }
@@ -77,15 +77,3 @@ export declare class TypeSchemaParser {
77
77
  */
78
78
  private matchesIdentifier;
79
79
  }
80
- /**
81
- * Convenience function to parse TypeSchema from file
82
- */
83
- export declare function parseTypeSchemaFromFile(filePath: string, options?: TypeschemaParserOptions): Promise<TypeSchema[]>;
84
- /**
85
- * Convenience function to parse TypeSchema from string
86
- */
87
- export declare function parseTypeSchemaFromString(content: string, format?: "ndjson" | "json", options?: TypeschemaParserOptions): Promise<TypeSchema[]>;
88
- /**
89
- * Convenience function to parse TypeSchema from multiple files
90
- */
91
- export declare function parseTypeSchemaFromFiles(filePaths: string[], options?: TypeschemaParserOptions): Promise<TypeSchema[]>;
@@ -272,24 +272,3 @@ export class TypeSchemaParser {
272
272
  (!criteria.url || identifier.url === criteria.url));
273
273
  }
274
274
  }
275
- /**
276
- * Convenience function to parse TypeSchema from file
277
- */
278
- export async function parseTypeSchemaFromFile(filePath, options) {
279
- const parser = new TypeSchemaParser(options);
280
- return await parser.parseFromFile(filePath);
281
- }
282
- /**
283
- * Convenience function to parse TypeSchema from string
284
- */
285
- export async function parseTypeSchemaFromString(content, format, options) {
286
- const parser = new TypeSchemaParser(options);
287
- return await parser.parseFromString(content, format);
288
- }
289
- /**
290
- * Convenience function to parse TypeSchema from multiple files
291
- */
292
- export async function parseTypeSchemaFromFiles(filePaths, options) {
293
- const parser = new TypeSchemaParser(options);
294
- return await parser.parseFromFiles(filePaths);
295
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomic-ehr/codegen",
3
- "version": "0.0.1-canary.20251003145920.e824710",
3
+ "version": "0.0.1-canary.20251003150631.104cb21",
4
4
  "description": "Code generation tools for FHIR resources and TypeSchema definitions",
5
5
  "keywords": [
6
6
  "fhir",
@@ -50,7 +50,8 @@
50
50
  "quality": "bun run typecheck && bun run lint && bun run test:unit",
51
51
  "cli": "bun run src/cli/index.ts",
52
52
  "codegen": "bun run src/cli/index.ts",
53
- "codegen:all": "bun run src/cli/index.ts generate"
53
+ "codegen:all": "bun run src/cli/index.ts generate",
54
+ "prune": "ts-prune --project tsconfig.json"
54
55
  },
55
56
  "repository": {
56
57
  "type": "git",
@@ -68,6 +69,7 @@
68
69
  "@types/handlebars": "^4.1.0",
69
70
  "@types/node": "^22.17.1",
70
71
  "@types/yargs": "^17.0.33",
72
+ "ts-prune": "^0.10.3",
71
73
  "typescript": "^5.9.2"
72
74
  },
73
75
  "dependencies": {