@zenstackhq/sdk 3.0.0-beta.29 → 3.0.0-beta.30
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.cjs +1 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -8
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -104,7 +104,6 @@ declare class PrismaSchemaGenerator {
|
|
|
104
104
|
private getDatasourceField;
|
|
105
105
|
private datasourceHasSchemasSetting;
|
|
106
106
|
private getDefaultPostgresSchemaName;
|
|
107
|
-
private isInheritedMapAttribute;
|
|
108
107
|
private isPrismaAttribute;
|
|
109
108
|
private getUnsupportedFieldType;
|
|
110
109
|
private generateModelField;
|
package/dist/index.d.ts
CHANGED
|
@@ -104,7 +104,6 @@ declare class PrismaSchemaGenerator {
|
|
|
104
104
|
private getDatasourceField;
|
|
105
105
|
private datasourceHasSchemasSetting;
|
|
106
106
|
private getDefaultPostgresSchemaName;
|
|
107
|
-
private isInheritedMapAttribute;
|
|
108
107
|
private isPrismaAttribute;
|
|
109
108
|
private getUnsupportedFieldType;
|
|
110
109
|
private generateModelField;
|
package/dist/index.js
CHANGED
|
@@ -607,7 +607,7 @@ var PrismaSchemaGenerator = class {
|
|
|
607
607
|
this.generateModelField(model, field, decl);
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
|
-
const allAttributes = getAllAttributes(decl).filter((attr) => this.isPrismaAttribute(attr)
|
|
610
|
+
const allAttributes = getAllAttributes(decl).filter((attr) => this.isPrismaAttribute(attr));
|
|
611
611
|
for (const attr of allAttributes) {
|
|
612
612
|
this.generateContainerAttribute(model, attr);
|
|
613
613
|
}
|
|
@@ -631,13 +631,6 @@ var PrismaSchemaGenerator = class {
|
|
|
631
631
|
const defaultSchemaField = this.getDatasourceField(zmodel, "defaultSchema");
|
|
632
632
|
return getStringLiteral(defaultSchemaField?.value) ?? "public";
|
|
633
633
|
}
|
|
634
|
-
isInheritedMapAttribute(attr, contextModel) {
|
|
635
|
-
if (attr.$container === contextModel) {
|
|
636
|
-
return false;
|
|
637
|
-
}
|
|
638
|
-
const attrName = attr.decl.ref?.name ?? attr.decl.$refText;
|
|
639
|
-
return attrName === "@@map";
|
|
640
|
-
}
|
|
641
634
|
isPrismaAttribute(attr) {
|
|
642
635
|
if (!attr.decl.ref) {
|
|
643
636
|
return false;
|