shuttlepro-shared 1.4.85 → 1.4.87

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.
@@ -10,6 +10,11 @@ const AttributeSchema = new Schema(
10
10
  ref: "Workspace",
11
11
  default: null,
12
12
  },
13
+ websiteId: {
14
+ type: Schema.Types.ObjectId,
15
+ ref: "Website",
16
+ default: null,
17
+ },
13
18
  oldId: { type: String, default: "" },
14
19
  createdBy: { type: Schema.Types.ObjectId, ref: "User", default: null },
15
20
  updatedBy: { type: Schema.Types.ObjectId, ref: "User", default: null },
package/models/Card.js CHANGED
@@ -71,6 +71,10 @@ const cardSchema = new mongoose.Schema(
71
71
  completionDate: {
72
72
  type: String,
73
73
  },
74
+ ticketMovedTime: {
75
+ type: Date,
76
+ default: null,
77
+ },
74
78
  updatedDate: {
75
79
  type: Date,
76
80
  default: Date.now,
@@ -11,6 +11,11 @@ const CategorySchema = new Schema(
11
11
  ref: "Workspace",
12
12
  default: null,
13
13
  },
14
+ websiteId: {
15
+ type: Schema.Types.ObjectId,
16
+ ref: "Website",
17
+ default: null,
18
+ },
14
19
  oldId: { type: String, default: "" },
15
20
  webCategoryId: { type: Number, default: null },
16
21
  parentId: { type: Schema.Types.ObjectId, ref: "Category", default: null },
@@ -19,6 +19,11 @@ const LocationSchema = new Schema(
19
19
  ref: "Workspace",
20
20
  default: null,
21
21
  },
22
+ websiteId: {
23
+ type: Schema.Types.ObjectId,
24
+ ref: "Website",
25
+ default: null,
26
+ },
22
27
  legacy: { type: Boolean, default: false },
23
28
  name: { type: String, default: "" },
24
29
  isDeleted: { type: Boolean, default: false },
package/models/Order.js CHANGED
@@ -104,6 +104,11 @@ const OrderSchema = new Schema(
104
104
  ref: "Workspace",
105
105
  default: null,
106
106
  },
107
+ websiteId: {
108
+ type: Schema.Types.ObjectId,
109
+ ref: "Website",
110
+ default: null,
111
+ },
107
112
  orderType: { type: String, default: "" },
108
113
  barCode: { type: String, default: "" },
109
114
  quantity: { type: Number, default: 0 },
@@ -31,6 +31,11 @@ const OrderProductSchema = new Schema(
31
31
  ref: "Workspace",
32
32
  default: null,
33
33
  },
34
+ websiteId: {
35
+ type: Schema.Types.ObjectId,
36
+ ref: "Website",
37
+ default: null,
38
+ },
34
39
  },
35
40
  { timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
36
41
  );
@@ -16,6 +16,11 @@ const ProductAttributeSchema = new mongoose.Schema(
16
16
  ref: "Workspace",
17
17
  default: null,
18
18
  },
19
+ websiteId: {
20
+ type: Schema.Types.ObjectId,
21
+ ref: "Website",
22
+ default: null,
23
+ },
19
24
  isDeleted: { type: Boolean, default: false },
20
25
  position: { type: String, default: "1" },
21
26
  },
@@ -13,6 +13,11 @@ const VariantLocationSchema = new Schema(
13
13
  ref: "Workspace",
14
14
  default: null,
15
15
  },
16
+ websiteId: {
17
+ type: Schema.Types.ObjectId,
18
+ ref: "Website",
19
+ default: null,
20
+ },
16
21
  productId: { type: Schema.Types.ObjectId, ref: "Product", default: null },
17
22
  locationId: { type: Schema.Types.ObjectId, ref: "Location", default: null },
18
23
  webVariantLocationId: { type: Number, default: null },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.4.85",
3
+ "version": "1.4.87",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {