joist-codegen 2.4.0-next.40 → 2.4.0-next.42

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.
@@ -1 +1 @@
1
- {"version":3,"file":"symbols.cjs","names":["imp"],"sources":["../src/symbols.ts"],"sourcesContent":["import { imp } from \"ts-poet\";\n\nexport const ProjectEntity = imp(`t:Entity@./entities.ts`);\nexport const EntityManager = imp(\"EntityManager@./entities.ts\");\n\nexport const ConfigApi = imp(\"ConfigApi@joist-orm\");\nexport const newScopeFn = imp(\"newScopeFn@joist-orm\");\nexport const Scope = imp(\"t:Scope@joist-orm\");\nexport const FieldStatus = imp(\"t:FieldStatus@joist-orm\");\nexport const Entity = imp(\"t:Entity@joist-orm\");\nexport const BaseEntity = imp(\"BaseEntity@joist-orm\");\nexport const Flavor = imp(\"t:Flavor@joist-orm\");\nexport const Reference = imp(\"t:Reference@joist-orm\");\nexport const Collection = imp(\"t:Collection@joist-orm\");\nexport const EnumCollection = imp(\"t:EnumCollection@joist-orm\");\nexport const LargeCollection = imp(\"t:LargeCollection@joist-orm\");\nexport const OneToManyCollection = imp(\"OneToManyCollection@joist-orm\");\nexport const JoistEntityManager = imp(\"EntityManager@joist-orm\");\nexport const EntityMetadata = imp(\"t:EntityMetadata@joist-orm\");\nexport const EnumMetadata = imp(\"t:EnumMetadata@joist-orm\");\nexport const Lens = imp(\"t:Lens@joist-orm\");\nexport const KeySerde = imp(\"KeySerde@joist-orm\");\nexport const Column = imp(\"Column@joist-orm\");\nexport const ColumnDescriptors = imp(\"t:ColumnDescriptors@joist-orm\");\nexport const SimpleFieldSerde = imp(\"SimpleFieldSerde@joist-orm\");\nexport const PolyComponent = imp(\"PolyComponent@joist-orm\");\nexport const polymorphicField = imp(\"polymorphicField@joist-orm\");\nexport const ManyToOneReference = imp(\"t:ManyToOneReference@joist-orm\");\nexport const LazyField = imp(\"t:LazyField@joist-orm\");\nexport const hasLazyField = imp(\"hasLazyField@joist-orm\");\nexport const ReadOnlyCollection = imp(\"t:ReadOnlyCollection@joist-orm\");\nexport const PolymorphicReference = imp(\"t:PolymorphicReference@joist-orm\");\nexport const OneToOneReference = imp(\"t:OneToOneReference@joist-orm\");\nexport const ManyToManyCollection = imp(\"ManyToManyCollection@joist-orm\");\nexport const EnumFieldSerde = imp(\"EnumFieldSerde@joist-orm\");\nexport const EnumArrayFieldSerde = imp(\"EnumArrayFieldSerde@joist-orm\");\nexport const PolymorphicKeySerde = imp(\"PolymorphicKeySerde@joist-orm\");\nexport const PrimitiveSerde = imp(\"PrimitiveSerde@joist-orm\");\nexport const BigIntSerde = imp(\"BigIntSerde@joist-orm\");\nexport const DateSerde = imp(\"DateSerde@joist-orm\");\nexport const PlainDateSerde = imp(\"PlainDateSerde@joist-orm\");\nexport const PlainTimeSerde = imp(\"PlainTimeSerde@joist-orm\");\nexport const PlainDateTimeSerde = imp(\"PlainDateTimeSerde@joist-orm\");\nexport const ZonedDateTimeSerde = imp(\"ZonedDateTimeSerde@joist-orm\");\nexport const JsonSerde = imp(\"JsonSerde@joist-orm\");\nexport const SuperstructSerde = imp(\"SuperstructSerde@joist-orm\");\nexport const TaggedId = imp(\"t:TaggedId@joist-orm\");\nexport const ZodSerde = imp(\"ZodSerde@joist-orm\");\nexport const CustomSerdeAdapter = imp(\"CustomSerdeAdapter@joist-orm\");\nexport const DecimalToNumberSerde = imp(\"DecimalToNumberSerde@joist-orm\");\nexport const fail = imp(\"fail@joist-orm\");\nexport const failNoIdYet = imp(\"failNoIdYet@joist-orm\");\nexport const setOpts = imp(\"setOpts@joist-orm\");\nexport const getField = imp(\"getField@joist-orm\");\nexport const setField = imp(\"setField@joist-orm\");\nexport const OrderBy = imp(\"t:OrderBy@joist-orm\");\nexport const OptsOf = imp(\"t:OptsOf@joist-orm\");\nexport const FieldsOf = imp(\"t:FieldsOf@joist-orm\");\nexport const RelationsOf = imp(\"t:RelationsOf@joist-orm\");\nexport const IdOf = imp(\"t:IdOf@joist-orm\");\nexport const PartialOrNull = imp(\"t:PartialOrNull@joist-orm\");\nexport const DeepPartialOrNull = imp(\"t:DeepPartialOrNull@joist-orm\");\nexport const BooleanFilter = imp(\"t:BooleanFilter@joist-orm\");\nexport const ValueFilter = imp(\"t:ValueFilter@joist-orm\");\nexport const EntityFilter = imp(\"t:EntityFilter@joist-orm\");\nexport const BooleanGraphQLFilter = imp(\"t:BooleanGraphQLFilter@joist-orm\");\nexport const EntityGraphQLFilter = imp(\"t:EntityGraphQLFilter@joist-orm\");\nexport const EnumGraphQLFilter = imp(\"t:EnumGraphQLFilter@joist-orm\");\nexport const ValueGraphQLFilter = imp(\"t:ValueGraphQLFilter@joist-orm\");\nexport const FilterOf = imp(\"t:FilterOf@joist-orm\");\nexport const GraphQLFilterOf = imp(\"t:GraphQLFilterOf@joist-orm\");\nexport const JsonHint = imp(\"t:JsonHint@joist-orm\");\nexport const ToJsonHint = imp(\"t:ToJsonHint@joist-orm\");\nexport const JsonPayload = imp(\"t:JsonPayload@joist-orm\");\nexport const configureMetadata = imp(\"configureMetadata@joist-orm\");\nexport const newRequiredRule = imp(\"newRequiredRule@joist-orm\");\nexport const newRequiredLazyFieldRule = imp(\"newRequiredLazyFieldRule@joist-orm\");\nexport const cannotBeUpdated = imp(\"cannotBeUpdated@joist-orm\");\nexport const mustBeSubType = imp(\"mustBeSubType@joist-orm\");\nexport const cleanStringValue = imp(\"cleanStringValue@joist-orm\");\nexport const Changes = imp(\"t:Changes@joist-orm\");\nexport const newChangesProxy = imp(\"newChangesProxy@joist-orm\");\nexport const nowUTC = imp(\"nowUTC@joist-orm\");\nexport const LoadHint = imp(\"t:LoadHint@joist-orm\");\nexport const Loaded = imp(\"t:Loaded@joist-orm\");\nexport const isLoaded = imp(\"isLoaded@joist-orm\");\nexport const getInstanceData = imp(\"getInstanceData@joist-orm\");\nexport const isEntity = imp(\"isEntity@joist-orm\");\nexport const loadLens = imp(\"loadLens@joist-orm\");\nexport const hasOneThrough = imp(\"hasOneThrough@joist-orm\");\nexport const hasMany = imp(\"hasMany@joist-orm\");\nexport const hasLargeMany = imp(\"hasLargeMany@joist-orm\");\nexport const hasOne = imp(\"hasOne@joist-orm\");\nexport const hasRecursiveChildren = imp(\"hasRecursiveChildren@joist-orm\");\nexport const hasRecursiveM2m = imp(\"hasRecursiveM2m@joist-orm\");\nexport const hasRecursiveParents = imp(\"hasRecursiveParents@joist-orm\");\nexport const hasOnePolymorphic = imp(\"hasOnePolymorphic@joist-orm\");\nexport const hasOneToOne = imp(\"hasOneToOne@joist-orm\");\nexport const hasManyToMany = imp(\"hasManyToMany@joist-orm\");\nexport const hasEnumCollection = imp(\"hasEnumCollection@joist-orm\");\nexport const hasLargeManyToMany = imp(\"hasLargeManyToMany@joist-orm\");\nexport const newTestInstance = imp(\"newTestInstance@joist-orm\");\nexport const New = imp(\"t:New@joist-orm\");\nexport const DeepNew = imp(\"t:DeepNew@joist-orm\");\nexport const FactoryOpts = imp(\"t:FactoryOpts@joist-orm\");\nexport const SSAssert = imp(\"assert@superstruct\");\nexport const Zod = imp(\"z@zod\");\nexport const EntityConstructor = imp(\"t:EntityConstructor@joist-orm\");\nexport const MaybeAbstractEntityConstructor = imp(\"t:MaybeAbstractEntityConstructor@joist-orm\");\nexport const deTagId = imp(\"deTagId@joist-orm\");\nexport const toIdOf = imp(\"toIdOf@joist-orm\");\nexport const toJSON = imp(\"toJSON@joist-orm\");\nexport const ReactiveField = imp(\"t:ReactiveField@joist-orm\");\nexport const ReactiveReference = imp(\"t:ReactiveReference@joist-orm\");\nexport const ReactiveManyToMany = imp(\"t:ReactiveManyToMany@joist-orm\");\nexport const ReactiveManyToManyOtherSide = imp(\"t:ReactiveManyToManyOtherSide@joist-orm\");\nexport const hasReactiveManyToManyOtherSide = imp(\"hasReactiveManyToManyOtherSide@joist-orm\");\nexport const updatePartial = imp(\"updatePartial@joist-orm\");\nexport const setRuntimeConfig = imp(\"setRuntimeConfig@joist-orm\");\n"],"mappings":";;;AAEA,MAAa,iBAAA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+BAA+B;AACpE,MAAa,sBAAA,GAAqBA,QAAAA,IAAAA,CAAI,gCAAgC;AACtE,MAAa,+BAAA,GAA8BA,QAAAA,IAAAA,CAAI,yCAAyC;AACxF,MAAa,kCAAA,GAAiCA,QAAAA,IAAAA,CAAI,0CAA0C;AAC5F,MAAa,iBAAA,GAAgBA,QAAAA,IAAAA,CAAI,yBAAyB;AAC1D,MAAa,oBAAA,GAAmBA,QAAAA,IAAAA,CAAI,4BAA4B"}
1
+ {"version":3,"file":"symbols.cjs","names":["imp"],"sources":["../src/symbols.ts"],"sourcesContent":["import { imp } from \"ts-poet\";\n\nexport const ProjectEntity = imp(`t:Entity@./entities.ts`);\nexport const EntityManager = imp(\"EntityManager@./entities.ts\");\n\nexport const ConfigApi = imp(\"ConfigApi@joist-orm\");\nexport const newScopeFn = imp(\"newScopeFn@joist-orm\");\nexport const Scope = imp(\"t:Scope@joist-orm\");\nexport const FieldStatus = imp(\"t:FieldStatus@joist-orm\");\nexport const Entity = imp(\"t:Entity@joist-orm\");\nexport const BaseEntity = imp(\"BaseEntity@joist-orm\");\nexport const Flavor = imp(\"t:Flavor@joist-orm\");\nexport const Reference = imp(\"t:Reference@joist-orm\");\nexport const Collection = imp(\"t:Collection@joist-orm\");\nexport const EnumCollection = imp(\"t:EnumCollection@joist-orm\");\nexport const LargeCollection = imp(\"t:LargeCollection@joist-orm\");\nexport const OneToManyCollection = imp(\"OneToManyCollection@joist-orm\");\nexport const JoistEntityManager = imp(\"EntityManager@joist-orm\");\nexport const EntityMetadata = imp(\"t:EntityMetadata@joist-orm\");\nexport const EnumMetadata = imp(\"t:EnumMetadata@joist-orm\");\nexport const Lens = imp(\"t:Lens@joist-orm\");\nexport const KeySerde = imp(\"KeySerde@joist-orm\");\nexport const Column = imp(\"Column@joist-orm\");\nexport const ColumnDescriptors = imp(\"t:ColumnDescriptors@joist-orm\");\nexport const SimpleFieldSerde = imp(\"SimpleFieldSerde@joist-orm\");\nexport const PolyComponent = imp(\"PolyComponent@joist-orm\");\nexport const polymorphicField = imp(\"polymorphicField@joist-orm\");\nexport const ManyToOneReference = imp(\"t:ManyToOneReference@joist-orm\");\nexport const LazyField = imp(\"t:LazyField@joist-orm\");\nexport const hasLazyField = imp(\"hasLazyField@joist-orm\");\nexport const ReadOnlyCollection = imp(\"t:ReadOnlyCollection@joist-orm\");\nexport const PolymorphicReference = imp(\"t:PolymorphicReference@joist-orm\");\nexport const OneToOneReference = imp(\"t:OneToOneReference@joist-orm\");\nexport const ManyToManyCollection = imp(\"ManyToManyCollection@joist-orm\");\nexport const EnumFieldSerde = imp(\"EnumFieldSerde@joist-orm\");\nexport const EnumArrayFieldSerde = imp(\"EnumArrayFieldSerde@joist-orm\");\nexport const PolymorphicKeySerde = imp(\"PolymorphicKeySerde@joist-orm\");\nexport const PrimitiveSerde = imp(\"PrimitiveSerde@joist-orm\");\nexport const BigIntSerde = imp(\"BigIntSerde@joist-orm\");\nexport const DateSerde = imp(\"DateSerde@joist-orm\");\nexport const PlainDateSerde = imp(\"PlainDateSerde@joist-orm\");\nexport const PlainTimeSerde = imp(\"PlainTimeSerde@joist-orm\");\nexport const PlainDateTimeSerde = imp(\"PlainDateTimeSerde@joist-orm\");\nexport const ZonedDateTimeSerde = imp(\"ZonedDateTimeSerde@joist-orm\");\nexport const JsonSerde = imp(\"JsonSerde@joist-orm\");\nexport const VectorSerde = imp(\"VectorSerde@joist-orm\");\nexport const SuperstructSerde = imp(\"SuperstructSerde@joist-orm\");\nexport const TaggedId = imp(\"t:TaggedId@joist-orm\");\nexport const ZodSerde = imp(\"ZodSerde@joist-orm\");\nexport const CustomSerdeAdapter = imp(\"CustomSerdeAdapter@joist-orm\");\nexport const DecimalToNumberSerde = imp(\"DecimalToNumberSerde@joist-orm\");\nexport const fail = imp(\"fail@joist-orm\");\nexport const failNoIdYet = imp(\"failNoIdYet@joist-orm\");\nexport const setOpts = imp(\"setOpts@joist-orm\");\nexport const getField = imp(\"getField@joist-orm\");\nexport const setField = imp(\"setField@joist-orm\");\nexport const OrderBy = imp(\"t:OrderBy@joist-orm\");\nexport const OptsOf = imp(\"t:OptsOf@joist-orm\");\nexport const FieldsOf = imp(\"t:FieldsOf@joist-orm\");\nexport const RelationsOf = imp(\"t:RelationsOf@joist-orm\");\nexport const IdOf = imp(\"t:IdOf@joist-orm\");\nexport const PartialOrNull = imp(\"t:PartialOrNull@joist-orm\");\nexport const DeepPartialOrNull = imp(\"t:DeepPartialOrNull@joist-orm\");\nexport const BooleanFilter = imp(\"t:BooleanFilter@joist-orm\");\nexport const ValueFilter = imp(\"t:ValueFilter@joist-orm\");\nexport const EntityFilter = imp(\"t:EntityFilter@joist-orm\");\nexport const BooleanGraphQLFilter = imp(\"t:BooleanGraphQLFilter@joist-orm\");\nexport const EntityGraphQLFilter = imp(\"t:EntityGraphQLFilter@joist-orm\");\nexport const EnumGraphQLFilter = imp(\"t:EnumGraphQLFilter@joist-orm\");\nexport const ValueGraphQLFilter = imp(\"t:ValueGraphQLFilter@joist-orm\");\nexport const FilterOf = imp(\"t:FilterOf@joist-orm\");\nexport const GraphQLFilterOf = imp(\"t:GraphQLFilterOf@joist-orm\");\nexport const JsonHint = imp(\"t:JsonHint@joist-orm\");\nexport const ToJsonHint = imp(\"t:ToJsonHint@joist-orm\");\nexport const JsonPayload = imp(\"t:JsonPayload@joist-orm\");\nexport const configureMetadata = imp(\"configureMetadata@joist-orm\");\nexport const newRequiredRule = imp(\"newRequiredRule@joist-orm\");\nexport const newRequiredLazyFieldRule = imp(\"newRequiredLazyFieldRule@joist-orm\");\nexport const cannotBeUpdated = imp(\"cannotBeUpdated@joist-orm\");\nexport const mustBeSubType = imp(\"mustBeSubType@joist-orm\");\nexport const cleanStringValue = imp(\"cleanStringValue@joist-orm\");\nexport const Changes = imp(\"t:Changes@joist-orm\");\nexport const newChangesProxy = imp(\"newChangesProxy@joist-orm\");\nexport const nowUTC = imp(\"nowUTC@joist-orm\");\nexport const LoadHint = imp(\"t:LoadHint@joist-orm\");\nexport const Loaded = imp(\"t:Loaded@joist-orm\");\nexport const isLoaded = imp(\"isLoaded@joist-orm\");\nexport const getInstanceData = imp(\"getInstanceData@joist-orm\");\nexport const isEntity = imp(\"isEntity@joist-orm\");\nexport const loadLens = imp(\"loadLens@joist-orm\");\nexport const hasOneThrough = imp(\"hasOneThrough@joist-orm\");\nexport const hasMany = imp(\"hasMany@joist-orm\");\nexport const hasLargeMany = imp(\"hasLargeMany@joist-orm\");\nexport const hasOne = imp(\"hasOne@joist-orm\");\nexport const hasRecursiveChildren = imp(\"hasRecursiveChildren@joist-orm\");\nexport const hasRecursiveM2m = imp(\"hasRecursiveM2m@joist-orm\");\nexport const hasRecursiveParents = imp(\"hasRecursiveParents@joist-orm\");\nexport const hasOnePolymorphic = imp(\"hasOnePolymorphic@joist-orm\");\nexport const hasOneToOne = imp(\"hasOneToOne@joist-orm\");\nexport const hasManyToMany = imp(\"hasManyToMany@joist-orm\");\nexport const hasEnumCollection = imp(\"hasEnumCollection@joist-orm\");\nexport const hasLargeManyToMany = imp(\"hasLargeManyToMany@joist-orm\");\nexport const newTestInstance = imp(\"newTestInstance@joist-orm\");\nexport const New = imp(\"t:New@joist-orm\");\nexport const DeepNew = imp(\"t:DeepNew@joist-orm\");\nexport const FactoryOpts = imp(\"t:FactoryOpts@joist-orm\");\nexport const SSAssert = imp(\"assert@superstruct\");\nexport const Zod = imp(\"z@zod\");\nexport const EntityConstructor = imp(\"t:EntityConstructor@joist-orm\");\nexport const MaybeAbstractEntityConstructor = imp(\"t:MaybeAbstractEntityConstructor@joist-orm\");\nexport const deTagId = imp(\"deTagId@joist-orm\");\nexport const toIdOf = imp(\"toIdOf@joist-orm\");\nexport const toJSON = imp(\"toJSON@joist-orm\");\nexport const ReactiveField = imp(\"t:ReactiveField@joist-orm\");\nexport const ReactiveReference = imp(\"t:ReactiveReference@joist-orm\");\nexport const ReactiveManyToMany = imp(\"t:ReactiveManyToMany@joist-orm\");\nexport const ReactiveManyToManyOtherSide = imp(\"t:ReactiveManyToManyOtherSide@joist-orm\");\nexport const hasReactiveManyToManyOtherSide = imp(\"hasReactiveManyToManyOtherSide@joist-orm\");\nexport const updatePartial = imp(\"updatePartial@joist-orm\");\nexport const setRuntimeConfig = imp(\"setRuntimeConfig@joist-orm\");\n"],"mappings":";;;AAEA,MAAa,iBAAA,GAAgBA,QAAAA,IAAAA,CAAI,wBAAwB;AACzD,MAAa,iBAAA,GAAgBA,QAAAA,IAAAA,CAAI,6BAA6B;AAE9D,MAAa,aAAA,GAAYA,QAAAA,IAAAA,CAAI,qBAAqB;AAClD,MAAa,cAAA,GAAaA,QAAAA,IAAAA,CAAI,sBAAsB;AACpD,MAAa,SAAA,GAAQA,QAAAA,IAAAA,CAAI,mBAAmB;AAC5C,MAAa,eAAA,GAAcA,QAAAA,IAAAA,CAAI,yBAAyB;AACxD,MAAa,UAAA,GAASA,QAAAA,IAAAA,CAAI,oBAAoB;AAC9C,MAAa,cAAA,GAAaA,QAAAA,IAAAA,CAAI,sBAAsB;AACpD,MAAa,UAAA,GAASA,QAAAA,IAAAA,CAAI,oBAAoB;AAC9C,MAAa,aAAA,GAAYA,QAAAA,IAAAA,CAAI,uBAAuB;AACpD,MAAa,cAAA,GAAaA,QAAAA,IAAAA,CAAI,wBAAwB;AACtD,MAAa,kBAAA,GAAiBA,QAAAA,IAAAA,CAAI,4BAA4B;AAC9D,MAAa,mBAAA,GAAkBA,QAAAA,IAAAA,CAAI,6BAA6B;AAChE,MAAa,uBAAA,GAAsBA,QAAAA,IAAAA,CAAI,+BAA+B;AACtE,MAAa,sBAAA,GAAqBA,QAAAA,IAAAA,CAAI,yBAAyB;AAC/D,MAAa,kBAAA,GAAiBA,QAAAA,IAAAA,CAAI,4BAA4B;AAC9D,MAAa,gBAAA,GAAeA,QAAAA,IAAAA,CAAI,0BAA0B;AAC1D,MAAa,QAAA,GAAOA,QAAAA,IAAAA,CAAI,kBAAkB;AAC1C,MAAa,YAAA,GAAWA,QAAAA,IAAAA,CAAI,o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AAA,GAAUA,QAAAA,IAAAA,CAAI,mBAAmB;AAC9C,MAAa,UAAA,GAASA,QAAAA,IAAAA,CAAI,kBAAkB;AAC5C,MAAa,UAAA,GAASA,QAAAA,IAAAA,CAAI,kBAAkB;AAC5C,MAAa,iBAAA,GAAgBA,QAAAA,IAAAA,CAAI,2BAA2B;AAC5D,MAAa,qBAAA,GAAoBA,QAAAA,IAAAA,CAAI,+BAA+B;AACpE,MAAa,sBAAA,GAAqBA,QAAAA,IAAAA,CAAI,gCAAgC;AACtE,MAAa,+BAAA,GAA8BA,QAAAA,IAAAA,CAAI,yCAAyC;AACxF,MAAa,kCAAA,GAAiCA,QAAAA,IAAAA,CAAI,0CAA0C;AAC5F,MAAa,iBAAA,GAAgBA,QAAAA,IAAAA,CAAI,yBAAyB;AAC1D,MAAa,oBAAA,GAAmBA,QAAAA,IAAAA,CAAI,4BAA4B"}
@@ -41,6 +41,7 @@ export declare const PlainTimeSerde: import("ts-poet").Import;
41
41
  export declare const PlainDateTimeSerde: import("ts-poet").Import;
