@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/index.cjs CHANGED
@@ -5622,6 +5622,7 @@ var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = gql`
5622
5622
  description
5623
5623
  name
5624
5624
  price
5625
+ priceMax
5625
5626
  priceUnit
5626
5627
  productGroups
5627
5628
  updatedAt
@@ -7940,8 +7941,16 @@ var CREATE_COUPON_MUTATION = gql`
7940
7941
  ${COUPON}
7941
7942
  `;
7942
7943
  var UPDATE_COUPON_MUTATION = gql`
7943
- mutation updateCoupon($_id: ID!, $input: CouponInputType!) {
7944
- updateCoupon(_id: $_id, input: $input) {
7944
+ mutation updateCoupon(
7945
+ $couponDocumentId: ID!
7946
+ $couponId: ID!
7947
+ $input: CouponInputType!
7948
+ ) {
7949
+ updateCoupon(
7950
+ couponDocumentId: $couponDocumentId
7951
+ couponId: $couponId
7952
+ input: $input
7953
+ ) {
7945
7954
  data {
7946
7955
  ...CouponFields
7947
7956
  }
@@ -7951,8 +7960,8 @@ var UPDATE_COUPON_MUTATION = gql`
7951
7960
  ${COUPON}
7952
7961
  `;
7953
7962
  var DELETE_COUPON_MUTATION = gql`
7954
- mutation deleteCoupon($_id: ID!) {
7955
- deleteCoupon(_id: $_id) {
7963
+ mutation deleteCoupon($couponDocumentId: ID!, $couponId: ID!) {
7964
+ deleteCoupon(couponDocumentId: $couponDocumentId, couponId: $couponId) {
7956
7965
  data
7957
7966
  message
7958
7967
  }
@@ -8972,6 +8981,11 @@ var schema7 = new MongooseSchema11(
8972
8981
  required: false,
8973
8982
  type: ResourceImageTypeSchema
8974
8983
  },
8984
+ coupon: {
8985
+ ref: "Coupon",
8986
+ required: false,
8987
+ type: import_mongoose11.default.Schema.Types.ObjectId
8988
+ },
8975
8989
  deletedAt: { default: null, required: false, type: Date },
8976
8990
  email: { required: true, type: String },
8977
8991
  emailSentFor: {
@@ -9205,6 +9219,7 @@ var vendorProductTypeSchema = new MongooseSchema14(
9205
9219
  description: { required: false, type: String },
9206
9220
  name: { required: true, type: String },
9207
9221
  price: { required: true, type: Number },
9222
+ priceMax: { required: false, type: Number },
9208
9223
  priceUnit: { required: true, type: String },
9209
9224
  productGroups: { required: false, type: [String] }
9210
9225
  },
@@ -9212,7 +9227,7 @@ var vendorProductTypeSchema = new MongooseSchema14(
9212
9227
  );
9213
9228
  var productWrapperSchema = new MongooseSchema14(
9214
9229
  {
9215
- active: { default: false, required: true, type: Boolean },
9230
+ active: { default: false, required: false, type: Boolean },
9216
9231
  productsList: { required: false, type: [vendorProductTypeSchema] }
9217
9232
  },
9218
9233
  { _id: false }
@@ -9962,7 +9977,7 @@ var SHARE_RESOURCE_LABEL2 = {
9962
9977
  school: "School"
9963
9978
  };
9964
9979
 
9965
- // node_modules/@timardex/cluemart-shared/dist/chunk-UV5GH6NI.mjs
9980
+ // node_modules/@timardex/cluemart-shared/dist/chunk-OH7ZORGB.mjs
9966
9981
  var PROMO_CODE_PREFIX2 = "CM-";
9967
9982
  var OBJECT_ID_PATH_SEGMENT2 = "[a-f0-9]{24}";
9968
9983
  var OBJECT_ID_PATH_SEGMENT_END2 = `${OBJECT_ID_PATH_SEGMENT2}$`;
@@ -10064,7 +10079,7 @@ var gameScreenIdentifierList2 = [
10064
10079
  }
10065
10080
  ];
10066
10081
 
10067
- // node_modules/@timardex/cluemart-shared/dist/chunk-3UYXNSNB.mjs
10082
+ // node_modules/@timardex/cluemart-shared/dist/chunk-IH3BEKPK.mjs
10068
10083
  var import_dayjs4 = __toESM(require("dayjs"), 1);
10069
10084
  var statusOptions2 = [
10070
10085
  ...Object.values(EnumInviteStatus2).map((status) => ({