@rvoh/dream 0.29.2 → 0.29.4

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 (272) hide show
  1. package/dist/cjs/src/Dream.js +59 -2
  2. package/dist/cjs/src/decorators/Decorators.js +34 -26
  3. package/dist/cjs/src/decorators/STI.js +1 -1
  4. package/dist/cjs/src/decorators/associations/shared.js +3 -3
  5. package/dist/cjs/src/decorators/hooks/AfterCreate.js +1 -1
  6. package/dist/cjs/src/decorators/hooks/AfterCreateCommit.js +1 -1
  7. package/dist/cjs/src/decorators/hooks/AfterDestroy.js +1 -1
  8. package/dist/cjs/src/decorators/hooks/AfterDestroyCommit.js +1 -1
  9. package/dist/cjs/src/decorators/hooks/AfterSave.js +1 -1
  10. package/dist/cjs/src/decorators/hooks/AfterSaveCommit.js +1 -1
  11. package/dist/cjs/src/decorators/hooks/AfterUpdate.js +1 -1
  12. package/dist/cjs/src/decorators/hooks/AfterUpdateCommit.js +1 -1
  13. package/dist/cjs/src/decorators/hooks/BeforeCreate.js +1 -1
  14. package/dist/cjs/src/decorators/hooks/BeforeDestroy.js +1 -1
  15. package/dist/cjs/src/decorators/hooks/BeforeSave.js +1 -1
  16. package/dist/cjs/src/decorators/hooks/BeforeUpdate.js +1 -1
  17. package/dist/cjs/src/decorators/sortable/Sortable.js +8 -19
  18. package/dist/cjs/src/dream/Query.js +8 -8
  19. package/dist/cjs/src/dream/internal/associations/createAssociation.js +1 -1
  20. package/dist/cjs/src/dream/internal/runHooksFor.js +1 -1
  21. package/dist/cjs/src/dream/internal/saveDream.js +1 -1
  22. package/dist/cjs/src/dream/internal/sqlResultToDreamInstance.js +1 -1
  23. package/dist/cjs/src/errors/CannotCallUndestroyOnANonSoftDeleteModel.js +1 -1
  24. package/dist/cjs/src/errors/CannotDefineAssociationWithBothDependentAndPassthrough.js +1 -1
  25. package/dist/cjs/src/errors/CannotDefineAssociationWithBothDependentAndRequiredOnClause.js +1 -1
  26. package/dist/cjs/src/errors/CannotPassUndefinedAsAValueToAWhereClause.js +1 -1
  27. package/dist/cjs/src/errors/CannotReloadUnsavedDream.js +1 -1
  28. package/dist/cjs/src/errors/CreateOrFindByFailedToCreateAndFind.js +1 -1
  29. package/dist/cjs/src/errors/DoNotSetEncryptedFieldsDirectly.js +1 -1
  30. package/dist/cjs/src/errors/MissingDeletedAtFieldForSoftDelete.js +1 -1
  31. package/dist/cjs/src/errors/MissingSerializersDefinition.js +5 -5
  32. package/dist/cjs/src/errors/MissingTable.js +4 -4
  33. package/dist/cjs/src/errors/NonBelongsToAssociationProvidedAsSortableDecoratorScope.js +2 -2
  34. package/dist/cjs/src/errors/NonExistentScopeProvidedToResort.js +2 -2
  35. package/dist/cjs/src/errors/SortableDecoratorRequiresColumnOrBelongsToAssociation.js +3 -3
  36. package/dist/cjs/src/errors/associations/CanOnlyPassBelongsToModelParam.js +1 -1
  37. package/dist/cjs/src/errors/associations/CannotAssociateThroughPolymorphic.js +1 -1
  38. package/dist/cjs/src/errors/associations/CannotCreateAssociationWithThroughContext.js +1 -1
  39. package/dist/cjs/src/errors/associations/CannotJoinPolymorphicBelongsToError.js +1 -1
  40. package/dist/cjs/src/errors/associations/CannotPassNullOrUndefinedToRequiredBelongsTo.js +1 -1
  41. package/dist/cjs/src/errors/associations/InvalidComputedForeignKey.js +2 -2
  42. package/dist/cjs/src/errors/associations/JoinAttemptedOnMissingAssociation.js +4 -4
  43. package/dist/cjs/src/errors/associations/MissingThroughAssociation.js +4 -4
  44. package/dist/cjs/src/errors/associations/MissingThroughAssociationSource.js +10 -10
  45. package/dist/cjs/src/errors/associations/NonLoadedAssociation.js +1 -1
  46. package/dist/cjs/src/errors/ops/AnyRequiresArrayColumn.js +1 -1
  47. package/dist/cjs/src/errors/schema-builder/FailedToIdentifyAssociation.js +4 -4
  48. package/dist/cjs/src/errors/sti/STIChildMissing.js +1 -1
  49. package/dist/cjs/src/errors/sti/StiChildIncompatibleWithSoftDeleteDecorator.js +1 -1
  50. package/dist/cjs/src/index.js +2 -28
  51. package/dist/esm/src/Dream.js +59 -2
  52. package/dist/esm/src/decorators/Decorators.js +34 -26
  53. package/dist/esm/src/decorators/STI.js +1 -1
  54. package/dist/esm/src/decorators/associations/shared.js +3 -3
  55. package/dist/esm/src/decorators/hooks/AfterCreate.js +1 -1
  56. package/dist/esm/src/decorators/hooks/AfterCreateCommit.js +1 -1
  57. package/dist/esm/src/decorators/hooks/AfterDestroy.js +1 -1
  58. package/dist/esm/src/decorators/hooks/AfterDestroyCommit.js +1 -1
  59. package/dist/esm/src/decorators/hooks/AfterSave.js +1 -1
  60. package/dist/esm/src/decorators/hooks/AfterSaveCommit.js +1 -1
  61. package/dist/esm/src/decorators/hooks/AfterUpdate.js +1 -1
  62. package/dist/esm/src/decorators/hooks/AfterUpdateCommit.js +1 -1
  63. package/dist/esm/src/decorators/hooks/BeforeCreate.js +1 -1
  64. package/dist/esm/src/decorators/hooks/BeforeDestroy.js +1 -1
  65. package/dist/esm/src/decorators/hooks/BeforeSave.js +1 -1
  66. package/dist/esm/src/decorators/hooks/BeforeUpdate.js +1 -1
  67. package/dist/esm/src/decorators/sortable/Sortable.js +8 -19
  68. package/dist/esm/src/dream/Query.js +8 -8
  69. package/dist/esm/src/dream/internal/associations/createAssociation.js +1 -1
  70. package/dist/esm/src/dream/internal/runHooksFor.js +1 -1
  71. package/dist/esm/src/dream/internal/saveDream.js +1 -1
  72. package/dist/esm/src/dream/internal/sqlResultToDreamInstance.js +1 -1
  73. package/dist/esm/src/errors/CannotCallUndestroyOnANonSoftDeleteModel.js +1 -1
  74. package/dist/esm/src/errors/CannotDefineAssociationWithBothDependentAndPassthrough.js +1 -1
  75. package/dist/esm/src/errors/CannotDefineAssociationWithBothDependentAndRequiredOnClause.js +1 -1
  76. package/dist/esm/src/errors/CannotPassUndefinedAsAValueToAWhereClause.js +1 -1
  77. package/dist/esm/src/errors/CannotReloadUnsavedDream.js +1 -1
  78. package/dist/esm/src/errors/CreateOrFindByFailedToCreateAndFind.js +1 -1
  79. package/dist/esm/src/errors/DoNotSetEncryptedFieldsDirectly.js +1 -1
  80. package/dist/esm/src/errors/MissingDeletedAtFieldForSoftDelete.js +1 -1
  81. package/dist/esm/src/errors/MissingSerializersDefinition.js +5 -5
  82. package/dist/esm/src/errors/MissingTable.js +4 -4
  83. package/dist/esm/src/errors/NonBelongsToAssociationProvidedAsSortableDecoratorScope.js +2 -2
  84. package/dist/esm/src/errors/NonExistentScopeProvidedToResort.js +2 -2
  85. package/dist/esm/src/errors/SortableDecoratorRequiresColumnOrBelongsToAssociation.js +3 -3
  86. package/dist/esm/src/errors/associations/CanOnlyPassBelongsToModelParam.js +1 -1
  87. package/dist/esm/src/errors/associations/CannotAssociateThroughPolymorphic.js +1 -1
  88. package/dist/esm/src/errors/associations/CannotCreateAssociationWithThroughContext.js +1 -1
  89. package/dist/esm/src/errors/associations/CannotJoinPolymorphicBelongsToError.js +1 -1
  90. package/dist/esm/src/errors/associations/CannotPassNullOrUndefinedToRequiredBelongsTo.js +1 -1
  91. package/dist/esm/src/errors/associations/InvalidComputedForeignKey.js +2 -2
  92. package/dist/esm/src/errors/associations/JoinAttemptedOnMissingAssociation.js +4 -4
  93. package/dist/esm/src/errors/associations/MissingThroughAssociation.js +4 -4
  94. package/dist/esm/src/errors/associations/MissingThroughAssociationSource.js +10 -10
  95. package/dist/esm/src/errors/associations/NonLoadedAssociation.js +1 -1
  96. package/dist/esm/src/errors/ops/AnyRequiresArrayColumn.js +1 -1
  97. package/dist/esm/src/errors/schema-builder/FailedToIdentifyAssociation.js +4 -4
  98. package/dist/esm/src/errors/sti/STIChildMissing.js +1 -1
  99. package/dist/esm/src/errors/sti/StiChildIncompatibleWithSoftDeleteDecorator.js +1 -1
  100. package/dist/esm/src/index.js +0 -13
  101. package/dist/types/src/Dream.d.ts +50 -1
  102. package/dist/types/src/decorators/Decorators.d.ts +34 -26
  103. package/dist/types/src/index.d.ts +0 -13
  104. package/docs/assets/navigation.js +1 -1
  105. package/docs/assets/search.js +1 -1
  106. package/docs/classes/Benchmark.html +2 -2
  107. package/docs/classes/CalendarDate.html +2 -2
  108. package/docs/classes/CreateOrFindByFailedToCreateAndFind.html +3 -3
  109. package/docs/classes/Decorators.html +31 -28
  110. package/docs/classes/Dream.html +147 -123
  111. package/docs/classes/DreamApplication.html +4 -4
  112. package/docs/classes/DreamBin.html +2 -2
  113. package/docs/classes/DreamCLI.html +3 -3
  114. package/docs/classes/DreamImporter.html +2 -2
  115. package/docs/classes/DreamMigrationHelpers.html +7 -7
  116. package/docs/classes/DreamSerializer.html +2 -2
  117. package/docs/classes/DreamTransaction.html +2 -2
  118. package/docs/classes/Encrypt.html +2 -2
  119. package/docs/classes/Env.html +2 -2
  120. package/docs/classes/GlobalNameNotSet.html +3 -3
  121. package/docs/classes/NonLoadedAssociation.html +3 -3
  122. package/docs/classes/Query.html +50 -50
  123. package/docs/classes/Range.html +2 -2
  124. package/docs/classes/RecordNotFound.html +3 -3
  125. package/docs/classes/ValidationError.html +3 -3
  126. package/docs/functions/Attribute.html +1 -1
  127. package/docs/functions/RendersMany.html +1 -1
  128. package/docs/functions/RendersOne.html +1 -1
  129. package/docs/functions/ReplicaSafe.html +1 -1
  130. package/docs/functions/STI.html +1 -1
  131. package/docs/functions/Scope.html +1 -1
  132. package/docs/functions/SoftDelete.html +1 -1
  133. package/docs/functions/Validate.html +1 -1
  134. package/docs/functions/Validates.html +1 -1
  135. package/docs/functions/Virtual.html +1 -1
  136. package/docs/functions/camelize.html +1 -1
  137. package/docs/functions/capitalize.html +1 -1
  138. package/docs/functions/closeAllDbConnections.html +1 -1
  139. package/docs/functions/compact.html +1 -1
  140. package/docs/functions/db.html +1 -1
  141. package/docs/functions/debug.html +1 -1
  142. package/docs/functions/dreamDbConnections.html +1 -1
  143. package/docs/functions/dreamPath.html +1 -1
  144. package/docs/functions/generateDream.html +1 -1
  145. package/docs/functions/globalClassNameFromFullyQualifiedModelName.html +1 -1
  146. package/docs/functions/hyphenize.html +1 -1
  147. package/docs/functions/inferSerializerFromDreamClassOrViewModelClass.html +1 -1
  148. package/docs/functions/inferSerializerFromDreamOrViewModel.html +1 -1
  149. package/docs/functions/isEmpty.html +1 -1
  150. package/docs/functions/loadRepl.html +1 -1
  151. package/docs/functions/lookupClassByGlobalName.html +1 -1
  152. package/docs/functions/pascalize.html +1 -1
  153. package/docs/functions/pgErrorType.html +1 -1
  154. package/docs/functions/range-1.html +1 -1
  155. package/docs/functions/relativeDreamPath.html +1 -1
  156. package/docs/functions/round.html +1 -1
  157. package/docs/functions/serializerNameFromFullyQualifiedModelName.html +1 -1
  158. package/docs/functions/sharedPathPrefix.html +1 -1
  159. package/docs/functions/snakeify.html +1 -1
  160. package/docs/functions/sortBy.html +1 -1
  161. package/docs/functions/standardizeFullyQualifiedModelName.html +1 -1
  162. package/docs/functions/uncapitalize.html +1 -1
  163. package/docs/functions/uniq.html +1 -1
  164. package/docs/functions/validateColumn.html +1 -1
  165. package/docs/functions/validateTable.html +1 -1
  166. package/docs/interfaces/AttributeStatement.html +2 -2
  167. package/docs/interfaces/DecoratorContext.html +2 -2
  168. package/docs/interfaces/DreamApplicationInitOptions.html +2 -2
  169. package/docs/interfaces/DreamApplicationOpts.html +2 -2
  170. package/docs/interfaces/DreamSerializerAssociationStatement.html +2 -2
  171. package/docs/interfaces/EncryptOptions.html +2 -2
  172. package/docs/interfaces/OpenapiSchemaProperties.html +1 -1
  173. package/docs/interfaces/OpenapiSchemaPropertiesShorthand.html +1 -1
  174. package/docs/interfaces/OpenapiTypeFieldObject.html +1 -1
  175. package/docs/modules.html +1 -14
  176. package/docs/types/Camelized.html +1 -1
  177. package/docs/types/CommonOpenapiSchemaObjectFields.html +1 -1
  178. package/docs/types/DreamAssociationMetadata.html +1 -1
  179. package/docs/types/DreamAttributes.html +1 -1
  180. package/docs/types/DreamClassColumn.html +1 -1
  181. package/docs/types/DreamColumn.html +1 -1
  182. package/docs/types/DreamColumnNames.html +1 -1
  183. package/docs/types/DreamLogLevel.html +1 -1
  184. package/docs/types/DreamLogger.html +1 -1
  185. package/docs/types/DreamOrViewModelSerializerKey.html +1 -1
  186. package/docs/types/DreamParamSafeAttributes.html +1 -1
  187. package/docs/types/DreamParamSafeColumnNames.html +1 -1
  188. package/docs/types/DreamSerializerKey.html +1 -1
  189. package/docs/types/DreamSerializers.html +1 -1
  190. package/docs/types/DreamTableSchema.html +1 -1
  191. package/docs/types/DreamVirtualColumns.html +1 -1
  192. package/docs/types/EncryptAlgorithm.html +1 -1
  193. package/docs/types/Hyphenized.html +1 -1
  194. package/docs/types/IdType.html +1 -1
  195. package/docs/types/OpenapiAllTypes.html +1 -1
  196. package/docs/types/OpenapiFormats.html +1 -1
  197. package/docs/types/OpenapiNumberFormats.html +1 -1
  198. package/docs/types/OpenapiPrimitiveTypes.html +1 -1
  199. package/docs/types/OpenapiSchemaArray.html +1 -1
  200. package/docs/types/OpenapiSchemaArrayShorthand.html +1 -1
  201. package/docs/types/OpenapiSchemaBase.html +1 -1
  202. package/docs/types/OpenapiSchemaBody.html +1 -1
  203. package/docs/types/OpenapiSchemaBodyShorthand.html +1 -1
  204. package/docs/types/OpenapiSchemaCommonFields.html +1 -1
  205. package/docs/types/OpenapiSchemaExpressionAllOf.html +1 -1
  206. package/docs/types/OpenapiSchemaExpressionAnyOf.html +1 -1
  207. package/docs/types/OpenapiSchemaExpressionOneOf.html +1 -1
  208. package/docs/types/OpenapiSchemaExpressionRef.html +1 -1
  209. package/docs/types/OpenapiSchemaExpressionRefSchemaShorthand.html +1 -1
  210. package/docs/types/OpenapiSchemaInteger.html +1 -1
  211. package/docs/types/OpenapiSchemaNull.html +1 -1
  212. package/docs/types/OpenapiSchemaNumber.html +1 -1
  213. package/docs/types/OpenapiSchemaObject.html +1 -1
  214. package/docs/types/OpenapiSchemaObjectAllOf.html +1 -1
  215. package/docs/types/OpenapiSchemaObjectAllOfShorthand.html +1 -1
  216. package/docs/types/OpenapiSchemaObjectAnyOf.html +1 -1
  217. package/docs/types/OpenapiSchemaObjectAnyOfShorthand.html +1 -1
  218. package/docs/types/OpenapiSchemaObjectBase.html +1 -1
  219. package/docs/types/OpenapiSchemaObjectBaseShorthand.html +1 -1
  220. package/docs/types/OpenapiSchemaObjectOneOf.html +1 -1
  221. package/docs/types/OpenapiSchemaObjectOneOfShorthand.html +1 -1
  222. package/docs/types/OpenapiSchemaObjectShorthand.html +1 -1
  223. package/docs/types/OpenapiSchemaPartialSegment.html +1 -1
  224. package/docs/types/OpenapiSchemaPrimitiveGeneric.html +1 -1
  225. package/docs/types/OpenapiSchemaShorthandExpressionAllOf.html +1 -1
  226. package/docs/types/OpenapiSchemaShorthandExpressionAnyOf.html +1 -1
  227. package/docs/types/OpenapiSchemaShorthandExpressionOneOf.html +1 -1
  228. package/docs/types/OpenapiSchemaShorthandExpressionSerializableRef.html +1 -1
  229. package/docs/types/OpenapiSchemaShorthandExpressionSerializerRef.html +1 -1
  230. package/docs/types/OpenapiSchemaShorthandPrimitiveGeneric.html +1 -1
  231. package/docs/types/OpenapiSchemaString.html +1 -1
  232. package/docs/types/OpenapiShorthandAllTypes.html +1 -1
  233. package/docs/types/OpenapiShorthandPrimitiveTypes.html +1 -1
  234. package/docs/types/OpenapiTypeField.html +1 -1
  235. package/docs/types/Pascalized.html +1 -1
  236. package/docs/types/PrimaryKeyType.html +1 -1
  237. package/docs/types/RoundingPrecision.html +1 -1
  238. package/docs/types/SerializableClassOrSerializerCallback.html +1 -1
  239. package/docs/types/SerializableDreamClassOrViewModelClass.html +1 -1
  240. package/docs/types/SerializableDreamOrViewModel.html +1 -1
  241. package/docs/types/SerializableTypes.html +1 -1
  242. package/docs/types/Snakeified.html +1 -1
  243. package/docs/types/Timestamp.html +1 -1
  244. package/docs/types/UpdateableAssociationProperties.html +1 -1
  245. package/docs/types/UpdateableProperties.html +1 -1
  246. package/docs/types/ValidationType.html +1 -1
  247. package/docs/types/ViewModelSerializerKey.html +1 -1
  248. package/docs/types/WhereStatementForDream.html +1 -1
  249. package/docs/types/WhereStatementForDreamClass.html +1 -1
  250. package/docs/variables/DreamConst.html +1 -1
  251. package/docs/variables/TRIGRAM_OPERATORS.html +1 -1
  252. package/docs/variables/openapiPrimitiveTypes-1.html +1 -1
  253. package/docs/variables/openapiShorthandPrimitiveTypes-1.html +1 -1
  254. package/docs/variables/ops.html +1 -1
  255. package/docs/variables/primaryKeyTypes.html +1 -1
  256. package/package.json +1 -1
  257. package/dist/cjs/src/errors/sortable/CannotCallSortableOnSTIChild.js +0 -18
  258. package/dist/esm/src/errors/sortable/CannotCallSortableOnSTIChild.js +0 -15
  259. package/dist/types/src/errors/sortable/CannotCallSortableOnSTIChild.d.ts +0 -6
  260. package/docs/functions/AfterCreate.html +0 -1
  261. package/docs/functions/AfterCreateCommit.html +0 -13
  262. package/docs/functions/AfterDestroy.html +0 -1
  263. package/docs/functions/AfterDestroyCommit.html +0 -13
  264. package/docs/functions/AfterSave.html +0 -1
  265. package/docs/functions/AfterSaveCommit.html +0 -13
  266. package/docs/functions/AfterUpdate.html +0 -1
  267. package/docs/functions/AfterUpdateCommit.html +0 -13
  268. package/docs/functions/BeforeCreate.html +0 -1
  269. package/docs/functions/BeforeDestroy.html +0 -1
  270. package/docs/functions/BeforeSave.html +0 -1
  271. package/docs/functions/BeforeUpdate.html +0 -1
  272. package/docs/functions/Sortable.html +0 -1
