shuttlepro-shared 1.4.86 → 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.
- package/dump.rdb +0 -0
- package/models/Attribute.js +5 -0
- package/models/Category.js +5 -0
- package/models/Conversation.js +0 -2
- package/models/Location.js +5 -0
- package/models/Order.js +5 -0
- package/models/OrderProduct.js +5 -0
- package/models/ProductAttribute.js +5 -0
- package/models/VariantLocation.js +5 -0
- package/package.json +1 -1
package/dump.rdb
ADDED
|
Binary file
|
package/models/Attribute.js
CHANGED
|
@@ -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/Category.js
CHANGED
|
@@ -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 },
|
package/models/Conversation.js
CHANGED
|
@@ -110,8 +110,6 @@ const conversationSchema = new mongoose.Schema(
|
|
|
110
110
|
cc: { type: String, default: "" },
|
|
111
111
|
bcc: { type: String, default: "" },
|
|
112
112
|
isReplied: { type: Boolean, default: false },
|
|
113
|
-
isWorkflow: { type: Boolean, default: false },
|
|
114
|
-
workflowId: { type: Schema.Types.ObjectId, ref: "UserWorkflow", default: null },
|
|
115
113
|
},
|
|
116
114
|
{ timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
|
|
117
115
|
);
|
package/models/Location.js
CHANGED
|
@@ -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 },
|
package/models/OrderProduct.js
CHANGED
|
@@ -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 },
|