@timardex/cluemart-server-shared 1.1.18 → 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-TDAUQKK7.mjs → chunk-XOFBUTNJ.mjs} +14 -6
- package/dist/chunk-XOFBUTNJ.mjs.map +1 -0
- package/dist/index.cjs +15 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +15 -7
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +13 -5
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +15 -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-TDAUQKK7.mjs.map +0 -1
package/dist/mongoose/index.cjs
CHANGED
|
@@ -7914,8 +7914,16 @@ var CREATE_COUPON_MUTATION = gql`
|
|
|
7914
7914
|
${COUPON}
|
|
7915
7915
|
`;
|
|
7916
7916
|
var UPDATE_COUPON_MUTATION = gql`
|
|
7917
|
-
mutation updateCoupon(
|
|
7918
|
-
|
|
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
|
+
) {
|
|
7919
7927
|
data {
|
|
7920
7928
|
...CouponFields
|
|
7921
7929
|
}
|
|
@@ -7925,8 +7933,8 @@ var UPDATE_COUPON_MUTATION = gql`
|
|
|
7925
7933
|
${COUPON}
|
|
7926
7934
|
`;
|
|
7927
7935
|
var DELETE_COUPON_MUTATION = gql`
|
|
7928
|
-
mutation deleteCoupon($
|
|
7929
|
-
deleteCoupon(
|
|
7936
|
+
mutation deleteCoupon($couponDocumentId: ID!, $couponId: ID!) {
|
|
7937
|
+
deleteCoupon(couponDocumentId: $couponDocumentId, couponId: $couponId) {
|
|
7930
7938
|
data
|
|
7931
7939
|
message
|
|
7932
7940
|
}
|
|
@@ -9144,7 +9152,7 @@ var vendorProductTypeSchema = new MongooseSchema14(
|
|
|
9144
9152
|
);
|
|
9145
9153
|
var productWrapperSchema = new MongooseSchema14(
|
|
9146
9154
|
{
|
|
9147
|
-
active: { default: false, required:
|
|
9155
|
+
active: { default: false, required: false, type: Boolean },
|
|
9148
9156
|
productsList: { required: false, type: [vendorProductTypeSchema] }
|
|
9149
9157
|
},
|
|
9150
9158
|
{ _id: false }
|