sonamu 0.4.11 → 0.4.12

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 (26) hide show
  1. package/dist/bin/cli.js +51 -51
  2. package/dist/bin/cli.mjs +2 -2
  3. package/dist/{chunk-634GIW42.mjs → chunk-FKZK27YL.mjs} +2 -2
  4. package/dist/{chunk-GUKIIOZI.js → chunk-FYLFH3Q6.js} +100 -100
  5. package/dist/{chunk-QIHV5UYF.js → chunk-IEMX4VPN.js} +4 -4
  6. package/dist/{chunk-Z53BUBO4.js → chunk-INTZUNZ6.js} +7 -7
  7. package/dist/{chunk-PGPMEMK6.mjs → chunk-JQJTQQ7D.mjs} +2 -2
  8. package/dist/{chunk-GUV6I64Y.mjs → chunk-LNZTU4JC.mjs} +2 -2
  9. package/dist/{chunk-GUV6I64Y.mjs.map → chunk-LNZTU4JC.mjs.map} +1 -1
  10. package/dist/{chunk-A2BDNO7E.mjs → chunk-NPLUHS5L.mjs} +2 -2
  11. package/dist/{chunk-KX4762I3.js → chunk-ZLFDB43J.js} +2 -2
  12. package/dist/{chunk-KX4762I3.js.map → chunk-ZLFDB43J.js.map} +1 -1
  13. package/dist/database/drivers/knex/base-model.js +8 -8
  14. package/dist/database/drivers/knex/base-model.mjs +3 -3
  15. package/dist/database/drivers/kysely/base-model.js +9 -9
  16. package/dist/database/drivers/kysely/base-model.mjs +3 -3
  17. package/dist/index.js +9 -9
  18. package/dist/index.mjs +3 -3
  19. package/package.json +1 -1
  20. package/src/syncer/syncer.ts +1 -1
  21. /package/dist/{chunk-634GIW42.mjs.map → chunk-FKZK27YL.mjs.map} +0 -0
  22. /package/dist/{chunk-GUKIIOZI.js.map → chunk-FYLFH3Q6.js.map} +0 -0
  23. /package/dist/{chunk-QIHV5UYF.js.map → chunk-IEMX4VPN.js.map} +0 -0
  24. /package/dist/{chunk-Z53BUBO4.js.map → chunk-INTZUNZ6.js.map} +0 -0
  25. /package/dist/{chunk-PGPMEMK6.mjs.map → chunk-JQJTQQ7D.mjs.map} +0 -0
  26. /package/dist/{chunk-A2BDNO7E.mjs.map → chunk-NPLUHS5L.mjs.map} +0 -0
@@ -2,7 +2,7 @@ import {
2
2
  DB,
3
3
  EntityManager,
4
4
  nonNullable
5
- } from "./chunk-GUV6I64Y.mjs";
5
+ } from "./chunk-LNZTU4JC.mjs";
6
6
 
7
7
  // src/database/upsert-builder.ts
8
8
  import { v4 as uuidv4 } from "uuid";
@@ -277,4 +277,4 @@ export {
277
277
  isRefField,
278
278
  UpsertBuilder
279
279
  };
280
- //# sourceMappingURL=chunk-A2BDNO7E.mjs.map
280
+ //# sourceMappingURL=chunk-NPLUHS5L.mjs.map
@@ -6317,7 +6317,7 @@ var Syncer = (_class4 = class {
6317
6317
  await EntityManager.reload();
6318
6318
  await Promise.all([
6319
6319
  this.actionGenerateSchemas(),
6320
- ...form.entityId === void 0 ? [
6320
+ ...form.parentId === void 0 ? [
6321
6321
  this.generateTemplate("init_types", {
6322
6322
  entityId: form.entityId
6323
6323
  })
@@ -7571,4 +7571,4 @@ var Entity = (_class7 = class {
7571
7571
 
7572
7572
 
7573
7573
  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;
7574
- //# sourceMappingURL=chunk-KX4762I3.js.map
7574
+ //# sourceMappingURL=chunk-ZLFDB43J.js.map