@atomic-ehr/codegen 0.0.1-canary.20251107144815.ed5b2c9 → 0.0.1-canary.20251110082903.3a83296

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.js CHANGED
@@ -3614,18 +3614,19 @@ var mkTypeSchemaIndex = (schemas, logger) => {
3614
3614
  const exportTree = async (filename) => {
3615
3615
  const tree = {};
3616
3616
  for (const [pkgId, shemas] of Object.entries(groupByPackages(schemas))) {
3617
- tree[pkgId] = { complexTypes: {}, resources: {}, profiles: {} };
3617
+ tree[pkgId] = {
3618
+ "primitive-type": {},
3619
+ "complex-type": {},
3620
+ resource: {},
3621
+ "value-set": {},
3622
+ nested: {},
3623
+ binding: {},
3624
+ profile: {},
3625
+ logical: {}
3626
+ };
3618
3627
  for (const schema of shemas) {
3619
3628
  schema.identifier;
3620
- if (isResourceTypeSchema(schema)) {
3621
- tree[pkgId].resources[schema.identifier.url] = {};
3622
- }
3623
- if (isProfileTypeSchema(schema)) {
3624
- tree[pkgId].profiles[schema.identifier.url] = {};
3625
- }
3626
- if (isComplexTypeTypeSchema(schema)) {
3627
- tree[pkgId].complexTypes[schema.identifier.url] = {};
3628
- }
3629
+ tree[pkgId][schema.identifier.kind][schema.identifier.url] = {};
3629
3630
  }
3630
3631
  }
3631
3632
  const raw = filename.endsWith(".yaml") ? YAML.stringify(tree) : JSON.stringify(tree, void 0, 2);
@@ -6026,6 +6027,7 @@ var TypeScript = class extends Writer {
6026
6027
  generateResourceModule(tsIndex, schema) {
6027
6028
  this.cat(`${tsModuleFileName(schema.identifier)}`, () => {
6028
6029
  this.generateDisclaimer();
6030
+ this.comment("@ts-ignore-error TS6133");
6029
6031
  if (["complex-type", "resource", "logical"].includes(schema.identifier.kind)) {
6030
6032
  this.generateDependenciesImports(schema);
6031
6033
  this.generateComplexTypeReexports(schema);