42
42
  export declare const ZonedDateTimeSerde: import("ts-poet").Import;
43
43
  export declare const JsonSerde: import("ts-poet").Import;
44
+ export declare const VectorSerde: import("ts-poet").Import;
44
45
  export declare const SuperstructSerde: import("ts-poet").Import;
45
46
  export declare const TaggedId: import("ts-poet").Import;
46
47
  export declare const ZodSerde: import("ts-poet").Import;
@@ -1 +1 @@
1
- {"version":3,"file":"symbols.d.cts","names":[],"sources":["../src/symbols.ts"],"mappings":";qBAEa,iCAAa;qBACb,iCAAa;qBAEb,6BAAS;qBACT,8BAAU;qBACV,yBAAK;qBACL,+BAAW;qBACX,0BAAM;qBACN,8BAAU;qBACV,0BAAM;qBACN,6BAAS;qBACT,8BAAU;qBACV,kCAAc;qBACd,mCAAe;qBACf,uCAAmB;qBACnB,sCAAkB;qBAClB,kCAAc;qBACd,gCAAY;qBACZ,wBAAI;qBACJ,4BAAQ;qBACR,0BAAM;qBACN,qCAAiB;qBACjB,oCAAgB;qB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0BAAM;qBACN,iCAAa;qBACb,qCAAiB;qBACjB,sCAAkB;qBAClB,+CAA2B;qBAC3B,kDAA8B;qBAC9B,iCAAa;qBACb,oCAAgB"}
1
+ {"version":3,"file":"symbols.d.cts","names":[],"sources":["../src/symbols.ts"],"mappings":";qBAEa,iCAAa;qBACb,iCAAa;qBAEb,6BAAS;qBACT,8BAAU;qBACV,yBAAK;qBACL,+BAAW;qBACX,0BAAM;qBACN,8BAAU;qBACV,0BAAM;qBACN,6BAAS;qBACT,8BAAU;qBACV,kCAAc;qBACd,mCAAe;qBACf,uCAAmB;qBACnB,sCAAkB;qBAClB,kCAAc;qBACd,gCAAY;qBACZ,wBAAI;qBACJ,4BAAQ;qBACR,0BAAM;qBACN,qCAAiB;qBACjB,oCAAgB;qBAChB,iCAAa;qBACb,oCAAgB;qBAChB,sCAAkB;qBAClB,6BAAS;qBACT,gCAAY;qBACZ,sCAAkB;qBAClB,wCAAoB;qBACpB,qCAAiB;qBACjB,wCAAoB;qBACpB,kCAAc;qBACd,uCAAmB;qBACnB,uCAAmB;qBACnB,kCAAc;qBACd,+BAAW;qBACX,6BAAS;qBACT,kCAAc;qBACd,kCAAc;qBACd,sCAAkB;qBAClB,sCAAkB;qBAClB,6BAAS;qBACT,+BAAW;qBACX,oCAAgB;qBAChB,4BAAQ;qBACR,4BAAQ;qBACR,sCAAkB;qBAClB,wCAAoB;qBACpB,wBAAI;qBACJ,+BAAW;qBACX,2BAAO;qBACP,4BAAQ;qBACR,4BAAQ;qBACR,2BAAO;qBACP,0BAAM;qBACN,4BAAQ;qBACR,+BAAW;qBACX,wBAAI;qBACJ,iCAAa;qBACb,qCAAiB;qBACjB,iCAAa;qBACb,+BAAW;qBACX,gCAAY;qBACZ,wCAAoB;qBACpB,uCAAmB;qBACnB,qCAAiB;qBACjB,sCAAkB;qBAClB,4BAAQ;qBACR,mCAAe;qBACf,4BAAQ;qBACR,8BAAU;qBACV,+BAAW;qBACX,qCAAiB;qBACjB,mCAAe;qBACf,4CAAwB;qBACxB,mCAAe;qBACf,iCAAa;qBACb,oCAAgB;qBAChB,2BAAO;qBACP,mCAAe;qBACf,0BAAM;qBACN,4BAAQ;qBACR,0BAAM;qBACN,4BAAQ;qBACR,mCAAe;qBACf,4BAAQ;qBACR,4BAAQ;qBACR,iCAAa;qBACb,2BAAO;qBACP,gCAAY;qBACZ,0BAAM;qBACN,wCAAoB;qBACpB,mCAAe;qBACf,uCAAmB;qBACnB,qCAAiB;qBACjB,+BAAW;qBACX,iCAAa;qBACb,qCAAiB;qBACjB,sCAAkB;qBAClB,mCAAe;qBACf,uBAAG;qBACH,2BAAO;qBACP,+BAAW;qBACX,4BAAQ;qBACR,uBAAG;qBACH,qCAAiB;qBACjB,kDAA8B;qBAC9B,2BAAO;qBACP,0BAAM;qBACN,0BAAM;qBACN,iCAAa;qBACb,qCAAiB;qBACjB,sCAAkB;qBAClB,+CAA2B;qBAC3B,kDAA8B;qBAC9B,iCAAa;qBACb,oCAAgB"}
@@ -41,6 +41,7 @@ export declare const PlainTimeSerde: import("ts-poet").Import;
41
41
  export declare const PlainDateTimeSerde: import("ts-poet").Import;
