@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.d.mts CHANGED
@@ -509,9 +509,10 @@ declare const ResourceActivityModel: mongoose__default.Model<ResourceActivityTyp
509
509
  type SchemaUserActivityEvent = Omit<UserActivityEvent, "resourceId"> & {
510
510
  resourceId: ObjectId;
511
511
  };
512
- type SchemaUserType = Omit<UserType, "vendor" | "events" | "partner" | "userActivity" | "_id" | "game" | "school" | "affiliate" | "permissions"> & {
512
+ type SchemaUserType = Omit<UserType, "vendor" | "coupon" | "events" | "partner" | "userActivity" | "_id" | "game" | "school" | "affiliate" | "permissions"> & {
513
513
  _id: ObjectId;
514
514
  affiliate: ObjectId;
515
+ coupon: ObjectId;
515
516
  events: ObjectId[];
516
517
  game: ObjectId;
517
518
  partner: ObjectId;
@@ -534,9 +535,10 @@ type SchemaUserType = Omit<UserType, "vendor" | "events" | "partner" | "userActi
534
535
  };
535
536
  };
536
537
  };
537
- declare const UserModel: mongoose__default.Model<SchemaUserType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "events" | "partner" | "userActivity" | "game" | "school" | "affiliate" | "permissions"> & {
538
+ declare const UserModel: mongoose__default.Model<SchemaUserType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "coupon" | "events" | "partner" | "userActivity" | "game" | "school" | "affiliate" | "permissions"> & {
538
539
  _id: ObjectId;
539
540
  affiliate: ObjectId;
541
+ coupon: ObjectId;
540
542
  events: ObjectId[];
541
543
  game: ObjectId;
542
544
  partner: ObjectId;
package/dist/index.d.ts CHANGED
@@ -509,9 +509,10 @@ declare const ResourceActivityModel: mongoose__default.Model<ResourceActivityTyp
509
509
  type SchemaUserActivityEvent = Omit<UserActivityEvent, "resourceId"> & {
510
510
  resourceId: ObjectId;
511
511
  };
512
- type SchemaUserType = Omit<UserType, "vendor" | "events" | "partner" | "userActivity" | "_id" | "game" | "school" | "affiliate" | "permissions"> & {
512
+ type SchemaUserType = Omit<UserType, "vendor" | "coupon" | "events" | "partner" | "userActivity" | "_id" | "game" | "school" | "affiliate" | "permissions"> & {
513
513
  _id: ObjectId;
514
514
  affiliate: ObjectId;
515
+ coupon: ObjectId;
515
516
  events: ObjectId[];
516
517
  game: ObjectId;
517
518
  partner: ObjectId;
@@ -534,9 +535,10 @@ type SchemaUserType = Omit<UserType, "vendor" | "events" | "partner" | "userActi
534
535
  };
535
536
  };
536
537
  };
537
- declare const UserModel: mongoose__default.Model<SchemaUserType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "events" | "partner" | "userActivity" | "game" | "school" | "affiliate" | "permissions"> & {
538
+ declare const UserModel: mongoose__default.Model<SchemaUserType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "coupon" | "events" | "partner" | "userActivity" | "game" | "school" | "affiliate" | "permissions"> & {
538
539
  _id: ObjectId;
539
540
  affiliate: ObjectId;
541
+ coupon: ObjectId;
540
542
  events: ObjectId[];
541
543
  game: ObjectId;
542
544
  partner: ObjectId;
package/dist/index.mjs CHANGED
@@ -5519,6 +5519,7 @@ var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = gql`
5519
5519
  description
5520
5520
  name
5521
5521
  price
5522
+ priceMax
5522
5523
  priceUnit
5523
5524
  productGroups
5524
5525
  updatedAt
@@ -7837,8 +7838,16 @@ var CREATE_COUPON_MUTATION = gql`
7837
7838
  ${COUPON}
7838
7839
  `;
7839
7840
  var UPDATE_COUPON_MUTATION = gql`
7840
- mutation updateCoupon($_id: ID!, $input: CouponInputType!) {
7841
- 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
+ ) {
7842
7851
  data {
7843
7852
  ...CouponFields
7844
7853
  }
@@ -7848,8 +7857,8 @@ var UPDATE_COUPON_MUTATION = gql`
7848
7857
  ${COUPON}
7849
7858
  `;
7850
7859
  var DELETE_COUPON_MUTATION = gql`
7851
- mutation deleteCoupon($_id: ID!) {
7852
- deleteCoupon(_id: $_id) {
7860
+ mutation deleteCoupon($couponDocumentId: ID!, $couponId: ID!) {
7861
+ deleteCoupon(couponDocumentId: $couponDocumentId, couponId: $couponId) {
7853
7862
  data
7854
7863
  message
7855
7864
  }
@@ -8869,6 +8878,11 @@ var schema7 = new MongooseSchema11(
8869
8878
  required: false,
8870
8879
  type: ResourceImageTypeSchema
8871
8880
  },
8881
+ coupon: {
8882
+ ref: "Coupon",
8883
+ required: false,
8884
+ type: mongoose11.Schema.Types.ObjectId
8885
+ },
8872
8886
  deletedAt: { default: null, required: false, type: Date },
8873
8887
  email: { required: true, type: String },
8874
8888
  emailSentFor: {
@@ -9102,6 +9116,7 @@ var vendorProductTypeSchema = new MongooseSchema14(
9102
9116
  description: { required: false, type: String },
9103
9117
  name: { required: true, type: String },
9104
9118
  price: { required: true, type: Number },
9119
+ priceMax: { required: false, type: Number },
9105
9120
  priceUnit: { required: true, type: String },
9106
9121
  productGroups: { required: false, type: [String] }
9107
9122
  },
@@ -9109,7 +9124,7 @@ var vendorProductTypeSchema = new MongooseSchema14(
9109
9124
  );
9110
9125
  var productWrapperSchema = new MongooseSchema14(
9111
9126
  {
9112
- active: { default: false, required: true, type: Boolean },
9127
+ active: { default: false, required: false, type: Boolean },
9113
9128
  productsList: { required: false, type: [vendorProductTypeSchema] }
9114
9129
  },
9115
9130
  { _id: false }
@@ -9859,7 +9874,7 @@ var SHARE_RESOURCE_LABEL2 = {
9859
9874
  school: "School"
9860
9875
  };
9861
9876
 
9862
- // node_modules/@timardex/cluemart-shared/dist/chunk-UV5GH6NI.mjs
9877
+ // node_modules/@timardex/cluemart-shared/dist/chunk-OH7ZORGB.mjs
9863
9878
  var PROMO_CODE_PREFIX2 = "CM-";
9864
9879
  var OBJECT_ID_PATH_SEGMENT2 = "[a-f0-9]{24}";
9865
9880
  var OBJECT_ID_PATH_SEGMENT_END2 = `${OBJECT_ID_PATH_SEGMENT2}$`;
@@ -9961,7 +9976,7 @@ var gameScreenIdentifierList2 = [
9961
9976
  }
9962
9977
  ];
9963
9978
 
9964
- // node_modules/@timardex/cluemart-shared/dist/chunk-3UYXNSNB.mjs
9979
+ // node_modules/@timardex/cluemart-shared/dist/chunk-IH3BEKPK.mjs
9965
9980
  import dayjs4 from "dayjs";
9966
9981
  var statusOptions2 = [
9967
9982
  ...Object.values(EnumInviteStatus2).map((status) => ({