@@ -9,14 +9,14 @@ export default class MissingTable extends Error {
9
9
  get message() {
10
10
  return `
11
11
  Missing table definition on the following dream class:
12
- Dream class: ${this.dreamClass.name}
12
+ Dream class: ${this.dreamClass.sanitizedName}
13
13
 
14
- Try something like this in your ${this.dreamClass.name}'s table getter:
14
+ Try something like this in your ${this.dreamClass.sanitizedName}'s table getter:
15
15
 
16
- class ${this.dreamClass.name} {
16
+ class ${this.dreamClass.sanitizedName} {
17
17
  ...
18
18
  public get table() {
19
- return '${pluralize(snakeify(this.dreamClass.name))}'
19
+ return '${pluralize(snakeify(this.dreamClass.sanitizedName))}'
20
20
  }
21
21
  }
22
22
  `;
@@ -10,10 +10,10 @@ export default class NonBelongsToAssociationProvidedAsSortableDecoratorScope ext
10
10
  return `
11
11
  Only BelongsTo associations are supported as scopes for the @Sortable decorator.
12
12
  received:
13
- dream model class: ${this.dreamClass.name}
13
+ dream model class: ${this.dreamClass.sanitizedName}
14
14
  scope: ${this.scope}
15
15
 
16
- BelongsTo scopes on ${this.dreamClass.name} are:
16
+ BelongsTo scopes on ${this.dreamClass.sanitizedName} are:
17
17
  ${this.dreamClass['associationMetadataByType'].belongsTo.map(assoc => assoc.as).join('\n ')}
18
18
  `;
19
19
  }
@@ -10,10 +10,10 @@ export default class NonExistentScopeProvidedToResort extends Error {
10
10
  return `
11
11
  Only BelongsTo scopes are supported by the #resort method
12
12
  received:
13
- dream model class: ${this.dreamClass.name}
13
+ dream model class: ${this.dreamClass.sanitizedName}
14
14
  scope: ${this.scopes.join(', ')}
15
15
 
16
- BelongsTo scopes on ${this.dreamClass.name} are:
16
+ BelongsTo scopes on ${this.dreamClass.sanitizedName} are:
17
17
  ${this.dreamClass['sortableFields'].map(conf => conf.positionField).join('\n ')}
18
18
  `;
19
19
  }
@@ -10,13 +10,13 @@ export default class SortableDecoratorRequiresColumnOrBelongsToAssociation exten
10
10
  return `
11
11
  Only Column or BelongsTo scopes are supported by the @Sortable decorator.
12
12
  received:
13
- dream model class: ${this.dreamClass.name}
13
+ dream model class: ${this.dreamClass.sanitizedName}
14
14
  scope: ${this.attributeOrScope}
15
15
 
16
- Columns on ${this.dreamClass.name} are:
16
+ Columns on ${this.dreamClass.sanitizedName} are:
17
17
  ${[...this.dreamClass.columns()].join('\n ')}
18
18
 
19
- BelongsTo scopes on ${this.dreamClass.name} are:
19
+ BelongsTo scopes on ${this.dreamClass.sanitizedName} are:
20
20
  ${this.dreamClass['associationMetadataByType'].belongsTo.map(assoc => assoc.as).join('\n ')}
21
21
  `;
22
22
  }
