@rapidrest/service-core 1.0.0-rc.0 → 1.0.0-rc.2

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 (154) hide show
  1. package/dist/lib/database/MongoSchemaSync.js +15 -1
  2. package/dist/lib/database/MongoSchemaSync.js.map +1 -1
  3. package/dist/lib/models/BaseEntity.js +1 -1
  4. package/dist/lib/models/BaseEntity.js.map +1 -1
  5. package/dist/lib/models/BaseMongoEntity.js +1 -1
  6. package/dist/lib/models/BaseMongoEntity.js.map +1 -1
  7. package/dist/lib/models/RecoverableBaseMongoEntity.js +2 -2
  8. package/dist/lib/models/RecoverableBaseMongoEntity.js.map +1 -1
  9. package/dist/lib/models/SimpleEntity.js +1 -1
  10. package/dist/lib/models/SimpleEntity.js.map +1 -1
  11. package/dist/types/database/MongoSchemaSync.d.ts +3 -0
  12. package/docs/reference/@rapidrest/namespaces/DatabaseDecorators/functions/MongoRepository.md +1 -1
  13. package/docs/reference/@rapidrest/namespaces/DatabaseDecorators/functions/RedisConnection.md +1 -1
  14. package/docs/reference/@rapidrest/namespaces/DatabaseDecorators/functions/Repository.md +1 -1
  15. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Default.md +1 -1
  16. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Description.md +1 -1
  17. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Document.md +1 -1
  18. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Example.md +1 -1
  19. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Format.md +1 -1
  20. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Returns.md +1 -1
  21. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Summary.md +1 -1
  22. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/Tags.md +1 -1
  23. package/docs/reference/@rapidrest/namespaces/DocDecorators/functions/TypeInfo.md +1 -1
  24. package/docs/reference/@rapidrest/namespaces/DocDecorators/interfaces/DocumentsData.md +7 -7
  25. package/docs/reference/@rapidrest/namespaces/EventDecorators/functions/EventListener.md +1 -1
  26. package/docs/reference/@rapidrest/namespaces/EventDecorators/functions/OnEvent.md +1 -1
  27. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/Cache.md +1 -1
  28. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/ChildEntity.md +1 -1
  29. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/DataStore.md +1 -1
  30. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/Identifier.md +1 -1
  31. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/Protect.md +1 -1
  32. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/Reference.md +1 -1
  33. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/Shard.md +1 -1
  34. package/docs/reference/@rapidrest/namespaces/ModelDecorators/functions/TrackChanges.md +1 -1
  35. package/docs/reference/@rapidrest/namespaces/ModelDecorators/interfaces/PendingTypeOrmColumn.md +5 -5
  36. package/docs/reference/@rapidrest/namespaces/ModelDecorators/variables/pendingTypeOrmColumns.md +1 -1
  37. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/Column.md +1 -1
  38. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/Entity.md +1 -1
  39. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/Index.md +3 -3
  40. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/PrimaryColumn.md +1 -1
  41. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/Unique.md +3 -3
  42. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/getColumnMetadata.md +1 -1
  43. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/getEntityName.md +1 -1
  44. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/functions/getIndexMetadata.md +1 -1
  45. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/interfaces/CollationOptions.md +9 -9
  46. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/interfaces/ColumnInfo.md +4 -4
  47. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/interfaces/ColumnOptions.md +5 -5
  48. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/interfaces/EntityOptions.md +3 -3
  49. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/interfaces/IndexInfo.md +4 -4
  50. package/docs/reference/@rapidrest/namespaces/PersistenceDecorators/interfaces/IndexOptions.md +6 -6
  51. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/After.md +1 -1
  52. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Auth.md +1 -1
  53. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/AuthResult.md +1 -1
  54. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Before.md +1 -1
  55. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/ContentType.md +1 -1
  56. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Delete.md +1 -1
  57. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Get.md +1 -1
  58. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Head.md +1 -1
  59. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Header.md +1 -1
  60. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Method.md +1 -1
  61. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Model.md +1 -1
  62. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Options.md +1 -1
  63. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Param.md +1 -1
  64. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Patch.md +1 -1
  65. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Post.md +1 -1
  66. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Protect.md +1 -1
  67. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Put.md +1 -1
  68. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Query.md +1 -1
  69. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Request.md +1 -1
  70. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/RequiresRole.md +1 -1
  71. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Response.md +1 -1
  72. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Route.md +1 -1
  73. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Socket.md +1 -1
  74. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/User.md +1 -1
  75. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/Validate.md +1 -1
  76. package/docs/reference/@rapidrest/namespaces/RouteDecorators/functions/WebSocket.md +1 -1
  77. package/docs/reference/classes/ACLUtils.md +10 -10
  78. package/docs/reference/classes/AdminRoute.md +3 -3
  79. package/docs/reference/classes/AuthMiddleware.md +6 -6
  80. package/docs/reference/classes/BackgroundService.md +8 -8
  81. package/docs/reference/classes/BackgroundServiceManager.md +7 -7
  82. package/docs/reference/classes/BaseEntity.md +6 -6
  83. package/docs/reference/classes/BaseMongoEntity.md +7 -7
  84. package/docs/reference/classes/BasicStrategy.md +5 -5
  85. package/docs/reference/classes/BasicStrategyOptions.md +7 -7
  86. package/docs/reference/classes/BulkError.md +3 -3
  87. package/docs/reference/classes/ConnectionManager.md +4 -4
  88. package/docs/reference/classes/EventListenerManager.md +5 -5
  89. package/docs/reference/classes/HttpRouter.md +16 -16
  90. package/docs/reference/classes/JWTStrategy.md +5 -5
  91. package/docs/reference/classes/JWTStrategyOptions.md +8 -8
  92. package/docs/reference/classes/MetricsRoute.md +2 -2
  93. package/docs/reference/classes/ModelRoute.md +26 -26
  94. package/docs/reference/classes/ModelUtils.md +10 -10
  95. package/docs/reference/classes/MongoConnection.md +12 -12
  96. package/docs/reference/classes/MongoRepository.md +17 -17
  97. package/docs/reference/classes/MongoSchemaSync.md +4 -4
  98. package/docs/reference/classes/NetUtils.md +3 -3
  99. package/docs/reference/classes/NotificationUtils.md +3 -3
  100. package/docs/reference/classes/ObjectFactory.md +3 -3
  101. package/docs/reference/classes/OpenAPIRoute.md +5 -5
  102. package/docs/reference/classes/OpenApiSpec.md +45 -45
  103. package/docs/reference/classes/RecoverableBaseEntity.md +7 -7
  104. package/docs/reference/classes/RecoverableBaseMongoEntity.md +8 -8
  105. package/docs/reference/classes/RedisTransport.md +4 -4
  106. package/docs/reference/classes/RepoUtils.md +28 -28
  107. package/docs/reference/classes/RouteUtils.md +7 -7
  108. package/docs/reference/classes/Server.md +26 -26
  109. package/docs/reference/classes/SimpleEntity.md +3 -3
  110. package/docs/reference/classes/SimpleMongoEntity.md +4 -4
  111. package/docs/reference/classes/StatusExtraData.md +4 -4
  112. package/docs/reference/classes/StatusRoute.md +1 -1
  113. package/docs/reference/classes/UWSRequest.md +16 -16
  114. package/docs/reference/classes/UWSResponse.md +13 -13
  115. package/docs/reference/classes/UWSWebSocketShim.md +5 -5
  116. package/docs/reference/enumerations/ACLAction.md +7 -7
  117. package/docs/reference/enumerations/ApiErrorMessages.md +15 -15
  118. package/docs/reference/enumerations/ApiErrors.md +15 -15
  119. package/docs/reference/functions/createWebSocketStream.md +1 -1
  120. package/docs/reference/functions/isSqlDataSource.md +1 -1
  121. package/docs/reference/functions/readBody.md +1 -1
  122. package/docs/reference/functions/resolveCollectionName.md +1 -1
  123. package/docs/reference/functions/runChain.md +1 -1
  124. package/docs/reference/functions/snakeCase.md +1 -1
  125. package/docs/reference/interfaces/ACLRecord.md +8 -8
  126. package/docs/reference/interfaces/AccessControlList.md +5 -5
  127. package/docs/reference/interfaces/AuthResult.md +5 -5
  128. package/docs/reference/interfaces/AuthStrategy.md +4 -4
  129. package/docs/reference/interfaces/CreateRequestOptions.md +9 -9
  130. package/docs/reference/interfaces/DeleteRequestOptions.md +10 -10
  131. package/docs/reference/interfaces/FindRequestOptions.md +10 -10
  132. package/docs/reference/interfaces/HttpRequest.md +15 -15
  133. package/docs/reference/interfaces/HttpResponse.md +11 -11
  134. package/docs/reference/interfaces/JWTAuthResult.md +6 -6
  135. package/docs/reference/interfaces/RepoCreateOptions.md +7 -7
  136. package/docs/reference/interfaces/RepoDeleteOptions.md +8 -8
  137. package/docs/reference/interfaces/RepoFindOptions.md +10 -10
  138. package/docs/reference/interfaces/RepoOperationOptions.md +6 -6
  139. package/docs/reference/interfaces/RepoUpdateOptions.md +7 -7
  140. package/docs/reference/interfaces/RequestOptions.md +8 -8
  141. package/docs/reference/interfaces/RequestWS.md +17 -17
  142. package/docs/reference/interfaces/TruncateRequestOptions.md +12 -12
  143. package/docs/reference/interfaces/UpdateRequestOptions.md +10 -10
  144. package/docs/reference/type-aliases/ErrorHandler.md +1 -1
  145. package/docs/reference/type-aliases/NextFunction.md +1 -1
  146. package/docs/reference/type-aliases/OneOrMany.md +1 -1
  147. package/docs/reference/type-aliases/OneOrNull.md +1 -1
  148. package/docs/reference/type-aliases/PartialBaseEntity.md +1 -1
  149. package/docs/reference/type-aliases/PartialSimpleEntity.md +1 -1
  150. package/docs/reference/type-aliases/RequestHandler.md +1 -1
  151. package/docs/reference/type-aliases/UpdateObject.md +1 -1
  152. package/docs/reference/type-aliases/WsUpgradeAuth.md +1 -1
  153. package/docs/reference/type-aliases/WsUpgradeAuthResult.md +5 -5
  154. package/package.json +1 -1
@@ -98,10 +98,16 @@ export class MongoSchemaSync {
98
98
  }
99
99
  }
100
100
  // Build the merged set of desired indexes from all classes stored in this collection
101
+ const entityCollation = info.options?.collation;
101
102
  const desired = new Map();
102
103
  for (const clazz of info.classes) {
103
104
  for (const index of getIndexMetadata(clazz)) {
104
105
  const spec = this.toDesiredIndex(index);
106
+ // Indexes inherit the collection's collation when none is declared on the index itself.
107
+ // This means @Entity({ collation }) is the single source of truth for case-sensitivity.
108
+ if (!spec.collation && entityCollation) {
109
+ spec.collation = entityCollation;
110
+ }
105
111
  desired.set(JSON.stringify(spec.key), spec);
106
112
  }
107
113
  }
@@ -171,11 +177,19 @@ export class MongoSchemaSync {
171
177
  /**
172
178
  * Determines whether an existing index satisfies the desired index specification. The `background` option is
173
179
  * a build-time hint and is intentionally excluded from the comparison.
180
+ *
181
+ * Collation is compared by `locale` and `strength` only — MongoDB adds default values for all other fields
182
+ * when storing the index, which would cause spurious mismatches if we compared the full object.
174
183
  */
175
184
  optionsMatch(spec, current) {
185
+ const collationMatches = spec.collation
186
+ ? spec.collation.locale === current.collation?.locale &&
187
+ (spec.collation.strength ?? 3) === (current.collation?.strength ?? 3)
188
+ : !current.collation;
176
189
  return (spec.unique === (current.unique ?? false) &&
177
190
  spec.sparse === (current.sparse ?? false) &&
178
- spec.expireAfterSeconds === (current.expireAfterSeconds ?? undefined));
191
+ spec.expireAfterSeconds === (current.expireAfterSeconds ?? undefined) &&
192
+ collationMatches);
179
193
  }