42
42
  export declare const ZonedDateTimeSerde: import("ts-poet").Import;
43
43
  export declare const JsonSerde: import("ts-poet").Import;
44
+ export declare const VectorSerde: import("ts-poet").Import;
44
45
  export declare const SuperstructSerde: import("ts-poet").Import;
45
46
  export declare const TaggedId: import("ts-poet").Import;
46
47
  export declare const ZodSerde: import("ts-poet").Import;
@@ -1 +1 @@
1
- {"version":3,"file":"symbols.d.mts","names":[],"sources":["../src/symbols.ts"],"mappings":";qBAEa,iCAAa;qBACb,iCAAa;qBAEb,6BAAS;qBACT,8BAAU;qBACV,yBAAK;qBACL,+BAAW;qBACX,0BAAM;qBACN,8BAAU;qBACV,0BAAM;qBACN,6BAAS;qBACT,8BAAU;qBACV,kCAAc;qBACd,mCAAe;qBACf,uCAAmB;qBACnB,sCAAkB;qBAClB,kCAAc;qBACd,gCAAY;qBACZ,wBAAI;qB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qCAAiB;qBACjB,kDAA8B;qBAC9B,2BAAO;qBACP,0BAAM;qBACN,0BAAM;qBACN,iCAAa;qBACb,qCAAiB;qBACjB,sCAAkB;qBAClB,+CAA2B;qBAC3B,kDAA8B;qBAC9B,iCAAa;qBACb,oCAAgB"}
1
+ {"version":3,"file":"symbols.d.mts","names":[],"sources":["../src/symbols.ts"],"mappings":";qBAEa,iCAAa;qBACb,iCAAa;qBAEb,6BAAS;qBACT,8BAAU;qBACV,yBAAK;qBACL,+BAAW;qBACX,0BAAM;qBACN,8BAAU;qBACV,0BAAM;qBACN,6BAAS;qBACT,8BAAU;qBACV,kCAAc;qBACd,mCAAe;qBACf,uCAAmB;qBACnB,sCAAkB;qBAClB,kCAAc;qBACd,gCAAY;qBACZ,wBAAI;qBACJ,4BAAQ;qBACR,0BAAM;qBACN,qCAAiB;qBACjB,oCAAgB;qBAChB,iCAAa;qBACb,oCAAgB;qBAChB,sCAAkB;qBAClB,6BAAS;qBACT,gCAAY;qBACZ,sCAAkB;qBAClB,wCAAoB;qBACpB,qCAAiB;qBACjB,wCAAoB;qBACpB,kCAAc;qBACd,uCAAmB;qBACnB,uCAAmB;qBACnB,kCAAc;qBACd,+BAAW;qBACX,6BAAS;qBACT,kCAAc;qBACd,kCAAc;qBACd,sCAAkB;qBAClB,sCAAkB;qBAClB,6BAAS;qBACT,+BAAW;qBACX,oCAAgB;qBAChB,4BAAQ;qBACR,4BAAQ;qBACR,sCAAkB;qBAClB,wCAAoB;qBACpB,wBAAI;qBACJ,+BAAW;qBACX,2BAAO;qBACP,4BAAQ;qBACR,4BAAQ;qBACR,2BAAO;qBACP,0BAAM;qBACN,4BAAQ;qBACR,+BAAW;qBACX,wBAAI;qBACJ,iCAAa;qBACb,qCAAiB;qBACjB,iCAAa;qBACb,+BAAW;qBACX,gCAAY;qBACZ,wCAAoB;qBACpB,uCAAmB;qBACnB,qCAAiB;qBACjB,sCAAkB;qBAClB,4BAAQ;qBACR,mCAAe;qBACf,4BAAQ;qBACR,8BAAU;qBACV,+BAAW;qBACX,qCAAiB;qBACjB,mCAAe;qBACf,4CAAwB;qBACxB,mCAAe;qBACf,iCAAa;qBACb,oCAAgB;qBAChB,2BAAO;qBACP,mCAAe;qBACf,0BAAM;qBACN,4BAAQ;qBACR,0BAAM;qBACN,4BAAQ;qBACR,mCAAe;qBACf,4BAAQ;qBACR,4BAAQ;qBACR,iCAAa;qBACb,2BAAO;qBACP,gCAAY;qBACZ,0BAAM;qBACN,wCAAoB;qBACpB,mCAAe;qBACf,uCAAmB;qBACnB,qCAAiB;qBACjB,+BAAW;qBACX,iCAAa;qBACb,qCAAiB;qBACjB,sCAAkB;qBAClB,mCAAe;qBACf,uBAAG;qBACH,2BAAO;qBACP,+BAAW;qBACX,4BAAQ;qBACR,uBAAG;qBACH,qCAAiB;qBACjB,kDAA8B;qBAC9B,2BAAO;qBACP,0BAAM;qBACN,0BAAM;qBACN,iCAAa;qBACb,qCAAiB;qBACjB,sCAAkB;qBAClB,+CAA2B;qBAC3B,kDAA8B;qBAC9B,iCAAa;qBACb,oCAAgB"}
package/build/symbols.js CHANGED
@@ -42,6 +42,7 @@ const PlainTimeSerde = imp("PlainTimeSerde@joist-orm");
42
42
  const PlainDateTimeSerde = imp("PlainDateTimeSerde@joist-orm");
43
43
  const ZonedDateTimeSerde = imp("ZonedDateTimeSerde@joist-orm");
44
44
  const JsonSerde = imp("JsonSerde@joist-orm");
45
+ const VectorSerde = imp("VectorSerde@joist-orm");
45
46
  const SuperstructSerde = imp("SuperstructSerde@joist-orm");
46
47
  const TaggedId = imp("t:TaggedId@joist-orm");
47
48
  const ZodSerde = imp("ZodSerde@joist-orm");
