@zenstackhq/sdk 3.0.0-beta.13 → 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.js
CHANGED
|
@@ -822,7 +822,7 @@ var TsSchemaGenerator = class {
|
|
|
822
822
|
...this.usedExpressionUtils ? [
|
|
823
823
|
ts.factory.createImportSpecifier(false, void 0, ts.factory.createIdentifier("ExpressionUtils"))
|
|
824
824
|
] : []
|
|
825
|
-
])), ts.factory.createStringLiteral("@zenstackhq/
|
|
825
|
+
])), ts.factory.createStringLiteral("@zenstackhq/orm/schema"));
|
|
826
826
|
statements.push(runtimeImportDecl);
|
|
827
827
|
const declaration = ts.factory.createVariableStatement([
|
|
828
828
|
ts.factory.createModifier(ts.SyntaxKind.ExportKeyword)
|
|
@@ -1398,7 +1398,7 @@ var TsSchemaGenerator = class {
|
|
|
1398
1398
|
...model.declarations.some(isTypeDef3) ? [
|
|
1399
1399
|
ts.factory.createImportSpecifier(true, void 0, ts.factory.createIdentifier(`TypeDefResult as $TypeDefResult`))
|
|
1400
1400
|
] : []
|
|
1401
|
-
])), ts.factory.createStringLiteral("@zenstackhq/
|
|
1401
|
+
])), ts.factory.createStringLiteral("@zenstackhq/orm")));
|
|
1402
1402
|
const dataModels = model.declarations.filter(isDataModel3);
|
|
1403
1403
|
for (const dm of dataModels) {
|
|
1404
1404
|
let modelType = ts.factory.createTypeAliasDeclaration([
|
|
@@ -1498,11 +1498,11 @@ var TsSchemaGenerator = class {
|
|
|
1498
1498
|
IncludeInput: "Include",
|
|
1499
1499
|
OmitInput: "Omit"
|
|
1500
1500
|
};
|
|
1501
|
-
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/
|
|
1501
|
+
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")));
|
|
1502
1502
|
statements.push(ts.factory.createImportDeclaration(void 0, ts.factory.createImportClause(true, void 0, ts.factory.createNamedImports([
|
|
1503
1503
|
ts.factory.createImportSpecifier(false, void 0, ts.factory.createIdentifier("SimplifiedModelResult as $SimplifiedModelResult")),
|
|
1504
1504
|
ts.factory.createImportSpecifier(false, void 0, ts.factory.createIdentifier("SelectIncludeOmit as $SelectIncludeOmit"))
|
|
1505
|
-
])), ts.factory.createStringLiteral("@zenstackhq/
|
|
1505
|
+
])), ts.factory.createStringLiteral("@zenstackhq/orm")));
|
|
1506
1506
|
for (const dm of dataModels) {
|
|
1507
1507
|
for (const inputType of inputTypes) {
|
|
1508
1508
|
const exportName = inputTypeNameFixes[inputType] ? `${dm.name}${inputTypeNameFixes[inputType]}` : `${dm.name}${inputType}`;
|