@@ -9,7 +9,7 @@ export default class CanOnlyPassBelongsToModelParam extends Error {
9
9
  get message() {
10
10
  return `
11
11
  Can only pass BelongsTo associated models as params
12
- Dream class: ${this.dreamClass.name}
12
+ Dream class: ${this.dreamClass.sanitizedName}
13
13
  Association: ${this.association.as}
14
14
  Association type: ${this.association.type}
15
15
  `;
@@ -9,7 +9,7 @@ export default class CannotAssociateThroughPolymorphic extends Error {
9
9
  get message() {
10
10
  return `
11
11
  Cannot join through a polymorphic association
12
- Dream class: ${this.dreamClass.name}
12
+ Dream class: ${this.dreamClass.sanitizedName}
13
13
  Association: ${this.association.as}
14
14
  `;
15
15
  }
@@ -9,7 +9,7 @@ export default class CannotCreateAssociationWithThroughContext extends Error {
9
9
  get message() {
10
10
  return `
11
11
  'createAssociation' is not supported for through associations.
12
- Dream class: ${this.dreamClass.name}
12
+ Dream class: ${this.dreamClass.sanitizedName}
13
13
  Association: ${this.association.as}
14
14
  `;
15
15
  }
@@ -13,7 +13,7 @@ export default class CannotJoinPolymorphicBelongsToError extends Error {
13
13
  get message() {
14
14
  return `
15
15
  Cannot join on a polymorphic BelongsTo
16
- Dream class: ${this.dreamClass.name}
16
+ Dream class: ${this.dreamClass.sanitizedName}
17
17
  Association: ${this.association.as}
18
18
  Inner Join statements:
19
19
  ${JSON.stringify(this.innerJoinStatements, null, 2)}
@@ -9,7 +9,7 @@ export default class CannotPassNullOrUndefinedToRequiredBelongsTo extends Error
9
9
  get message() {
10
10
  return `
11
11
  Cannot pass null or undefined as a value to a required association.
12
- Dream class: ${this.dreamClass.name}
12
+ Dream class: ${this.dreamClass.sanitizedName}
13
13
  Association: ${this.association.as}
14
14
  `;
15
15
  }
@@ -14,7 +14,7 @@ export class InvalidComputedForeignKey extends Error {
14
14
  get message() {
15
15
  return `
16
16
  Add an explicit foreignKey declaration to this association declaration:
17
- Dream class: ${this.dreamClass.name}
17
+ Dream class: ${this.dreamClass.sanitizedName}
18
18
  Association: ${this.partialAssociation.as}
19
19
  Dream tried ${this.computedForeignKey} automatically, but it isn't a column in table ${this.table}.
20
20
  `;
@@ -36,7 +36,7 @@ export class ExplicitForeignKeyRequired extends Error {
36
36
  return `
37
37
  ${this.explicitForeignKey} is not a valid column on table ${this.table}.
38
38
  Fix the foreignKey declaration on:
39
- Dream class: ${this.dreamClass.name}
39
+ Dream class: ${this.dreamClass.sanitizedName}
40
40
  Association: ${this.partialAssociation.as}
41
41
  `;
42
42
  }
@@ -8,15 +8,15 @@ export default class JoinAttemptedOnMissingAssociation extends Error {
8
8
  }
9
9
  get message() {
10
10
  return `
11
- A joins call has been attempted on \`${this.dreamClass.name}\` association \`${this.associationName}\`,
12
- but \`${this.dreamClass.name}\` does not define association \`${this.associationName}\`.
11
+ A joins call has been attempted on \`${this.dreamClass.sanitizedName}\` association \`${this.associationName}\`,
12
+ but \`${this.dreamClass.sanitizedName}\` does not define association \`${this.associationName}\`.
13
13
 
14
14
 
15
15
  Either \`${this.associationName}\` is a typo in the joins statement, or association \`${this.associationName}\` needs to be defined on \`${this.dreamClass.name}\`, for example:
16
16
 
17
- class ${this.dreamClass.name} {
17
+ class ${this.dreamClass.sanitizedName} {
18
18
  ...
19
- @${this.dreamClass.name}.HasMany('SomeModelClass')
19
+ @${this.dreamClass.sanitizedName}.HasMany('SomeModelClass')
20
20
  public ${this.associationName}: SomeModelClass[]
21
21
  }
22
22
  `;
@@ -8,15 +8,15 @@ export default class MissingThroughAssociation extends Error {
8
8
  }
9
9
  get message() {
10
10
  return `
11
- \`${this.dreamClass.name}\` defines through association \`${this.association.through}\`, but \`${this.dreamClass.name}\` does not define association \`${this.association.through}\`.
11
+ \`${this.dreamClass.sanitizedName}\` defines through association \`${this.association.through}\`, but \`${this.dreamClass.name}\` does not define association \`${this.association.through}\`.
12
12
 
13
13
 
14
- To fix, define association \`${this.association.through}\` on \`${this.dreamClass.name}\`.
14
+ To fix, define association \`${this.association.through}\` on \`${this.dreamClass.sanitizedName}\`.
15
15
  For example:
16
16
 
17
- class ${this.dreamClass.name} {
17
+ class ${this.dreamClass.sanitizedName} {
18
18
  ...
19
- @${this.dreamClass.name}.HasMany('TheJoinModelClass')
19
+ @${this.dreamClass.sanitizedName}.HasMany('TheJoinModelClass')
20
20
  public ${this.association.through}: TheJoinModelClass[]
21
21
  }
22
22
  `;
@@ -10,29 +10,29 @@ export default class MissingThroughAssociationSource extends Error {
10
10
  }
11
11
  get message() {
12
12
  return `
13
- \`${this.dreamClass.name}\` defines association \`${this.association.as}\` through \`${this.dreamClass.name}\` association \`${this.association.through}\`.
13
+ \`${this.dreamClass.sanitizedName}\` defines association \`${this.association.as}\` through \`${this.dreamClass.sanitizedName}\` association \`${this.association.through}\`.
14
14
 
15
- \`${this.dreamClass.name}\` association \`${this.association.through}\` points to \`${this.throughClass.name}\`.
15
+ \`${this.dreamClass.sanitizedName}\` association \`${this.association.through}\` points to \`${this.throughClass.sanitizedName}\`.
16
16
 
17
- Dream expects association \`${this.association.source}\` to be defiend on \`${this.throughClass.name}\`, but \`${this.throughClass.name}\` does not define association \`${this.association.source}\`.
17
+ Dream expects association \`${this.association.source}\` to be defiend on \`${this.throughClass.sanitizedName}\`, but \`${this.throughClass.sanitizedName}\` does not define association \`${this.association.source}\`.
18
18
 
19
19
  There are two possible fixes:
20
20
 
21
21
  1. Provide an explicit \`source\` in addition to \`through\`.
22
22
 
23
- class ${this.dreamClass.name} {
23
+ class ${this.dreamClass.sanitizedName} {
24
24
  ...
25
- @${this.dreamClass.name}.HasMany(() => ${this.throughClass.name}, { through: '${this.association.through}', source: '<a valid association on ${this.throughClass.name}>'})
26
- public ${this.association.as}: ${this.throughClass.name}[]
25
+ @${this.dreamClass.name}.HasMany(() => ${this.throughClass.sanitizedName}, { through: '${this.association.through}', source: '<a valid association on ${this.throughClass.sanitizedName}>'})
26
+ public ${this.association.as}: ${this.throughClass.sanitizedName}[]
27
27
  }
28
28
 
29
- 2. Define association \`${this.association.source}\` on \`${this.throughClass.name}\`.
29
+ 2. Define association \`${this.association.source}\` on \`${this.throughClass.sanitizedName}\`.
30
30
  For example:
31
31
 
32
- class ${this.throughClass.name} {
32
+ class ${this.throughClass.sanitizedName} {
33
33
  ...
34
- @${this.throughClass.name}.HasMany(() => ${this.association.modelCB().name})
35
- public ${this.association.source}: ${this.association.modelCB().name}[]
34
+ @${this.throughClass.sanitizedName}.HasMany(() => ${this.association.modelCB().name})
35
+ public ${this.association.source}: ${this.association.modelCB().sanitizedName}[]
36
36
  }
37
37
  `;
38
38
  }
@@ -8,7 +8,7 @@ export default class NonLoadedAssociation extends Error {
8
8
  }
9
9
  get message() {
10
10
  return `
11
- Attempting to access \`${this.associationName}\` on an instance of \`${this.dreamClass.name}\`,
11
+ Attempting to access \`${this.associationName}\` on an instance of \`${this.dreamClass.sanitizedName}\`,
12
12
  but \`${this.associationName}\` has not been preloaded or loaded.
13
13
  `;
14
14
  }
@@ -9,7 +9,7 @@ export default class AnyRequiresArrayColumn extends Error {
9
9
  get message() {
10
10
  return `
11
11
  Attempting to call where({ ${this.column}: ops.any(<some value>)} ),
12
- but ${this.dreamClass.name}#${this.column} is not an array in the database.
12
+ but ${this.dreamClass.sanitizedName}#${this.column} is not an array in the database.
13
13
  `;
14
14
  }
15
15
  }
@@ -22,7 +22,7 @@ An unexpected error occurred while looking up an association that you have defin
22
22
 
23
23
  While building the schema for your app, we failed to find a match for
24
24
  the ${this.associationType} association "${this.associationName}" on the
25
- ${this.modelClass.name} model.
25
+ ${this.modelClass.sanitizedName} model.
26
26
 
27
27
  This method requires either a string or string array as the first argument,
28
28
  to the ${this.associationType} decorator. However, we received the following:
@@ -34,7 +34,7 @@ to the ${this.associationType} decorator. However, we received the following:
34
34
  "${typeof attemptedName}"
35
35
 
36
36
  Details:
37
- dream: ${this.modelClass.name} (${this.modelClass.globalName})
37
+ dream: ${this.modelClass.sanitizedName} (${this.modelClass.globalName})
38
38
  association type: ${this.associationType}
39
39
  association name: ${this.associationName}
40
40
  ".
@@ -51,7 +51,7 @@ An unexpected error occurred while looking up an association that you have defin
51
51
 
52
52
  While building the schema for your app, we failed to find a match for
53
53
  the ${this.associationType} association "${this.associationName}"
54
- on ${this.modelClass.name}, using the global model name "${attemptedName}".
54
+ on ${this.modelClass.sanitizedName}, using the global model name "${attemptedName}".
55
55
 
56
56
  Usually, this is because the global name for
57
57
  the model is not what you anticipated, which often happens when you are
@@ -63,7 +63,7 @@ first argument to an association, since it can help to catch these
63
63
  familiar gotchas.
64
64
 
65
65
  Details:
66
- dream: ${this.modelClass.name} (${this.modelClass.globalName})
66
+ dream: ${this.modelClass.sanitizedName} (${this.modelClass.globalName})
67
67
  association type: ${this.associationType}
68
68
  association name: ${this.associationName}
69
69
  attempted model name: ${attemptedName}
@@ -11,7 +11,7 @@ export default class STIChildMissing extends Error {
11
11
  get message() {
12
12
  return `
13
13
  Missing STI child class
14
- Base Dream class: ${this.baseDreamClass.name}
14
+ Base Dream class: ${this.baseDreamClass.sanitizedName}
15
15
  Type specified in DB record: ${this.extendingDreamClassName}
16
16
  Table: ${this.baseDreamClass.table}
17
17
  Primary key value: ${this.primaryKeyValue}
@@ -8,7 +8,7 @@ export default class StiChildIncompatibleWithSoftDeleteDecorator extends Error {
8
8
  return `
9
9
  @SoftDelete decorator cannot be applied to STI children.
10
10
  Apply @SoftDelete to the base STI class instead.
11
- STI child class: ${this.childStiDreamClass.name}
11
+ STI child class: ${this.childStiDreamClass.sanitizedName}
12
12
  `;
13
13
  }
14
14
  }
@@ -7,22 +7,9 @@ export { default as DreamMigrationHelpers } from './db/migration-helpers/DreamMi
7
7
  export { default as validateColumn } from './db/validators/validateColumn.js';
8
8
  export { default as validateTable } from './db/validators/validateTable.js';
9
9
  export { default as Decorators } from './decorators/Decorators.js';
10
- export { default as AfterCreate } from './decorators/hooks/AfterCreate.js';
11
- export { default as AfterCreateCommit } from './decorators/hooks/AfterCreateCommit.js';
12
- export { default as AfterDestroy } from './decorators/hooks/AfterDestroy.js';
13
- export { default as AfterDestroyCommit } from './decorators/hooks/AfterDestroyCommit.js';
14
- export { default as AfterSave } from './decorators/hooks/AfterSave.js';
15
- export { default as AfterSaveCommit } from './decorators/hooks/AfterSaveCommit.js';
16
- export { default as AfterUpdate } from './decorators/hooks/AfterUpdate.js';
17
- export { default as AfterUpdateCommit } from './decorators/hooks/AfterUpdateCommit.js';
18
- export { default as BeforeCreate } from './decorators/hooks/BeforeCreate.js';
19
- export { default as BeforeDestroy } from './decorators/hooks/BeforeDestroy.js';
20
- export { default as BeforeSave } from './decorators/hooks/BeforeSave.js';
21
- export { default as BeforeUpdate } from './decorators/hooks/BeforeUpdate.js';
22
10
  export { default as ReplicaSafe } from './decorators/ReplicaSafe.js';
23
11
  export { default as Scope } from './decorators/Scope.js';
24
12
  export { default as SoftDelete } from './decorators/SoftDelete.js';
25
- export { default as Sortable } from './decorators/sortable/Sortable.js';
26
13
  export { default as STI } from './decorators/STI.js';
27
14
  export { default as Validate } from './decorators/validations/Validate.js';
28
15
  export { default as Validates } from './decorators/validations/Validates.js';
@@ -247,6 +247,39 @@ export default class Dream {
247
247
  * @returns A dream class
248
248
  */
249
249
  protected static get stiBaseClassOrOwnClass(): typeof Dream;
250
+ /**
251
+ * @internal
252
+ *
253
+ * Returns either the base STI class name, or else this class name
254
+ *
255
+ * NOTE: This is necessary due to changes in esbuild strategy WRT esm,
256
+ * compiled class names can contain a prefixing underscore if they contain
257
+ * private fields.
258
+ *
259
+ * This can create confusion when the class name is used as an attribute,
260
+ * as is done in the case of polymorphic associations, which use the class
261
+ * name as the "type" value for the polymorphic association.
262
+ *
263
+ * As such, any time the class name is being used as a value, it should be
264
+ * done using this value, rather than going to the class name directly.
265
+ *
266
+ * see https://github.com/evanw/esbuild/issues/1260 for more information
267
+ *
268
+ * @returns string
269
+ */
270
+ protected static get stiBaseClassOrOwnClassName(): string;
271
+ /**
272
+ * @internal
273
+ *
274
+ * Returns the class name, replacing prefixed underscores, since esbuild
275
+ * will translate some class names to have underscore prefixes, which can
276
+ * cause unexpected behavior.
277
+ *
278
+ * see https://github.com/evanw/esbuild/issues/1260 for more information
279
+ *
280
+ * @returns string
281
+ */
282
+ static get sanitizedName(): string;
250
283
  /**
251
284
  * @internal
252
285
  *
@@ -255,6 +288,22 @@ export default class Dream {
255
288
  * @returns A dream class
256
289
  */
257
290
  protected get stiBaseClassOrOwnClass(): typeof Dream;
291
+ /**
292
+ * @internal
293
+ *
294
+ * Shadows .stiBaseClassOrOwnClassName. Returns a string
295
+ *
296
+ * @returns A string
297
+ */
298
+ protected get stiBaseClassOrOwnClassName(): string;
299
+ /**
300
+ * @internal
301
+ *
302
+ * Shadows .sanitizedName. Returns a string
303
+ *
304
+ * @returns A string
305
+ */
306
+ protected get sanitizedConstructorName(): string;
258
307
  /**
259
308
  * @internal
260
309
  *
@@ -880,7 +929,7 @@ export default class Dream {
880
929
  *
881
930
  * ```ts
882
931
  * class Post extends ApplicationModel {
883
- * @Sortable({ scope: ['user']})
932
+ * @Deco.Sortable({ scope: ['user']})
884
933
  * public position: DreamColumn<User, 'position'>
885
934
  * }
886
935
  *
@@ -14,19 +14,27 @@ export default class Decorators<T extends Dream> {
14
14
  HasOne<const AssociationGlobalName extends keyof GlobalModelNameTableMap<T>>(this: Decorators<T>, globalAssociationNameOrNames: AssociationGlobalName, options?: HasOneThroughOptions<T, AssociationGlobalName>): any;
15
15
  HasOne<const AssociationGlobalName extends keyof GlobalModelNameTableMap<T>>(this: Decorators<T>, globalAssociationNameOrNames: AssociationGlobalName, options?: PolymorphicHasOneOptions<T, AssociationGlobalName>): any;
16
16
  /**
17
- * Shortcut to the Sortable decorator, which also provides extra type protection which cannot be provided
18
- * with the Sortable decorator.
17
+ * Sortable decorator.
18
+ *
19
+ * NOTE: the Sortable decorator may not be used in STI child models (it may be used in the STI base class)
20
+ *
21
+ * ```ts
22
+ * class Balloon {
23
+ * @Deco.Sortable()
24
+ * public position: DreamColumn<Balloon, 'position'>
25
+ * }
26
+ * ```
19
27
  *
20
28
  * @param scope - The column, association, or combination there-of which you would like to restrict the incrementing logic to
21
29
  * @returns A Sortable decorator
22
30
  */
23
31
  Sortable(this: Decorators<T>, opts?: SortableOptions<T>): any;
24
32
  /**
25
- * Shortcut to the BeforeCreate decorator
33
+ * BeforeCreate decorator
26
34
  *
27
35
  * ```ts
28
36
  * class User {
29
- * User.BeforeCreate()
37
+ * @Deco.BeforeCreate()
30
38
  * public doSomething() {
31
39
  * console.log('hi!')
32
40
  * }
@@ -38,11 +46,11 @@ export default class Decorators<T extends Dream> {
38
46
  */
39
47
  BeforeCreate(this: Decorators<T>, opts?: BeforeHookOpts<T>): any;
40
48
  /**
41
- * Shortcut to the BeforeSave decorator
49
+ * BeforeSave decorator
42
50
  *
43
51
  * ```ts
44
52
  * class User {
45
- * User.BeforeSave()
53
+ * @Deco.BeforeSave()
46
54
  * public doSomething() {
47
55
  * console.log('hi!')
48
56
  * }
@@ -54,11 +62,11 @@ export default class Decorators<T extends Dream> {
54
62
  */
55
63
  BeforeSave(this: Decorators<T>, opts?: BeforeHookOpts<T>): any;
56
64
  /**
57
- * Shortcut to the BeforeUpdate decorator
65
+ * BeforeUpdate decorator
58
66
  *
59
67
  * ```ts
60
68
  * class User {
61
- * User.BeforeUpdate()
69
+ * @Deco.BeforeUpdate()
62
70
  * public doSomething() {
63
71
  * console.log('hi!')
64
72
  * }
@@ -70,11 +78,11 @@ export default class Decorators<T extends Dream> {
70
78
  */
71
79
  BeforeUpdate(this: Decorators<T>, opts?: BeforeHookOpts<T>): any;
72
80
  /**
73
- * Shortcut to the BeforeDestroy decorator
81
+ * BeforeDestroy decorator
74
82
  *
75
83
  * ```ts
76
84
  * class User {
77
- * User.BeforeDestroy()
85
+ * @Deco.BeforeDestroy()
78
86
  * public doSomething() {
79
87
  * console.log('hi!')
80
88
  * }
@@ -85,11 +93,11 @@ export default class Decorators<T extends Dream> {
85
93
  */
86
94
  BeforeDestroy(this: Decorators<T>): any;
87
95
  /**
88
- * Shortcut to the AfterCreate decorator
96
+ * AfterCreate decorator
89
97
  *
90
98
  * ```ts
91
99
  * class User {
92
- * User.AfterCreate()
100
+ * @Deco.AfterCreate()
93
101
  * public doSomething() {
94
102
  * console.log('hi!')
95
103
  * }
@@ -101,11 +109,11 @@ export default class Decorators<T extends Dream> {
101
109
  */
102
110
  AfterCreate(this: Decorators<T>, opts?: AfterHookOpts<T>): any;
103
111
  /**
104
- * Shortcut to the AfterCreateCommit decorator
112
+ * AfterCreateCommit decorator
105
113
  *
106
114
  * ```ts
107
115
  * class User {
108
- * User.AfterCreateCommit()
116
+ * @Deco.AfterCreateCommit()
109
117
  * public doSomething() {
110
118
  * console.log('hi!')
111
119
  * }
@@ -116,11 +124,11 @@ export default class Decorators<T extends Dream> {
116
124
  */
117
125
  AfterCreateCommit(this: Decorators<T>, opts?: AfterHookOpts<T>): any;
118
126
  /**
119
- * Shortcut to the AfterSave decorator
127
+ * AfterSave decorator
120
128
  *
121
129
  * ```ts
122
130
  * class User {
123
- * User.AfterSave()
131
+ * @Deco.AfterSave()
124
132
  * public doSomething() {
125
133
  * console.log('hi!')
126
134
  * }
@@ -132,11 +140,11 @@ export default class Decorators<T extends Dream> {
132
140
  */
133
141
  AfterSave(this: Decorators<T>, opts?: AfterHookOpts<T>): any;
134
142
  /**
135
- * Shortcut to the AfterSaveCommit decorator
143
+ * AfterSaveCommit decorator
136
144
  *
137
145
  * ```ts
138
146
  * class User {
139
- * User.AfterSaveCommit()
147
+ * @Deco.AfterSaveCommit()
140
148
  * public doSomething() {
141
149
  * console.log('hi!')
142
150
  * }
@@ -148,11 +156,11 @@ export default class Decorators<T extends Dream> {
148
156
  */
149
157
  AfterSaveCommit(this: Decorators<T>, opts?: AfterHookOpts<T>): any;
150
158
  /**
151
- * Shortcut to the AfterUpdate decorator
159
+ * AfterUpdate decorator
152
160
  *
153
161
  * ```ts
154
162
  * class User {
155
- * User.AfterUpdate()
163
+ * @Deco.AfterUpdate()
156
164
  * public doSomething() {
157
165
  * console.log('hi!')
158
166
  * }
@@ -164,11 +172,11 @@ export default class Decorators<T extends Dream> {
164
172
  */
165
173
  AfterUpdate(this: Decorators<T>, opts?: AfterHookOpts<T>): any;
166
174
  /**
167
- * Shortcut to the AfterUpdateCommit decorator
175
+ * AfterUpdateCommit decorator
168
176
  *
169
177
  * ```ts
170
178
  * class User {
171
- * User.AfterUpdateCommit()
179
+ * @Deco.AfterUpdateCommit()
172
180
  * public doSomething() {
173
181
  * console.log('hi!')
174
182
  * }
@@ -180,11 +188,11 @@ export default class Decorators<T extends Dream> {
180
188
  */
181
189
  AfterUpdateCommit(this: Decorators<T>, opts?: AfterHookOpts<T>): any;
182
190
  /**
183
- * Shortcut to the AfterDestroy decorator
191
+ * AfterDestroy decorator
184
192
  *
185
193
  * ```ts
186
194
  * class User {
187
- * User.AfterDestroy()
195
+ * @Deco.AfterDestroy()
188
196
  * public doSomething() {
189
197
  * console.log('hi!')
190
198
  * }
@@ -196,11 +204,11 @@ export default class Decorators<T extends Dream> {
196
204
  */
197
205
  AfterDestroy(this: Decorators<T>): any;
198
206
  /**
199
- * Shortcut to the AfterDestroyCommit decorator
207
+ * AfterDestroyCommit decorator
200
208
  *
201
209
  * ```ts
202
210
  * class User {
203
- * User.AfterDestroyCommit()
211
+ * @Deco.AfterDestroyCommit()
204
212
  * public doSomething() {
205
213
  * console.log('hi!')
206
214
  * }
@@ -9,22 +9,9 @@ export { default as validateTable } from './db/validators/validateTable.js';
9
9
  export { type WhereStatementForDream, type WhereStatementForDreamClass, } from './decorators/associations/shared.js';
10
10
  export { type DecoratorContext } from './decorators/DecoratorContextType.js';
11
11
  export { default as Decorators } from './decorators/Decorators.js';
12
- export { default as AfterCreate } from './decorators/hooks/AfterCreate.js';
13
- export { default as AfterCreateCommit } from './decorators/hooks/AfterCreateCommit.js';
14
- export { default as AfterDestroy } from './decorators/hooks/AfterDestroy.js';
15
- export { default as AfterDestroyCommit } from './decorators/hooks/AfterDestroyCommit.js';
16
- export { default as AfterSave } from './decorators/hooks/AfterSave.js';
17
- export { default as AfterSaveCommit } from './decorators/hooks/AfterSaveCommit.js';
18
- export { default as AfterUpdate } from './decorators/hooks/AfterUpdate.js';
19
- export { default as AfterUpdateCommit } from './decorators/hooks/AfterUpdateCommit.js';
20
- export { default as BeforeCreate } from './decorators/hooks/BeforeCreate.js';
21
- export { default as BeforeDestroy } from './decorators/hooks/BeforeDestroy.js';
22
- export { default as BeforeSave } from './decorators/hooks/BeforeSave.js';
23
- export { default as BeforeUpdate } from './decorators/hooks/BeforeUpdate.js';
24
12
  export { default as ReplicaSafe } from './decorators/ReplicaSafe.js';
25
13
  export { default as Scope } from './decorators/Scope.js';
26
14
  export { default as SoftDelete } from './decorators/SoftDelete.js';
27
- export { default as Sortable } from './decorators/sortable/Sortable.js';
28
15
  export { default as STI } from './decorators/STI.js';
29
16
  export { type ValidationType } from './decorators/validations/shared.js';
30
17
  export { default as Validate } from './decorators/validations/Validate.js';
@@ -1 +1 @@
1
- window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAE62bX5ObNhTFv8s+p02TNmmbN+8fJzvZXTu2mz50Oh0Zrm11AREhb+N2+t0rgW0kuLoSbN8Sn3N+V4AkJGB/++dCwVd18e7iEopklzP5ePHiomRqp39KMlZVUL08S9/uVJ5p/ZEX6cW7V69/+vfFOX/FMihSJq+Zgj7CVkmKBO2YyanWLg9TxjNIV6L5dVKk5mcEHg5RNa8hEZIpIas+utVIgi6VI2HzczA3KcuMJ0xxUXgQliNIu+Q+ilaC6au7W09aK8H0bV4KqUB6ECc5yLnnW1kf7QfISkAvC2YLcpcgOcv4394WtoYgayVZUbGEuGqWg6LdFIk8lKoPOQp09gnLPVGZ95lYs+yB5fAg1BKQwl0HRXsQxZ1gKaSTqhIJ9/RizEVRP+1BHvqY+mcqt2DFFpl86p/JnBnlqT7aqdhjE4yrU6TPuvuk9fHdSCmQftYxUKyJUpKv9wqWSk9kORTWteKFHkgblmhi3+ZCX795i012V6Kof8KQXRMJ7MxQtwVXs9L8q8LZfv+QMjoSxzfGILgd+FYPpU97RI4qexzd1JlyLRRsVkLBSr5MdpCzuRR6NlQccKrHOwK/3OnpfMfsAROucw5FFFwdSphy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