@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/index.mjs CHANGED
@@ -7838,8 +7838,16 @@ var CREATE_COUPON_MUTATION = gql`
7838
7838
  ${COUPON}
7839
7839
  `;
7840
7840
  var UPDATE_COUPON_MUTATION = gql`
7841
- mutation updateCoupon($_id: ID!, $input: CouponInputType!) {
7842
- updateCoupon(_id: $_id, input: $input) {
7841
+ mutation updateCoupon(
7842
+ $couponDocumentId: ID!
7843
+ $couponId: ID!
7844
+ $input: CouponInputType!
7845
+ ) {
7846
+ updateCoupon(
7847
+ couponDocumentId: $couponDocumentId
7848
+ couponId: $couponId
7849
+ input: $input
7850
+ ) {
7843
7851
  data {
7844
7852
  ...CouponFields
7845
7853
  }
@@ -7849,8 +7857,8 @@ var UPDATE_COUPON_MUTATION = gql`
7849
7857
  ${COUPON}
7850
7858
  `;
7851
7859
  var DELETE_COUPON_MUTATION = gql`
7852
- mutation deleteCoupon($_id: ID!) {
7853
- deleteCoupon(_id: $_id) {
7860
+ mutation deleteCoupon($couponDocumentId: ID!, $couponId: ID!) {
7861
+ deleteCoupon(couponDocumentId: $couponDocumentId, couponId: $couponId) {
7854
7862
  data
7855
7863
  message
7856
7864
  }
@@ -9116,7 +9124,7 @@ var vendorProductTypeSchema = new MongooseSchema14(
9116
9124
  );
9117
9125
  var productWrapperSchema = new MongooseSchema14(
9118
9126
  {
9119
- active: { default: false, required: true, type: Boolean },
9127
+ active: { default: false, required: false, type: Boolean },
9120
9128
  productsList: { required: false, type: [vendorProductTypeSchema] }
9121
9129
  },
9122
9130
  { _id: false }
@@ -9866,7 +9874,7 @@ var SHARE_RESOURCE_LABEL2 = {
9866
9874
  school: "School"
9867
9875
  };
9868
9876
 
9869
- // node_modules/@timardex/cluemart-shared/dist/chunk-UV5GH6NI.mjs
9877
+ // node_modules/@timardex/cluemart-shared/dist/chunk-OH7ZORGB.mjs
9870
9878
  var PROMO_CODE_PREFIX2 = "CM-";
9871
9879
  var OBJECT_ID_PATH_SEGMENT2 = "[a-f0-9]{24}";
9872
9880
  var OBJECT_ID_PATH_SEGMENT_END2 = `${OBJECT_ID_PATH_SEGMENT2}$`;
@@ -9968,7 +9976,7 @@ var gameScreenIdentifierList2 = [
9968
9976
  }
9969
9977
  ];
9970
9978
 
9971
- // node_modules/@timardex/cluemart-shared/dist/chunk-3UYXNSNB.mjs
9979
+ // node_modules/@timardex/cluemart-shared/dist/chunk-IH3BEKPK.mjs
9972
9980
  import dayjs4 from "dayjs";
9973
9981
  var statusOptions2 = [
9974
9982
  ...Object.values(EnumInviteStatus2).map((status) => ({