sonamu 0.4.6 → 0.4.7

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.
Files changed (43) hide show
  1. package/dist/{base-model-CWRKUX49.d.ts → base-model-C24du9JT.d.ts} +1 -1
  2. package/dist/{base-model-BzMJ2E_I.d.mts → base-model-IZdmwmB5.d.mts} +1 -1
  3. package/dist/bin/cli.js +51 -51
  4. package/dist/bin/cli.mjs +2 -2
  5. package/dist/{chunk-WJGRXAXE.js → chunk-54T42DSA.js} +35 -28
  6. package/dist/chunk-54T42DSA.js.map +1 -0
  7. package/dist/{chunk-HVVCQLAU.mjs → chunk-5CB4CKVQ.mjs} +2 -2
  8. package/dist/{chunk-EUP6N7EK.js → chunk-6HM2HY4W.js} +100 -100
  9. package/dist/{chunk-N6N3LENC.js → chunk-COZNUCYR.js} +4 -4
  10. package/dist/{chunk-6SP5N5ND.mjs → chunk-HRZ23FCT.mjs} +2 -2
  11. package/dist/{chunk-UAG3SKFM.js → chunk-JNQQ3K3E.js} +7 -7
  12. package/dist/{chunk-4K2F3SOM.mjs → chunk-VOEEO52Y.mjs} +2 -2
  13. package/dist/{chunk-ZFLQLW37.mjs → chunk-YOH4CHWQ.mjs} +13 -6
  14. package/dist/chunk-YOH4CHWQ.mjs.map +1 -0
  15. package/dist/database/drivers/knex/base-model.d.mts +2 -2
  16. package/dist/database/drivers/knex/base-model.d.ts +2 -2
  17. package/dist/database/drivers/knex/base-model.js +8 -8
  18. package/dist/database/drivers/knex/base-model.mjs +3 -3
  19. package/dist/database/drivers/kysely/base-model.d.mts +2 -2
  20. package/dist/database/drivers/kysely/base-model.d.ts +2 -2
  21. package/dist/database/drivers/kysely/base-model.js +9 -9
  22. package/dist/database/drivers/kysely/base-model.mjs +3 -3
  23. package/dist/index.d.mts +5 -5
  24. package/dist/index.d.ts +5 -5
  25. package/dist/index.js +11 -7
  26. package/dist/index.js.map +1 -1
  27. package/dist/index.mjs +7 -3
  28. package/dist/index.mjs.map +1 -1
  29. package/dist/{model-CAH_4oQh.d.ts → model-Dbbfpk2X.d.mts} +1 -1
  30. package/dist/{model-CAH_4oQh.d.mts → model-Dbbfpk2X.d.ts} +1 -1
  31. package/package.json +1 -1
  32. package/src/database/drivers/knex/db.ts +10 -5
  33. package/src/database/drivers/kysely/db.ts +1 -1
  34. package/src/database/types.ts +2 -1
  35. package/src/index.ts +2 -0
  36. package/dist/chunk-WJGRXAXE.js.map +0 -1
  37. package/dist/chunk-ZFLQLW37.mjs.map +0 -1
  38. /package/dist/{chunk-HVVCQLAU.mjs.map → chunk-5CB4CKVQ.mjs.map} +0 -0
  39. /package/dist/{chunk-EUP6N7EK.js.map → chunk-6HM2HY4W.js.map} +0 -0
  40. /package/dist/{chunk-N6N3LENC.js.map → chunk-COZNUCYR.js.map} +0 -0
  41. /package/dist/{chunk-6SP5N5ND.mjs.map → chunk-HRZ23FCT.mjs.map} +0 -0
  42. /package/dist/{chunk-UAG3SKFM.js.map → chunk-JNQQ3K3E.js.map} +0 -0
  43. /package/dist/{chunk-4K2F3SOM.mjs.map → chunk-VOEEO52Y.mjs.map} +0 -0
@@ -1,4 +1,4 @@
1
- import { c as DatabaseDriver, d as DriverSpec, S as SubsetQuery, D as DBPreset, B as BaseListParams, K as KnexClient, b as KyselyClient } from './model-CAH_4oQh.js';
1
+ import { c as DatabaseDriver, d as DriverSpec, S as SubsetQuery, D as DBPreset, B as BaseListParams, K as KnexClient, b as KyselyClient } from './model-Dbbfpk2X.js';
2
2
 
