shuttlepro-shared 1.4.43 → 1.4.44
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/Product.js +6 -0
- package/models/ProductVariant.js +1 -0
- package/models/Workspace.js +0 -1
- package/package.json +1 -1
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 || "",
|
package/models/ProductVariant.js
CHANGED
|
@@ -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: "" },
|
package/models/Workspace.js
CHANGED
|
@@ -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: {
|