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.
- package/dist/bin/cli.js +51 -51
- package/dist/bin/cli.mjs +2 -2
- package/dist/{chunk-634GIW42.mjs → chunk-FKZK27YL.mjs} +2 -2
- package/dist/{chunk-GUKIIOZI.js → chunk-FYLFH3Q6.js} +100 -100
- package/dist/{chunk-QIHV5UYF.js → chunk-IEMX4VPN.js} +4 -4
- package/dist/{chunk-Z53BUBO4.js → chunk-INTZUNZ6.js} +7 -7
- package/dist/{chunk-PGPMEMK6.mjs → chunk-JQJTQQ7D.mjs} +2 -2
- package/dist/{chunk-GUV6I64Y.mjs → chunk-LNZTU4JC.mjs} +2 -2
- package/dist/{chunk-GUV6I64Y.mjs.map → chunk-LNZTU4JC.mjs.map} +1 -1
- package/dist/{chunk-A2BDNO7E.mjs → chunk-NPLUHS5L.mjs} +2 -2
- package/dist/{chunk-KX4762I3.js → chunk-ZLFDB43J.js} +2 -2
- package/dist/{chunk-KX4762I3.js.map → chunk-ZLFDB43J.js.map} +1 -1
- package/dist/database/drivers/knex/base-model.js +8 -8
- package/dist/database/drivers/knex/base-model.mjs +3 -3
- package/dist/database/drivers/kysely/base-model.js +9 -9
- package/dist/database/drivers/kysely/base-model.mjs +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
- package/src/syncer/syncer.ts +1 -1
- /package/dist/{chunk-634GIW42.mjs.map → chunk-FKZK27YL.mjs.map} +0 -0
- /package/dist/{chunk-GUKIIOZI.js.map → chunk-FYLFH3Q6.js.map} +0 -0
- /package/dist/{chunk-QIHV5UYF.js.map → chunk-IEMX4VPN.js.map} +0 -0
- /package/dist/{chunk-Z53BUBO4.js.map → chunk-INTZUNZ6.js.map} +0 -0
- /package/dist/{chunk-PGPMEMK6.mjs.map → chunk-JQJTQQ7D.mjs.map} +0 -0
- /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-
|
|
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-
|
|
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.
|
|
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-
|
|
7574
|
+
//# sourceMappingURL=chunk-ZLFDB43J.js.map
|