@@ -117,6 +118,6 @@ const hasReactiveManyToManyOtherSide = imp("hasReactiveManyToManyOtherSide@joist
117
118
  const updatePartial = imp("updatePartial@joist-orm");
118
119
  const setRuntimeConfig = imp("setRuntimeConfig@joist-orm");
119
120
  //#endregion
120
- export { BaseEntity, BigIntSerde, BooleanFilter, BooleanGraphQLFilter, Changes, Collection, Column, ColumnDescriptors, ConfigApi, CustomSerdeAdapter, DateSerde, DecimalToNumberSerde, DeepNew, DeepPartialOrNull, Entity, EntityConstructor, EntityFilter, EntityGraphQLFilter, EntityManager, EntityMetadata, EnumArrayFieldSerde, EnumCollection, EnumFieldSerde, EnumGraphQLFilter, EnumMetadata, FactoryOpts, FieldStatus, FieldsOf, FilterOf, Flavor, GraphQLFilterOf, IdOf, JoistEntityManager, JsonHint, JsonPayload, JsonSerde, KeySerde, LargeCollection, LazyField, Lens, LoadHint, Loaded, ManyToManyCollection, ManyToOneReference, MaybeAbstractEntityConstructor, New, OneToManyCollection, OneToOneReference, OptsOf, OrderBy, PartialOrNull, PlainDateSerde, PlainDateTimeSerde, PlainTimeSerde, PolyComponent, PolymorphicKeySerde, PolymorphicReference, PrimitiveSerde, ProjectEntity, ReactiveField, ReactiveManyToMany, ReactiveManyToManyOtherSide, ReactiveReference, ReadOnlyCollection, Reference, RelationsOf, SSAssert, Scope, SimpleFieldSerde, SuperstructSerde, TaggedId, ToJsonHint, ValueFilter, ValueGraphQLFilter, Zod, ZodSerde, ZonedDateTimeSerde, cannotBeUpdated, cleanStringValue, configureMetadata, deTagId, fail, failNoIdYet, getField, getInstanceData, hasEnumCollection, hasLargeMany, hasLargeManyToMany, hasLazyField, hasMany, hasManyToMany, hasOne, hasOnePolymorphic, hasOneThrough, hasOneToOne, hasReactiveManyToManyOtherSide, hasRecursiveChildren, hasRecursiveM2m, hasRecursiveParents, isEntity, isLoaded, loadLens, mustBeSubType, newChangesProxy, newRequiredLazyFieldRule, newRequiredRule, newScopeFn, newTestInstance, nowUTC, polymorphicField, setField, setOpts, setRuntimeConfig, toIdOf, toJSON, updatePartial };
121
+ export { BaseEntity, BigIntSerde, BooleanFilter, BooleanGraphQLFilter, Changes, Collection, Column, ColumnDescriptors, ConfigApi, CustomSerdeAdapter, DateSerde, DecimalToNumberSerde, DeepNew, DeepPartialOrNull, Entity, EntityConstructor, EntityFilter, EntityGraphQLFilter, EntityManager, EntityMetadata, EnumArrayFieldSerde, EnumCollection, EnumFieldSerde, EnumGraphQLFilter, EnumMetadata, FactoryOpts, FieldStatus, FieldsOf, FilterOf, Flavor, GraphQLFilterOf, IdOf, JoistEntityManager, JsonHint, JsonPayload, JsonSerde, KeySerde, LargeCollection, LazyField, Lens, LoadHint, Loaded, ManyToManyCollection, ManyToOneReference, MaybeAbstractEntityConstructor, New, OneToManyCollection, OneToOneReference, OptsOf, OrderBy, PartialOrNull, PlainDateSerde, PlainDateTimeSerde, PlainTimeSerde, PolyComponent, PolymorphicKeySerde, PolymorphicReference, PrimitiveSerde, ProjectEntity, ReactiveField, ReactiveManyToMany, ReactiveManyToManyOtherSide, ReactiveReference, ReadOnlyCollection, Reference, RelationsOf, SSAssert, Scope, SimpleFieldSerde, SuperstructSerde, TaggedId, ToJsonHint, ValueFilter, ValueGraphQLFilter, VectorSerde, Zod, ZodSerde, ZonedDateTimeSerde, cannotBeUpdated, cleanStringValue, configureMetadata, deTagId, fail, failNoIdYet, getField, getInstanceData, hasEnumCollection, hasLargeMany, hasLargeManyToMany, hasLazyField, hasMany, hasManyToMany, hasOne, hasOnePolymorphic, hasOneThrough, hasOneToOne, hasReactiveManyToManyOtherSide, hasRecursiveChildren, hasRecursiveM2m, hasRecursiveParents, isEntity, isLoaded, loadLens, mustBeSubType, newChangesProxy, newRequiredLazyFieldRule, newRequiredRule, newScopeFn, newTestInstance, nowUTC, polymorphicField, setField, setOpts, setRuntimeConfig, toIdOf, toJSON, updatePartial };
121
122
 
122
123
  //# sourceMappingURL=symbols.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"symbols.js","names":[],"sources":["../src/symbols.ts"],"sourcesContent":["import { imp } from \"ts-poet\";\n\nexport const ProjectEntity = imp(`t:Entity@./entities.ts`);\nexport const EntityManager = imp(\"EntityManager@./entities.ts\");\n\nexport const ConfigApi = imp(\"ConfigApi@joist-orm\");\nexport const newScopeFn = imp(\"newScopeFn@joist-orm\");\nexport const Scope = imp(\"t:Scope@joist-orm\");\nexport const FieldStatus = imp(\"t:FieldStatus@joist-orm\");\nexport const Entity = imp(\"t:Entity@joist-orm\");\nexport const BaseEntity = imp(\"BaseEntity@joist-orm\");\nexport const Flavor = imp(\"t:Flavor@joist-orm\");\nexport const Reference = imp(\"t:Reference@joist-orm\");\nexport const Collection = imp(\"t:Collection@joist-orm\");\nexport const EnumCollection = imp(\"t:EnumCollection@joist-orm\");\nexport const LargeCollection = imp(\"t:LargeCollection@joist-orm\");\nexport const OneToManyCollection = imp(\"OneToManyCollection@joist-orm\");\nexport const JoistEntityManager = imp(\"EntityManager@joist-orm\");\nexport const EntityMetadata = imp(\"t:EntityMetadata@joist-orm\");\nexport const EnumMetadata = imp(\"t:EnumMetadata@joist-orm\");\nexport const Lens = imp(\"t:Lens@joist-orm\");\nexport const KeySerde = imp(\"KeySerde@joist-orm\");\nexport const Column = imp(\"Column@joist-orm\");\nexport const ColumnDescriptors = imp(\"t:ColumnDescriptors@joist-orm\");\nexport const SimpleFieldSerde = imp(\"SimpleFieldSerde@joist-orm\");\nexport const PolyComponent = imp(\"PolyComponent@joist-orm\");\nexport const polymorphicField = imp(\"polymorphicField@joist-orm\");\nexport const ManyToOneReference = imp(\"t:ManyToOneReference@joist-orm\");\nexport const LazyField = imp(\"t:LazyField@joist-orm\");\nexport const hasLazyField = imp(\"hasLazyField@joist-orm\");\nexport const ReadOnlyCollection = imp(\"t:ReadOnlyCollection@joist-orm\");\nexport const PolymorphicReference = imp(\"t:PolymorphicReference@joist-orm\");\nexport const OneToOneReference = imp(\"t:OneToOneReference@joist-orm\");\nexport const ManyToManyCollection = imp(\"ManyToManyCollection@joist-orm\");\nexport const EnumFieldSerde = imp(\"EnumFieldSerde@joist-orm\");\nexport const EnumArrayFieldSerde = imp(\"EnumArrayFieldSerde@joist-orm\");\nexport const PolymorphicKeySerde = imp(\"PolymorphicKeySerde@joist-orm\");\nexport const PrimitiveSerde = imp(\"PrimitiveSerde@joist-orm\");\nexport const BigIntSerde = imp(\"BigIntSerde@joist-orm\");\nexport const DateSerde = imp(\"DateSerde@joist-orm\");\nexport const PlainDateSerde = imp(\"PlainDateSerde@joist-orm\");\nexport const PlainTimeSerde = imp(\"PlainTimeSerde@joist-orm\");\nexport const PlainDateTimeSerde = imp(\"PlainDateTimeSerde@joist-orm\");\nexport const ZonedDateTimeSerde = imp(\"ZonedDateTimeSerde@joist-orm\");\nexport const JsonSerde = imp(\"JsonSerde@joist-orm\");\nexport const SuperstructSerde = imp(\"SuperstructSerde@joist-orm\");\nexport const TaggedId = imp(\"t:TaggedId@joist-orm\");\nexport const ZodSerde = imp(\"ZodSerde@joist-orm\");\nexport const CustomSerdeAdapter = imp(\"CustomSerdeAdapter@joist-orm\");\nexport const DecimalToNumberSerde = imp(\"DecimalToNumberSerde@joist-orm\");\nexport const fail = imp(\"fail@joist-orm\");\nexport const failNoIdYet = imp(\"failNoIdYet@joist-orm\");\nexport const setOpts = imp(\"setOpts@joist-orm\");\nexport const getField = imp(\"getField@joist-orm\");\nexport const setField = imp(\"setField@joist-orm\");\nexport const OrderBy = imp(\"t:OrderBy@joist-orm\");\nexport const OptsOf = imp(\"t:OptsOf@joist-orm\");\nexport const FieldsOf = imp(\"t:FieldsOf@joist-orm\");\nexport const RelationsOf = imp(\"t:RelationsOf@joist-orm\");\nexport const IdOf = imp(\"t:IdOf@joist-orm\");\nexport const PartialOrNull = imp(\"t:PartialOrNull@joist-orm\");\nexport const DeepPartialOrNull = imp(\"t:DeepPartialOrNull@joist-orm\");\nexport const BooleanFilter = imp(\"t:BooleanFilter@joist-orm\");\nexport const ValueFilter = imp(\"t:ValueFilter@joist-orm\");\nexport const EntityFilter = imp(\"t:EntityFilter@joist-orm\");\nexport const BooleanGraphQLFilter = imp(\"t:BooleanGraphQLFilter@joist-orm\");\nexport const EntityGraphQLFilter = imp(\"t:EntityGraphQLFilter@joist-orm\");\nexport const EnumGraphQLFilter = imp(\"t:EnumGraphQLFilter@joist-orm\");\nexport const ValueGraphQLFilter = imp(\"t:ValueGraphQLFilter@joist-orm\");\nexport const FilterOf = imp(\"t:FilterOf@joist-orm\");\nexport const GraphQLFilterOf = imp(\"t:GraphQLFilterOf@joist-orm\");\nexport const JsonHint = imp(\"t:JsonHint@joist-orm\");\nexport const ToJsonHint = imp(\"t:ToJsonHint@joist-orm\");\nexport const JsonPayload = imp(\"t:JsonPayload@joist-orm\");\nexport const configureMetadata = imp(\"configureMetadata@joist-orm\");\nexport const newRequiredRule = imp(\"newRequiredRule@joist-orm\");\nexport const newRequiredLazyFieldRule = imp(\"newRequiredLazyFieldRule@joist-orm\");\nexport const cannotBeUpdated = imp(\"cannotBeUpdated@joist-orm\");\nexport const mustBeSubType = imp(\"mustBeSubType@joist-orm\");\nexport const cleanStringValue = imp(\"cleanStringValue@joist-orm\");\nexport const Changes = imp(\"t:Changes@joist-orm\");\nexport const newChangesProxy = imp(\"newChangesProxy@joist-orm\");\nexport const nowUTC = imp(\"nowUTC@joist-orm\");\nexport const LoadHint = imp(\"t:LoadHint@joist-orm\");\nexport const Loaded = imp(\"t:Loaded@joist-orm\");\nexport const isLoaded = imp(\"isLoaded@joist-orm\");\nexport const getInstanceData = imp(\"getInstanceData@joist-orm\");\nexport const isEntity = imp(\"isEntity@joist-orm\");\nexport const loadLens = imp(\"loadLens@joist-orm\");\nexport const hasOneThrough = imp(\"hasOneThrough@joist-orm\");\nexport const hasMany = imp(\"hasMany@joist-orm\");\nexport const hasLargeMany = imp(\"hasLargeMany@joist-orm\");\nexport const hasOne = imp(\"hasOne@joist-orm\");\nexport const hasRecursiveChildren = imp(\"hasRecursiveChildren@joist-orm\");\nexport const hasRecursiveM2m = imp(\"hasRecursiveM2m@joist-orm\");\nexport const hasRecursiveParents = imp(\"hasRecursiveParents@joist-orm\");\nexport const hasOnePolymorphic = imp(\"hasOnePolymorphic@joist-orm\");\nexport const hasOneToOne = imp(\"hasOneToOne@joist-orm\");\nexport const hasManyToMany = imp(\"hasManyToMany@joist-orm\");\nexport const hasEnumCollection = imp(\"hasEnumCollection@joist-orm\");\nexport const hasLargeManyToMany = imp(\"hasLargeManyToMany@joist-orm\");\nexport const newTestInstance = imp(\"newTestInstance@joist-orm\");\nexport const New = imp(\"t:New@joist-orm\");\nexport const DeepNew = imp(\"t:DeepNew@joist-orm\");\nexport const FactoryOpts = imp(\"t:FactoryOpts@joist-orm\");\nexport const SSAssert = imp(\"assert@superstruct\");\nexport const Zod = imp(\"z@zod\");\nexport const EntityConstructor = imp(\"t:EntityConstructor@joist-orm\");\nexport const MaybeAbstractEntityConstructor = imp(\"t:MaybeAbstractEntityConstructor@joist-orm\");\nexport const deTagId = imp(\"deTagId@joist-orm\");\nexport const toIdOf = imp(\"toIdOf@joist-orm\");\nexport const toJSON = imp(\"toJSON@joist-orm\");\nexport const ReactiveField = imp(\"t:ReactiveField@joist-orm\");\nexport const ReactiveReference = imp(\"t:ReactiveReference@joist-orm\");\nexport const ReactiveManyToMany = imp(\"t:ReactiveManyToMany@joist-orm\");\nexport const ReactiveManyToManyOtherSide = imp(\"t:ReactiveManyToManyOtherSide@joist-orm\");\nexport const hasReactiveManyToManyOtherSide = imp(\"hasReactiveManyToManyOtherSide@joist-orm\");\nexport const updatePartial = imp(\"updatePartial@joist-orm\");\nexport const setRuntimeConfig = imp(\"setRuntimeConfig@joist-orm\");\n"],"mappings":";;AAEA,MAAa,gBAAgB,IAAI,wBAAwB;AACzD,MAAa,gBAAgB,IAAI,6BAA6B;AAE9D,MAAa,YAAY,IAAI,qBAAqB;AAClD,MAAa,aAAa,IAAI,sBAAsB;AACpD,MAAa,QAAQ,IAAI,mBAAmB;AAC5C,MAAa,cAAc,IAAI,yBAAyB;AACxD,MAAa,SAAS,IAAI,oBAAoB;AAC9C,MAAa,aAAa,IAAI,sBAAsB;AACpD,MAAa,SAAS,IAAI,oBAAoB;AAC9C,MAAa,YAAY,IAAI,uBAAuB;AACpD,MAAa,aAAa,IAAI,wBAAwB;AACtD,MAAa,iBAAiB,IA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AAI,2BAA2B;AAC9D,MAAa,WAAW,IAAI,oBAAoB;AAChD,MAAa,WAAW,IAAI,oBAAoB;AAChD,MAAa,gBAAgB,IAAI,yBAAyB;AAC1D,MAAa,UAAU,IAAI,mBAAmB;AAC9C,MAAa,eAAe,IAAI,wBAAwB;AACxD,MAAa,SAAS,IAAI,kBAAkB;AAC5C,MAAa,uBAAuB,IAAI,gCAAgC;AACxE,MAAa,kBAAkB,IAAI,2BAA2B;AAC9D,MAAa,sBAAsB,IAAI,+BAA+B;AACtE,MAAa,oBAAoB,IAAI,6BAA6B;AAClE,MAAa,cAAc,IAAI,uBAAuB;AACtD,MAAa,gBAAgB,IAAI,yBAAyB;AAC1D,MAAa,oBAAoB,IAAI,6BAA6B;AAClE,MAAa,qBAAqB,IAAI,8BAA8B;AACpE,MAAa,kBAAkB,IAAI,2BAA2B;AAC9D,MAAa,MAAM,IAAI,iBAAiB;AACxC,MAAa,UAAU,IAAI,qBAAqB;AAChD,MAAa,cAAc,IAAI,yBAAyB;AACxD,MAAa,WAAW,IAAI,oBAAoB;AAChD,MAAa,MAAM,IAAI,OAAO;AAC9B,MAAa,oBAAoB,IAAI,+BAA+B;AACpE,MAAa,iCAAiC,IAAI,4CAA4C;AAC9F,MAAa,UAAU,IAAI,mBAAmB;AAC9C,MAAa,SAAS,IAAI,kBAAkB;AAC5C,MAAa,SAAS,IAAI,kBAAkB;AAC5C,MAAa,gBAAgB,IAAI,2BAA2B;AAC5D,MAAa,oBAAoB,IAAI,+BAA+B;AACpE,MAAa,qBAAqB,IAAI,gCAAgC;AACtE,MAAa,8BAA8B,IAAI,yCAAyC;AACxF,MAAa,iCAAiC,IAAI,0CAA0C;AAC5F,MAAa,gBAAgB,IAAI,yBAAyB;AAC1D,MAAa,mBAAmB,IAAI,4BAA4B"}
1
+ {"version":3,"file":"symbols.js","names":[],"sources":["../src/symbols.ts"],"sourcesContent":["import { imp } from \"ts-poet\";\n\nexport const ProjectEntity = imp(`t:Entity@./entities.ts`);\nexport const EntityManager = imp(\"EntityManager@./entities.ts\");\n\nexport const ConfigApi = imp(\"ConfigApi@joist-orm\");\nexport const newScopeFn = imp(\"newScopeFn@joist-orm\");\nexport const Scope = imp(\"t:Scope@joist-orm\");\nexport const FieldStatus = imp(\"t:FieldStatus@joist-orm\");\nexport const Entity = imp(\"t:Entity@joist-orm\");\nexport const BaseEntity = imp(\"BaseEntity@joist-orm\");\nexport const Flavor = imp(\"t:Flavor@joist-orm\");\nexport const Reference = imp(\"t:Reference@joist-orm\");\nexport const Collection = imp(\"t:Collection@joist-orm\");\nexport const EnumCollection = imp(\"t:EnumCollection@joist-orm\");\nexport const LargeCollection = imp(\"t:LargeCollection@joist-orm\");\nexport const OneToManyCollection = imp(\"OneToManyCollection@joist-orm\");\nexport const JoistEntityManager = imp(\"EntityManager@joist-orm\");\nexport const EntityMetadata = imp(\"t:EntityMetadata@joist-orm\");\nexport const EnumMetadata = imp(\"t:EnumMetadata@joist-orm\");\nexport const Lens = imp(\"t:Lens@joist-orm\");\nexport const KeySerde = imp(\"KeySerde@joist-orm\");\nexport const Column = imp(\"Column@joist-orm\");\nexport const ColumnDescriptors = imp(\"t:ColumnDescriptors@joist-orm\");\nexport const SimpleFieldSerde = imp(\"SimpleFieldSerde@joist-orm\");\nexport const PolyComponent = imp(\"PolyComponent@joist-orm\");\nexport const polymorphicField = imp(\"polymorphicField@joist-orm\");\nexport const ManyToOneReference = imp(\"t:ManyToOneReference@joist-orm\");\nexport const LazyField = imp(\"t:LazyField@joist-orm\");\nexport const hasLazyField = imp(\"hasLazyField@joist-orm\");\nexport const ReadOnlyCollection = imp(\"t:ReadOnlyCollection@joist-orm\");\nexport const PolymorphicReference = imp(\"t:PolymorphicReference@joist-orm\");\nexport const OneToOneReference = imp(\"t:OneToOneReference@joist-orm\");\nexport const ManyToManyCollection = imp(\"ManyToManyCollection@joist-orm\");\nexport const EnumFieldSerde = imp(\"EnumFieldSerde@joist-orm\");\nexport const EnumArrayFieldSerde = imp(\"EnumArrayFieldSerde@joist-orm\");\nexport const PolymorphicKeySerde = imp(\"PolymorphicKeySerde@joist-orm\");\nexport const PrimitiveSerde = imp(\"PrimitiveSerde@joist-orm\");\nexport const BigIntSerde = imp(\"BigIntSerde@joist-orm\");\nexport const DateSerde = imp(\"DateSerde@joist-orm\");\nexport const PlainDateSerde = imp(\"PlainDateSerde@joist-orm\");\nexport const PlainTimeSerde = imp(\"PlainTimeSerde@joist-orm\");\nexport const PlainDateTimeSerde = imp(\"PlainDateTimeSerde@joist-orm\");\nexport const ZonedDateTimeSerde = imp(\"ZonedDateTimeSerde@joist-orm\");\nexport const JsonSerde = imp(\"JsonSerde@joist-orm\");\nexport const VectorSerde = imp(\"VectorSerde@joist-orm\");\nexport const SuperstructSerde = imp(\"SuperstructSerde@joist-orm\");\nexport const TaggedId = imp(\"t:TaggedId@joist-orm\");\nexport const ZodSerde = imp(\"ZodSerde@joist-orm\");\nexport const CustomSerdeAdapter = imp(\"CustomSerdeAdapter@joist-orm\");\nexport const DecimalToNumberSerde = imp(\"DecimalToNumberSerde@joist-orm\");\nexport const fail = imp(\"fail@joist-orm\");\nexport const failNoIdYet = imp(\"failNoIdYet@joist-orm\");\nexport const setOpts = imp(\"setOpts@joist-orm\");\nexport const getField = imp(\"getField@joist-orm\");\nexport const setField = imp(\"setField@joist-orm\");\nexport const OrderBy = imp(\"t:OrderBy@joist-orm\");\nexport const OptsOf = imp(\"t:OptsOf@joist-orm\");\nexport const FieldsOf = imp(\"t:FieldsOf@joist-orm\");\nexport const RelationsOf = imp(\"t:RelationsOf@joist-orm\");\nexport const IdOf = imp(\"t:IdOf@joist-orm\");\nexport const PartialOrNull = imp(\"t:PartialOrNull@joist-orm\");\nexport const DeepPartialOrNull = imp(\"t:DeepPartialOrNull@joist-orm\");\nexport const BooleanFilter = imp(\"t:BooleanFilter@joist-orm\");\nexport const ValueFilter = imp(\"t:ValueFilter@joist-orm\");\nexport const EntityFilter = imp(\"t:EntityFilter@joist-orm\");\nexport const BooleanGraphQLFilter = imp(\"t:BooleanGraphQLFilter@joist-orm\");\nexport const EntityGraphQLFilter = imp(\"t:EntityGraphQLFilter@joist-orm\");\nexport const EnumGraphQLFilter = imp(\"t:EnumGraphQLFilter@joist-orm\");\nexport const ValueGraphQLFilter = imp(\"t:ValueGraphQLFilter@joist-orm\");\nexport const FilterOf = imp(\"t:FilterOf@joist-orm\");\nexport const GraphQLFilterOf = imp(\"t:GraphQLFilterOf@joist-orm\");\nexport const JsonHint = imp(\"t:JsonHint@joist-orm\");\nexport const ToJsonHint = imp(\"t:ToJsonHint@joist-orm\");\nexport const JsonPayload = imp(\"t:JsonPayload@joist-orm\");\nexport const configureMetadata = imp(\"configureMetadata@joist-orm\");\nexport const newRequiredRule = imp(\"newRequiredRule@joist-orm\");\nexport const newRequiredLazyFieldRule = imp(\"newRequiredLazyFieldRule@joist-orm\");\nexport const cannotBeUpdated = imp(\"cannotBeUpdated@joist-orm\");\nexport const mustBeSubType = imp(\"mustBeSubType@joist-orm\");\nexport const cleanStringValue = imp(\"cleanStringValue@joist-orm\");\nexport const Changes = imp(\"t:Changes@joist-orm\");\nexport const newChangesProxy = imp(\"newChangesProxy@joist-orm\");\nexport const nowUTC = imp(\"nowUTC@joist-orm\");\nexport const LoadHint = imp(\"t:LoadHint@joist-orm\");\nexport const Loaded = imp(\"t:Loaded@joist-orm\");\nexport const isLoaded = imp(\"isLoaded@joist-orm\");\nexport const getInstanceData = imp(\"getInstanceData@joist-orm\");\nexport const isEntity = imp(\"isEntity@joist-orm\");\nexport const loadLens = imp(\"loadLens@joist-orm\");\nexport const hasOneThrough = imp(\"hasOneThrough@joist-orm\");\nexport const hasMany = imp(\"hasMany@joist-orm\");\nexport const hasLargeMany = imp(\"hasLargeMany@joist-orm\");\nexport const hasOne = imp(\"hasOne@joist-orm\");\nexport const hasRecursiveChildren = imp(\"hasRecursiveChildren@joist-orm\");\nexport const hasRecursiveM2m = imp(\"hasRecursiveM2m@joist-orm\");\nexport const hasRecursiveParents = imp(\"hasRecursiveParents@joist-orm\");\nexport const hasOnePolymorphic = imp(\"hasOnePolymorphic@joist-orm\");\nexport const hasOneToOne = imp(\"hasOneToOne@joist-orm\");\nexport const hasManyToMany = imp(\"hasManyToMany@joist-orm\");\nexport const hasEnumCollection = imp(\"hasEnumCollection@joist-orm\");\nexport const hasLargeManyToMany = imp(\"hasLargeManyToMany@joist-orm\");\nexport const newTestInstance = imp(\"newTestInstance@joist-orm\");\nexport const New = imp(\"t:New@joist-orm\");\nexport const DeepNew = imp(\"t:DeepNew@joist-orm\");\nexport const FactoryOpts = imp(\"t:FactoryOpts@joist-orm\");\nexport const SSAssert = imp(\"assert@superstruct\");\nexport const Zod = imp(\"z@zod\");\nexport const EntityConstructor = imp(\"t:EntityConstructor@joist-orm\");\nexport const MaybeAbstractEntityConstructor = imp(\"t:MaybeAbstractEntityConstructor@joist-orm\");\nexport const deTagId = imp(\"deTagId@joist-orm\");\nexport const toIdOf = imp(\"toIdOf@joist-orm\");\nexport const toJSON = imp(\"toJSON@joist-orm\");\nexport const ReactiveField = imp(\"t:ReactiveField@joist-orm\");\nexport const ReactiveReference = imp(\"t:ReactiveReference@joist-orm\");\nexport const ReactiveManyToMany = imp(\"t:ReactiveManyToMany@joist-orm\");\nexport const ReactiveManyToManyOtherSide = imp(\"t:ReactiveManyToManyOtherSide@joist-orm\");\nexport const hasReactiveManyToManyOtherSide = imp(\"hasReactiveManyToManyOtherSide@joist-orm\");\nexport const updatePartial = imp(\"updatePartial@joist-orm\");\nexport const setRuntimeConfig = imp(\"setRuntimeConfig@joist-orm\");\n"],"mappings":";;AAEA,MAAa,gBAAgB,IAAI,wBAAwB;AACzD,MAAa,gBAAgB,IAAI,6BAA6B;AAE9D,MAAa,YAAY,IAAI,qBAAqB;AAClD,MAAa,aAAa,IAAI,sBAAsB;AACpD,MAAa,QAAQ,IAAI,mBAAmB;AAC5C,MAAa,cAAc,IAAI,yBAAyB;AACxD,MAAa,SAAS,IAAI,oBAAoB;A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,MAAa,gBAAgB,IAAI,yBAAyB;AAC1D,MAAa,mBAAmB,IAAI,4BAA4B"}
package/build/utils.cjs CHANGED
@@ -107,6 +107,7 @@ function mapSimpleDbTypeToTypescriptType(config, dbType) {
107
107
  case "date": return config.temporal ? plainDateCode : dateCode;
108
108
  case "jsonb": return "Object";
109
109
  case "bytea": return "Uint8Array";
110
+ case "vector": return "number[]";
110
111
  default: assertNever(dbType);
111
112
  }
112
113
  }
