sonamu 0.2.53 → 0.2.54
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/bin/cli.js +48 -48
- package/dist/bin/cli.mjs +1 -1
- package/dist/{chunk-5UCV2JP3.js → chunk-JOHF7PK4.js} +14 -1
- package/dist/chunk-JOHF7PK4.js.map +1 -0
- package/dist/{chunk-XTNCGTDO.mjs → chunk-L4KELCY7.mjs} +14 -1
- package/dist/chunk-L4KELCY7.mjs.map +1 -0
- package/dist/index.js +3 -3
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/api/code-converters.ts +19 -0
- package/dist/chunk-5UCV2JP3.js.map +0 -1
- package/dist/chunk-XTNCGTDO.mjs.map +0 -1
package/dist/bin/cli.js
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkJOHF7PK4js = require('../chunk-JOHF7PK4.js');
|
|
15
15
|
|
|
16
16
|
// src/bin/cli.ts
|
|
17
17
|
var _chalk = require('chalk'); var _chalk2 = _interopRequireDefault(_chalk);
|
|
@@ -54,7 +54,7 @@ var SMD = class {
|
|
|
54
54
|
this.table = _nullishCoalesce(table, () => ( _inflection2.default.underscore(_inflection2.default.pluralize(id))));
|
|
55
55
|
if (props) {
|
|
56
56
|
this.props = props.map((prop) => {
|
|
57
|
-
if (
|
|
57
|
+
if (_chunkJOHF7PK4js.isEnumProp.call(void 0, prop)) {
|
|
58
58
|
if (prop.id.includes("$Model")) {
|
|
59
59
|
prop.id = prop.id.replace("$Model", id);
|
|
60
60
|
}
|
|
@@ -67,7 +67,7 @@ var SMD = class {
|
|
|
67
67
|
[prop.name]: prop
|
|
68
68
|
};
|
|
69
69
|
}, {});
|
|
70
|
-
this.relations = props.filter((prop) =>
|
|
70
|
+
this.relations = props.filter((prop) => _chunkJOHF7PK4js.isRelationProp.call(void 0, prop)).reduce((result, prop) => {
|
|
71
71
|
return {
|
|
72
72
|
...result,
|
|
73
73
|
[prop.name]: prop
|
|
@@ -112,10 +112,10 @@ var SMD = class {
|
|
|
112
112
|
const fields2 = subsetGroup[groupKey];
|
|
113
113
|
if (groupKey === "") {
|
|
114
114
|
const realFields = fields2.filter(
|
|
115
|
-
(field) => !
|
|
115
|
+
(field) => !_chunkJOHF7PK4js.isVirtualProp.call(void 0, this.propsDict[field])
|
|
116
116
|
);
|
|
117
117
|
const virtualFields = fields2.filter(
|
|
118
|
-
(field) =>
|
|
118
|
+
(field) => _chunkJOHF7PK4js.isVirtualProp.call(void 0, this.propsDict[field])
|
|
119
119
|
);
|
|
120
120
|
if (prefix === "") {
|
|
121
121
|
r.select = r.select.concat(
|
|
@@ -136,7 +136,7 @@ var SMD = class {
|
|
|
136
136
|
throw new Error(`\uC874\uC7AC\uD558\uC9C0 \uC54A\uB294 relation \uCC38\uC870 ${groupKey}`);
|
|
137
137
|
}
|
|
138
138
|
const relSMD = SMDManager.get(relation.with);
|
|
139
|
-
if (
|
|
139
|
+
if (_chunkJOHF7PK4js.isOneToOneRelationProp.call(void 0, relation) || _chunkJOHF7PK4js.isBelongsToOneRelationProp.call(void 0, relation)) {
|
|
140
140
|
const relFields = fields2.map(
|
|
141
141
|
(field) => field.split(".").slice(1).join(".")
|
|
142
142
|
);
|
|
@@ -154,7 +154,7 @@ var SMD = class {
|
|
|
154
154
|
if (isAlreadyOuterJoined) {
|
|
155
155
|
return "outer";
|
|
156
156
|
}
|
|
157
|
-
if (
|
|
157
|
+
if (_chunkJOHF7PK4js.isOneToOneRelationProp.call(void 0, relation)) {
|
|
158
158
|
if (relation.hasJoinColumn === true && (_nullishCoalesce(relation.nullable, () => ( false))) === false) {
|
|
159
159
|
return "inner";
|
|
160
160
|
} else {
|
|
@@ -184,7 +184,7 @@ var SMD = class {
|
|
|
184
184
|
};
|
|
185
185
|
} else {
|
|
186
186
|
let from, to;
|
|
187
|
-
if (
|
|
187
|
+
if (_chunkJOHF7PK4js.isOneToOneRelationProp.call(void 0, relation)) {
|
|
188
188
|
if (relation.hasJoinColumn) {
|
|
189
189
|
from = `${fromTable}.${relation.name}_id`;
|
|
190
190
|
to = `${joinAs}.id`;
|
|
@@ -223,13 +223,13 @@ var SMD = class {
|
|
|
223
223
|
r.loaders = [...r.loaders, ...convertedLoaders];
|
|
224
224
|
}
|
|
225
225
|
r.joins = r.joins.concat(relSubsetQuery.joins);
|
|
226
|
-
} else if (
|
|
226
|
+
} else if (_chunkJOHF7PK4js.isHasManyRelationProp.call(void 0, relation) || _chunkJOHF7PK4js.isManyToManyRelationProp.call(void 0, relation)) {
|
|
227
227
|
const relFields = fields2.map(
|
|
228
228
|
(field) => field.split(".").slice(1).join(".")
|
|
229
229
|
);
|
|
230
230
|
const relSubsetQuery = relSMD.resolveSubsetQuery("", relFields);
|
|
231
231
|
let manyJoin;
|
|
232
|
-
if (
|
|
232
|
+
if (_chunkJOHF7PK4js.isHasManyRelationProp.call(void 0, relation)) {
|
|
233
233
|
manyJoin = {
|
|
234
234
|
fromTable: this.table,
|
|
235
235
|
fromCol: "id",
|
|
@@ -237,7 +237,7 @@ var SMD = class {
|
|
|
237
237
|
toTable: relSMD.table,
|
|
238
238
|
toCol: relation.joinColumn
|
|
239
239
|
};
|
|
240
|
-
} else if (
|
|
240
|
+
} else if (_chunkJOHF7PK4js.isManyToManyRelationProp.call(void 0, relation)) {
|
|
241
241
|
const [table1, table2] = relation.joinTable.split("__");
|
|
242
242
|
manyJoin = {
|
|
243
243
|
fromTable: this.table,
|
|
@@ -320,11 +320,11 @@ var SMD = class {
|
|
|
320
320
|
});
|
|
321
321
|
}
|
|
322
322
|
const prop = smd.propsDict[key];
|
|
323
|
-
if (!
|
|
323
|
+
if (!_chunkJOHF7PK4js.isRelationProp.call(void 0, prop)) {
|
|
324
324
|
throw new Error(`\uC798\uBABB\uB41C FieldExpr ${key}.${group[0]}`);
|
|
325
325
|
}
|
|
326
326
|
const relSMD = SMDManager.get(prop.with);
|
|
327
|
-
if (
|
|
327
|
+
if (_chunkJOHF7PK4js.isBelongsToOneRelationProp.call(void 0, prop) || _chunkJOHF7PK4js.isOneToOneRelationProp.call(void 0, prop)) {
|
|
328
328
|
if (group.length == 1 && (group[0] === "id" || group[0] == "id?")) {
|
|
329
329
|
const idProp = relSMD.propsDict.id;
|
|
330
330
|
return {
|
|
@@ -339,7 +339,7 @@ var SMD = class {
|
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
const children = this.fieldExprsToPropNodes(group, relSMD);
|
|
342
|
-
const nodeType =
|
|
342
|
+
const nodeType = _chunkJOHF7PK4js.isBelongsToOneRelationProp.call(void 0, prop) || _chunkJOHF7PK4js.isOneToOneRelationProp.call(void 0, prop) ? "object" : "array";
|
|
343
343
|
return {
|
|
344
344
|
prop,
|
|
345
345
|
children,
|
|
@@ -353,7 +353,7 @@ var SMD = class {
|
|
|
353
353
|
if (propName === prefix) {
|
|
354
354
|
return null;
|
|
355
355
|
}
|
|
356
|
-
if (
|
|
356
|
+
if (_chunkJOHF7PK4js.isRelationProp.call(void 0, prop)) {
|
|
357
357
|
if (maxDepth < 0) {
|
|
358
358
|
return null;
|
|
359
359
|
}
|
|
@@ -393,7 +393,7 @@ var SMD = class {
|
|
|
393
393
|
}
|
|
394
394
|
const typesModulePath = `${basePath}/${this.names.fs}.types`;
|
|
395
395
|
const typesFileDistPath = _path2.default.join(
|
|
396
|
-
|
|
396
|
+
_chunkJOHF7PK4js.Sonamu.apiRootPath,
|
|
397
397
|
`dist/application/${typesModulePath}.js`
|
|
398
398
|
);
|
|
399
399
|
if (_fsextra2.default.existsSync(typesFileDistPath)) {
|
|
@@ -410,7 +410,7 @@ var SMD = class {
|
|
|
410
410
|
}
|
|
411
411
|
const enumsModulePath = `${basePath}/${this.names.fs}.enums`;
|
|
412
412
|
const enumsFileDistPath = _path2.default.join(
|
|
413
|
-
|
|
413
|
+
_chunkJOHF7PK4js.Sonamu.apiRootPath,
|
|
414
414
|
`/dist/application/${enumsModulePath}.js`
|
|
415
415
|
);
|
|
416
416
|
if (_fsextra2.default.existsSync(enumsFileDistPath)) {
|
|
@@ -454,7 +454,7 @@ var SMDManagerClass = class {
|
|
|
454
454
|
return;
|
|
455
455
|
}
|
|
456
456
|
const pathPattern = _path2.default.join(
|
|
457
|
-
|
|
457
|
+
_chunkJOHF7PK4js.Sonamu.apiRootPath,
|
|
458
458
|
"/dist/application/**/*.smd.js"
|
|
459
459
|
);
|
|
460
460
|
!doSilent && console.log(_chalk2.default.yellow(`autoload ${pathPattern}`));
|
|
@@ -550,14 +550,14 @@ console.log(_chalk2.default.bgBlue(`BEGIN ${/* @__PURE__ */ new Date()}`));
|
|
|
550
550
|
_dotenv2.default.config();
|
|
551
551
|
var migrator;
|
|
552
552
|
async function bootstrap() {
|
|
553
|
-
await
|
|
553
|
+
await _chunkJOHF7PK4js.Sonamu.init(false, false);
|
|
554
554
|
await _tsicli.tsicli.call(void 0, _process2.default.argv, {
|
|
555
555
|
types: {
|
|
556
556
|
"#entityId": {
|
|
557
557
|
type: "autocomplete",
|
|
558
558
|
name: "#entityId",
|
|
559
559
|
message: "Please input #entityId",
|
|
560
|
-
choices:
|
|
560
|
+
choices: _chunkJOHF7PK4js.EntityManager.getAllParentIds().map((entityId) => ({
|
|
561
561
|
title: entityId,
|
|
562
562
|
value: entityId
|
|
563
563
|
}))
|
|
@@ -607,18 +607,18 @@ bootstrap().finally(async () => {
|
|
|
607
607
|
if (migrator) {
|
|
608
608
|
await migrator.destroy();
|
|
609
609
|
}
|
|
610
|
-
await
|
|
611
|
-
await
|
|
610
|
+
await _chunkJOHF7PK4js.FixtureManager.destory();
|
|
611
|
+
await _chunkJOHF7PK4js.BaseModel.destroy();
|
|
612
612
|
console.log(_chalk2.default.bgBlue(`END ${/* @__PURE__ */ new Date()}
|
|
613
613
|
`));
|
|
614
614
|
});
|
|
615
615
|
async function setupMigrator() {
|
|
616
|
-
migrator = new (0,
|
|
616
|
+
migrator = new (0, _chunkJOHF7PK4js.Migrator)({
|
|
617
617
|
mode: "dev"
|
|
618
618
|
});
|
|
619
619
|
}
|
|
620
620
|
async function setupFixtureManager() {
|
|
621
|
-
|
|
621
|
+
_chunkJOHF7PK4js.FixtureManager.init();
|
|
622
622
|
}
|
|
623
623
|
async function migrate_run() {
|
|
624
624
|
await setupMigrator();
|
|
@@ -643,24 +643,24 @@ async function migrate_reset() {
|
|
|
643
643
|
await migrator.resetAll();
|
|
644
644
|
}
|
|
645
645
|
async function fixture_init() {
|
|
646
|
-
const srcConfig =
|
|
646
|
+
const srcConfig = _chunkJOHF7PK4js.Sonamu.dbConfig.development_master;
|
|
647
647
|
const targets = [
|
|
648
648
|
{
|
|
649
649
|
label: "(REMOTE) Fixture DB",
|
|
650
|
-
config:
|
|
650
|
+
config: _chunkJOHF7PK4js.Sonamu.dbConfig.fixture_remote
|
|
651
651
|
},
|
|
652
652
|
{
|
|
653
653
|
label: "(LOCAL) Fixture DB",
|
|
654
|
-
config:
|
|
654
|
+
config: _chunkJOHF7PK4js.Sonamu.dbConfig.fixture_local,
|
|
655
655
|
toSkip: (() => {
|
|
656
|
-
const remoteConn =
|
|
657
|
-
const localConn =
|
|
656
|
+
const remoteConn = _chunkJOHF7PK4js.Sonamu.dbConfig.fixture_remote.connection;
|
|
657
|
+
const localConn = _chunkJOHF7PK4js.Sonamu.dbConfig.fixture_local.connection;
|
|
658
658
|
return remoteConn.host === localConn.host && remoteConn.database === localConn.database;
|
|
659
659
|
})()
|
|
660
660
|
},
|
|
661
661
|
{
|
|
662
662
|
label: "(LOCAL) Testing DB",
|
|
663
|
-
config:
|
|
663
|
+
config: _chunkJOHF7PK4js.Sonamu.dbConfig.test
|
|
664
664
|
}
|
|
665
665
|
];
|
|
666
666
|
console.log("DUMP...");
|
|
@@ -705,15 +705,15 @@ async function fixture_init() {
|
|
|
705
705
|
}
|
|
706
706
|
async function fixture_import(entityId, recordIds) {
|
|
707
707
|
await setupFixtureManager();
|
|
708
|
-
await
|
|
709
|
-
await
|
|
708
|
+
await _chunkJOHF7PK4js.FixtureManager.importFixture(entityId, recordIds);
|
|
709
|
+
await _chunkJOHF7PK4js.FixtureManager.sync();
|
|
710
710
|
}
|
|
711
711
|
async function fixture_sync() {
|
|
712
712
|
await setupFixtureManager();
|
|
713
|
-
await
|
|
713
|
+
await _chunkJOHF7PK4js.FixtureManager.sync();
|
|
714
714
|
}
|
|
715
715
|
async function stub_practice(name) {
|
|
716
|
-
const practiceDir = _path2.default.join(
|
|
716
|
+
const practiceDir = _path2.default.join(_chunkJOHF7PK4js.Sonamu.apiRootPath, "src", "practices");
|
|
717
717
|
const fileNames = _fsextra2.default.readdirSync(practiceDir);
|
|
718
718
|
const maxSeqNo = (() => {
|
|
719
719
|
if (_fsextra2.default.existsSync(practiceDir) === false) {
|
|
@@ -756,22 +756,22 @@ async function stub_practice(name) {
|
|
|
756
756
|
_child_process.execSync.call(void 0, `echo "${runCode}" | pbcopy`);
|
|
757
757
|
}
|
|
758
758
|
async function stub_entity(entityId) {
|
|
759
|
-
await
|
|
759
|
+
await _chunkJOHF7PK4js.Sonamu.syncer.createEntity({ entityId });
|
|
760
760
|
}
|
|
761
761
|
async function scaffold_model(entityId) {
|
|
762
|
-
await
|
|
762
|
+
await _chunkJOHF7PK4js.Sonamu.syncer.generateTemplate("model", {
|
|
763
763
|
entityId
|
|
764
764
|
});
|
|
765
765
|
}
|
|
766
766
|
async function scaffold_model_test(entityId) {
|
|
767
|
-
await
|
|
767
|
+
await _chunkJOHF7PK4js.Sonamu.syncer.generateTemplate("model_test", {
|
|
768
768
|
entityId
|
|
769
769
|
});
|
|
770
770
|
}
|
|
771
771
|
async function ui() {
|
|
772
772
|
try {
|
|
773
773
|
const sonamuUI = await Promise.resolve().then(() => _interopRequireWildcard(require("@sonamu-kit/ui")));
|
|
774
|
-
sonamuUI.startServers(
|
|
774
|
+
sonamuUI.startServers(_chunkJOHF7PK4js.Sonamu.apiRootPath);
|
|
775
775
|
} catch (e) {
|
|
776
776
|
if (e instanceof Error && e.message.includes("isn't declared")) {
|
|
777
777
|
console.log(`You need to install ${_chalk2.default.blue(`@sonamu-kit/ui`)} first.`);
|
|
@@ -810,7 +810,7 @@ async function smd_migration() {
|
|
|
810
810
|
const parentNames = SMDManager.getNamesFromId(_nullishCoalesce(smd.parentId, () => ( smd.id)));
|
|
811
811
|
const names = SMDManager.getNamesFromId(smd.id);
|
|
812
812
|
const dstPath = _path2.default.join(
|
|
813
|
-
|
|
813
|
+
_chunkJOHF7PK4js.Sonamu.apiRootPath,
|
|
814
814
|
"src",
|
|
815
815
|
"application",
|
|
816
816
|
parentNames.fs,
|
|
@@ -822,7 +822,7 @@ async function smd_migration() {
|
|
|
822
822
|
_fsextra2.default.writeFileSync(dstPath, formatted);
|
|
823
823
|
console.log(_chalk2.default.blue(`CREATED: ${dstPath}`));
|
|
824
824
|
const srcSmdPath = _path2.default.join(
|
|
825
|
-
|
|
825
|
+
_chunkJOHF7PK4js.Sonamu.apiRootPath,
|
|
826
826
|
"src",
|
|
827
827
|
"application",
|
|
828
828
|
parentNames.fs,
|
|
@@ -830,7 +830,7 @@ async function smd_migration() {
|
|
|
830
830
|
);
|
|
831
831
|
const dstSmdPath = srcSmdPath.replace("/src/", "/dist/").replace(/\.ts$/, ".js");
|
|
832
832
|
const srcEnumsPath = _path2.default.join(
|
|
833
|
-
|
|
833
|
+
_chunkJOHF7PK4js.Sonamu.apiRootPath,
|
|
834
834
|
"src",
|
|
835
835
|
"application",
|
|
836
836
|
parentNames.fs,
|
|
@@ -838,7 +838,7 @@ async function smd_migration() {
|
|
|
838
838
|
);
|
|
839
839
|
const dstEnumsPath = srcEnumsPath.replace("/src/", "/dist/").replace(/\.ts$/, ".js");
|
|
840
840
|
const srcGeneratedPath = _path2.default.join(
|
|
841
|
-
|
|
841
|
+
_chunkJOHF7PK4js.Sonamu.apiRootPath,
|
|
842
842
|
"src",
|
|
843
843
|
"application",
|
|
844
844
|
parentNames.fs,
|
|
@@ -850,8 +850,8 @@ async function smd_migration() {
|
|
|
850
850
|
dstSmdPath,
|
|
851
851
|
srcEnumsPath,
|
|
852
852
|
dstEnumsPath,
|
|
853
|
-
...
|
|
854
|
-
(target) => srcEnumsPath.replace(
|
|
853
|
+
..._chunkJOHF7PK4js.Sonamu.config.sync.targets.map(
|
|
854
|
+
(target) => srcEnumsPath.replace(_chunkJOHF7PK4js.Sonamu.apiRootPath, _path2.default.join(_chunkJOHF7PK4js.Sonamu.appRootPath, target)).replace("/src/application/", "/src/services/")
|
|
855
855
|
),
|
|
856
856
|
srcGeneratedPath,
|
|
857
857
|
dstGeneratedPath
|
|
@@ -865,11 +865,11 @@ async function smd_migration() {
|
|
|
865
865
|
});
|
|
866
866
|
}
|
|
867
867
|
console.log("Entity\uB85C \uB2E4\uC2DC \uB85C\uB4DC\uD569\uB2C8\uB2E4.");
|
|
868
|
-
|
|
869
|
-
await
|
|
870
|
-
const entityIds =
|
|
868
|
+
_chunkJOHF7PK4js.EntityManager.isAutoloaded = false;
|
|
869
|
+
await _chunkJOHF7PK4js.EntityManager.autoload();
|
|
870
|
+
const entityIds = _chunkJOHF7PK4js.EntityManager.getAllParentIds();
|
|
871
871
|
for await (const entityId of entityIds) {
|
|
872
|
-
await
|
|
872
|
+
await _chunkJOHF7PK4js.Sonamu.syncer.generateTemplate("generated", { entityId });
|
|
873
873
|
}
|
|
874
874
|
}
|
|
875
875
|
//# sourceMappingURL=cli.js.map
|
package/dist/bin/cli.mjs
CHANGED
|
@@ -356,6 +356,19 @@ function getZodTypeFromApiParamType(paramType, references) {
|
|
|
356
356
|
return reference;
|
|
357
357
|
case "union":
|
|
358
358
|
const unionType = paramType;
|
|
359
|
+
if (unionType.types.length === 2 && unionType.types.some((type) => type === "null")) {
|
|
360
|
+
if (unionType.types[0] === "null") {
|
|
361
|
+
return getZodTypeFromApiParamType(
|
|
362
|
+
unionType.types[1],
|
|
363
|
+
references
|
|
364
|
+
).nullable();
|
|
365
|
+
} else {
|
|
366
|
+
return getZodTypeFromApiParamType(
|
|
367
|
+
unionType.types[0],
|
|
368
|
+
references
|
|
369
|
+
).nullable();
|
|
370
|
+
}
|
|
371
|
+
}
|
|
359
372
|
return _zod.z.union(
|
|
360
373
|
unionType.types.map(
|
|
361
374
|
(type) => getZodTypeFromApiParamType(type, references)
|
|
@@ -7832,4 +7845,4 @@ var FixtureManager = new FixtureManagerClass();
|
|
|
7832
7845
|
|
|
7833
7846
|
|
|
7834
7847
|
exports.SQLDateTimeString = SQLDateTimeString; exports.zArrayable = zArrayable; exports.isIntegerProp = isIntegerProp; exports.isBigIntegerProp = isBigIntegerProp; exports.isTextProp = isTextProp; exports.isStringProp = isStringProp; exports.isEnumProp = isEnumProp; exports.isFloatProp = isFloatProp; exports.isDoubleProp = isDoubleProp; exports.isDecimalProp = isDecimalProp; exports.isBooleanProp = isBooleanProp; exports.isDateProp = isDateProp; exports.isDateTimeProp = isDateTimeProp; exports.isTimeProp = isTimeProp; exports.isTimestampProp = isTimestampProp; exports.isJsonProp = isJsonProp; exports.isUuidProp = isUuidProp; exports.isVirtualProp = isVirtualProp; exports.isRelationProp = isRelationProp; exports.isOneToOneRelationProp = isOneToOneRelationProp; exports.isBelongsToOneRelationProp = isBelongsToOneRelationProp; exports.isHasManyRelationProp = isHasManyRelationProp; exports.isManyToManyRelationProp = isManyToManyRelationProp; exports.isCustomJoinClause = isCustomJoinClause; exports.SonamuQueryMode = SonamuQueryMode; exports.isKnexError = isKnexError; exports.ApiParamType = ApiParamType; exports.RenderingNode = RenderingNode; exports.TemplateOptions = TemplateOptions; exports.TemplateKey = TemplateKey; exports.GenerateOptions = GenerateOptions; exports.PathAndCode = PathAndCode; exports.getZodObjectFromApi = getZodObjectFromApi; exports.getZodObjectFromApiParams = getZodObjectFromApiParams; exports.getZodTypeFromApiParamType = getZodTypeFromApiParamType; exports.propNodeToZodTypeDef = propNodeToZodTypeDef; exports.getTextTypeLength = getTextTypeLength; exports.propToZodTypeDef = propToZodTypeDef; exports.zodTypeToZodCode = zodTypeToZodCode; exports.apiParamToTsCode = apiParamToTsCode; exports.apiParamTypeToTsType = apiParamTypeToTsType; exports.unwrapPromiseOnce = unwrapPromiseOnce; exports.serializeZodType = serializeZodType; exports.zodTypeToTsTypeDef = zodTypeToTsTypeDef; exports.registeredApis = registeredApis; exports.api = api; exports.SoException = SoException; exports.isSoException = isSoException; exports.BadRequestException = BadRequestException; exports.UnauthorizedException = UnauthorizedException; exports.NotFoundException = NotFoundException; exports.ServiceUnavailableException = ServiceUnavailableException; exports.InternalServerErrorException = InternalServerErrorException; exports.AlreadyProcessedException = AlreadyProcessedException; exports.DuplicateRowException = DuplicateRowException; exports.TargetNotFoundException = TargetNotFoundException; exports.globAsync = globAsync; exports.importMultiple = importMultiple; exports.findAppRootPath = findAppRootPath; exports.findApiRootPath = findApiRootPath; exports.nonNullable = nonNullable; exports.Entity = Entity; exports.EntityManager = EntityManager; exports.Syncer = Syncer; exports.isLocal = isLocal; exports.isRemote = isRemote; exports.isInDocker = isInDocker; exports.isDaemonServer = isDaemonServer; exports.isDevelopment = isDevelopment; exports.isStaging = isStaging; exports.isProduction = isProduction; exports.isTest = isTest; exports.DB = DB; exports.isRefField = isRefField; exports.UpsertBuilder = UpsertBuilder; exports.BaseModelClass = BaseModelClass; exports.BaseModel = BaseModel; exports.Sonamu = Sonamu; exports.Migrator = Migrator; exports.FixtureManagerClass = FixtureManagerClass; exports.FixtureManager = FixtureManager;
|
|
7835
|
-
//# sourceMappingURL=chunk-
|
|
7848
|
+
//# sourceMappingURL=chunk-JOHF7PK4.js.map
|