@francesco_ksh/app-ksh-mgd-schemas 2.3.6 → 2.3.8

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/index.js CHANGED
@@ -35,6 +35,12 @@ const crossListingSchema = require('./models/CrossListing');
35
35
  const exploreCardSchema = require('./models/ExploreCard');
36
36
  const bonusSchema = require('./models/Bonus');
37
37
 
38
+ // Register Counter model so it's available when User.js and other models try to use it
39
+ const mongoose = require('mongoose');
40
+ if (!mongoose.models.Counter) {
41
+ mongoose.model('Counter', counterSchema);
42
+ }
43
+
38
44
  module.exports = {
39
45
  adminReviewSchema,
40
46
  articlesSchema,
package/models/Order.js CHANGED
@@ -469,6 +469,9 @@ const orderSchema = new Schema(
469
469
  shippingLabelLink: {
470
470
  type: String,
471
471
  },
472
+ readyReturnsQrCodeLink: {
473
+ type: String,
474
+ },
472
475
  parcelShippingMetadata: {
473
476
  shipmentId: {
474
477
  type: String,
@@ -479,6 +482,12 @@ const orderSchema = new Schema(
479
482
  serviceCode: {
480
483
  type: String,
481
484
  },
485
+ readyReturnsUniqueOrderId: {
486
+ type: String,
487
+ },
488
+ readyReturnsPrimaryOrderId: {
489
+ type: String,
490
+ },
482
491
  },
483
492
  bolLink: {
484
493
  type: String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@francesco_ksh/app-ksh-mgd-schemas",
3
- "version": "2.3.6",
3
+ "version": "2.3.8",
4
4
  "description": "Mongoose schema definitions",
5
5
  "main": "index.js",
6
6
  "repository": {