@chevre/domain 21.8.0-alpha.19 → 21.8.0-alpha.20

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.
@@ -72,6 +72,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
72
72
  customer?: any;
73
73
  returner?: any;
74
74
  orderStatus?: string | undefined;
75
+ previousOrderStatus?: string | undefined;
75
76
  isGift?: boolean | undefined;
76
77
  dateReturned?: Date | undefined;
77
78
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
@@ -95,6 +96,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
95
96
  customer?: any;
96
97
  returner?: any;
97
98
  orderStatus?: string | undefined;
99
+ previousOrderStatus?: string | undefined;
98
100
  isGift?: boolean | undefined;
99
101
  dateReturned?: Date | undefined;
100
102
  }>> & Omit<import("mongoose").FlatRecord<{
@@ -118,6 +120,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
118
120
  customer?: any;
119
121
  returner?: any;
120
122
  orderStatus?: string | undefined;
123
+ previousOrderStatus?: string | undefined;
121
124
  isGift?: boolean | undefined;
122
125
  dateReturned?: Date | undefined;
123
126
  }> & {
@@ -29,6 +29,7 @@ const schema = new mongoose_1.Schema({
29
29
  discounts: [mongoose_1.SchemaTypes.Mixed],
30
30
  url: String,
31
31
  orderStatus: String,
32
+ previousOrderStatus: String,
32
33
  orderDate: Date,
33
34
  isGift: Boolean,
34
35
  dateReturned: Date,
@@ -681,7 +681,10 @@ class MongoRepository {
681
681
  orderNumber: { $eq: params.orderNumber },
682
682
  orderStatus: { $eq: params.previousOrderStatus },
683
683
  'project.id': { $eq: params.project.id }
684
- }, { orderStatus: params.orderStatus }, {
684
+ }, {
685
+ previousOrderStatus: params.previousOrderStatus,
686
+ orderStatus: params.orderStatus
687
+ }, {
685
688
  new: true,
686
689
  projection: {
687
690
  __v: 0,
@@ -723,6 +726,7 @@ class MongoRepository {
723
726
  orderStatus: { $eq: factory.orderStatus.OrderDelivered },
724
727
  'project.id': { $eq: params.project.id }
725
728
  }, {
729
+ previousOrderStatus: factory.orderStatus.OrderDelivered,
726
730
  orderStatus: factory.orderStatus.OrderReturned,
727
731
  dateReturned: params.dateReturned,
728
732
  returner: params.returner
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  }
10
10
  ],
11
11
  "dependencies": {
12
- "@chevre/factory": "4.327.0-alpha.9",
12
+ "@chevre/factory": "4.327.0",
13
13
  "@cinerino/sdk": "3.165.0",
14
14
  "@motionpicture/coa-service": "9.2.0",
15
15
  "@motionpicture/gmo-service": "5.2.0",
@@ -117,5 +117,5 @@
117
117
  "postversion": "git push origin --tags",
118
118
  "prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
119
119
  },
120
- "version": "21.8.0-alpha.19"
120
+ "version": "21.8.0-alpha.20"
121
121
  }