@atomic-ehr/codegen 0.0.2-canary.20251119123135.c6f0d5b → 0.0.2-canary.20251119132946.28bff93

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
@@ -3119,7 +3119,7 @@ var Writer = class extends FileSystemWriter {
3119
3119
  disclaimer() {
3120
3120
  return [
3121
3121
  "WARNING: This file is autogenerated by @atomic-ehr/codegen.",
3122
- "GitHub: https://github.com/orgs/atomic-ehr/repositories",
3122
+ "GitHub: https://github.com/atomic-ehr/codegen",
3123
3123
  "Any manual changes made to this file may be overwritten."
3124
3124
  ];
3125
3125
  }
@@ -3538,7 +3538,7 @@ var treeShake = (tsIndex, treeShake2, logger) => {
3538
3538
  return mkTypeSchemaIndex(shaked, logger);
3539
3539
  };
3540
3540
  var resourceRelatives = (schemas) => {
3541
- const regularSchemas = schemas.filter(isResourceTypeSchema);
3541
+ const regularSchemas = schemas.filter((e) => isResourceTypeSchema(e) || isLogicalTypeSchema(e));
3542
3542
  const directPairs = [];
3543
3543
  for (const schema of regularSchemas) {
3544
3544
  if (schema.base) {
@@ -5902,7 +5902,7 @@ var TypeScript = class extends Writer {
5902
5902
  return;
5903
5903
  }
5904
5904
  this.curlyBlock(["export", "interface", name, extendsClause], () => {
5905
- if (isResourceTypeSchema(schema)) {
5905
+ if (isResourceTypeSchema(schema) || isLogicalTypeSchema(schema)) {
5906
5906
  const possibleResourceTypes = [schema.identifier];
5907
5907
  possibleResourceTypes.push(...tsIndex.resourceChildren(schema.identifier));
5908
5908
  const openSetSuffix = this.opts.openResourceTypeSet && possibleResourceTypes.length > 1 ? " | string" : "";