@atomic-ehr/codegen 0.0.2-canary.20251119123135.c6f0d5b → 0.0.2-canary.20251119131907.723c8fd
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 +26 -26
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -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" : "";
|