@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.
@@ -62,9 +62,10 @@ declare const ResourceActivityModel: mongoose__default.Model<ResourceActivityTyp
62
62
  type SchemaUserActivityEvent = Omit<UserActivityEvent, "resourceId"> & {
63
63
  resourceId: ObjectId;
64
64
  };
65
- type SchemaUserType = Omit<UserType, "vendor" | "events" | "partner" | "userActivity" | "_id" | "game" | "school" | "affiliate" | "permissions"> & {
65
+ type SchemaUserType = Omit<UserType, "vendor" | "coupon" | "events" | "partner" | "userActivity" | "_id" | "game" | "school" | "affiliate" | "permissions"> & {
66
66
  _id: ObjectId;
67
67
  affiliate: ObjectId;
68
+ coupon: ObjectId;
68
69
  events: ObjectId[];
69
70
  game: ObjectId;
70
71
  partner: ObjectId;
@@ -87,9 +88,10 @@ type SchemaUserType = Omit<UserType, "vendor" | "events" | "partner" | "userActi
87
88
  };
88
89
  };
89
90
  };
90
- declare const UserModel: mongoose__default.Model<SchemaUserType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "events" | "partner" | "userActivity" | "game" | "school" | "affiliate" | "permissions"> & {
91
+ declare const UserModel: mongoose__default.Model<SchemaUserType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "coupon" | "events" | "partner" | "userActivity" | "game" | "school" | "affiliate" | "permissions"> & {
91
92
  _id: ObjectId;
92
93
  affiliate: ObjectId;
94
+ coupon: ObjectId;
93
95
  events: ObjectId[];
94
96
  game: ObjectId;
95
97
  partner: ObjectId;
@@ -62,9 +62,10 @@ declare const ResourceActivityModel: mongoose__default.Model<ResourceActivityTyp
62
62
  type SchemaUserActivityEvent = Omit<UserActivityEvent, "resourceId"> & {
63
63
  resourceId: ObjectId;
64
64
  };
65
- type SchemaUserType = Omit<UserType, "vendor" | "events" | "partner" | "userActivity" | "_id" | "game" | "school" | "affiliate" | "permissions"> & {
65
+ type SchemaUserType = Omit<UserType, "vendor" | "coupon" | "events" | "partner" | "userActivity" | "_id" | "game" | "school" | "affiliate" | "permissions"> & {
66
66
  _id: ObjectId;
67
67
  affiliate: ObjectId;
68
+ coupon: ObjectId;
68
69
  events: ObjectId[];
69
70
  game: ObjectId;
70
71
  partner: ObjectId;
@@ -87,9 +88,10 @@ type SchemaUserType = Omit<UserType, "vendor" | "events" | "partner" | "userActi
87
88
  };
88
89
  };
89
90
  };
90
- declare const UserModel: mongoose__default.Model<SchemaUserType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "events" | "partner" | "userActivity" | "game" | "school" | "affiliate" | "permissions"> & {
91
+ declare const UserModel: mongoose__default.Model<SchemaUserType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "coupon" | "events" | "partner" | "userActivity" | "game" | "school" | "affiliate" | "permissions"> & {
91
92
  _id: ObjectId;
92
93
  affiliate: ObjectId;
94
+ coupon: ObjectId;
93
95
  events: ObjectId[];
94
96
  game: ObjectId;
95
97
  partner: ObjectId;
@@ -42,7 +42,7 @@ import {
42
42
  termsAgreementSchema,
43
43
  userLicenseSchema,
44
44
  vendorProductTypeSchema
45
- } from "../chunk-K4C5YKZE.mjs";
45
+ } from "../chunk-XOFBUTNJ.mjs";
46
46
  export {
47
47
  APP_SETTINGS_ID,
48
48
  AdModel,
@@ -5576,6 +5576,7 @@ var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = gql`
5576
5576
  description
5577
5577
  name
5578
5578
  price
5579
+ priceMax
5579
5580
  priceUnit
5580
5581
  productGroups
5581
5582
  updatedAt
@@ -7894,8 +7895,16 @@ var CREATE_COUPON_MUTATION = gql`
7894
7895
  ${COUPON}
7895
7896
  `;
7896
7897
  var UPDATE_COUPON_MUTATION = gql`
7897
- mutation updateCoupon($_id: ID!, $input: CouponInputType!) {
7898
- updateCoupon(_id: $_id, input: $input) {
7898
+ mutation updateCoupon(
7899
+ $couponDocumentId: ID!
7900
+ $couponId: ID!
7901
+ $input: CouponInputType!
7902
+ ) {
7903
+ updateCoupon(
7904
+ couponDocumentId: $couponDocumentId
7905
+ couponId: $couponId
7906
+ input: $input
7907
+ ) {
7899
7908
  data {
7900
7909
  ...CouponFields
7901
7910
  }
@@ -7905,8 +7914,8 @@ var UPDATE_COUPON_MUTATION = gql`
7905
7914
  ${COUPON}
7906
7915
  `;
7907
7916
  var DELETE_COUPON_MUTATION = gql`
7908
- mutation deleteCoupon($_id: ID!) {
7909
- deleteCoupon(_id: $_id) {
7917
+ mutation deleteCoupon($couponDocumentId: ID!, $couponId: ID!) {
7918
+ deleteCoupon(couponDocumentId: $couponDocumentId, couponId: $couponId) {
7910
7919
  data
7911
7920
  message
7912
7921
  }
@@ -8926,6 +8935,11 @@ var schema7 = new MongooseSchema11(
8926
8935
  required: false,
8927
8936
  type: ResourceImageTypeSchema
8928
8937
  },
8938
+ coupon: {
8939
+ ref: "Coupon",
8940
+ required: false,
8941
+ type: import_mongoose11.default.Schema.Types.ObjectId
8942
+ },
8929
8943
  deletedAt: { default: null, required: false, type: Date },
8930
8944
  email: { required: true, type: String },
8931
8945
  emailSentFor: {
@@ -9159,6 +9173,7 @@ var vendorProductTypeSchema = new MongooseSchema14(
9159
9173
  description: { required: false, type: String },
9160
9174
  name: { required: true, type: String },
9161
9175
  price: { required: true, type: Number },
9176
+ priceMax: { required: false, type: Number },
9162
9177
  priceUnit: { required: true, type: String },
9163
9178
  productGroups: { required: false, type: [String] }
9164
9179
  },
@@ -9166,7 +9181,7 @@ var vendorProductTypeSchema = new MongooseSchema14(
9166
9181
  );
9167
9182
  var productWrapperSchema = new MongooseSchema14(
9168
9183
  {
9169
- active: { default: false, required: true, type: Boolean },
9184
+ active: { default: false, required: false, type: Boolean },
9170
9185
  productsList: { required: false, type: [vendorProductTypeSchema] }
9171
9186
  },
9172
9187
  { _id: false }
@@ -9916,7 +9931,7 @@ var SHARE_RESOURCE_LABEL2 = {
9916
9931
  school: "School"
9917
9932
  };
9918
9933
 
9919
- // node_modules/@timardex/cluemart-shared/dist/chunk-UV5GH6NI.mjs
9934
+ // node_modules/@timardex/cluemart-shared/dist/chunk-OH7ZORGB.mjs
9920
9935
  var PROMO_CODE_PREFIX2 = "CM-";
9921
9936
  var OBJECT_ID_PATH_SEGMENT2 = "[a-f0-9]{24}";
9922
9937
  var OBJECT_ID_PATH_SEGMENT_END2 = `${OBJECT_ID_PATH_SEGMENT2}$`;
@@ -10018,7 +10033,7 @@ var gameScreenIdentifierList2 = [
10018
10033
  }
10019
10034
  ];
10020
10035
 
10021
- // node_modules/@timardex/cluemart-shared/dist/chunk-3UYXNSNB.mjs
10036
+ // node_modules/@timardex/cluemart-shared/dist/chunk-IH3BEKPK.mjs
10022
10037
  var import_dayjs4 = __toESM(require("dayjs"), 1);
10023
10038
  var statusOptions2 = [
10024
10039
  ...Object.values(EnumInviteStatus2).map((status) => ({