sonamu 0.2.44 → 0.2.46

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/.pnp.cjs CHANGED
@@ -45,7 +45,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
45
45
  ["fs-extra", "npm:10.1.0"],\
46
46
  ["glob", "npm:8.0.3"],\
47
47
  ["inflection", "npm:1.13.2"],\
48
- ["knex", "virtual:4f0316c76b384a8421df072012eb837a6300b9a5670bff4df3dc0e7311fb233135ca0caeff48740f668ff78d6cdf9585f6ec35f903c4a6fa6a5853ed2b050977#npm:2.5.1"],\
48
+ ["knex", "virtual:4f0316c76b384a8421df072012eb837a6300b9a5670bff4df3dc0e7311fb233135ca0caeff48740f668ff78d6cdf9585f6ec35f903c4a6fa6a5853ed2b050977#npm:3.1.0"],\
49
49
  ["lodash", "npm:4.17.21"],\
50
50
  ["luxon", "npm:3.0.3"],\
51
51
  ["mysql2", "npm:3.6.1"],\
@@ -2028,17 +2028,17 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
2028
2028
  }]\
2029
2029
  ]],\
2030
2030
  ["knex", [\
2031
- ["npm:2.5.1", {\
2032
- "packageLocation": "./.yarn/cache/knex-npm-2.5.1-b988b29845-4f2da7fda5.zip/node_modules/knex/",\
2031
+ ["npm:3.1.0", {\
2032
+ "packageLocation": "./.yarn/cache/knex-npm-3.1.0-87fad39c7a-3905f8d279.zip/node_modules/knex/",\
2033
2033
  "packageDependencies": [\
2034
- ["knex", "npm:2.5.1"]\
2034
+ ["knex", "npm:3.1.0"]\
2035
2035
  ],\
2036
2036
  "linkType": "SOFT"\
2037
2037
  }],\
2038
- ["virtual:4f0316c76b384a8421df072012eb837a6300b9a5670bff4df3dc0e7311fb233135ca0caeff48740f668ff78d6cdf9585f6ec35f903c4a6fa6a5853ed2b050977#npm:2.5.1", {\
2039
- "packageLocation": "./.yarn/__virtual__/knex-virtual-db13b53dee/0/cache/knex-npm-2.5.1-b988b29845-4f2da7fda5.zip/node_modules/knex/",\
2038
+ ["virtual:4f0316c76b384a8421df072012eb837a6300b9a5670bff4df3dc0e7311fb233135ca0caeff48740f668ff78d6cdf9585f6ec35f903c4a6fa6a5853ed2b050977#npm:3.1.0", {\
2039
+ "packageLocation": "./.yarn/__virtual__/knex-virtual-2165dbcf21/0/cache/knex-npm-3.1.0-87fad39c7a-3905f8d279.zip/node_modules/knex/",\
2040
2040
  "packageDependencies": [\
2041
- ["knex", "virtual:4f0316c76b384a8421df072012eb837a6300b9a5670bff4df3dc0e7311fb233135ca0caeff48740f668ff78d6cdf9585f6ec35f903c4a6fa6a5853ed2b050977#npm:2.5.1"],\
2041
+ ["knex", "virtual:4f0316c76b384a8421df072012eb837a6300b9a5670bff4df3dc0e7311fb233135ca0caeff48740f668ff78d6cdf9585f6ec35f903c4a6fa6a5853ed2b050977#npm:3.1.0"],\
2042
2042
  ["@types/better-sqlite3", null],\
2043
2043
  ["@types/mysql", null],\
2044
2044
  ["@types/mysql2", null],\
@@ -2059,7 +2059,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
2059
2059
  ["mysql", null],\
2060
2060
  ["mysql2", "npm:3.6.1"],\
2061
2061
  ["pg", null],\
2062
- ["pg-connection-string", "npm:2.6.1"],\
2062
+ ["pg-connection-string", "npm:2.6.2"],\
2063
2063
  ["pg-native", null],\
2064
2064
  ["rechoir", "npm:0.8.0"],\
2065
2065
  ["resolve-from", "npm:5.0.0"],\
@@ -2588,10 +2588,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
2588
2588
  }]\
2589
2589
  ]],\
2590
2590
  ["pg-connection-string", [\
2591
- ["npm:2.6.1", {\
2592
- "packageLocation": "./.yarn/cache/pg-connection-string-npm-2.6.1-f3f97c91a5-882344a47e.zip/node_modules/pg-connection-string/",\
2591
+ ["npm:2.6.2", {\
2592
+ "packageLocation": "./.yarn/cache/pg-connection-string-npm-2.6.2-43a4a40be5-22265882c3.zip/node_modules/pg-connection-string/",\
2593
2593
  "packageDependencies": [\
2594
- ["pg-connection-string", "npm:2.6.1"]\
2594
+ ["pg-connection-string", "npm:2.6.2"]\
2595
2595
  ],\
2596
2596
  "linkType": "HARD"\
2597
2597
  }]\
@@ -3126,7 +3126,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
3126
3126
  ["fs-extra", "npm:10.1.0"],\
3127
3127
  ["glob", "npm:8.0.3"],\
3128
3128
  ["inflection", "npm:1.13.2"],\
3129
- ["knex", "virtual:4f0316c76b384a8421df072012eb837a6300b9a5670bff4df3dc0e7311fb233135ca0caeff48740f668ff78d6cdf9585f6ec35f903c4a6fa6a5853ed2b050977#npm:2.5.1"],\
3129
+ ["knex", "virtual:4f0316c76b384a8421df072012eb837a6300b9a5670bff4df3dc0e7311fb233135ca0caeff48740f668ff78d6cdf9585f6ec35f903c4a6fa6a5853ed2b050977#npm:3.1.0"],\
3130
3130
  ["lodash", "npm:4.17.21"],\
3131
3131
  ["luxon", "npm:3.0.3"],\
3132
3132
  ["mysql2", "npm:3.6.1"],\
package/dist/bin/cli.js CHANGED
@@ -11,7 +11,7 @@
11
11
 
12
12
 
13
13
 
14
- var _chunkEYNTBWQCjs = require('../chunk-EYNTBWQC.js');
14
+ var _chunk77XBF27Ljs = require('../chunk-77XBF27L.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 (_chunkEYNTBWQCjs.isEnumProp.call(void 0, prop)) {
57
+ if (_chunk77XBF27Ljs.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) => _chunkEYNTBWQCjs.isRelationProp.call(void 0, prop)).reduce((result, prop) => {
70
+ this.relations = props.filter((prop) => _chunk77XBF27Ljs.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) => !_chunkEYNTBWQCjs.isVirtualProp.call(void 0, this.propsDict[field])
115
+ (field) => !_chunk77XBF27Ljs.isVirtualProp.call(void 0, this.propsDict[field])
116
116
  );
117
117
  const virtualFields = fields2.filter(
118
- (field) => _chunkEYNTBWQCjs.isVirtualProp.call(void 0, this.propsDict[field])
118
+ (field) => _chunk77XBF27Ljs.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 (_chunkEYNTBWQCjs.isOneToOneRelationProp.call(void 0, relation) || _chunkEYNTBWQCjs.isBelongsToOneRelationProp.call(void 0, relation)) {
139
+ if (_chunk77XBF27Ljs.isOneToOneRelationProp.call(void 0, relation) || _chunk77XBF27Ljs.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 (_chunkEYNTBWQCjs.isOneToOneRelationProp.call(void 0, relation)) {
157
+ if (_chunk77XBF27Ljs.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 (_chunkEYNTBWQCjs.isOneToOneRelationProp.call(void 0, relation)) {
187
+ if (_chunk77XBF27Ljs.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 (_chunkEYNTBWQCjs.isHasManyRelationProp.call(void 0, relation) || _chunkEYNTBWQCjs.isManyToManyRelationProp.call(void 0, relation)) {
226
+ } else if (_chunk77XBF27Ljs.isHasManyRelationProp.call(void 0, relation) || _chunk77XBF27Ljs.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 (_chunkEYNTBWQCjs.isHasManyRelationProp.call(void 0, relation)) {
232
+ if (_chunk77XBF27Ljs.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 (_chunkEYNTBWQCjs.isManyToManyRelationProp.call(void 0, relation)) {
240
+ } else if (_chunk77XBF27Ljs.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 (!_chunkEYNTBWQCjs.isRelationProp.call(void 0, prop)) {
323
+ if (!_chunk77XBF27Ljs.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 (_chunkEYNTBWQCjs.isBelongsToOneRelationProp.call(void 0, prop) || _chunkEYNTBWQCjs.isOneToOneRelationProp.call(void 0, prop)) {
327
+ if (_chunk77XBF27Ljs.isBelongsToOneRelationProp.call(void 0, prop) || _chunk77XBF27Ljs.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 = _chunkEYNTBWQCjs.isBelongsToOneRelationProp.call(void 0, prop) || _chunkEYNTBWQCjs.isOneToOneRelationProp.call(void 0, prop) ? "object" : "array";
342
+ const nodeType = _chunk77XBF27Ljs.isBelongsToOneRelationProp.call(void 0, prop) || _chunk77XBF27Ljs.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 (_chunkEYNTBWQCjs.isRelationProp.call(void 0, prop)) {
356
+ if (_chunk77XBF27Ljs.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
- _chunkEYNTBWQCjs.Sonamu.apiRootPath,
396
+ _chunk77XBF27Ljs.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
- _chunkEYNTBWQCjs.Sonamu.apiRootPath,
413
+ _chunk77XBF27Ljs.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
- _chunkEYNTBWQCjs.Sonamu.apiRootPath,
457
+ _chunk77XBF27Ljs.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 _chunkEYNTBWQCjs.Sonamu.init(false, false);
553
+ await _chunk77XBF27Ljs.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: _chunkEYNTBWQCjs.EntityManager.getAllParentIds().map((entityId) => ({
560
+ choices: _chunk77XBF27Ljs.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 _chunkEYNTBWQCjs.FixtureManager.destory();
611
- await _chunkEYNTBWQCjs.BaseModel.destroy();
610
+ await _chunk77XBF27Ljs.FixtureManager.destory();
611
+ await _chunk77XBF27Ljs.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, _chunkEYNTBWQCjs.Migrator)({
616
+ migrator = new (0, _chunk77XBF27Ljs.Migrator)({
617
617
  mode: "dev"
618
618
  });
619
619
  }
620
620
  async function setupFixtureManager() {
621
- _chunkEYNTBWQCjs.FixtureManager.init();
621
+ _chunk77XBF27Ljs.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 = _chunkEYNTBWQCjs.Sonamu.dbConfig.development_master;
646
+ const srcConfig = _chunk77XBF27Ljs.Sonamu.dbConfig.development_master;
647
647
  const targets = [
648
648
  {
649
649
  label: "(REMOTE) Fixture DB",
650
- config: _chunkEYNTBWQCjs.Sonamu.dbConfig.fixture_remote
650
+ config: _chunk77XBF27Ljs.Sonamu.dbConfig.fixture_remote
651
651
  },
652
652
  {
653
653
  label: "(LOCAL) Fixture DB",
654
- config: _chunkEYNTBWQCjs.Sonamu.dbConfig.fixture_local,
654
+ config: _chunk77XBF27Ljs.Sonamu.dbConfig.fixture_local,
655
655
  toSkip: (() => {
656
- const remoteConn = _chunkEYNTBWQCjs.Sonamu.dbConfig.fixture_remote.connection;
657
- const localConn = _chunkEYNTBWQCjs.Sonamu.dbConfig.fixture_local.connection;
656
+ const remoteConn = _chunk77XBF27Ljs.Sonamu.dbConfig.fixture_remote.connection;
657
+ const localConn = _chunk77XBF27Ljs.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: _chunkEYNTBWQCjs.Sonamu.dbConfig.test
663
+ config: _chunk77XBF27Ljs.Sonamu.dbConfig.test
664
664
  }
665
665
  ];
666
666
  console.log("DUMP...");
@@ -713,15 +713,15 @@ async function fixture_init() {
713
713
  }
714
714
  async function fixture_import(entityId, recordIds) {
715
715
  await setupFixtureManager();
716
- await _chunkEYNTBWQCjs.FixtureManager.importFixture(entityId, recordIds);
717
- await _chunkEYNTBWQCjs.FixtureManager.sync();
716
+ await _chunk77XBF27Ljs.FixtureManager.importFixture(entityId, recordIds);
717
+ await _chunk77XBF27Ljs.FixtureManager.sync();
718
718
  }
719
719
  async function fixture_sync() {
720
720
  await setupFixtureManager();
721
- await _chunkEYNTBWQCjs.FixtureManager.sync();
721
+ await _chunk77XBF27Ljs.FixtureManager.sync();
722
722
  }
723
723
  async function stub_practice(name) {
724
- const practiceDir = _path2.default.join(_chunkEYNTBWQCjs.Sonamu.apiRootPath, "src", "practices");
724
+ const practiceDir = _path2.default.join(_chunk77XBF27Ljs.Sonamu.apiRootPath, "src", "practices");
725
725
  const fileNames = _fsextra2.default.readdirSync(practiceDir);
726
726
  const maxSeqNo = (() => {
727
727
  if (_fsextra2.default.existsSync(practiceDir) === false) {
@@ -764,22 +764,22 @@ async function stub_practice(name) {
764
764
  _child_process.execSync.call(void 0, `echo "${runCode}" | pbcopy`);
765
765
  }
766
766
  async function stub_entity(entityId) {
767
- await _chunkEYNTBWQCjs.Sonamu.syncer.createEntity(entityId);
767
+ await _chunk77XBF27Ljs.Sonamu.syncer.createEntity(entityId);
768
768
  }
769
769
  async function scaffold_model(entityId) {
770
- await _chunkEYNTBWQCjs.Sonamu.syncer.generateTemplate("model", {
770
+ await _chunk77XBF27Ljs.Sonamu.syncer.generateTemplate("model", {
771
771
  entityId
772
772
  });
773
773
  }
774
774
  async function scaffold_model_test(entityId) {
775
- await _chunkEYNTBWQCjs.Sonamu.syncer.generateTemplate("model_test", {
775
+ await _chunk77XBF27Ljs.Sonamu.syncer.generateTemplate("model_test", {
776
776
  entityId
777
777
  });
778
778
  }
779
779
  async function ui() {
780
780
  try {
781
781
  const sonamuUI = await Promise.resolve().then(() => _interopRequireWildcard(require("@sonamu-kit/ui")));
782
- sonamuUI.startServers(_chunkEYNTBWQCjs.Sonamu.apiRootPath);
782
+ sonamuUI.startServers(_chunk77XBF27Ljs.Sonamu.apiRootPath);
783
783
  } catch (e) {
784
784
  if (e instanceof Error && e.message.includes("isn't declared")) {
785
785
  console.log(`You need to install ${_chalk2.default.blue(`@sonamu-kit/ui`)} first.`);
@@ -818,7 +818,7 @@ async function smd_migration() {
818
818
  const parentNames = SMDManager.getNamesFromId(_nullishCoalesce(smd.parentId, () => ( smd.id)));
819
819
  const names = SMDManager.getNamesFromId(smd.id);
820
820
  const dstPath = _path2.default.join(
821
- _chunkEYNTBWQCjs.Sonamu.apiRootPath,
821
+ _chunk77XBF27Ljs.Sonamu.apiRootPath,
822
822
  "src",
823
823
  "application",
824
824
  parentNames.fs,
@@ -830,7 +830,7 @@ async function smd_migration() {
830
830
  _fsextra2.default.writeFileSync(dstPath, formatted);
831
831
  console.log(_chalk2.default.blue(`CREATED: ${dstPath}`));
832
832
  const srcSmdPath = _path2.default.join(
833
- _chunkEYNTBWQCjs.Sonamu.apiRootPath,
833
+ _chunk77XBF27Ljs.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 dstSmdPath = srcSmdPath.replace("/src/", "/dist/").replace(/\.ts$/, ".js");
840
840
  const srcEnumsPath = _path2.default.join(
841
- _chunkEYNTBWQCjs.Sonamu.apiRootPath,
841
+ _chunk77XBF27Ljs.Sonamu.apiRootPath,
842
842
  "src",
843
843
  "application",
844
844
  parentNames.fs,
@@ -846,7 +846,7 @@ async function smd_migration() {
846
846
  );
847
847
  const dstEnumsPath = srcEnumsPath.replace("/src/", "/dist/").replace(/\.ts$/, ".js");
848
848
  const srcGeneratedPath = _path2.default.join(
849
- _chunkEYNTBWQCjs.Sonamu.apiRootPath,
849
+ _chunk77XBF27Ljs.Sonamu.apiRootPath,
850
850
  "src",
851
851
  "application",
852
852
  parentNames.fs,
@@ -858,8 +858,8 @@ async function smd_migration() {
858
858
  dstSmdPath,
859
859
  srcEnumsPath,
860
860
  dstEnumsPath,
861
- ..._chunkEYNTBWQCjs.Sonamu.config.sync.targets.map(
862
- (target) => srcEnumsPath.replace(_chunkEYNTBWQCjs.Sonamu.apiRootPath, _path2.default.join(_chunkEYNTBWQCjs.Sonamu.appRootPath, target)).replace("/src/application/", "/src/services/")
861
+ ..._chunk77XBF27Ljs.Sonamu.config.sync.targets.map(
862
+ (target) => srcEnumsPath.replace(_chunk77XBF27Ljs.Sonamu.apiRootPath, _path2.default.join(_chunk77XBF27Ljs.Sonamu.appRootPath, target)).replace("/src/application/", "/src/services/")
863
863
  ),
864
864
  srcGeneratedPath,
865
865
  dstGeneratedPath
@@ -873,11 +873,11 @@ async function smd_migration() {
873
873
  });
874
874
  }
875
875
  console.log("Entity\uB85C \uB2E4\uC2DC \uB85C\uB4DC\uD569\uB2C8\uB2E4.");
876
- _chunkEYNTBWQCjs.EntityManager.isAutoloaded = false;
877
- await _chunkEYNTBWQCjs.EntityManager.autoload();
878
- const entityIds = _chunkEYNTBWQCjs.EntityManager.getAllParentIds();
876
+ _chunk77XBF27Ljs.EntityManager.isAutoloaded = false;
877
+ await _chunk77XBF27Ljs.EntityManager.autoload();
878
+ const entityIds = _chunk77XBF27Ljs.EntityManager.getAllParentIds();
879
879
  for await (const entityId of entityIds) {
880
- await _chunkEYNTBWQCjs.Sonamu.syncer.generateTemplate("generated", { entityId });
880
+ await _chunk77XBF27Ljs.Sonamu.syncer.generateTemplate("generated", { entityId });
881
881
  }
882
882
  }
883
883
  //# sourceMappingURL=cli.js.map
@@ -4794,7 +4794,6 @@ function attachOnDuplicateUpdate() {
4794
4794
  );
4795
4795
  });
4796
4796
  } catch (e19) {
4797
- console.log("already attached");
4798
4797
  }
4799
4798
  }
4800
4799
 
@@ -7445,4 +7444,4 @@ var FixtureManager = new FixtureManagerClass();
7445
7444
 
7446
7445
 
7447
7446
  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.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;
7448
- //# sourceMappingURL=chunk-EYNTBWQC.js.map
7447
+ //# sourceMappingURL=chunk-77XBF27L.js.map