@timardex/cluemart-server-shared 2.2.30 → 2.3.0

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.
@@ -214,9 +214,9 @@ declare function buildUserHasEnoughPointsFilter(amount: number): {
214
214
  * 0 and dropping emptied ones. Pair with `buildUserHasEnoughPointsFilter` so
215
215
  * the full amount is always covered.
216
216
  *
217
- * Non-array `overallPoints` values are handled by `buildLedgerWriteExpr`: a
218
- * legacy number is written back unchanged (treating it as an empty ledger would
219
- * delete the stored balance), while null/missing becomes an empty ledger.
217
+ * Non-array `overallPoints` values are handled by `buildLedgerWriteExpr`:
218
+ * null/missing becomes an empty ledger, while any other shape is left untouched
219
+ * rather than replaced.
220
220
  */
221
221
  declare function buildUserPointDebitPipeline(amount: number): {
222
222
  $set: {
@@ -234,9 +234,9 @@ declare function buildUserPointDebitPipeline(amount: number): {
234
234
  * alone would remove an unrelated award of the same type (e.g. checking out of
235
235
  * one event stripping a different event's check-in points).
236
236
  *
237
- * Non-array `overallPoints` values are handled by `buildLedgerWriteExpr`: a
238
- * legacy number is written back unchanged so the stored balance is never
239
- * replaced, while null/missing becomes an empty ledger.
237
+ * Non-array `overallPoints` values are handled by `buildLedgerWriteExpr`:
238
+ * null/missing becomes an empty ledger, while any other shape is left untouched
239
+ * rather than replaced.
240
240
  */
241
241
  declare function buildUserPointEntryRemovalPipeline(pointType: EnumPointType, sourceId?: string): {
242
242
  $set: {
@@ -214,9 +214,9 @@ declare function buildUserHasEnoughPointsFilter(amount: number): {
214
214
  * 0 and dropping emptied ones. Pair with `buildUserHasEnoughPointsFilter` so
215
215
  * the full amount is always covered.
216
216
  *
217
- * Non-array `overallPoints` values are handled by `buildLedgerWriteExpr`: a
218
- * legacy number is written back unchanged (treating it as an empty ledger would
219
- * delete the stored balance), while null/missing becomes an empty ledger.
217
+ * Non-array `overallPoints` values are handled by `buildLedgerWriteExpr`:
218
+ * null/missing becomes an empty ledger, while any other shape is left untouched
219
+ * rather than replaced.
220
220
  */
221
221
  declare function buildUserPointDebitPipeline(amount: number): {
222
222
  $set: {
@@ -234,9 +234,9 @@ declare function buildUserPointDebitPipeline(amount: number): {
234
234
  * alone would remove an unrelated award of the same type (e.g. checking out of
235
235
  * one event stripping a different event's check-in points).
236
236
  *
237
- * Non-array `overallPoints` values are handled by `buildLedgerWriteExpr`: a
238
- * legacy number is written back unchanged so the stored balance is never
239
- * replaced, while null/missing becomes an empty ledger.
237
+ * Non-array `overallPoints` values are handled by `buildLedgerWriteExpr`:
238
+ * null/missing becomes an empty ledger, while any other shape is left untouched
239
+ * rather than replaced.
240
240
  */
241
241
  declare function buildUserPointEntryRemovalPipeline(pointType: EnumPointType, sourceId?: string): {
242
242
  $set: {