@zenstackhq/sdk 3.0.0-beta.12 → 3.0.0-beta.14
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 +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -855,7 +855,7 @@ var TsSchemaGenerator = class {
|
|
|
855
855
|
...this.usedExpressionUtils ? [
|
|
856
856
|
ts.factory.createImportSpecifier(false, void 0, ts.factory.createIdentifier("ExpressionUtils"))
|
|
857
857
|
] : []
|
|
858
|
-
])), ts.factory.createStringLiteral("@zenstackhq/
|
|
858
|
+
])), ts.factory.createStringLiteral("@zenstackhq/orm/schema"));
|
|
859
859
|
statements.push(runtimeImportDecl);
|
|
860
860
|
const declaration = ts.factory.createVariableStatement([
|
|
861
861
|
ts.factory.createModifier(ts.SyntaxKind.ExportKeyword)
|
|
@@ -1431,7 +1431,7 @@ var TsSchemaGenerator = class {
|
|
|
1431
1431
|
...model.declarations.some(import_ast3.isTypeDef) ? [
|
|
1432
1432
|
ts.factory.createImportSpecifier(true, void 0, ts.factory.createIdentifier(`TypeDefResult as $TypeDefResult`))
|
|
1433
1433
|
] : []
|
|
1434
|
-
])), ts.factory.createStringLiteral("@zenstackhq/
|
|
1434
|
+
])), ts.factory.createStringLiteral("@zenstackhq/orm")));
|
|
1435
1435
|
const dataModels = model.declarations.filter(import_ast3.isDataModel);
|
|
1436
1436
|
for (const dm of dataModels) {
|
|
1437
1437
|
let modelType = ts.factory.createTypeAliasDeclaration([
|
|
@@ -1531,11 +1531,11 @@ var TsSchemaGenerator = class {
|
|
|
1531
1531
|
IncludeInput: "Include",
|
|
1532
1532
|
OmitInput: "Omit"
|
|
1533
1533
|
};
|
|
1534
|
-
statements.push(ts.factory.createImportDeclaration(void 0, ts.factory.createImportClause(true, void 0, ts.factory.createNamedImports(inputTypes.map((inputType) => ts.factory.createImportSpecifier(false, void 0, ts.factory.createIdentifier(`${inputType} as $${inputType}`))))), ts.factory.createStringLiteral("@zenstackhq/
|
|
1534
|
+
statements.push(ts.factory.createImportDeclaration(void 0, ts.factory.createImportClause(true, void 0, ts.factory.createNamedImports(inputTypes.map((inputType) => ts.factory.createImportSpecifier(false, void 0, ts.factory.createIdentifier(`${inputType} as $${inputType}`))))), ts.factory.createStringLiteral("@zenstackhq/orm")));
|
|
1535
1535
|
statements.push(ts.factory.createImportDeclaration(void 0, ts.factory.createImportClause(true, void 0, ts.factory.createNamedImports([
|
|
1536
1536
|
ts.factory.createImportSpecifier(false, void 0, ts.factory.createIdentifier("SimplifiedModelResult as $SimplifiedModelResult")),
|
|
1537
1537
|
ts.factory.createImportSpecifier(false, void 0, ts.factory.createIdentifier("SelectIncludeOmit as $SelectIncludeOmit"))
|
|
1538
|
-
])), ts.factory.createStringLiteral("@zenstackhq/
|
|
1538
|
+
])), ts.factory.createStringLiteral("@zenstackhq/orm")));
|
|
1539
1539
|
for (const dm of dataModels) {
|
|
1540
1540
|
for (const inputType of inputTypes) {
|
|
1541
1541
|
const exportName = inputTypeNameFixes[inputType] ? `${dm.name}${inputTypeNameFixes[inputType]}` : `${dm.name}${inputType}`;
|