@@ -1 +1 @@
1
- {"version":3,"file":"utils.cjs","names":["getTimestampConfig","pascalCase","imp","isPlainObject"],"sources":["../src/utils.ts"],"sourcesContent":["import { pascalCase } from \"change-case\";\nimport { isPlainObject } from \"joist-utils\";\nimport pluralize from \"pluralize\";\nimport { code, imp } from \"ts-poet\";\n\nimport { type Config, getTimestampConfig } from \"./config.ts\";\nimport { type DatabaseColumnType, type PrimitiveTypescriptType } from \"./EntityDbMetadata.ts\";\nimport { type Table } from \"./pgMetadata.ts\";\n\nexport function assertNever(x: never): never {\n throw new Error(\"Unexpected object: \" + x);\n}\n\nexport function isEntityTable(config: Config, t: Table): boolean {\n if (isIgnored(config, t) || isJoinTable(config, t)) {\n return false;\n }\n\n // Depending on the config settings, we may/may not require the presence of timestamp\n // fields to determine whether a table is an entity.\n const columnNames = t.columns.map((c) => c.name);\n const { updatedAtConf, createdAtConf } = getTimestampConfig(config);\n const hasCreatedAt = createdAtConf.names.some((c) => columnNames.includes(c));\n const hasUpdatedAt = updatedAtConf.names.some((c) => columnNames.includes(c));\n\n // Entities always require an id column\n const hasIdColumn = columnNames.includes(\"id\");\n if (!hasIdColumn) return false;\n\n // If we have no timestamp columns, but do have `name` and `code`, we're probably an enum.\n if (hasIdColumn && !hasCreatedAt && !hasUpdatedAt) {\n if ([\"name\", \"code\"].every((c) => columnNames.includes(c))) {\n return false;\n }\n }\n\n // If the ID column is a FK then we're a subclass\n if (isSubClassTable(t)) return true;\n\n // Otherwise respect the created_at/updated_at required rules\n return hasIdColumn && (hasCreatedAt || !createdAtConf.required) && (hasUpdatedAt || !updatedAtConf.required);\n}\n\nexport function isSubClassTable(t: Table): boolean {\n // Note that `.get(\"id\")` will blow up if there is no id column\n return t.columns.get(\"id\").foreignKeys.length === 1;\n}\n\nexport function isEnumTable(config: Config, t: Table): boolean {\n if (isIgnored(config, t)) {\n return false;\n }\n const columnNames = t.columns.map((c) => c.name);\n return [\"id\", \"code\", \"name\"].every((c) => columnNames.includes(c)) && !isEntityTable(config, t);\n}\n\n// Oddly enough isJoinTable showed up as a hot spot, so cache its calculation.\nconst joinTables: Map<string, boolean> = new Map();\n\nexport function isJoinTable(config: Config, t: Table): boolean {\n if (isIgnored(config, t)) {\n return false;\n }\n return getOrElse(joinTables, t.name, () => {\n const { columns } = t;\n const fks = columns.filter((c) => c.isForeignKey);\n const pks = columns.filter((c) => c.isPrimaryKey);\n // Every join table is two FKs, plus either a surrogate `id` PK (\"id-ful\") or no surrogate\n // at all, in which case the two FKs are themselves the composite PK (\"id-less\").\n if (fks.length !== 2) return false;\n if (!joinTableHasId(t) && !(pks.length === 2 && pks.every((c) => c.isForeignKey))) return false;\n // Any column beyond the two FKs and the optional `id` PK must be a single created_at.\n const others = columns.length - fks.length - (joinTableHasId(t) ? 1 : 0);\n const createdAts = columns.filter((c) => c.name === \"created_at\" || c.name === \"createdAt\").length;\n return others === 0 || (others === 1 && createdAts === 1);\n });\n}\n\n/** Whether a join table has a surrogate `id` primary key (vs. an id-less FK-pair composite PK). */\nexport function joinTableHasId(t: Table): boolean {\n const pks = t.columns.filter((c) => c.isPrimaryKey);\n return pks.length === 1 && !pks[0].isForeignKey;\n}\n\nfunction getOrElse<K, V>(map: Map<K, V>, key: K, fn: () => V): V {\n let value = map.get(key);\n if (value === undefined) {\n value = fn();\n map.set(key, value);\n }\n return value;\n}\n\n/** Converts `projects` to `Project`. */\nexport function tableToEntityName(config: Config, table: Table): string {\n let entityName = config.__tableToEntityName?.[table.name];\n if (!entityName) {\n const configEntityName = Object.entries(config.entities)\n .filter(([, conf]) => conf.tableName === table.name)\n .map(([entityName]) => entityName)[0];\n entityName = configEntityName || pascalCase(pluralize.singular(table.name));\n (config.__tableToEntityName ??= {})[table.name] = entityName;\n }\n return entityName;\n}\n\nexport const dateCode = code`Date`;\nexport const plainDateCode = code`${imp(\"Temporal@joist-orm\")}.PlainDate`;\nexport const plainTimeCode = code`${imp(\"Temporal@joist-orm\")}.PlainTime`;\nexport const plainDateTimeCode = code`${imp(\"Temporal@joist-orm\")}.PlainDateTime`;\nexport const zonedDateTimeCode = code`${imp(\"Temporal@joist-orm\")}.ZonedDateTime`;\n\n/** Maps db types, i.e. `int`, to JS types, i.e. `number`. */\nexport function mapSimpleDbTypeToTypescriptType(config: Config, dbType: DatabaseColumnType): PrimitiveTypescriptType {\n switch (dbType) {\n case \"boolean\":\n return \"boolean\";\n case \"int\":\n case \"numeric\":\n case \"smallint\":\n case \"integer\":\n case \"decimal\":\n case \"real\":\n case \"smallserial\":\n case \"serial\":\n case \"double precision\":\n return \"number\";\n case \"bigserial\":\n case \"bigint\":\n return \"bigint\";\n case \"text\":\n case \"citext\":\n case \"character varying\":\n case \"varchar\":\n case \"uuid\":\n case \"tsvector\":\n case \"tstzrange\":\n return \"string\";\n case \"time without time zone\":\n return config.temporal\n ? plainTimeCode\n : fail(\"Joist doesn't support 'time without time zone' unless temporal is enabled\");\n case \"timestamp with time zone\":\n return config.temporal ? zonedDateTimeCode : dateCode;\n case \"timestamp without time zone\":\n return config.temporal ? plainDateTimeCode : dateCode;\n case \"date\":\n return config.temporal ? plainDateCode : dateCode;\n case \"jsonb\":\n return \"Object\";\n case \"bytea\":\n return \"Uint8Array\";\n default:\n assertNever(dbType);\n }\n}\n\nexport function merge<T>(a: T[], b: T[]): T[] {\n return [...a, ...b];\n}\n\n/** Returns true if `p` is resolved, otherwise false if it is rejected. */\nexport async function trueIfResolved(p: Promise<unknown>): Promise<boolean> {\n return p.then(\n () => true,\n () => false,\n );\n}\n\nexport function fail(message?: string): never {\n throw new Error(message || \"Failed\");\n}\n\nexport function sortKeys<T extends object>(o: T): T {\n return Object.keys(o)\n .sort()\n .reduce(\n (acc, key) => {\n const value = o[key as keyof T];\n const newValue = typeof value === \"object\" && isPlainObject(value) ? sortKeys(value as any as object) : value;\n acc[key as keyof T] = newValue as any;\n return acc;\n },\n {} as any as T,\n );\n}\n\nexport function parseOrder(order: string | undefined): { field: string; direction: \"ASC\" | \"DESC\" } | undefined {\n if (!order) {\n return undefined;\n }\n const [field, direction = \"ASC\"] = order.split(\" \");\n if (direction !== \"ASC\" && direction !== \"DESC\") {\n throw new Error(`Invalid direction: ${direction} (must be \"ASC\" or \"DESC\")`);\n }\n return { field, direction };\n}\n\nexport function q(s: string | undefined): string {\n return s === undefined ? \"undefined\" : `\"${s}\"`;\n}\n\nexport function uncapitalize(s: string): string {\n return s.charAt(0).toLowerCase() + s.slice(1);\n}\n\nfunction isIgnored(config: Config, t: Table): boolean {\n return (config.ignoredTables || [\"migrations\", \"pgmigrations\"]).includes(t.name) || !shouldIncludeSchema(config, t);\n}\n\n/** Uses the same schema selection for metadata and test database cleanup. */\nexport function shouldIncludeSchema(config: Config, t: Table): boolean {\n return config.schemas ? config.schemas.includes(t.schema.name) : t.schema.name === \"public\";\n}\n"],"mappings":";;;;;;;;;;;AASA,SAAgB,YAAY,GAAiB;CAC3C,MAAM,IAAI,MAAM,wBAAwB,CAAC;AAC3C;AAEA,SAAgB,cAAc,QAAgB,GAAmB;CAC/D,IAAI,UAAU,QAAQ,CAAC,KAAK,YAAY,QAAQ,CAAC,GAC/C,OAAO;CAKT,MAAM,cAAc,EAAE,QAAQ,KAAK,MAAM,EAAE,IAAI;CAC/C,MAAM,EAAE,eAAe,kBAAkBA,eAAAA,mBAAmB,MAAM;CAClE,MAAM,eAAe,cAAc,MAAM,MAAM,MAAM,YAAY,SAAS,CAAC,CAAC;CAC5E,MAAM,eAAe,cAAc,MAAM,MAAM,MAAM,YAAY,SAAS,CAAC,CAAC;CAG5E,MAAM,cAAc,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Ac,IAAI,EAAE;AAC/C;AAEA,SAAgB,aAAa,GAAmB;CAC9C,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,YAAY,IAAI,EAAE,MAAM,CAAC;AAC9C;AAEA,SAAS,UAAU,QAAgB,GAAmB;CACpD,QAAQ,OAAO,iBAAiB,CAAC,cAAc,cAAc,EAAA,CAAG,SAAS,EAAE,IAAI,KAAK,CAAC,oBAAoB,QAAQ,CAAC;AACpH;;AAGA,SAAgB,oBAAoB,QAAgB,GAAmB;CACrE,OAAO,OAAO,UAAU,OAAO,QAAQ,SAAS,EAAE,OAAO,IAAI,IAAI,EAAE,OAAO,SAAS;AACrF"}
1
+ {"version":3,"file":"utils.cjs","names":["getTimestampConfig","pascalCase","imp","isPlainObject"],"sources":["../src/utils.ts"],"sourcesContent":["import { pascalCase } from \"change-case\";\nimport { isPlainObject } from \"joist-utils\";\nimport pluralize from \"pluralize\";\nimport { code, imp } from \"ts-poet\";\n\nimport { type Config, getTimestampConfig } from \"./config.ts\";\nimport { type DatabaseColumnType, type PrimitiveTypescriptType } from \"./EntityDbMetadata.ts\";\nimport { type Table } from \"./pgMetadata.ts\";\n\nexport function assertNever(x: never): never {\n throw new Error(\"Unexpected object: \" + x);\n}\n\nexport function isEntityTable(config: Config, t: Table): boolean {\n if (isIgnored(config, t) || isJoinTable(config, t)) {\n return false;\n }\n\n // Depending on the config settings, we may/may not require the presence of timestamp\n // fields to determine whether a table is an entity.\n const columnNames = t.columns.map((c) => c.name);\n const { updatedAtConf, createdAtConf } = getTimestampConfig(config);\n const hasCreatedAt = createdAtConf.names.some((c) => columnNames.includes(c));\n const hasUpdatedAt = updatedAtConf.names.some((c) => columnNames.includes(c));\n\n // Entities always require an id column\n const hasIdColumn = columnNames.includes(\"id\");\n if (!hasIdColumn) return false;\n\n // If we have no timestamp columns, but do have `name` and `code`, we're probably an enum.\n if (hasIdColumn && !hasCreatedAt && !hasUpdatedAt) {\n if ([\"name\", \"code\"].every((c) => columnNames.includes(c))) {\n return false;\n }\n }\n\n // If the ID column is a FK then we're a subclass\n if (isSubClassTable(t)) return true;\n\n // Otherwise respect the created_at/updated_at required rules\n return hasIdColumn && (hasCreatedAt || !createdAtConf.required) && (hasUpdatedAt || !updatedAtConf.required);\n}\n\nexport function isSubClassTable(t: Table): boolean {\n // Note that `.get(\"id\")` will blow up if there is no id column\n return t.columns.get(\"id\").foreignKeys.length === 1;\n}\n\nexport function isEnumTable(config: Config, t: Table): boolean {\n if (isIgnored(config, t)) {\n return false;\n }\n const columnNames = t.columns.map((c) => c.name);\n return [\"id\", \"code\", \"name\"].every((c) => columnNames.includes(c)) && !isEntityTable(config, t);\n}\n\n// Oddly enough isJoinTable showed up as a hot spot, so cache its calculation.\nconst joinTables: Map<string, boolean> = new Map();\n\nexport function isJoinTable(config: Config, t: Table): boolean {\n if (isIgnored(config, t)) {\n return false;\n }\n return getOrElse(joinTables, t.name, () => {\n const { columns } = t;\n const fks = columns.filter((c) => c.isForeignKey);\n const pks = columns.filter((c) => c.isPrimaryKey);\n // Every join table is two FKs, plus either a surrogate `id` PK (\"id-ful\") or no surrogate\n // at all, in which case the two FKs are themselves the composite PK (\"id-less\").\n if (fks.length !== 2) return false;\n if (!joinTableHasId(t) && !(pks.length === 2 && pks.every((c) => c.isForeignKey))) return false;\n // Any column beyond the two FKs and the optional `id` PK must be a single created_at.\n const others = columns.length - fks.length - (joinTableHasId(t) ? 1 : 0);\n const createdAts = columns.filter((c) => c.name === \"created_at\" || c.name === \"createdAt\").length;\n return others === 0 || (others === 1 && createdAts === 1);\n });\n}\n\n/** Whether a join table has a surrogate `id` primary key (vs. an id-less FK-pair composite PK). */\nexport function joinTableHasId(t: Table): boolean {\n const pks = t.columns.filter((c) => c.isPrimaryKey);\n return pks.length === 1 && !pks[0].isForeignKey;\n}\n\nfunction getOrElse<K, V>(map: Map<K, V>, key: K, fn: () => V): V {\n let value = map.get(key);\n if (value === undefined) {\n value = fn();\n map.set(key, value);\n }\n return value;\n}\n\n/** Converts `projects` to `Project`. */\nexport function tableToEntityName(config: Config, table: Table): string {\n let entityName = config.__tableToEntityName?.[table.name];\n if (!entityName) {\n const configEntityName = Object.entries(config.entities)\n .filter(([, conf]) => conf.tableName === table.name)\n .map(([entityName]) => entityName)[0];\n entityName = configEntityName || pascalCase(pluralize.singular(table.name));\n (config.__tableToEntityName ??= {})[table.name] = entityName;\n }\n return entityName;\n}\n\nexport const dateCode = code`Date`;\nexport const plainDateCode = code`${imp(\"Temporal@joist-orm\")}.PlainDate`;\nexport const plainTimeCode = code`${imp(\"Temporal@joist-orm\")}.PlainTime`;\nexport const plainDateTimeCode = code`${imp(\"Temporal@joist-orm\")}.PlainDateTime`;\nexport const zonedDateTimeCode = code`${imp(\"Temporal@joist-orm\")}.ZonedDateTime`;\n\n/** Maps db types, i.e. `int`, to JS types, i.e. `number`. */\nexport function mapSimpleDbTypeToTypescriptType(config: Config, dbType: DatabaseColumnType): PrimitiveTypescriptType {\n switch (dbType) {\n case \"boolean\":\n return \"boolean\";\n case \"int\":\n case \"numeric\":\n case \"smallint\":\n case \"integer\":\n case \"decimal\":\n case \"real\":\n case \"smallserial\":\n case \"serial\":\n case \"double precision\":\n return \"number\";\n case \"bigserial\":\n case \"bigint\":\n return \"bigint\";\n case \"text\":\n case \"citext\":\n case \"character varying\":\n case \"varchar\":\n case \"uuid\":\n case \"tsvector\":\n case \"tstzrange\":\n return \"string\";\n case \"time without time zone\":\n return config.temporal\n ? plainTimeCode\n : fail(\"Joist doesn't support 'time without time zone' unless temporal is enabled\");\n case \"timestamp with time zone\":\n return config.temporal ? zonedDateTimeCode : dateCode;\n case \"timestamp without time zone\":\n return config.temporal ? plainDateTimeCode : dateCode;\n case \"date\":\n return config.temporal ? plainDateCode : dateCode;\n case \"jsonb\":\n return \"Object\";\n case \"bytea\":\n return \"Uint8Array\";\n case \"vector\":\n // pgvector columns are a single value (not a physical pg array), so `isArray` stays false\n return \"number[]\";\n default:\n assertNever(dbType);\n }\n}\n\nexport function merge<T>(a: T[], b: T[]): T[] {\n return [...a, ...b];\n}\n\n/** Returns true if `p` is resolved, otherwise false if it is rejected. */\nexport async function trueIfResolved(p: Promise<unknown>): Promise<boolean> {\n return p.then(\n () => true,\n () => false,\n );\n}\n\nexport function fail(message?: string): never {\n throw new Error(message || \"Failed\");\n}\n\nexport function sortKeys<T extends object>(o: T): T {\n return Object.keys(o)\n .sort()\n .reduce(\n (acc, key) => {\n const value = o[key as keyof T];\n const newValue = typeof value === \"object\" && isPlainObject(value) ? sortKeys(value as any as object) : value;\n acc[key as keyof T] = newValue as any;\n return acc;\n },\n {} as any as T,\n );\n}\n\nexport function parseOrder(order: string | undefined): { field: string; direction: \"ASC\" | \"DESC\" } | undefined {\n if (!order) {\n return undefined;\n }\n const [field, direction = \"ASC\"] = order.split(\" \");\n if (direction !== \"ASC\" && direction !== \"DESC\") {\n throw new Error(`Invalid direction: ${direction} (must be \"ASC\" or \"DESC\")`);\n }\n return { field, direction };\n}\n\nexport function q(s: string | undefined): string {\n return s === undefined ? \"undefined\" : `\"${s}\"`;\n}\n\nexport function uncapitalize(s: string): string {\n return s.charAt(0).toLowerCase() + s.slice(1);\n}\n\nfunction isIgnored(config: Config, t: Table): boolean {\n return (config.ignoredTables || [\"migrations\", \"pgmigrations\"]).includes(t.name) || !shouldIncludeSchema(config, t);\n}\n\n/** Uses the same schema selection for metadata and test database cleanup. */\nexport function shouldIncludeSchema(config: Config, t: Table): boolean {\n return config.schemas ? config.schemas.includes(t.schema.name) : t.schema.name === \"public\";\n}\n"],"mappings":";;;;;;;;;;;AASA,SAAgB,YAAY,GAAiB;CAC3C,MAAM,IAAI,MAAM,wBAAwB,CAAC;AAC3C;AAEA,SAAgB,cAAc,QAAgB,GAAmB;CAC/D,IAAI,UAAU,QAAQ,CAAC,KAAK,YAAY,QAAQ,CAAC,GAC/C,OAAO;CAKT,MAAM,cAAc,EAAE,QAAQ,KAAK,MAAM,EAAE,IAAI;CAC/C,MAAM,EAAE,eAAe,kBAAkBA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[],"sources":["../src/utils.ts"],"mappings":";;;;wBASgB,YAAY;wBAIZ,cAAc,QAAQ,QAAQ,GAAG;wBA8BjC,gBAAgB,GAAG;wBAKnB,YAAY,QAAQ,QAAQ,GAAG;wBAW/B,YAAY,QAAQ,QAAQ,GAAG;;wBAoB/B,eAAe,GAAG;;wBAelB,kBAAkB,QAAQ,QAAQ,OAAO;qBAY5C,4BAAQ;qBACR,iCAAa;qBACb,iCAAa;qBACb,qCAAiB;qBACjB,qCAAiB;;wBAGd,gCAAgC,QAAQ,QAAQ,QAAQ,qBAAqB;wBA+C7E,MAAM,GAAG,GAAG,KAAK,GAAG,MAAM;;wBAKpB,eAAe,GAAG,mBAAmB;wBAO3C,KAAK;wBAIL,SAAS,kBAAkB,GAAG,IAAI;wBAclC,WAAW;EAA8B;EAAe;;wBAWxD,EAAE;wBAIF,aAAa;;wBASb,oBAAoB,QAAQ,QAAQ,GAAG"}
package/build/utils.js CHANGED
@@ -104,6 +104,7 @@ function mapSimpleDbTypeToTypescriptType(config, dbType) {
104
104
  case "date": return config.temporal ? plainDateCode : dateCode;
105
105
  case "jsonb": return "Object";
106
106
  case "bytea": return "Uint8Array";
107
+ case "vector": return "number[]";
107
108
  default: assertNever(dbType);
108
109
  }
109
110
  }
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","names":[],"sources":["../src/utils.ts"],"sourcesContent":["import { pascalCase } from \"change-case\";\nimport { isPlainObject } from \"joist-utils\";\nimport pluralize from \"pluralize\";\nimport { code, imp } from \"ts-poet\";\n\nimport { type Config, getTimestampConfig } from \"./config.ts\";\nimport { type DatabaseColumnType, type PrimitiveTypescriptType } from \"./EntityDbMetadata.ts\";\nimport { type Table } from \"./pgMetadata.ts\";\n\nexport function assertNever(x: never): never {\n throw new Error(\"Unexpected object: \" + x);\n}\n\nexport function isEntityTable(config: Config, t: Table): boolean {\n if (isIgnored(config, t) || isJoinTable(config, t)) {\n return false;\n }\n\n // Depending on the config settings, we may/may not require the presence of timestamp\n // fields to determine whether a table is an entity.\n const columnNames = t.columns.map((c) => c.name);\n const { updatedAtConf, createdAtConf } = getTimestampConfig(config);\n const hasCreatedAt = createdAtConf.names.some((c) => columnNames.includes(c));\n const hasUpdatedAt = updatedAtConf.names.some((c) => columnNames.includes(c));\n\n // Entities always require an id column\n const hasIdColumn = columnNames.includes(\"id\");\n if (!hasIdColumn) return false;\n\n // If we have no timestamp columns, but do have `name` and `code`, we're probably an enum.\n if (hasIdColumn && !hasCreatedAt && !hasUpdatedAt) {\n if ([\"name\", \"code\"].every((c) => columnNames.includes(c))) {\n return false;\n }\n }\n\n // If the ID column is a FK then we're a subclass\n if (isSubClassTable(t)) return true;\n\n // Otherwise respect the created_at/updated_at required rules\n return hasIdColumn && (hasCreatedAt || !createdAtConf.required) && (hasUpdatedAt || !updatedAtConf.required);\n}\n\nexport function isSubClassTable(t: Table): boolean {\n // Note that `.get(\"id\")` will blow up if there is no id column\n return t.columns.get(\"id\").foreignKeys.length === 1;\n}\n\nexport function isEnumTable(config: Config, t: Table): boolean {\n if (isIgnored(config, t)) {\n return false;\n }\n const columnNames = t.columns.map((c) => c.name);\n return [\"id\", \"code\", \"name\"].every((c) => columnNames.includes(c)) && !isEntityTable(config, t);\n}\n\n// Oddly enough isJoinTable showed up as a hot spot, so cache its calculation.\nconst joinTables: Map<string, boolean> = new Map();\n\nexport function isJoinTable(config: Config, t: Table): boolean {\n if (isIgnored(config, t)) {\n return false;\n }\n return getOrElse(joinTables, t.name, () => {\n const { columns } = t;\n const fks = columns.filter((c) => c.isForeignKey);\n const pks = columns.filter((c) => c.isPrimaryKey);\n // Every join table is two FKs, plus either a surrogate `id` PK (\"id-ful\") or no surrogate\n // at all, in which case the two FKs are themselves the composite PK (\"id-less\").\n if (fks.length !== 2) return false;\n if (!joinTableHasId(t) && !(pks.length === 2 && pks.every((c) => c.isForeignKey))) return false;\n // Any column beyond the two FKs and the optional `id` PK must be a single created_at.\n const others = columns.length - fks.length - (joinTableHasId(t) ? 1 : 0);\n const createdAts = columns.filter((c) => c.name === \"created_at\" || c.name === \"createdAt\").length;\n return others === 0 || (others === 1 && createdAts === 1);\n });\n}\n\n/** Whether a join table has a surrogate `id` primary key (vs. an id-less FK-pair composite PK). */\nexport function joinTableHasId(t: Table): boolean {\n const pks = t.columns.filter((c) => c.isPrimaryKey);\n return pks.length === 1 && !pks[0].isForeignKey;\n}\n\nfunction getOrElse<K, V>(map: Map<K, V>, key: K, fn: () => V): V {\n let value = map.get(key);\n if (value === undefined) {\n value = fn();\n map.set(key, value);\n }\n return value;\n}\n\n/** Converts `projects` to `Project`. */\nexport function tableToEntityName(config: Config, table: Table): string {\n let entityName = config.__tableToEntityName?.[table.name];\n if (!entityName) {\n const configEntityName = Object.entries(config.entities)\n .filter(([, conf]) => conf.tableName === table.name)\n .map(([entityName]) => entityName)[0];\n entityName = configEntityName || pascalCase(pluralize.singular(table.name));\n (config.__tableToEntityName ??= {})[table.name] = entityName;\n }\n return entityName;\n}\n\nexport const dateCode = code`Date`;\nexport const plainDateCode = code`${imp(\"Temporal@joist-orm\")}.PlainDate`;\nexport const plainTimeCode = code`${imp(\"Temporal@joist-orm\")}.PlainTime`;\nexport const plainDateTimeCode = code`${imp(\"Temporal@joist-orm\")}.PlainDateTime`;\nexport const zonedDateTimeCode = code`${imp(\"Temporal@joist-orm\")}.ZonedDateTime`;\n\n/** Maps db types, i.e. `int`, to JS types, i.e. `number`. */\nexport function mapSimpleDbTypeToTypescriptType(config: Config, dbType: DatabaseColumnType): PrimitiveTypescriptType {\n switch (dbType) {\n case \"boolean\":\n return \"boolean\";\n case \"int\":\n case \"numeric\":\n case \"smallint\":\n case \"integer\":\n case \"decimal\":\n case \"real\":\n case \"smallserial\":\n case \"serial\":\n case \"double precision\":\n return \"number\";\n case \"bigserial\":\n case \"bigint\":\n return \"bigint\";\n case \"text\":\n case \"citext\":\n case \"character varying\":\n case \"varchar\":\n case \"uuid\":\n case \"tsvector\":\n case \"tstzrange\":\n return \"string\";\n case \"time without time zone\":\n return config.temporal\n ? plainTimeCode\n : fail(\"Joist doesn't support 'time without time zone' unless temporal is enabled\");\n case \"timestamp with time zone\":\n return config.temporal ? zonedDateTimeCode : dateCode;\n case \"timestamp without time zone\":\n return config.temporal ? plainDateTimeCode : dateCode;\n case \"date\":\n return config.temporal ? plainDateCode : dateCode;\n case \"jsonb\":\n return \"Object\";\n case \"bytea\":\n return \"Uint8Array\";\n default:\n assertNever(dbType);\n }\n}\n\nexport function merge<T>(a: T[], b: T[]): T[] {\n return [...a, ...b];\n}\n\n/** Returns true if `p` is resolved, otherwise false if it is rejected. */\nexport async function trueIfResolved(p: Promise<unknown>): Promise<boolean> {\n return p.then(\n () => true,\n () => false,\n );\n}\n\nexport function fail(message?: string): never {\n throw new Error(message || \"Failed\");\n}\n\nexport function sortKeys<T extends object>(o: T): T {\n return Object.keys(o)\n .sort()\n .reduce(\n (acc, key) => {\n const value = o[key as keyof T];\n const newValue = typeof value === \"object\" && isPlainObject(value) ? sortKeys(value as any as object) : value;\n acc[key as keyof T] = newValue as any;\n return acc;\n },\n {} as any as T,\n );\n}\n\nexport function parseOrder(order: string | undefined): { field: string; direction: \"ASC\" | \"DESC\" } | undefined {\n if (!order) {\n return undefined;\n }\n const [field, direction = \"ASC\"] = order.split(\" \");\n if (direction !== \"ASC\" && direction !== \"DESC\") {\n throw new Error(`Invalid direction: ${direction} (must be \"ASC\" or \"DESC\")`);\n }\n return { field, direction };\n}\n\nexport function q(s: string | undefined): string {\n return s === undefined ? \"undefined\" : `\"${s}\"`;\n}\n\nexport function uncapitalize(s: string): string {\n return s.charAt(0).toLowerCase() + s.slice(1);\n}\n\nfunction isIgnored(config: Config, t: Table): boolean {\n return (config.ignoredTables || [\"migrations\", \"pgmigrations\"]).includes(t.name) || !shouldIncludeSchema(config, t);\n}\n\n/** Uses the same schema selection for metadata and test database cleanup. */\nexport function shouldIncludeSchema(config: Config, t: Table): boolean {\n return config.schemas ? config.schemas.includes(t.schema.name) : t.schema.name === \"public\";\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CACH;AACJ;AAEA,SAAgB,WAAW,OAAqF;CAC9G,IAAI,CAAC,OACH;CAEF,MAAM,CAAC,OAAO,YAAY,SAAS,MAAM,MAAM,GAAG;CAClD,IAAI,cAAc,SAAS,cAAc,QACvC,MAAM,IAAI,MAAM,sBAAsB,UAAU,2BAA2B;CAE7E,OAAO;EAAE;EAAO;CAAU;AAC5B;AAEA,SAAgB,EAAE,GAA+B;CAC/C,OAAO,MAAM,KAAA,IAAY,cAAc,IAAI,EAAE;AAC/C;AAEA,SAAgB,aAAa,GAAmB;CAC9C,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,YAAY,IAAI,EAAE,MAAM,CAAC;AAC9C;AAEA,SAAS,UAAU,QAAgB,GAAmB;CACpD,QAAQ,OAAO,iBAAiB,CAAC,cAAc,cAAc,EAAA,CAAG,SAAS,EAAE,IAAI,KAAK,CAAC,oBAAoB,QAAQ,CAAC;AACpH;;AAGA,SAAgB,oBAAoB,QAAgB,GAAmB;CACrE,OAAO,OAAO,UAAU,OAAO,QAAQ,SAAS,EAAE,OAAO,IAAI,IAAI,EAAE,OAAO,SAAS;AACrF"}
1
+ {"version":3,"file":"utils.js","names":[],"sources":["../src/utils.ts"],"sourcesContent":["import { pascalCase } from \"change-case\";\nimport { isPlainObject } from \"joist-utils\";\nimport pluralize from \"pluralize\";\nimport { code, imp } from \"ts-poet\";\n\nimport { type Config, getTimestampConfig } from \"./config.ts\";\nimport { type DatabaseColumnType, type PrimitiveTypescriptType } from \"./EntityDbMetadata.ts\";\nimport { type Table } from \"./pgMetadata.ts\";\n\nexport function assertNever(x: never): never {\n throw new Error(\"Unexpected object: \" + x);\n}\n\nexport function isEntityTable(config: Config, t: Table): boolean {\n if (isIgnored(config, t) || isJoinTable(config, t)) {\n return false;\n }\n\n // Depending on the config settings, we may/may not require the presence of timestamp\n // fields to determine whether a table is an entity.\n const columnNames = t.columns.map((c) => c.name);\n const { updatedAtConf, createdAtConf } = getTimestampConfig(config);\n const hasCreatedAt = createdAtConf.names.some((c) => columnNames.includes(c));\n const hasUpdatedAt = updatedAtConf.names.some((c) => columnNames.includes(c));\n\n // Entities always require an id column\n const hasIdColumn = columnNames.includes(\"id\");\n if (!hasIdColumn) return false;\n\n // If we have no timestamp columns, but do have `name` and `code`, we're probably an enum.\n if (hasIdColumn && !hasCreatedAt && !hasUpdatedAt) {\n if ([\"name\", \"code\"].every((c) => columnNames.includes(c))) {\n return false;\n }\n }\n\n // If the ID column is a FK then we're a subclass\n if (isSubClassTable(t)) return true;\n\n // Otherwise respect the created_at/updated_at required rules\n return hasIdColumn && (hasCreatedAt || !createdAtConf.required) && (hasUpdatedAt || !updatedAtConf.required);\n}\n\nexport function isSubClassTable(t: Table): boolean {\n // Note that `.get(\"id\")` will blow up if there is no id column\n return t.columns.get(\"id\").foreignKeys.length === 1;\n}\n\nexport function isEnumTable(config: Config, t: Table): boolean {\n if (isIgnored(config, t)) {\n return false;\n }\n const columnNames = t.columns.map((c) => c.name);\n return [\"id\", \"code\", \"name\"].every((c) => columnNames.includes(c)) && !isEntityTable(config, t);\n}\n\n// Oddly enough isJoinTable showed up as a hot spot, so cache its calculation.\nconst joinTables: Map<string, boolean> = new Map();\n\nexport function isJoinTable(config: Config, t: Table): boolean {\n if (isIgnored(config, t)) {\n return false;\n }\n return getOrElse(joinTables, t.name, () => {\n const { columns } = t;\n const fks = columns.filter((c) => c.isForeignKey);\n const pks = columns.filter((c) => c.isPrimaryKey);\n // Every join table is two FKs, plus either a surrogate `id` PK (\"id-ful\") or no surrogate\n // at all, in which case the two FKs are themselves the composite PK (\"id-less\").\n if (fks.length !== 2) return false;\n if (!joinTableHasId(t) && !(pks.length === 2 && pks.every((c) => c.isForeignKey))) return false;\n // Any column beyond the two FKs and the optional `id` PK must be a single created_at.\n const others = columns.length - fks.length - (joinTableHasId(t) ? 1 : 0);\n const createdAts = columns.filter((c) => c.name === \"created_at\" || c.name === \"createdAt\").length;\n return others === 0 || (others === 1 && createdAts === 1);\n });\n}\n\n/** Whether a join table has a surrogate `id` primary key (vs. an id-less FK-pair composite PK). */\nexport function joinTableHasId(t: Table): boolean {\n const pks = t.columns.filter((c) => c.isPrimaryKey);\n return pks.length === 1 && !pks[0].isForeignKey;\n}\n\nfunction getOrElse<K, V>(map: Map<K, V>, key: K, fn: () => V): V {\n let value = map.get(key);\n if (value === undefined) {\n value = fn();\n map.set(key, value);\n }\n return value;\n}\n\n/** Converts `projects` to `Project`. */\nexport function tableToEntityName(config: Config, table: Table): string {\n let entityName = config.__tableToEntityName?.[table.name];\n if (!entityName) {\n const configEntityName = Object.entries(config.entities)\n .filter(([, conf]) => conf.tableName === table.name)\n .map(([entityName]) => entityName)[0];\n entityName = configEntityName || pascalCase(pluralize.singular(table.name));\n (config.__tableToEntityName ??= {})[table.name] = entityName;\n }\n return entityName;\n}\n\nexport const dateCode = code`Date`;\nexport const plainDateCode = code`${imp(\"Temporal@joist-orm\")}.PlainDate`;\nexport const plainTimeCode = code`${imp(\"Temporal@joist-orm\")}.PlainTime`;\nexport const plainDateTimeCode = code`${imp(\"Temporal@joist-orm\")}.PlainDateTime`;\nexport const zonedDateTimeCode = code`${imp(\"Temporal@joist-orm\")}.ZonedDateTime`;\n\n/** Maps db types, i.e. `int`, to JS types, i.e. `number`. */\nexport function mapSimpleDbTypeToTypescriptType(config: Config, dbType: DatabaseColumnType): PrimitiveTypescriptType {\n switch (dbType) {\n case \"boolean\":\n return \"boolean\";\n case \"int\":\n case \"numeric\":\n case \"smallint\":\n case \"integer\":\n case \"decimal\":\n case \"real\":\n case \"smallserial\":\n case \"serial\":\n case \"double precision\":\n return \"number\";\n case \"bigserial\":\n case \"bigint\":\n return \"bigint\";\n case \"text\":\n case \"citext\":\n case \"character varying\":\n case \"varchar\":\n case \"uuid\":\n case \"tsvector\":\n case \"tstzrange\":\n return \"string\";\n case \"time without time zone\":\n return config.temporal\n ? plainTimeCode\n : fail(\"Joist doesn't support 'time without time zone' unless temporal is enabled\");\n case \"timestamp with time zone\":\n return config.temporal ? zonedDateTimeCode : dateCode;\n case \"timestamp without time zone\":\n return config.temporal ? plainDateTimeCode : dateCode;\n case \"date\":\n return config.temporal ? plainDateCode : dateCode;\n case \"jsonb\":\n return \"Object\";\n case \"bytea\":\n return \"Uint8Array\";\n case \"vector\":\n // pgvector columns are a single value (not a physical pg array), so `isArray` stays false\n return \"number[]\";\n default:\n assertNever(dbType);\n }\n}\n\nexport function merge<T>(a: T[], b: T[]): T[] {\n return [...a, ...b];\n}\n\n/** Returns true if `p` is resolved, otherwise false if it is rejected. */\nexport async function trueIfResolved(p: Promise<unknown>): Promise<boolean> {\n return p.then(\n () => true,\n () => false,\n );\n}\n\nexport function fail(message?: string): never {\n throw new Error(message || \"Failed\");\n}\n\nexport function sortKeys<T extends object>(o: T): T {\n return Object.keys(o)\n .sort()\n .reduce(\n (acc, key) => {\n const value = o[key as keyof T];\n const newValue = typeof value === \"object\" && isPlainObject(value) ? sortKeys(value as any as object) : value;\n acc[key as keyof T] = newValue as any;\n return acc;\n },\n {} as any as T,\n );\n}\n\nexport function parseOrder(order: string | undefined): { field: string; direction: \"ASC\" | \"DESC\" } | undefined {\n if (!order) {\n return undefined;\n }\n const [field, direction = \"ASC\"] = order.split(\" \");\n if (direction !== \"ASC\" && direction !== \"DESC\") {\n throw new Error(`Invalid direction: ${direction} (must be \"ASC\" or \"DESC\")`);\n }\n return { field, direction };\n}\n\nexport function q(s: string | undefined): string {\n return s === undefined ? \"undefined\" : `\"${s}\"`;\n}\n\nexport function uncapitalize(s: string): string {\n return s.charAt(0).toLowerCase() + s.slice(1);\n}\n\nfunction isIgnored(config: Config, t: Table): boolean {\n return (config.ignoredTables || [\"migrations\", \"pgmigrations\"]).includes(t.name) || !shouldIncludeSchema(config, t);\n}\n\n/** Uses the same schema selection for metadata and test database cleanup. */\nexport function shouldIncludeSchema(config: Config, t: Table): boolean {\n return config.schemas ? config.schemas.includes(t.schema.name) : t.schema.name === \"public\";\n}\n"],"mappings":";;;;;;;;AASA,SAAgB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AAEA,SAAgB,WAAW,OAAqF;CAC9G,IAAI,CAAC,OACH;CAEF,MAAM,CAAC,OAAO,YAAY,SAAS,MAAM,MAAM,GAAG;CAClD,IAAI,cAAc,SAAS,cAAc,QACvC,MAAM,IAAI,MAAM,sBAAsB,UAAU,2BAA2B;CAE7E,OAAO;EAAE;EAAO;CAAU;AAC5B;AAEA,SAAgB,EAAE,GAA+B;CAC/C,OAAO,MAAM,KAAA,IAAY,cAAc,IAAI,EAAE;AAC/C;AAEA,SAAgB,aAAa,GAAmB;CAC9C,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,YAAY,IAAI,EAAE,MAAM,CAAC;AAC9C;AAEA,SAAS,UAAU,QAAgB,GAAmB;CACpD,QAAQ,OAAO,iBAAiB,CAAC,cAAc,cAAc,EAAA,CAAG,SAAS,EAAE,IAAI,KAAK,CAAC,oBAAoB,QAAQ,CAAC;AACpH;;AAGA,SAAgB,oBAAoB,QAAgB,GAAmB;CACrE,OAAO,OAAO,UAAU,OAAO,QAAQ,SAAS,EAAE,OAAO,IAAI,IAAI,EAAE,OAAO,SAAS;AACrF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joist-codegen",
3
- "version": "2.4.0-next.40",
3
+ "version": "2.4.0-next.42",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {
@@ -48,7 +48,7 @@
48
48
  "skills"
49
49
  ],
50
50
  "peerDependencies": {
51
- "joist-utils": "2.4.0-next.40",
51
+ "joist-utils": "2.4.0-next.42",
52
52
  "knex": "^3.1.0",
53
53
  "pg": "^8.23.0"
54
54
  },