shuttlepro-shared 1.4.43 → 1.4.45

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/models/Call.js CHANGED
@@ -30,6 +30,11 @@ const callSchema = new mongoose.Schema(
30
30
  default: null,
31
31
  },
32
32
  type: { type: String, default: "inbound" },
33
+ labels: [{ type: Schema.Types.ObjectId, ref: "Label" }],
34
+ remarks: {
35
+ type: String,
36
+ default: "",
37
+ },
33
38
  status: {
34
39
  type: String,
35
40
  enum: ["pending", "hold", "active", "ended", "disconnected", "abandoned"],
package/models/Product.js CHANGED
@@ -136,6 +136,11 @@ const transformProductData = async (product) => {
136
136
  costPrice: p?.costPrice || 0,
137
137
  salePrice: p?.salePrice || 0,
138
138
  quantity: p?.quantity || 0,
139
+ barcode: p?.barcode || "",
140
+ presentedName: p?.presentedName || "",
141
+ presentedCurrency: p?.presentedCurrency || "",
142
+ presentedCurrencySymbol: p?.presentedCurrencySymbol || "",
143
+ websiteId: p?.websiteId || null,
139
144
  })) || [],
140
145
  attachments:
141
146
  populatedProduct.productAttachments?.map((x) => ({
@@ -156,6 +161,7 @@ const transformProductData = async (product) => {
156
161
  costPrice: p?.costPrice || 0,
157
162
  salePrice: p?.salePrice || 0,
158
163
  quantity: p?.quantity || 0,
164
+ barcode: p?.barcode || "",
159
165
  presentedName: p?.presentedName || "",
160
166
  presentedCurrency: p?.presentedCurrency || "",
161
167
  presentedCurrencySymbol: p?.presentedCurrencySymbol || "",
@@ -45,6 +45,7 @@ const ProductVariantSchema = new Schema(
45
45
  createdBy: { type: Schema.Types.ObjectId, ref: "User", default: null },
46
46
  updatedBy: { type: Schema.Types.ObjectId, ref: "User", default: null },
47
47
  isDeleted: { type: Boolean, default: false },
48
+ barcode: { type: String, default: "" },
48
49
  bcVariantId: { type: String, default: "" },
49
50
  presentedName: { type: String, default: "" },
50
51
  presentedCurrency: { type: String, default: "" },
@@ -88,7 +88,6 @@ const ResolutionReasonCategorySchema = new mongoose.Schema({
88
88
  });
89
89
  const feedbackFormSchema = new mongoose.Schema({
90
90
  formName: { type: String, required: true, trim: true },
91
- webhookUrl: { type: String, default: "" },
92
91
  brandName: { type: String, default: "" },
93
92
  brandLogoUrl: { type: String, default: "", trim: true },
94
93
  type: {
@@ -229,6 +228,10 @@ const workspaceSchema = new mongoose.Schema(
229
228
  type: Number,
230
229
  default: 75,
231
230
  },
231
+ whatsappCallingTimer: {
232
+ type: Number,
233
+ default: 30,
234
+ },
232
235
  isDeleted: { type: Boolean, default: false },
233
236
  businessHours: {
234
237
  startTime: { type: String, default: "" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.4.43",
3
+ "version": "1.4.45",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {