@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.
package/dist/index.d.mts CHANGED
@@ -1133,9 +1133,9 @@ declare function buildUserHasEnoughPointsFilter(amount: number): {
1133
1133
  * 0 and dropping emptied ones. Pair with `buildUserHasEnoughPointsFilter` so
1134
1134
  * the full amount is always covered.
1135
1135
  *
1136
- * Non-array `overallPoints` values are handled by `buildLedgerWriteExpr`: a
1137
- * legacy number is written back unchanged (treating it as an empty ledger would
1138
- * delete the stored balance), while null/missing becomes an empty ledger.
1136
+ * Non-array `overallPoints` values are handled by `buildLedgerWriteExpr`:
1137
+ * null/missing becomes an empty ledger, while any other shape is left untouched
1138
+ * rather than replaced.
1139
1139
  */
1140
1140
  declare function buildUserPointDebitPipeline(amount: number): {
1141
1141
  $set: {
@@ -1153,9 +1153,9 @@ declare function buildUserPointDebitPipeline(amount: number): {
1153
1153
  * alone would remove an unrelated award of the same type (e.g. checking out of
1154
1154
  * one event stripping a different event's check-in points).
1155
1155
  *
1156
- * Non-array `overallPoints` values are handled by `buildLedgerWriteExpr`: a
1157
- * legacy number is written back unchanged so the stored balance is never
1158
- * replaced, while null/missing becomes an empty ledger.
1156
+ * Non-array `overallPoints` values are handled by `buildLedgerWriteExpr`:
1157
+ * null/missing becomes an empty ledger, while any other shape is left untouched
1158
+ * rather than replaced.
1159
1159
  */
1160
1160
  declare function buildUserPointEntryRemovalPipeline(pointType: EnumPointType, sourceId?: string): {
1161
1161
  $set: {
package/dist/index.d.ts CHANGED
@@ -1133,9 +1133,9 @@ declare function buildUserHasEnoughPointsFilter(amount: number): {
1133
1133
  * 0 and dropping emptied ones. Pair with `buildUserHasEnoughPointsFilter` so
1134
1134
  * the full amount is always covered.
1135
1135
  *
1136
- * Non-array `overallPoints` values are handled by `buildLedgerWriteExpr`: a
1137
- * legacy number is written back unchanged (treating it as an empty ledger would
1138
- * delete the stored balance), while null/missing becomes an empty ledger.
1136
+ * Non-array `overallPoints` values are handled by `buildLedgerWriteExpr`:
1137
+ * null/missing becomes an empty ledger, while any other shape is left untouched
1138
+ * rather than replaced.
1139
1139
  */
1140
1140
  declare function buildUserPointDebitPipeline(amount: number): {
1141
1141
  $set: {
@@ -1153,9 +1153,9 @@ declare function buildUserPointDebitPipeline(amount: number): {
1153
1153
  * alone would remove an unrelated award of the same type (e.g. checking out of
1154
1154
  * one event stripping a different event's check-in points).
1155
1155
  *
1156
- * Non-array `overallPoints` values are handled by `buildLedgerWriteExpr`: a
1157
- * legacy number is written back unchanged so the stored balance is never
1158
- * replaced, while null/missing becomes an empty ledger.
1156
+ * Non-array `overallPoints` values are handled by `buildLedgerWriteExpr`:
1157
+ * null/missing becomes an empty ledger, while any other shape is left untouched
1158
+ * rather than replaced.
1159
1159
  */
1160
1160
  declare function buildUserPointEntryRemovalPipeline(pointType: EnumPointType, sourceId?: string): {
1161
1161
  $set: {