@timardex/cluemart-server-shared 2.2.22 → 2.2.30

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.
@@ -1543,6 +1543,19 @@ var redeemedRewardSchema = new MongooseSchema12(
1543
1543
  },
1544
1544
  { _id: false }
1545
1545
  );
1546
+ var userOverallPointsSchema = new MongooseSchema12(
1547
+ {
1548
+ createdAt: { required: true, type: Date },
1549
+ points: { default: 0, required: true, type: Number },
1550
+ pointType: {
1551
+ enum: Object.values(import_cluemart_shared13.EnumPointType),
1552
+ required: true,
1553
+ type: String
1554
+ },
1555
+ sourceId: { required: false, type: String }
1556
+ },
1557
+ { _id: false }
1558
+ );
1546
1559
  var schema12 = new MongooseSchema12(
1547
1560
  {
1548
1561
  active: { default: false, required: true, type: Boolean },
@@ -1594,7 +1607,11 @@ var schema12 = new MongooseSchema12(
1594
1607
  type: locationsSchema
1595
1608
  },
1596
1609
  nickName: { required: false, type: String },
1597
- overallPoints: { default: 0, required: false, type: Number },
1610
+ overallPoints: {
1611
+ default: [],
1612
+ required: false,
1613
+ type: [userOverallPointsSchema]
1614
+ },
1598
1615
  partner: {
1599
1616
  ref: "Partner",
1600
1617
  required: false,
@@ -2236,7 +2253,10 @@ var gameTypeSchema = new MongooseSchema24(
2236
2253
  required: true,
2237
2254
  type: String
2238
2255
  },
2239
- gameTypeId: { required: true, type: String }
2256
+ gameTypeId: { required: true, type: String },
2257
+ // See `GameType.pointsCredited`: absent means "completed before the marker
2258
+ // existed", which must not be re-credited.
2259
+ pointsCredited: { required: false, type: Boolean }
2240
2260
  },
2241
2261
  { timestamps: true }
2242
2262
  );