180
194
  }
181
195
  //# sourceMappingURL=MongoSchemaSync.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MongoSchemaSync.js","sourceRoot":"","sources":["../../../src/database/MongoSchemaSync.ts"],"names":[],"mappings":"AAIA,OAAO,EAAmC,gBAAgB,EAAa,MAAM,wCAAwC,CAAC;AACtH,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAqB7C;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,eAAe;IAIxB,YAAY,EAAM,EAAE,MAAY;QAC5B,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAED;;;;;;;;;;;;OAYG;IACI,qBAAqB,CAAC,KAAU;QACnC,0CAA0C;QAC1C,KAAK,IAAI,CAAC,GAAG,KAAK,EAAE,CAAC,IAAI,CAAC,KAAK,QAAQ,CAAC,SAAS,EAAE,CAAC,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC;YAC9E,MAAM,aAAa,GAA8B,OAAO,CAAC,cAAc,CAAC,oBAAoB,EA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CAAC,kBAAkB,IAAI,SAAS,CAAC;YACrE,gBAAgB,CACnB,CAAC;IACN,CAAC;CACJ"}
@@ -59,7 +59,7 @@ __decorate([
59
59
  Description("The universally unique identifier of the entity."),
60
60
  Default("randomUUID()"),
61
61
  Identifier,
62
- Index("uid", { unique: true, collation: { locale: "en", strength: 2 } }),
62
+ Index("uid", { unique: true }),
63
63
  PrimaryColumn(),
64
64
  __metadata("design:type", String)
65
65
  ], BaseEntity.prototype, "uid", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"BaseEntity.js","sourceRoot":"","sources":["../../../src/models/BaseEntity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,+EAA+E;AAC/E,wEAAwE;AACxE,+EAA+E;AAC/E,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B;;;;;;;;GAQG;AACH,MAAM,OAAgB,UAAU;IAkC5B,YAAY,KAA2B;QAjCvC;;WAEG;QAMI,QAAG,GAAW,IAAI,CAAC,EAAE,EAAE,CAAC;QAE/B;;WAEG;QAII,gBAAW,GAAS,IAAI,IAAI,EAAE,CAAC;QAEtC;;WAEG;QAII,iBAAY,GAAS,IAAI,IAAI,EAAE,CAAC;QAEvC;;WAEG;QAGI,YAAO,GAAW,CAAC,CAAC;QAGvB,IAAI,KAAK,EAAE,CAAC;YACR,IAAI,CAAC,GAAG,GAAG,KAAK,IAAI,KAAK,IAAI,KAAK,CAAC,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;YAC5E,IAAI,CAAC,WAAW;gBACZ,OAAO,KAAK,CAAC,WAAW,KAAK,QAAQ;o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C;IACL,CAAC;CACJ;AAvCU;IALN,WAAW,CAAC,kDAAkD,CAAC;IAC/D,OAAO,CAAC,cAAc,CAAC;IACvB,UAAU;IACV,KAAK,CAAC,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC9B,aAAa,EAAE;;uCACe;AAQxB;IAHN,WAAW,CAAC,gDAAgD,CAAC;IAC7D,OAAO,CAAC,YAAY,CAAC;IACrB,MAAM,EAAE;8BACW,IAAI;+CAAc;AAQ/B;IAHN,WAAW,CAAC,sDAAsD,CAAC;IACnE,OAAO,CAAC,YAAY,CAAC;IACrB,MAAM,EAAE;8BACY,IAAI;gDAAc;AAOhC;IAFN,WAAW,CAAC,8BAA8B,CAAC;IAC3C,MAAM,EAAE;;2CACkB"}
@@ -40,7 +40,7 @@ __decorate([
40
40
  __metadata("design:type", Object)
41
41
  ], BaseMongoEntity.prototype, "_id", void 0);
42
42
  BaseMongoEntity = __decorate([
43
- Index("uid", ["uid"], { collation: { locale: "en", strength: 2 } }),
43
+ Index("uid", ["uid"]),
44
44
  __metadata("design:paramtypes", [Object])
45
45
  ], BaseMongoEntity);
46
46
  export { BaseMongoEntity };
@@ -1 +1 @@
1
- {"version":3,"file":"BaseMongoEntity.js","sourceRoot":"","sources":["../../../src/models/BaseMongoEntity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,+EAA+E;AAC/E,wEAAwE;AACxE,+EAA+E;AAC/E,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,MAAM,EAAE,QAAQ,EAAE,GAAG,gBAAgB,CAAC;AAEtC;;;;GAIG;AACH,yGAAyG;AACzG,0GAA0G;AAEnG,IAAe,eAAe,GAA9B,MAAe,eAAgB,S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,KAAK,CAAC,KAAK,CAAC,CAAC;QAEb,IAAI,KAAK,EAAE,CAAC;YACR,IAAI,CAAC,GAAG,GAAG,KAAK,CAAC,GAAG;gBAChB,CAAC,CAAC,OAAO,KAAK,CAAC,GAAG,KAAK,QAAQ,IAAI,OAAO,KAAK,CAAC,GAAG,KAAK,QAAQ;oBAC5D,CAAC,CAAC,IAAI,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;oBACjC,CAAC,CAAC,KAAK,CAAC,GAAG;gBACf,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;QACnB,CAAC;IACL,CAAC;CACJ,CAAA;AAbU;IAFN,MAAM,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;IAC5B,QAAQ;;4CACQ;AANC,eAAe;IADpC,KAAK,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC;;GACA,eAAe,CAmBpC"}
@@ -40,8 +40,8 @@ __decorate([
40
40
  __metadata("design:type", Object)
41
41
  ], RecoverableBaseMongoEntity.prototype, "_id", void 0);
42
42
  RecoverableBaseMongoEntity = __decorate([
43
- Index("uid_version", ["uid", "version"], { unique: true, collation: { locale: "en", strength: 2 } }),
44
- Index("uid", ["uid"], { collation: { locale: "en", strength: 2 } }),
43
+ Index("uid_version", ["uid", "version"], { unique: true }),
44
+ Index("uid", ["uid"]),
45
45
  __metadata("design:paramtypes", [Object])
46
46
  ], RecoverableBaseMongoEntity);
47
47
  export { RecoverableBaseMongoEntity };
@@ -1 +1 @@
1
- {"version":3,"file":"RecoverableBaseMongoEntity.js","sourceRoot":"","sources":["../../../src/models/RecoverableBaseMongoEntity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,+EAA+E;AAC/E,wEAAwE;AACxE,+EAA+E;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,q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,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE;;;;;;;GAOG;AACH,sGAAsG;AACtG,uFAAuF;AAGhF,IAAe,0BAA0B,GAAzC,MAAe,0BAA2B,SAAQ,qBAAqB;IAO1E,YAAY,KAA2C;QACnD,KAAK,CAAC,KAAK,CAAC,CAAC;QAEb,IAAI,KAAK,EAAE,CAAC;YACR,IAAI,CAAC,GAAG,GAAG,KAAK,CAAC,GAAG;gBAChB,CAAC,CAAC,OAAO,KAAK,CAAC,GAAG,KAAK,QAAQ,IAAI,OAAO,KAAK,CAAC,GAAG,KAAK,QAAQ;oBAC5D,CAAC,CAAC,IAAI,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;oBACjC,CAAC,CAAC,KAAK,CAAC,GAAG;gBACf,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;QACnB,CAAC;IACL,CAAC;CACJ,CAAA;AAbU;IADN,MAAM,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;;uDACZ;AALC,0BAA0B;IAF/C,KAAK,CAAC,aAAa,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC1D,KAAK,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC;;GACA,0BAA0B,CAkB/C"}
@@ -35,7 +35,7 @@ __decorate([
35
35
  Description("The universally unique identifier of the entity."),
36
36
  Default("randomUUID()"),
37
37
  Identifier,
38
- Index("uid", { unique: true, collation: { locale: "en", strength: 2 } }),
38
+ Index("uid", { unique: true }),
39
39
  PrimaryColumn(),
40
40
  __metadata("design:type", String)
41
41
  ], SimpleEntity.prototype, "uid", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"SimpleEntity.js","sourceRoot":"","sources":["../../../src/models/SimpleEntity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,+EAA+E;AAC/E,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AY;IAW9B,YAAY,KAA6B;QAVzC;;WAEG;QAMI,QAAG,GAAW,IAAI,CAAC,EAAE,EAAE,CAAC;QAG3B,IAAI,KAAK,EAAE,CAAC;YACR,IAAI,CAAC,GAAG,GAAG,KAAK,IAAI,KAAK,IAAI,KAAK,CAAC,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;QAChF,CAAC;IACL,CAAC;CACJ;AAPU;IALN,WAAW,CAAC,kDAAkD,CAAC;IAC/D,OAAO,CAAC,cAAc,CAAC;IACvB,UAAU;IACV,KAAK,CAAC,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC9B,aAAa,EAAE;;yCACe"}
@@ -54,6 +54,9 @@ export declare class MongoSchemaSync {
54
54
  /**
55
55
  * Determines whether an existing index satisfies the desired index specification. The `background` option is
56
56
  * a build-time hint and is intentionally excluded from the comparison.
57
+ *
58
+ * Collation is compared by `locale` and `strength` only — MongoDB adds default values for all other fields
59
+ * when storing the index, which would cause spurious mismatches if we compared the full object.
57
60
  */
58
61
  private optionsMatch;
59
62
  }
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **MongoRepository**(`type`): (`target`, `propertyKey`) => `void`
10
10
 
11
- Defined in: [src/decorators/DatabaseDecorators.ts:10](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/DatabaseDecorators.ts#L10)
11
+ Defined in: [src/decorators/DatabaseDecorators.ts:10](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/DatabaseDecorators.ts#L10)
12
12
 
13
13
  Apply this to a property to have the TypeORM `MongoRepository` for the given entity type injected at instantiation.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **RedisConnection**(`name`): (`target`, `propertyKey`) => `void`
10
10
 
11
- Defined in: [src/decorators/DatabaseDecorators.ts:44](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/DatabaseDecorators.ts#L44)
11
+ Defined in: [src/decorators/DatabaseDecorators.ts:44](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/DatabaseDecorators.ts#L44)
12
12
 
13
13
  Apply this to a property to have the `Redis` connection injected at instantiation.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Repository**(`type`): (`target`, `propertyKey`) => `void`
10
10
 
11
- Defined in: [src/decorators/DatabaseDecorators.ts:27](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/DatabaseDecorators.ts#L27)
11
+ Defined in: [src/decorators/DatabaseDecorators.ts:27](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/DatabaseDecorators.ts#L27)
12
12
 
13
13
  Apply this to a property to have the TypeORM `Repository` for the given entity type injected at instantiation.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Default**(`value`): (`target`, `propertyKey?`) => `void`
10
10
 
11
- Defined in: [src/decorators/DocDecorators.ts:40](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/DocDecorators.ts#L40)
11
+ Defined in: [src/decorators/DocDecorators.ts:40](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/DocDecorators.ts#L40)
12
12
 
13
13
  Provides a default value for property of a class.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Description**(`value`): (`target`, `propertyKey?`) => `void`
10
10
 
11
- Defined in: [src/decorators/DocDecorators.ts:51](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/DocDecorators.ts#L51)
11
+ Defined in: [src/decorators/DocDecorators.ts:51](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/DocDecorators.ts#L51)
12
12
 
13
13
  Provides a detailed describing the class, property or function.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Document**(`value`): (`target`, `propertyKey?`) => `void`
10
10
 
11
- Defined in: [src/decorators/DocDecorators.ts:20](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/DocDecorators.ts#L20)
11
+ Defined in: [src/decorators/DocDecorators.ts:20](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/DocDecorators.ts#L20)
12
12
 
13
13
  Provides a set of documentation data for a given class, property or function.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Example**(`value`): (`target`, `propertyKey?`) => `void`
10
10
 
11
- Defined in: [src/decorators/DocDecorators.ts:62](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/DocDecorators.ts#L62)
11
+ Defined in: [src/decorators/DocDecorators.ts:62](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/DocDecorators.ts#L62)
12
12
 
13
13
  Provides a example representation of the property or function return value.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Format**(`value`): (`target`, `propertyKey?`) => `void`
10
10
 
11
- Defined in: [src/decorators/DocDecorators.ts:73](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/DocDecorators.ts#L73)
11
+ Defined in: [src/decorators/DocDecorators.ts:73](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/DocDecorators.ts#L73)
12
12
 
13
13
  Describes the underlying format of a class's property.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Returns**(`types?`): (`target`, `propertyKey`) => `void`
10
10
 
11
- Defined in: [src/decorators/DocDecorators.ts:109](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/DocDecorators.ts#L109)
11
+ Defined in: [src/decorators/DocDecorators.ts:109](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/DocDecorators.ts#L109)
12
12
 
13
13
  Stores runtime metadata about the typing information of a function's return value.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Summary**(`value`): (`target`, `propertyKey?`) => `void`
10
10
 
11
- Defined in: [src/decorators/DocDecorators.ts:84](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/DocDecorators.ts#L84)
11
+ Defined in: [src/decorators/DocDecorators.ts:84](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/DocDecorators.ts#L84)
12
12
 
13
13
  Provides a brief summary about the class, property or function.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Tags**(`value`): (`target`, `propertyKey?`) => `void`
10
10
 
11
- Defined in: [src/decorators/DocDecorators.ts:95](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/DocDecorators.ts#L95)
11
+ Defined in: [src/decorators/DocDecorators.ts:95](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/DocDecorators.ts#L95)
12
12
 
13
13
  Provides a list of searchable tags associated with the property or function.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **TypeInfo**(`types?`): (`target`, `propertyKey`) => `void`
10
10
 
11
- Defined in: [src/decorators/DocDecorators.ts:128](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/DocDecorators.ts#L128)
11
+ Defined in: [src/decorators/DocDecorators.ts:128](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/DocDecorators.ts#L128)
12
12
 
13
13
  Stores runtime metadata about the typing information of a class property.
14
14
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Interface: DocumentsData
8
8
 
9
- Defined in: [src/decorators/DocDecorators.ts:6](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/DocDecorators.ts#L6)
9
+ Defined in: [src/decorators/DocDecorators.ts:6](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/DocDecorators.ts#L6)
10
10
 
11
11
  ## Properties
12
12
 
@@ -14,7 +14,7 @@ Defined in: [src/decorators/DocDecorators.ts:6](https://github.com/rapidrest/ser
14
14
 
15
15
  > `optional` **default?**: `any`
16
16
 
17
- Defined in: [src/decorators/DocDecorators.ts:7](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/DocDecorators.ts#L7)
17
+ Defined in: [src/decorators/DocDecorators.ts:7](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/DocDecorators.ts#L7)
18
18
 
19
19
  ***
20
20
 
@@ -22,7 +22,7 @@ Defined in: [src/decorators/DocDecorators.ts:7](https://github.com/rapidrest/ser
22
22
 
23
23
  > `optional` **description?**: `string`
24
24
 
25
- Defined in: [src/decorators/DocDecorators.ts:8](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/DocDecorators.ts#L8)
25
+ Defined in: [src/decorators/DocDecorators.ts:8](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/DocDecorators.ts#L8)
26
26
 
27
27
  ***
28
28
 
@@ -30,7 +30,7 @@ Defined in: [src/decorators/DocDecorators.ts:8](https://github.com/rapidrest/ser
30
30
 
31
31
  > `optional` **example?**: `any`
32
32
 
33
- Defined in: [src/decorators/DocDecorators.ts:9](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/DocDecorators.ts#L9)
33
+ Defined in: [src/decorators/DocDecorators.ts:9](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/DocDecorators.ts#L9)
34
34
 
35
35
  ***
36
36
 
@@ -38,7 +38,7 @@ Defined in: [src/decorators/DocDecorators.ts:9](https://github.com/rapidrest/ser
38
38
 
39
39
  > `optional` **format?**: `string`
40
40
 
41
- Defined in: [src/decorators/DocDecorators.ts:10](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/DocDecorators.ts#L10)
41
+ Defined in: [src/decorators/DocDecorators.ts:10](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/DocDecorators.ts#L10)
42
42
 
43
43
  ***
44
44
 
@@ -46,7 +46,7 @@ Defined in: [src/decorators/DocDecorators.ts:10](https://github.com/rapidrest/se
46
46
 
47
47
  > `optional` **summary?**: `string`
48
48
 
49
- Defined in: [src/decorators/DocDecorators.ts:11](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/DocDecorators.ts#L11)
49
+ Defined in: [src/decorators/DocDecorators.ts:11](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/DocDecorators.ts#L11)
50
50
 
51
51
  ***
52
52
 
@@ -54,4 +54,4 @@ Defined in: [src/decorators/DocDecorators.ts:11](https://github.com/rapidrest/se
54
54
 
55
55
  > `optional` **tags?**: `string`[]
56
56
 
57
- Defined in: [src/decorators/DocDecorators.ts:12](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/DocDecorators.ts#L12)
57
+ Defined in: [src/decorators/DocDecorators.ts:12](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/DocDecorators.ts#L12)
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **EventListener**(): (`target`) => `void`
10
10
 
11
- Defined in: [src/decorators/EventDecorators.ts:21](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/EventDecorators.ts#L21)
11
+ Defined in: [src/decorators/EventDecorators.ts:21](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/EventDecorators.ts#L21)
12
12
 
13
13
  Apply this optionally to a abitary class, that has a no argument constructor, to auto register it as an event listener. Will still require add `@OnEvent` to methods
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **OnEvent**(`type?`): (`target`, `propertyKey`, `descriptor`) => `void`
10
10
 
11
- Defined in: [src/decorators/EventDecorators.ts:12](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/EventDecorators.ts#L12)
11
+ Defined in: [src/decorators/EventDecorators.ts:12](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/EventDecorators.ts#L12)
12
12
 
13
13
  Apply this to a function that will be called when events arrive for the specified type(s). If no event type is
14
14
  specified, then the function will be called upon each event that arrives.
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Cache**(`ttl?`): (`target`) => `void`
10
10
 
11
- Defined in: [src/decorators/ModelDecorators.ts:30](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/ModelDecorators.ts#L30)
11
+ Defined in: [src/decorators/ModelDecorators.ts:30](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/ModelDecorators.ts#L30)
12
12
 
13
13
  Indicates that the class is cacheable with the specified TTL.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **ChildEntity**(): \<`T`\>(`constructor`) => \{(...`args`): `child`\<`T`\>; `prototype`: `child`\<`any`\>; \} & `T`
10
10
 
11
- Defined in: [src/decorators/ModelDecorators.ts:45](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/ModelDecorators.ts#L45)
11
+ Defined in: [src/decorators/ModelDecorators.ts:45](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/ModelDecorators.ts#L45)
12
12
 
13
13
  Indicates that a class is a child entity to some parent. Child entities will inherit all datastore configuration
14
14
  of the parent, including cache settings.
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **DataStore**(`datastore`): (`target`) => `void`
10
10
 
11
- Defined in: [src/decorators/ModelDecorators.ts:73](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/ModelDecorators.ts#L73)
11
+ Defined in: [src/decorators/ModelDecorators.ts:73](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/ModelDecorators.ts#L73)
12
12
 
13
13
  Indicates that the class describes an entity that will be persisted in the datastore with the given name.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Identifier**(`target`, `propertyKey`): `void`
10
10
 
11
- Defined in: [src/decorators/ModelDecorators.ts:87](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/ModelDecorators.ts#L87)
11
+ Defined in: [src/decorators/ModelDecorators.ts:87](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/ModelDecorators.ts#L87)
12
12
 
13
13
  Apply this to a property that is considered a unique identifier.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Protect**(`classACL?`, `recordACL?`): (`target`) => `void`
10
10
 
11
- Defined in: [src/decorators/ModelDecorators.ts:109](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/ModelDecorators.ts#L109)
11
+ Defined in: [src/decorators/ModelDecorators.ts:109](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/ModelDecorators.ts#L109)
12
12
 
13
13
  Apply this to a model class to indicate that it should be protected by the AccessControlList security system.
14
14
  The `classACL` parameter specifies the default ACL governing access to general operations against the model class
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Reference**(`clazz`): (`target`, `propertyKey`) => `void`
10
10
 
11
- Defined in: [src/decorators/ModelDecorators.ts:160](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/ModelDecorators.ts#L160)
11
+ Defined in: [src/decorators/ModelDecorators.ts:160](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/ModelDecorators.ts#L160)
12
12
 
13
13
  Apply this to a property to indicate that the value is a reference to another stored entity.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Shard**(`config?`): (`target`) => `void`
10
10
 
11
- Defined in: [src/decorators/ModelDecorators.ts:173](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/ModelDecorators.ts#L173)
11
+ Defined in: [src/decorators/ModelDecorators.ts:173](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/ModelDecorators.ts#L173)
12
12
 
13
13
  Indicates that the class describes an entity that will be persisted in a sharded database collection.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **TrackChanges**(`versions?`): (`target`) => `void`
10
10
 
11
- Defined in: [src/decorators/ModelDecorators.ts:190](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/ModelDecorators.ts#L190)
11
+ Defined in: [src/decorators/ModelDecorators.ts:190](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/ModelDecorators.ts#L190)
12
12
 
13
13
  Indicates that the class will track changes for each document update limited to the specified number of versions.
14
14
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Interface: PendingTypeOrmColumn
8
8
 
9
- Defined in: [src/decorators/ModelDecorators.ts:12](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/ModelDecorators.ts#L12)
9
+ Defined in: [src/decorators/ModelDecorators.ts:12](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/ModelDecorators.ts#L12)
10
10
 
11
11
  Describes a column registration that must be bridged into TypeORM's metadata storage when (and only when) a SQL
12
12
  connection is established. Entries are queued here by decorators so that this module does not depend on the
@@ -18,7 +18,7 @@ optional `typeorm` package.
18
18
 
19
19
  > **mode**: `"regular"`
20
20
 
21
- Defined in: [src/decorators/ModelDecorators.ts:15](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/ModelDecorators.ts#L15)
21
+ Defined in: [src/decorators/ModelDecorators.ts:15](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/ModelDecorators.ts#L15)
22
22
 
23
23
  ***
24
24
 
@@ -26,7 +26,7 @@ Defined in: [src/decorators/ModelDecorators.ts:15](https://github.com/rapidrest/
26
26
 
27
27
  > **options**: `any`
28
28
 
29
- Defined in: [src/decorators/ModelDecorators.ts:16](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/ModelDecorators.ts#L16)
29
+ Defined in: [src/decorators/ModelDecorators.ts:16](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/ModelDecorators.ts#L16)
30
30
 
31
31
  ***
32
32
 
@@ -34,7 +34,7 @@ Defined in: [src/decorators/ModelDecorators.ts:16](https://github.com/rapidrest/
34
34
 
35
35
  > **propertyName**: `string`
36
36
 
37
- Defined in: [src/decorators/ModelDecorators.ts:14](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/ModelDecorators.ts#L14)
37
+ Defined in: [src/decorators/ModelDecorators.ts:14](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/ModelDecorators.ts#L14)
38
38
 
39
39
  ***
40
40
 
@@ -42,4 +42,4 @@ Defined in: [src/decorators/ModelDecorators.ts:14](https://github.com/rapidrest/
42
42
 
43
43
  > **target**: `any`
44
44
 
45
- Defined in: [src/decorators/ModelDecorators.ts:13](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/ModelDecorators.ts#L13)
45
+ Defined in: [src/decorators/ModelDecorators.ts:13](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/ModelDecorators.ts#L13)
@@ -8,7 +8,7 @@
8
8
 
9
9
  > `const` **pendingTypeOrmColumns**: [`PendingTypeOrmColumn`](../interfaces/PendingTypeOrmColumn.md)[] = `[]`
10
10
 
11
- Defined in: [src/decorators/ModelDecorators.ts:23](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/ModelDecorators.ts#L23)
11
+ Defined in: [src/decorators/ModelDecorators.ts:23](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/ModelDecorators.ts#L23)
12
12
 
13
13
  The list of column registrations waiting to be bridged into TypeORM's metadata storage. This list is drained by
14
14
  the TypeORM support module when a SQL connection is created.
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Column**(`options?`): (`target`, `propertyKey`) => `void`
10
10
 
11
- Defined in: [src/decorators/PersistenceDecorators.ts:124](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/PersistenceDecorators.ts#L124)
11
+ Defined in: [src/decorators/PersistenceDecorators.ts:124](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L124)
12
12
 
13
13
  Indicates that the decorated property will be persisted as a column/property in the datastore.
14
14
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **Entity**(`options?`): (`target`) => `void`
10
10
 
11
- Defined in: [src/decorators/PersistenceDecorators.ts:226](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/PersistenceDecorators.ts#L226)
11
+ Defined in: [src/decorators/PersistenceDecorators.ts:226](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L226)
12
12
 
13
13
  Indicates that the class describes an entity that is persisted to a datastore.
14
14
 
@@ -10,7 +10,7 @@
10
10
 
11
11
  > **Index**(`nameOrOptions?`, `options?`): `PropertyDecorator`
12
12
 
13
- Defined in: [src/decorators/PersistenceDecorators.ts:162](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/PersistenceDecorators.ts#L162)
13
+ Defined in: [src/decorators/PersistenceDecorators.ts:162](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L162)
14
14
 
15
15
  Declares a database index.
16
16
 
@@ -46,7 +46,7 @@ When applied to a class, creates a compound index across the given properties:
46
46
 
47
47
  > **Index**(`fields`, `options?`): `ClassDecorator`
48
48
 
49
- Defined in: [src/decorators/PersistenceDecorators.ts:163](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/PersistenceDecorators.ts#L163)
49
+ Defined in: [src/decorators/PersistenceDecorators.ts:163](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L163)
50
50
 
51
51
  Declares a database index.
52
52
 
@@ -82,7 +82,7 @@ When applied to a class, creates a compound index across the given properties:
82
82
 
83
83
  > **Index**(`name`, `fields`, `options?`): `ClassDecorator`
84
84
 
85
- Defined in: [src/decorators/PersistenceDecorators.ts:164](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/PersistenceDecorators.ts#L164)
85
+ Defined in: [src/decorators/PersistenceDecorators.ts:164](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L164)
86
86
 
87
87
  Declares a database index.
88
88
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **PrimaryColumn**(`options?`): (`target`, `propertyKey`) => `void`
10
10
 
11
- Defined in: [src/decorators/PersistenceDecorators.ts:140](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/PersistenceDecorators.ts#L140)
11
+ Defined in: [src/decorators/PersistenceDecorators.ts:140](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L140)
12
12
 
13
13
  Indicates that the decorated property is a primary key column in the datastore.
14
14
 
@@ -10,7 +10,7 @@
10
10
 
11
11
  > **Unique**(`name?`): `PropertyDecorator`
12
12
 
13
- Defined in: [src/decorators/PersistenceDecorators.ts:208](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/PersistenceDecorators.ts#L208)
13
+ Defined in: [src/decorators/PersistenceDecorators.ts:208](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L208)
14
14
 
15
15
  Declares a unique constraint. This is shorthand for `@Index` with the `unique` option set to `true` and may be
16
16
  applied to a property (single-column constraint) or a class (compound constraint).
@@ -29,7 +29,7 @@ applied to a property (single-column constraint) or a class (compound constraint
29
29
 
30
30
  > **Unique**(`fields`): `ClassDecorator`
31
31
 
32
- Defined in: [src/decorators/PersistenceDecorators.ts:209](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/PersistenceDecorators.ts#L209)
32
+ Defined in: [src/decorators/PersistenceDecorators.ts:209](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L209)
33
33
 
34
34
  Declares a unique constraint. This is shorthand for `@Index` with the `unique` option set to `true` and may be
35
35
  applied to a property (single-column constraint) or a class (compound constraint).
@@ -48,7 +48,7 @@ applied to a property (single-column constraint) or a class (compound constraint
48
48
 
49
49
  > **Unique**(`name`, `fields`): `ClassDecorator`
50
50
 
51
- Defined in: [src/decorators/PersistenceDecorators.ts:210](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/PersistenceDecorators.ts#L210)
51
+ Defined in: [src/decorators/PersistenceDecorators.ts:210](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L210)
52
52
 
53
53
  Declares a unique constraint. This is shorthand for `@Index` with the `unique` option set to `true` and may be
54
54
  applied to a property (single-column constraint) or a class (compound constraint).
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **getColumnMetadata**(`clazz`): [`ColumnInfo`](../interfaces/ColumnInfo.md)[]
10
10
 
11
- Defined in: [src/decorators/PersistenceDecorators.ts:242](https://github.com/rapidrest/service-core/blob/efdc0cb4d7297a1254d20c7aa8c3677d5dae2a73/src/decorators/PersistenceDecorators.ts#L242)
11
+ Defined in: [src/decorators/PersistenceDecorators.ts:242](https://github.com/rapidrest/service-core/blob/33d3655fa6883713f33f0fe6f330eb205671fea1/src/decorators/PersistenceDecorators.ts#L242)
12
12
 
13
13
  Returns the merged list of persisted columns declared across the entire class hierarchy of the given model
14
14
  class. Columns declared in subclasses override columns of the same property name declared in parent classes.