shuttlepro-shared 1.3.77 → 1.3.79

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 },
@@ -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/Chatbot.js CHANGED
@@ -18,6 +18,7 @@ const ChatbotSchema = new Schema(
18
18
  type: Boolean,
19
19
  default: false,
20
20
  },
21
+ files: { type: Array, default: [] },
21
22
  enabledAgents: [
22
23
  {
23
24
  name: { type: String, default: "" },
@@ -14,6 +14,11 @@ const LocationSchema = new Schema(
14
14
  oldId: { type: String, default: "" },
15
15
  webLocationId: { type: Number, default: null },
16
16
  bcLocationId: { type: String, default: "" },
17
+ websiteId: {
18
+ type: Schema.Types.ObjectId,
19
+ ref: "Website",
20
+ default: null,
21
+ },
17
22
  workspaceId: {
18
23
  type: Schema.Types.ObjectId,
19
24
  ref: "Workspace",
package/models/Product.js CHANGED
@@ -28,6 +28,11 @@ const ProductSchema = new Schema(
28
28
  ref: "Workspace",
29
29
  default: null,
30
30
  },
31
+ websiteId: {
32
+ type: Schema.Types.ObjectId,
33
+ ref: "Website",
34
+ default: null,
35
+ },
31
36
  storeType: { type: String, default: "LOCAL" },
32
37
  isDeleted: { type: Boolean, default: false },
33
38
  inventoryPolicy: { type: String, default: "deny" }, //deny,continue
@@ -22,6 +22,11 @@ const ProductAttachmentSchema = new Schema(
22
22
  ref: "Workspace",
23
23
  default: null,
24
24
  },
25
+ websiteId: {
26
+ type: Schema.Types.ObjectId,
27
+ ref: "Website",
28
+ default: null,
29
+ },
25
30
  height: { type: Number, default: 0 },
26
31
  variantIds: [
27
32
  { type: Schema.Types.ObjectId, ref: "ProductVariant", default: null },
@@ -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
  },
@@ -11,6 +11,11 @@ const ProductCategorySchema = 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
  createdBy: { type: Schema.Types.ObjectId, ref: "User", default: null },
15
20
  updatedBy: { type: Schema.Types.ObjectId, ref: "User", default: null },
16
21
  isDeleted: { type: Boolean, default: false },
@@ -11,6 +11,11 @@ const ProductTagSchema = 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
  createdBy: { type: Schema.Types.ObjectId, ref: "User", default: null },
15
20
  updatedBy: { type: Schema.Types.ObjectId, ref: "User", default: null },
16
21
  isDeleted: { type: Boolean, default: false },
@@ -17,6 +17,11 @@ const ProductVariantSchema = new Schema(
17
17
  ref: "Workspace",
18
18
  default: null,
19
19
  },
20
+ websiteId: {
21
+ type: Schema.Types.ObjectId,
22
+ ref: "Website",
23
+ default: null,
24
+ },
20
25
  webVariantId: { type: Number, default: null },
21
26
  inventoryPolicy: { type: String, default: "deny" }, //deny,continue
22
27
  taxable: { type: Boolean, default: false },
package/models/Tag.js CHANGED
@@ -8,6 +8,11 @@ const TagSchema = new Schema(
8
8
  ref: "Workspace",
9
9
  default: null,
10
10
  },
11
+ websiteId: {
12
+ type: Schema.Types.ObjectId,
13
+ ref: "Website",
14
+ default: null,
15
+ },
11
16
  oldId: { type: String, default: "" },
12
17
  webTagId: { type: Number, default: "" },
13
18
  createdBy: { type: Schema.Types.ObjectId, ref: "User", default: null },
@@ -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.3.77",
3
+ "version": "1.3.79",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {