@timardex/cluemart-server-shared 1.0.297 → 1.0.299

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.
@@ -3428,13 +3428,13 @@ var EnumUserLicence = /* @__PURE__ */ ((EnumUserLicence22) => {
3428
3428
  })(EnumUserLicence || {});
3429
3429
  var EnumUserRole = /* @__PURE__ */ ((EnumUserRole22) => {
3430
3430
  EnumUserRole22["ADMIN"] = "admin";
3431
- EnumUserRole22["SUPER_ADMIN"] = "super_admin";
3432
- EnumUserRole22["CUSTOMER"] = "customer";
3433
- EnumUserRole22["MARKETING"] = "marketing";
3434
- EnumUserRole22["MODERATOR"] = "moderator";
3435
- EnumUserRole22["SUPPORT"] = "support";
3436
3431
  EnumUserRole22["AFFILIATE"] = "affiliate";
3432
+ EnumUserRole22["CUSTOMER"] = "customer";
3433
+ EnumUserRole22["EVENT"] = "event";
3434
+ EnumUserRole22["PARTNER"] = "partner";
3437
3435
  EnumUserRole22["SCHOOL"] = "school";
3436
+ EnumUserRole22["SUPER_ADMIN"] = "super_admin";
3437
+ EnumUserRole22["VENDOR"] = "vendor";
3438
3438
  return EnumUserRole22;
3439
3439
  })(EnumUserRole || {});
3440
3440
  var EnumEventDateStatus = /* @__PURE__ */ ((EnumEventDateStatus22) => {
@@ -5144,8 +5144,9 @@ var USER_FIELDS_FRAGMENT = gql`
5144
5144
  overallPoints
5145
5145
  platform
5146
5146
  preferredRegion
5147
+ permissions
5147
5148
  promoCodes
5148
- role
5149
+ roles
5149
5150
  redeemedRewards {
5150
5151
  ...RedeemedRewardFields
5151
5152
  }
@@ -8325,7 +8326,7 @@ schema4.index({ isRead: 1, userId: 1 });
8325
8326
  schema4.index({ createdAt: -1, userId: 1 });
8326
8327
  var NotificationModel = import_mongoose8.default.models.Notification || import_mongoose8.default.model("Notification", schema4);
8327
8328
 
8328
- // node_modules/@timardex/cluemart-shared/dist/chunk-D33VEY7Q.mjs
8329
+ // node_modules/@timardex/cluemart-shared/dist/chunk-VR3TDBJL.mjs
8329
8330
  var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
8330
8331
  EnumOSPlatform22["ANDROID"] = "android";
8331
8332
  EnumOSPlatform22["IOS"] = "ios";
@@ -8550,11 +8551,11 @@ var schema7 = new MongooseSchema11(
8550
8551
  required: false,
8551
8552
  type: String
8552
8553
  },
8553
- role: {
8554
- default: EnumUserRole.CUSTOMER,
8554
+ roles: {
8555
+ default: [EnumUserRole.CUSTOMER],
8555
8556
  enum: Object.values(EnumUserRole),
8556
8557
  required: true,
8557
- type: String
8558
+ type: [String]
8558
8559
  },
8559
8560
  school: {
8560
8561
  ref: "School",