@timardex/cluemart-server-shared 1.1.15 → 1.1.16
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/dist/{chunk-VS3WIV6D.mjs → chunk-7GXZS3LI.mjs} +8 -6
- package/dist/chunk-7GXZS3LI.mjs.map +1 -0
- package/dist/index.cjs +7 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +7 -5
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +7 -5
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +7 -5
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-VS3WIV6D.mjs.map +0 -1
package/dist/mongoose/index.cjs
CHANGED
|
@@ -5480,6 +5480,7 @@ var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = gql`
|
|
|
5480
5480
|
_id
|
|
5481
5481
|
createdAt
|
|
5482
5482
|
description
|
|
5483
|
+
hasCoupon
|
|
5483
5484
|
name
|
|
5484
5485
|
price
|
|
5485
5486
|
priceUnit
|
|
@@ -8981,16 +8982,17 @@ var MongooseSchema13 = import_mongoose13.default.Schema;
|
|
|
8981
8982
|
var vendorProductTypeSchema = new MongooseSchema13(
|
|
8982
8983
|
{
|
|
8983
8984
|
description: { required: false, type: String },
|
|
8984
|
-
|
|
8985
|
-
|
|
8986
|
-
|
|
8985
|
+
hasCoupon: { default: false, required: false, type: Boolean },
|
|
8986
|
+
name: { required: true, type: String },
|
|
8987
|
+
price: { required: true, type: Number },
|
|
8988
|
+
priceUnit: { required: true, type: String },
|
|
8987
8989
|
productGroups: { required: false, type: [String] }
|
|
8988
8990
|
},
|
|
8989
8991
|
{ timestamps: true }
|
|
8990
8992
|
);
|
|
8991
8993
|
var productWrapperSchema = new MongooseSchema13(
|
|
8992
8994
|
{
|
|
8993
|
-
active: { default: false, type: Boolean },
|
|
8995
|
+
active: { default: false, required: true, type: Boolean },
|
|
8994
8996
|
productsList: { required: false, type: [vendorProductTypeSchema] }
|
|
8995
8997
|
},
|
|
8996
8998
|
{ _id: false }
|
|
@@ -9018,7 +9020,7 @@ var calendarSchema = new MongooseSchema13(
|
|
|
9018
9020
|
);
|
|
9019
9021
|
var calendarWrapperSchema = new MongooseSchema13(
|
|
9020
9022
|
{
|
|
9021
|
-
active: { default: false, type: Boolean },
|
|
9023
|
+
active: { default: false, required: true, type: Boolean },
|
|
9022
9024
|
calendarData: { required: false, type: [calendarSchema] }
|
|
9023
9025
|
},
|
|
9024
9026
|
{ _id: false }
|