3
3
  declare abstract class BaseModelClassAbstract<D extends DatabaseDriver> {
4
4
  modelName: string;
@@ -1,4 +1,4 @@
1
- import { c as DatabaseDriver, d as DriverSpec, S as SubsetQuery, D as DBPreset, B as BaseListParams, K as KnexClient, b as KyselyClient } from './model-CAH_4oQh.mjs';
1
+ import { c as DatabaseDriver, d as DriverSpec, S as SubsetQuery, D as DBPreset, B as BaseListParams, K as KnexClient, b as KyselyClient } from './model-Dbbfpk2X.mjs';
2
2
 
3
3
  declare abstract class BaseModelClassAbstract<D extends DatabaseDriver> {
4
4
  modelName: string;
package/dist/bin/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict"; function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } var _class; var _class2;
2
2
 
3
3
 
4
- var _chunkEUP6N7EKjs = require('../chunk-EUP6N7EK.js');
4
+ var _chunk6HM2HY4Wjs = require('../chunk-6HM2HY4W.js');
5
5
 
6
6
 
7
7
 
@@ -15,7 +15,7 @@ var _chunkEUP6N7EKjs = require('../chunk-EUP6N7EK.js');
15
15
 
16
16
 
17
17
 
18
- var _chunkWJGRXAXEjs = require('../chunk-WJGRXAXE.js');
18
+ var _chunk54T42DSAjs = require('../chunk-54T42DSA.js');
19
19
 
20
20
  // src/bin/cli.ts
21
21
  var _chalk = require('chalk'); var _chalk2 = _interopRequireDefault(_chalk);
@@ -69,7 +69,7 @@ var SMD = (_class = class {
69
69
  this.table = _nullishCoalesce(table, () => ( _inflection2.default.underscore(_inflection2.default.pluralize(id))));
70
70
  if (props) {
71
71
  this.props = props.map((prop) => {
72
- if (_chunkWJGRXAXEjs.isEnumProp.call(void 0, prop)) {
72
+ if (_chunk54T42DSAjs.isEnumProp.call(void 0, prop)) {
73
73
  if (prop.id.includes("$Model")) {
74
74
  prop.id = prop.id.replace("$Model", id);
75
75
  }
@@ -82,7 +82,7 @@ var SMD = (_class = class {
82
82
  [prop.name]: prop
83
83
  };
84
84
  }, {});
85
- this.relations = props.filter((prop) => _chunkWJGRXAXEjs.isRelationProp.call(void 0, prop)).reduce((result, prop) => {
85
+ this.relations = props.filter((prop) => _chunk54T42DSAjs.isRelationProp.call(void 0, prop)).reduce((result, prop) => {
86
86
  return {
87
87
  ...result,
88
88
  [prop.name]: prop
@@ -127,10 +127,10 @@ var SMD = (_class = class {
127
127
  const fields2 = subsetGroup[groupKey];
128
128
  if (groupKey === "") {
129
129
  const realFields = fields2.filter(
130
- (field) => !_chunkWJGRXAXEjs.isVirtualProp.call(void 0, this.propsDict[field])
130
+ (field) => !_chunk54T42DSAjs.isVirtualProp.call(void 0, this.propsDict[field])
131
131
  );
132
132
  const virtualFields = fields2.filter(
133
- (field) => _chunkWJGRXAXEjs.isVirtualProp.call(void 0, this.propsDict[field])
133
+ (field) => _chunk54T42DSAjs.isVirtualProp.call(void 0, this.propsDict[field])
134
134
  );
135
135
  if (prefix === "") {
136
136
  r.select = r.select.concat(
@@ -151,7 +151,7 @@ var SMD = (_class = class {
151
151
  throw new Error(`\uC874\uC7AC\uD558\uC9C0 \uC54A\uB294 relation \uCC38\uC870 ${groupKey}`);
152
152
  }
153
153
  const relSMD = SMDManager.get(relation.with);
154
- if (_chunkWJGRXAXEjs.isOneToOneRelationProp.call(void 0, relation) || _chunkWJGRXAXEjs.isBelongsToOneRelationProp.call(void 0, relation)) {
154
+ if (_chunk54T42DSAjs.isOneToOneRelationProp.call(void 0, relation) || _chunk54T42DSAjs.isBelongsToOneRelationProp.call(void 0, relation)) {
155
155
  const relFields = fields2.map(
156
156
  (field) => field.split(".").slice(1).join(".")
157
157
  );
@@ -169,7 +169,7 @@ var SMD = (_class = class {
169
169
  if (isAlreadyOuterJoined) {
170
170
  return "outer";
171
171
  }
172
- if (_chunkWJGRXAXEjs.isOneToOneRelationProp.call(void 0, relation)) {
172
+ if (_chunk54T42DSAjs.isOneToOneRelationProp.call(void 0, relation)) {
173
173
  if (relation.hasJoinColumn === true && (_nullishCoalesce(relation.nullable, () => ( false))) === false) {
174
174
  return "inner";
175
175
  } else {
@@ -199,7 +199,7 @@ var SMD = (_class = class {
199
199
  };
200
200
  } else {
201
201
  let from, to;
202
- if (_chunkWJGRXAXEjs.isOneToOneRelationProp.call(void 0, relation)) {
202
+ if (_chunk54T42DSAjs.isOneToOneRelationProp.call(void 0, relation)) {
203
203
  if (relation.hasJoinColumn) {
204
204
  from = `${fromTable}.${relation.name}_id`;
205
205
  to = `${joinAs}.id`;
@@ -238,13 +238,13 @@ var SMD = (_class = class {
238
238
  r.loaders = [...r.loaders, ...convertedLoaders];
239
239
  }
240
240
  r.joins = r.joins.concat(relSubsetQuery.joins);
241
- } else if (_chunkWJGRXAXEjs.isHasManyRelationProp.call(void 0, relation) || _chunkWJGRXAXEjs.isManyToManyRelationProp.call(void 0, relation)) {
241
+ } else if (_chunk54T42DSAjs.isHasManyRelationProp.call(void 0, relation) || _chunk54T42DSAjs.isManyToManyRelationProp.call(void 0, relation)) {
242
242
  const relFields = fields2.map(
243
243
  (field) => field.split(".").slice(1).join(".")
244
244
  );
245
245
  const relSubsetQuery = relSMD.resolveSubsetQuery("", relFields);
246
246
  let manyJoin;
247
- if (_chunkWJGRXAXEjs.isHasManyRelationProp.call(void 0, relation)) {
247
+ if (_chunk54T42DSAjs.isHasManyRelationProp.call(void 0, relation)) {
248
248
  manyJoin = {
249
249
  fromTable: this.table,
250
250
  fromCol: "id",
@@ -252,7 +252,7 @@ var SMD = (_class = class {
252
252
  toTable: relSMD.table,
253
253
  toCol: relation.joinColumn
254
254
  };
255
- } else if (_chunkWJGRXAXEjs.isManyToManyRelationProp.call(void 0, relation)) {
255
+ } else if (_chunk54T42DSAjs.isManyToManyRelationProp.call(void 0, relation)) {
256
256
  const [table1, table2] = relation.joinTable.split("__");
257
257
  manyJoin = {
258
258
  fromTable: this.table,
@@ -335,11 +335,11 @@ var SMD = (_class = class {
335
335
  });
336
336
  }
337
337
  const prop = smd.propsDict[key];
338
- if (!_chunkWJGRXAXEjs.isRelationProp.call(void 0, prop)) {
338
+ if (!_chunk54T42DSAjs.isRelationProp.call(void 0, prop)) {
339
339
  throw new Error(`\uC798\uBABB\uB41C FieldExpr ${key}.${group[0]}`);
340
340
  }
341
341
  const relSMD = SMDManager.get(prop.with);
342
- if (_chunkWJGRXAXEjs.isBelongsToOneRelationProp.call(void 0, prop) || _chunkWJGRXAXEjs.isOneToOneRelationProp.call(void 0, prop)) {
342
+ if (_chunk54T42DSAjs.isBelongsToOneRelationProp.call(void 0, prop) || _chunk54T42DSAjs.isOneToOneRelationProp.call(void 0, prop)) {
343
343
  if (group.length == 1 && (group[0] === "id" || group[0] == "id?")) {
344
344
  const idProp = relSMD.propsDict.id;
345
345
  return {
@@ -354,7 +354,7 @@ var SMD = (_class = class {
354
354
  }
355
355
  }
356
356
  const children = this.fieldExprsToPropNodes(group, relSMD);
357
- const nodeType = _chunkWJGRXAXEjs.isBelongsToOneRelationProp.call(void 0, prop) || _chunkWJGRXAXEjs.isOneToOneRelationProp.call(void 0, prop) ? "object" : "array";
357
+ const nodeType = _chunk54T42DSAjs.isBelongsToOneRelationProp.call(void 0, prop) || _chunk54T42DSAjs.isOneToOneRelationProp.call(void 0, prop) ? "object" : "array";
358
358
  return {
359
359
  prop,
360
360
  children,
@@ -368,7 +368,7 @@ var SMD = (_class = class {
368
368
  if (propName === prefix) {
369
369
  return null;
370
370
  }
371
- if (_chunkWJGRXAXEjs.isRelationProp.call(void 0, prop)) {
371
+ if (_chunk54T42DSAjs.isRelationProp.call(void 0, prop)) {
372
372
  if (maxDepth < 0) {
373
373
  return null;
374
374
  }
@@ -408,7 +408,7 @@ var SMD = (_class = class {
408
408
  }
409
409
  const typesModulePath = `${basePath}/${this.names.fs}.types`;
410
410
  const typesFileDistPath = _path2.default.join(
411
- _chunkWJGRXAXEjs.Sonamu.apiRootPath,
411
+ _chunk54T42DSAjs.Sonamu.apiRootPath,
412
412
  `dist/application/${typesModulePath}.js`
413
413
  );
414
414
  if (_fsextra2.default.existsSync(typesFileDistPath)) {
@@ -425,7 +425,7 @@ var SMD = (_class = class {
425
425
  }
426
426
  const enumsModulePath = `${basePath}/${this.names.fs}.enums`;
427
427
  const enumsFileDistPath = _path2.default.join(
428
- _chunkWJGRXAXEjs.Sonamu.apiRootPath,
428
+ _chunk54T42DSAjs.Sonamu.apiRootPath,
429
429
  `/dist/application/${enumsModulePath}.js`
430
430
  );
431
431
  if (_fsextra2.default.existsSync(enumsFileDistPath)) {
@@ -467,7 +467,7 @@ var SMDManagerClass = (_class2 = class {constructor() { _class2.prototype.__init
467
467
  return;
468
468
  }
469
469
  const pathPattern = _path2.default.join(
470
- _chunkWJGRXAXEjs.Sonamu.apiRootPath,
470
+ _chunk54T42DSAjs.Sonamu.apiRootPath,
471
471
  "/dist/application/**/*.smd.js"
472
472
  );
473
473
  !doSilent && console.log(_chalk2.default.yellow(`autoload ${pathPattern}`));
@@ -562,14 +562,14 @@ console.log(_chalk2.default.bgBlue(`BEGIN ${/* @__PURE__ */ new Date()}`));
562
562
  _dotenv2.default.config();
563
563
  var migrator;
564
564
  async function bootstrap() {
565
- await _chunkWJGRXAXEjs.Sonamu.init(false, false);
565
+ await _chunk54T42DSAjs.Sonamu.init(false, false);
566
566
  await _tsicli.tsicli.call(void 0, _process2.default.argv, {
567
567
  types: {
568
568
  "#entityId": {
569
569
  type: "autocomplete",
570
570
  name: "#entityId",
571
571
  message: "Please input #entityId",
572
- choices: _chunkWJGRXAXEjs.EntityManager.getAllParentIds().map((entityId) => ({
572
+ choices: _chunk54T42DSAjs.EntityManager.getAllParentIds().map((entityId) => ({
573
573
  title: entityId,
574
574
  value: entityId
575
575
  }))
@@ -621,17 +621,17 @@ bootstrap().finally(async () => {
621
621
  if (migrator) {
622
622
  await migrator.destroy();
623
623
  }
624
- await _chunkEUP6N7EKjs.FixtureManager.destory();
624
+ await _chunk6HM2HY4Wjs.FixtureManager.destory();
625
625
  console.log(_chalk2.default.bgBlue(`END ${/* @__PURE__ */ new Date()}
626
626
  `));
627
627
  });
628
628
  async function setupMigrator() {
629
- migrator = new (0, _chunkEUP6N7EKjs.Migrator)({
629
+ migrator = new (0, _chunk6HM2HY4Wjs.Migrator)({
630
630
  mode: "dev"
631
631
  });
632
632
  }
633
633
  async function setupFixtureManager() {
634
- _chunkEUP6N7EKjs.FixtureManager.init();
634
+ _chunk6HM2HY4Wjs.FixtureManager.init();
635
635
  }
636
636
  async function migrate_run() {
637
637
  await setupMigrator();
@@ -661,7 +661,7 @@ async function migrate_reset() {
661
661
  await migrator.resetAll();
662
662
  }
663
663
  async function fixture_init() {
664
- const _db = _chunkWJGRXAXEjs.DB.getClient("development_master");
664
+ const _db = _chunk54T42DSAjs.DB.getClient("development_master");
665
665
  const srcConn = _db.connectionInfo;
666
666
  const targets = [
667
667
  {
@@ -683,8 +683,8 @@ async function fixture_init() {
683
683
  _child_process.execSync.call(void 0,
684
684
  `mysqldump -h${srcConn.host} -P${srcConn.port} -u${srcConn.user} -p${srcConn.password} --single-transaction -d --no-create-db --triggers ${srcConn.database} > ${dumpFilename}`
685
685
  );
686
- const dbClient = _chunkWJGRXAXEjs.DB.baseConfig.client;
687
- const migrationTable = _chunkWJGRXAXEjs.DB.migrationTable;
686
+ const dbClient = _chunk54T42DSAjs.DB.baseConfig.client;
687
+ const migrationTable = _chunk54T42DSAjs.DB.migrationTable;
688
688
  const [migrations] = await _db.raw(
689
689
  "SELECT COUNT(*) as count FROM information_schema.tables WHERE table_schema = ? AND table_name = ?",
690
690
  [srcConn.database, migrationTable]
@@ -695,22 +695,22 @@ async function fixture_init() {
695
695
  );
696
696
  }
697
697
  for await (const { label, connKey } of targets) {
698
- const config = _chunkWJGRXAXEjs.DB.connectionInfo[connKey];
698
+ const config = _chunk54T42DSAjs.DB.connectionInfo[connKey];
699
699
  if (label === "(LOCAL) Fixture DB" && targets.find(
700
- (t) => t.label === "(REMOTE) Fixture DB" && _chunkWJGRXAXEjs.DB.connectionInfo[t.connKey].host === config.host && _chunkWJGRXAXEjs.DB.connectionInfo[t.connKey].database === config.database
700
+ (t) => t.label === "(REMOTE) Fixture DB" && _chunk54T42DSAjs.DB.connectionInfo[t.connKey].host === config.host && _chunk54T42DSAjs.DB.connectionInfo[t.connKey].database === config.database
701
701
  )) {
702
702
  console.log(_chalk2.default.red(`${label}: Skipped!`));
703
703
  continue;
704
704
  }
705
705
  const db = (() => {
706
706
  if (dbClient === "knex") {
707
- const config2 = _lodash2.default.cloneDeep(_chunkWJGRXAXEjs.DB.fullConfig[connKey]);
707
+ const config2 = _lodash2.default.cloneDeep(_chunk54T42DSAjs.DB.fullConfig[connKey]);
708
708
  config2.connection.database = void 0;
709
- return new (0, _chunkWJGRXAXEjs.KnexClient)(config2);
709
+ return new (0, _chunk54T42DSAjs.KnexClient)(config2);
710
710
  } else {
711
- const config2 = _lodash2.default.cloneDeep(_chunkWJGRXAXEjs.DB.fullConfig[connKey]);
711
+ const config2 = _lodash2.default.cloneDeep(_chunk54T42DSAjs.DB.fullConfig[connKey]);
712
712
  config2.database = void 0;
713
- return new (0, _chunkWJGRXAXEjs.KyselyClient)(config2);
713
+ return new (0, _chunk54T42DSAjs.KyselyClient)(config2);
714
714
  }
715
715
  })();
716
716
  const [row] = await db.raw(`SHOW DATABASES LIKE "${config.database}"`);
@@ -734,15 +734,15 @@ async function fixture_init() {
734
734
  }
735
735
  async function fixture_import(entityId, recordIds) {
736
736
  await setupFixtureManager();
737
- await _chunkEUP6N7EKjs.FixtureManager.importFixture(entityId, recordIds);
738
- await _chunkEUP6N7EKjs.FixtureManager.sync();
737
+ await _chunk6HM2HY4Wjs.FixtureManager.importFixture(entityId, recordIds);
738
+ await _chunk6HM2HY4Wjs.FixtureManager.sync();
739
739
  }
740
740
  async function fixture_sync() {
741
741
  await setupFixtureManager();
742
- await _chunkEUP6N7EKjs.FixtureManager.sync();
742
+ await _chunk6HM2HY4Wjs.FixtureManager.sync();
743
743
  }
744
744
  async function stub_practice(name) {
745
- const practiceDir = _path2.default.join(_chunkWJGRXAXEjs.Sonamu.apiRootPath, "src", "practices");
745
+ const practiceDir = _path2.default.join(_chunk54T42DSAjs.Sonamu.apiRootPath, "src", "practices");
746
746
  const fileNames = _fsextra2.default.readdirSync(practiceDir);
747
747
  const maxSeqNo = (() => {
748
748
  if (_fsextra2.default.existsSync(practiceDir) === false) {
@@ -785,22 +785,22 @@ async function stub_practice(name) {
785
785
  _child_process.execSync.call(void 0, `echo "${runCode}" | pbcopy`);
786
786
  }
787
787
  async function stub_entity(entityId) {
788
- await _chunkWJGRXAXEjs.Sonamu.syncer.createEntity({ entityId });
788
+ await _chunk54T42DSAjs.Sonamu.syncer.createEntity({ entityId });
789
789
  }
790
790
  async function scaffold_model(entityId) {
791
- await _chunkWJGRXAXEjs.Sonamu.syncer.generateTemplate("model", {
791
+ await _chunk54T42DSAjs.Sonamu.syncer.generateTemplate("model", {
792
792
  entityId
793
793
  });
794
794
  }
795
795
  async function scaffold_model_test(entityId) {
796
- await _chunkWJGRXAXEjs.Sonamu.syncer.generateTemplate("model_test", {
796
+ await _chunk54T42DSAjs.Sonamu.syncer.generateTemplate("model_test", {
797
797
  entityId
798
798
  });
799
799
  }
800
800
  async function ui() {
801
801
  try {
802
802
  const sonamuUI = await Promise.resolve().then(() => _interopRequireWildcard(require("@sonamu-kit/ui")));
803
- sonamuUI.startServers(_chunkWJGRXAXEjs.Sonamu.apiRootPath);
803
+ sonamuUI.startServers(_chunk54T42DSAjs.Sonamu.apiRootPath);
804
804
  } catch (e) {
805
805
  if (e instanceof Error && e.message.includes("isn't declared")) {
806
806
  console.log(`You need to install ${_chalk2.default.blue(`@sonamu-kit/ui`)} first.`);
@@ -839,7 +839,7 @@ async function smd_migration() {
839
839
  const parentNames = SMDManager.getNamesFromId(_nullishCoalesce(smd.parentId, () => ( smd.id)));
840
840
  const names = SMDManager.getNamesFromId(smd.id);
841
841
  const dstPath = _path2.default.join(
842
- _chunkWJGRXAXEjs.Sonamu.apiRootPath,
842
+ _chunk54T42DSAjs.Sonamu.apiRootPath,
843
843
  "src",
844
844
  "application",
845
845
  parentNames.fs,
@@ -851,7 +851,7 @@ async function smd_migration() {
851
851
  _fsextra2.default.writeFileSync(dstPath, formatted);
852
852
  console.log(_chalk2.default.blue(`CREATED: ${dstPath}`));
853
853
  const srcSmdPath = _path2.default.join(
854
- _chunkWJGRXAXEjs.Sonamu.apiRootPath,
854
+ _chunk54T42DSAjs.Sonamu.apiRootPath,
855
855
  "src",
856
856
  "application",
857
857
  parentNames.fs,
@@ -859,7 +859,7 @@ async function smd_migration() {
859
859
  );
860
860
  const dstSmdPath = srcSmdPath.replace("/src/", "/dist/").replace(/\.ts$/, ".js");
861
861
  const srcEnumsPath = _path2.default.join(
862
- _chunkWJGRXAXEjs.Sonamu.apiRootPath,
862
+ _chunk54T42DSAjs.Sonamu.apiRootPath,
863
863
  "src",
864
864
  "application",
865
865
  parentNames.fs,
@@ -867,7 +867,7 @@ async function smd_migration() {
867
867
  );
868
868
  const dstEnumsPath = srcEnumsPath.replace("/src/", "/dist/").replace(/\.ts$/, ".js");
869
869
  const srcGeneratedPath = _path2.default.join(
870
- _chunkWJGRXAXEjs.Sonamu.apiRootPath,
870
+ _chunk54T42DSAjs.Sonamu.apiRootPath,
871
871
  "src",
872
872
  "application",
873
873
  parentNames.fs,
@@ -879,8 +879,8 @@ async function smd_migration() {
879
879
  dstSmdPath,
880
880
  srcEnumsPath,
881
881
  dstEnumsPath,
882
- ..._chunkWJGRXAXEjs.Sonamu.config.sync.targets.map(
883
- (target) => srcEnumsPath.replace(_chunkWJGRXAXEjs.Sonamu.apiRootPath, _path2.default.join(_chunkWJGRXAXEjs.Sonamu.appRootPath, target)).replace("/src/application/", "/src/services/")
882
+ ..._chunk54T42DSAjs.Sonamu.config.sync.targets.map(
883
+ (target) => srcEnumsPath.replace(_chunk54T42DSAjs.Sonamu.apiRootPath, _path2.default.join(_chunk54T42DSAjs.Sonamu.appRootPath, target)).replace("/src/application/", "/src/services/")
884
884
  ),
885
885
  srcGeneratedPath,
886
886
  dstGeneratedPath
@@ -894,11 +894,11 @@ async function smd_migration() {
894
894
  });
895
895
  }
896
896
  console.log("Entity\uB85C \uB2E4\uC2DC \uB85C\uB4DC\uD569\uB2C8\uB2E4.");
897
- _chunkWJGRXAXEjs.EntityManager.isAutoloaded = false;
898
- await _chunkWJGRXAXEjs.EntityManager.autoload();
899
- const entityIds = _chunkWJGRXAXEjs.EntityManager.getAllParentIds();
897
+ _chunk54T42DSAjs.EntityManager.isAutoloaded = false;
898
+ await _chunk54T42DSAjs.EntityManager.autoload();
899
+ const entityIds = _chunk54T42DSAjs.EntityManager.getAllParentIds();
900
900
  for await (const entityId of entityIds) {
901
- await _chunkWJGRXAXEjs.Sonamu.syncer.generateTemplate("generated", { entityId });
901
+ await _chunk54T42DSAjs.Sonamu.syncer.generateTemplate("generated", { entityId });
902
902
  }
903
903
  }
904
904
  //# sourceMappingURL=cli.js.map
package/dist/bin/cli.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  FixtureManager,
3
3
  Migrator
4
- } from "../chunk-6SP5N5ND.mjs";
4
+ } from "../chunk-HRZ23FCT.mjs";
5
5
  import {
6
6
  DB,
7
7
  EntityManager,
@@ -15,7 +15,7 @@ import {
15
15
  isOneToOneRelationProp,
16
16
  isRelationProp,
17
17
  isVirtualProp
18
- } from "../chunk-ZFLQLW37.mjs";
18
+ } from "../chunk-YOH4CHWQ.mjs";
19
19
  import {
20
20
  __dirname
21
21
  } from "../chunk-PTFDTOJU.mjs";
@@ -3094,18 +3094,23 @@ var DBKnexClass = (_class2 = class extends DBClass {
3094
3094
  },
3095
3095
  config.defaultOptions
3096
3096
  );
3097
- const test = _lodash2.default.merge({}, defaultKnexConfig, {
3098
- connection: {
3099
- database: `${config.database}_test`
3100
- }
3101
- });
3097
+ const test = _lodash2.default.merge(
3098
+ {},
3099
+ defaultKnexConfig,
3100
+ {
3101
+ connection: {
3102
+ database: `${config.database}_test`
3103
+ }
3104
+ },
3105
+ _optionalChain([config, 'access', _110 => _110.environments, 'optionalAccess', _111 => _111.test])
3106
+ );
3102
3107
  const fixture_local = _lodash2.default.merge({}, defaultKnexConfig, {
3103
3108
  connection: {
3104
3109
  database: `${config.database}_fixture`
3105
3110
  }
3106
3111
  });
3107
- const devMasterOptions = _optionalChain([config, 'access', _110 => _110.environments, 'optionalAccess', _111 => _111.development]);
3108
- const devSlaveOptions = _optionalChain([config, 'access', _112 => _112.environments, 'optionalAccess', _113 => _113.development_slave]);
3112
+ const devMasterOptions = _optionalChain([config, 'access', _112 => _112.environments, 'optionalAccess', _113 => _113.development]);
3113
+ const devSlaveOptions = _optionalChain([config, 'access', _114 => _114.environments, 'optionalAccess', _115 => _115.development_slave]);
3109
3114
  const development_master = _lodash2.default.merge({}, defaultKnexConfig, devMasterOptions);
3110
3115
  const development_slave = _lodash2.default.merge(
3111
3116
  {},
@@ -3118,8 +3123,8 @@ var DBKnexClass = (_class2 = class extends DBClass {
3118
3123
  database: `${config.database}_fixture`
3119
3124
  }
3120
3125
  });
3121
- const prodMasterOptions = _nullishCoalesce(_optionalChain([config, 'access', _114 => _114.environments, 'optionalAccess', _115 => _115.production]), () => ( {}));
3122
- const prodSlaveOptions = _nullishCoalesce(_optionalChain([config, 'access', _116 => _116.environments, 'optionalAccess', _117 => _117.production_slave]), () => ( {}));
3126
+ const prodMasterOptions = _nullishCoalesce(_optionalChain([config, 'access', _116 => _116.environments, 'optionalAccess', _117 => _117.production]), () => ( {}));
3127
+ const prodSlaveOptions = _nullishCoalesce(_optionalChain([config, 'access', _118 => _118.environments, 'optionalAccess', _119 => _119.production_slave]), () => ( {}));
3123
3128
  const production_master = _lodash2.default.merge({}, defaultKnexConfig, prodMasterOptions);
3124
3129
  const production_slave = _lodash2.default.merge(
3125
3130
  {},
@@ -3860,8 +3865,8 @@ var DBKyselyClass = (_class3 = class extends DBClass {
3860
3865
  const fixture_local = _lodash2.default.merge({}, defaultKyselyConfig, {
3861
3866
  database: `${config.database}_fixture`
3862
3867
  });
3863
- const devMasterOptions = _optionalChain([config, 'access', _118 => _118.environments, 'optionalAccess', _119 => _119.development]);
3864
- const devSlaveOptions = _optionalChain([config, 'access', _120 => _120.environments, 'optionalAccess', _121 => _121.development_slave]);
3868
+ const devMasterOptions = _optionalChain([config, 'access', _120 => _120.environments, 'optionalAccess', _121 => _121.development]);
3869
+ const devSlaveOptions = _optionalChain([config, 'access', _122 => _122.environments, 'optionalAccess', _123 => _123.development_slave]);
3865
3870
  const development_master = _lodash2.default.merge(
3866
3871
  {},
3867
3872
  defaultKyselyConfig,
@@ -3876,8 +3881,8 @@ var DBKyselyClass = (_class3 = class extends DBClass {
3876
3881
  const fixture_remote = _lodash2.default.merge({}, defaultKyselyConfig, devMasterOptions, {
3877
3882
  database: `${config.database}_fixture`
3878
3883
  });
3879
- const prodMasterOptions = _nullishCoalesce(_optionalChain([config, 'access', _122 => _122.environments, 'optionalAccess', _123 => _123.production]), () => ( {}));
3880
- const prodSlaveOptions = _nullishCoalesce(_optionalChain([config, 'access', _124 => _124.environments, 'optionalAccess', _125 => _125.production_slave]), () => ( {}));
3884
+ const prodMasterOptions = _nullishCoalesce(_optionalChain([config, 'access', _124 => _124.environments, 'optionalAccess', _125 => _125.production]), () => ( {}));
3885
+ const prodSlaveOptions = _nullishCoalesce(_optionalChain([config, 'access', _126 => _126.environments, 'optionalAccess', _127 => _127.production_slave]), () => ( {}));
3881
3886
  const production_master = _lodash2.default.merge(
3882
3887
  {},
3883
3888
  defaultKyselyConfig,
@@ -3921,7 +3926,7 @@ var dbConfigPath = _path2.default.join(
3921
3926
  );
3922
3927
  var knexfileModule = __require(dbConfigPath);
3923
3928
  var DB = (() => {
3924
- const config = _nullishCoalesce(_nullishCoalesce(_optionalChain([knexfileModule, 'access', _126 => _126.default, 'optionalAccess', _127 => _127.default]), () => ( knexfileModule.default)), () => ( knexfileModule));
3929
+ const config = _nullishCoalesce(_nullishCoalesce(_optionalChain([knexfileModule, 'access', _128 => _128.default, 'optionalAccess', _129 => _129.default]), () => ( knexfileModule.default)), () => ( knexfileModule));
3925
3930
  if (config.client === "knex") {
3926
3931
  return new DBKnexClass();
3927
3932
  } else if (config.client === "kysely") {
@@ -3945,7 +3950,7 @@ var Template__model = class extends Template {
3945
3950
  render({ entityId }, _columnsNode, listParamsNode) {
3946
3951
  const names = EntityManager.getNamesFromId(entityId);
3947
3952
  const vlTpl = new Template__view_list();
3948
- if (_optionalChain([listParamsNode, 'optionalAccess', _128 => _128.children]) === void 0) {
3953
+ if (_optionalChain([listParamsNode, 'optionalAccess', _130 => _130.children]) === void 0) {
3949
3954
  throw new Error(`listParamsNode\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4. ${entityId}`);
3950
3955
  }
3951
3956
  const def = vlTpl.getDefault(listParamsNode.children);
@@ -4327,7 +4332,7 @@ var Template__view_form = class extends Template {
4327
4332
  const propCandidate = entity.props.find(
4328
4333
  (prop) => prop.name === col.name
4329
4334
  );
4330
- col.label = _nullishCoalesce(_optionalChain([propCandidate, 'optionalAccess', _129 => _129.desc]), () => ( col.label));
4335
+ col.label = _nullishCoalesce(_optionalChain([propCandidate, 'optionalAccess', _131 => _131.desc]), () => ( col.label));
4331
4336
  return col;
4332
4337
  });
4333
4338
  const defaultValue = this.resolveDefaultValue(columns);
@@ -5130,8 +5135,8 @@ var Template__kysely_interface = class extends Template {
5130
5135
  getTargetAndPath() {
5131
5136
  const { dir } = Sonamu.config.api;
5132
5137
  const { types } = DB.baseConfig;
5133
- const outDir = _nullishCoalesce(_optionalChain([types, 'optionalAccess', _130 => _130.outDir]), () => ( "src/typings"));
5134
- const fileName = _nullishCoalesce(_optionalChain([types, 'optionalAccess', _131 => _131.fileName]), () => ( "database.types.ts"));
5138
+ const outDir = _nullishCoalesce(_optionalChain([types, 'optionalAccess', _132 => _132.outDir]), () => ( "src/typings"));
5139
+ const fileName = _nullishCoalesce(_optionalChain([types, 'optionalAccess', _133 => _133.fileName]), () => ( "database.types.ts"));
5135
5140
  return {
5136
5141
  target: `${dir}/${outDir}`,
5137
5142
  path: fileName
@@ -5353,7 +5358,7 @@ var Syncer = (_class4 = class {
5353
5358
  if (diffTypes.includes("entity") || diffTypes.includes("types")) {
5354
5359
  console.log("// \uC561\uC158: \uC2A4\uD0A4\uB9C8 \uC0DD\uC131");
5355
5360
  await this.actionGenerateSchemas();
5356
- if (_optionalChain([DB, 'access', _133 => _133.baseConfig, 'optionalAccess', _134 => _134.client]) === "kysely" && _optionalChain([DB, 'access', _135 => _135.baseConfig, 'access', _136 => _136.types, 'optionalAccess', _137 => _137.enabled]) !== false) {
5361
+ if (_optionalChain([DB, 'access', _135 => _135.baseConfig, 'optionalAccess', _136 => _136.client]) === "kysely" && _optionalChain([DB, 'access', _137 => _137.baseConfig, 'access', _138 => _138.types, 'optionalAccess', _139 => _139.enabled]) !== false) {
5357
5362
  console.log("// \uC561\uC158: kysely \uC778\uD130\uD398\uC774\uC2A4 \uC0DD\uC131");
5358
5363
  await this.generateTemplate(
5359
5364
  "kysely_interface",
@@ -5604,7 +5609,7 @@ var Syncer = (_class4 = class {
5604
5609
  return extendedApis;
5605
5610
  }
5606
5611
  resolveTypeNode(typeNode) {
5607
- switch (_optionalChain([typeNode, 'optionalAccess', _138 => _138.kind])) {
5612
+ switch (_optionalChain([typeNode, 'optionalAccess', _140 => _140.kind])) {
5608
5613
  case _typescript2.default.SyntaxKind.AnyKeyword:
5609
5614
  return "any";
5610
5615
  case _typescript2.default.SyntaxKind.UnknownKeyword:
@@ -5680,7 +5685,7 @@ var Syncer = (_class4 = class {
5680
5685
  return {
5681
5686
  t: "ref",
5682
5687
  id: typeNode.typeName.escapedText.toString(),
5683
- args: _optionalChain([typeNode, 'access', _139 => _139.typeArguments, 'optionalAccess', _140 => _140.map, 'call', _141 => _141(
5688
+ args: _optionalChain([typeNode, 'access', _141 => _141.typeArguments, 'optionalAccess', _142 => _142.map, 'call', _143 => _143(
5684
5689
  (typeArg) => this.resolveTypeNode(typeArg)
5685
5690
  )])
5686
5691
  };
@@ -5734,7 +5739,7 @@ var Syncer = (_class4 = class {
5734
5739
  name: name.escapedText ? name.escapedText.toString() : `nonameAt${index}`,
5735
5740
  type,
5736
5741
  optional: paramDec.optional === true,
5737
- defaultDef: _optionalChain([paramDec, 'optionalAccess', _142 => _142.defaultDef])
5742
+ defaultDef: _optionalChain([paramDec, 'optionalAccess', _144 => _144.defaultDef])
5738
5743
  };
5739
5744
  if (_typescript2.default.isObjectBindingPattern(name) && _typescript2.default.isTypeReferenceNode(paramDec.type) && _typescript2.default.isIdentifier(paramDec.type.typeName)) {
5740
5745
  result.name = _inflection2.default.camelize(paramDec.type.typeName.text, true);
@@ -6078,7 +6083,7 @@ var Syncer = (_class4 = class {
6078
6083
  },
6079
6084
  {}
6080
6085
  );
6081
- if (_optionalChain([propNode, 'access', _143 => _143.prop, 'optionalAccess', _144 => _144.nullable]) === true) {
6086
+ if (_optionalChain([propNode, 'access', _145 => _145.prop, 'optionalAccess', _146 => _146.nullable]) === true) {
6082
6087
  return _zod.z.object(obj).nullable();
6083
6088
  } else {
6084
6089
  return _zod.z.object(obj);
@@ -6583,7 +6588,7 @@ var SonamuClass = (_class5 = class {constructor() { _class5.prototype.__init15.c
6583
6588
  }
6584
6589
  async withFastify(server, config, options) {
6585
6590
  if (this.isInitialized === false) {
6586
- await this.init(_optionalChain([options, 'optionalAccess', _145 => _145.doSilent]), _optionalChain([options, 'optionalAccess', _146 => _146.enableSync]));
6591
+ await this.init(_optionalChain([options, 'optionalAccess', _147 => _147.doSilent]), _optionalChain([options, 'optionalAccess', _148 => _148.enableSync]));
6587
6592
  }
6588
6593
  server.get(
6589
6594
  `${this.config.route.prefix}/routes`,
@@ -6716,7 +6721,7 @@ var EntityManagerClass = (_class6 = class {constructor() { _class6.prototype.__i
6716
6721
  Sonamu.apiRootPath,
6717
6722
  `dist/application/sonamu.generated.js?t=${Date.now()}`
6718
6723
  );
6719
- if (_optionalChain([__require, 'optionalAccess', _147 => _147.cache]) && __require.cache[sonamuPath]) {
6724
+ if (_optionalChain([__require, 'optionalAccess', _149 => _149.cache]) && __require.cache[sonamuPath]) {
6720
6725
  delete __require.cache[sonamuPath];
6721
6726
  }
6722
6727
  return await this.autoload(doSilent);
@@ -7012,7 +7017,7 @@ var Entity = (_class7 = class {
7012
7017
  const relSubsetQuery = relEntity.resolveSubsetQuery("", relFields);
7013
7018
  let manyJoin;
7014
7019
  if (isHasManyRelationProp(relation)) {
7015
- const fromCol = _nullishCoalesce(_optionalChain([relation, 'optionalAccess', _148 => _148.fromColumn]), () => ( "id"));
7020
+ const fromCol = _nullishCoalesce(_optionalChain([relation, 'optionalAccess', _150 => _150.fromColumn]), () => ( "id"));
7016
7021
  manyJoin = {
7017
7022
  fromTable: this.table,
7018
7023
  fromCol,
@@ -7522,5 +7527,7 @@ var Entity = (_class7 = class {
7522
7527
 
7523
7528
 
7524
7529
 
7525
- 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.isKyselyError = isKyselyError; 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.hydrate = hydrate; exports.Entity = Entity; exports.EntityManager = EntityManager; exports.asArray = asArray; exports.objToMap = objToMap; exports.KnexClient = KnexClient; exports.KyselyClient = KyselyClient; exports.DB = DB; 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.Sonamu = Sonamu;
7526
- //# sourceMappingURL=chunk-WJGRXAXE.js.map
7530
+
7531
+
7532
+ 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.isKyselyError = isKyselyError; 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.hydrate = hydrate; exports.Entity = Entity; exports.EntityManager = EntityManager; exports.asArray = asArray; exports.objToMap = objToMap; exports.KnexClient = KnexClient; exports.KyselyClient = KyselyClient; exports.DBKnexClass = DBKnexClass; exports.DBKyselyClass = DBKyselyClass; exports.DB = DB; 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.Sonamu = Sonamu;
7533
+ //# sourceMappingURL=chunk-54T42DSA.js.map