@timardex/cluemart-server-shared 1.1.17 → 1.1.19
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-K4C5YKZE.mjs → chunk-XOFBUTNJ.mjs} +21 -6
- package/dist/chunk-XOFBUTNJ.mjs.map +1 -0
- package/dist/index.cjs +22 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.mjs +22 -7
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +20 -5
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +4 -2
- package/dist/mongoose/index.d.ts +4 -2
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +22 -7
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +3 -3
- package/dist/service/index.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-K4C5YKZE.mjs.map +0 -1
package/dist/mongoose/index.cjs
CHANGED
|
@@ -5595,6 +5595,7 @@ var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = gql`
|
|
|
5595
5595
|
description
|
|
5596
5596
|
name
|
|
5597
5597
|
price
|
|
5598
|
+
priceMax
|
|
5598
5599
|
priceUnit
|
|
5599
5600
|
productGroups
|
|
5600
5601
|
updatedAt
|
|
@@ -7913,8 +7914,16 @@ var CREATE_COUPON_MUTATION = gql`
|
|
|
7913
7914
|
${COUPON}
|
|
7914
7915
|
`;
|
|
7915
7916
|
var UPDATE_COUPON_MUTATION = gql`
|
|
7916
|
-
mutation updateCoupon(
|
|
7917
|
-
|
|
7917
|
+
mutation updateCoupon(
|
|
7918
|
+
$couponDocumentId: ID!
|
|
7919
|
+
$couponId: ID!
|
|
7920
|
+
$input: CouponInputType!
|
|
7921
|
+
) {
|
|
7922
|
+
updateCoupon(
|
|
7923
|
+
couponDocumentId: $couponDocumentId
|
|
7924
|
+
couponId: $couponId
|
|
7925
|
+
input: $input
|
|
7926
|
+
) {
|
|
7918
7927
|
data {
|
|
7919
7928
|
...CouponFields
|
|
7920
7929
|
}
|
|
@@ -7924,8 +7933,8 @@ var UPDATE_COUPON_MUTATION = gql`
|
|
|
7924
7933
|
${COUPON}
|
|
7925
7934
|
`;
|
|
7926
7935
|
var DELETE_COUPON_MUTATION = gql`
|
|
7927
|
-
mutation deleteCoupon($
|
|
7928
|
-
deleteCoupon(
|
|
7936
|
+
mutation deleteCoupon($couponDocumentId: ID!, $couponId: ID!) {
|
|
7937
|
+
deleteCoupon(couponDocumentId: $couponDocumentId, couponId: $couponId) {
|
|
7929
7938
|
data
|
|
7930
7939
|
message
|
|
7931
7940
|
}
|
|
@@ -8897,6 +8906,11 @@ var schema7 = new MongooseSchema11(
|
|
|
8897
8906
|
required: false,
|
|
8898
8907
|
type: ResourceImageTypeSchema
|
|
8899
8908
|
},
|
|
8909
|
+
coupon: {
|
|
8910
|
+
ref: "Coupon",
|
|
8911
|
+
required: false,
|
|
8912
|
+
type: import_mongoose11.default.Schema.Types.ObjectId
|
|
8913
|
+
},
|
|
8900
8914
|
deletedAt: { default: null, required: false, type: Date },
|
|
8901
8915
|
email: { required: true, type: String },
|
|
8902
8916
|
emailSentFor: {
|
|
@@ -9130,6 +9144,7 @@ var vendorProductTypeSchema = new MongooseSchema14(
|
|
|
9130
9144
|
description: { required: false, type: String },
|
|
9131
9145
|
name: { required: true, type: String },
|
|
9132
9146
|
price: { required: true, type: Number },
|
|
9147
|
+
priceMax: { required: false, type: Number },
|
|
9133
9148
|
priceUnit: { required: true, type: String },
|
|
9134
9149
|
productGroups: { required: false, type: [String] }
|
|
9135
9150
|
},
|
|
@@ -9137,7 +9152,7 @@ var vendorProductTypeSchema = new MongooseSchema14(
|
|
|
9137
9152
|
);
|
|
9138
9153
|
var productWrapperSchema = new MongooseSchema14(
|
|
9139
9154
|
{
|
|
9140
|
-
active: { default: false, required:
|
|
9155
|
+
active: { default: false, required: false, type: Boolean },
|
|
9141
9156
|
productsList: { required: false, type: [vendorProductTypeSchema] }
|
|
9142
9157
|
},
|
|
9143
9158
|
{ _id: false }
|