@timardex/cluemart-server-shared 1.0.299 → 1.0.301

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.
@@ -59,7 +59,6 @@ __export(mongoose_exports, {
59
59
  VendorInfoModel: () => VendorInfoModel,
60
60
  VendorModel: () => VendorModel,
61
61
  VerificationTokenModel: () => VerificationTokenModel,
62
- associatesSchema: () => associatesSchema,
63
62
  baseResourceFields: () => baseResourceFields,
64
63
  dateTimeSchema: () => dateTimeSchema2,
65
64
  locationGeoSchema: () => locationGeoSchema,
@@ -3354,9 +3353,6 @@ var EnumRelationResource = /* @__PURE__ */ ((EnumRelationResource22) => {
3354
3353
  return EnumRelationResource22;
3355
3354
  })(EnumRelationResource || {});
3356
3355
  var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceType22) => {
3357
- EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_EVENT"] = "added_as_associate_event";
3358
- EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_PARTNER"] = "added_as_associate_partner";
3359
- EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_VENDOR"] = "added_as_associate_vendor";
3360
3356
  EnumNotificationResourceType22["APPROVED_AFFILIATE"] = "approved_affiliate";
3361
3357
  EnumNotificationResourceType22["AFFILIATE_REWARD_RECEIVED"] = "affiliate_reward_received";
3362
3358
  EnumNotificationResourceType22["APPROVED_EVENT"] = "approved_event";
@@ -5018,17 +5014,6 @@ var LICENCE_FIELDS_FRAGMENT = gql`
5018
5014
  prevLicenceType
5019
5015
  }
5020
5016
  `;
5021
- var ASSOCIATES_FIELDS_FRAGMENT = gql`
5022
- fragment AssociatesFields on AssociateType {
5023
- email
5024
- resourceId
5025
- resourceType
5026
- licence {
5027
- ...LicenceFields
5028
- }
5029
- }
5030
- ${LICENCE_FIELDS_FRAGMENT}
5031
- `;
5032
5017
  var TERMS_AGREEMENT_FIELDS_FRAGMENT = gql`
5033
5018
  fragment TermsAgreementFields on TermsAgreementType {
5034
5019
  appBuildNumber
@@ -5119,9 +5104,6 @@ var USER_FIELDS_FRAGMENT = gql`
5119
5104
  fragment UserFields on UserType {
5120
5105
  _id
5121
5106
  active
5122
- associates {
5123
- ...AssociatesFields
5124
- }
5125
5107
  affiliate
5126
5108
  avatar {
5127
5109
  ...ResourceImageFields
@@ -5161,7 +5143,6 @@ var USER_FIELDS_FRAGMENT = gql`
5161
5143
  updatedAt
5162
5144
  }
5163
5145
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
5164
- ${ASSOCIATES_FIELDS_FRAGMENT}
5165
5146
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
5166
5147
  ${USER_ACTIVITY_FIELDS_FRAGMENT}
5167
5148
  ${LICENCE_FIELDS_FRAGMENT}
@@ -5307,9 +5288,6 @@ var EVENT = gql`
5307
5288
  fragment EventFields on EventType {
5308
5289
  _id
5309
5290
  active
5310
- associates {
5311
- ...AssociatesFields
5312
- }
5313
5291
  adIds
5314
5292
  approvedAt
5315
5293
  cover {
@@ -5382,7 +5360,6 @@ var EVENT = gql`
5382
5360
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
5383
5361
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
5384
5362
  ${POSTER_USAGE_FIELDS_FRAGMENT}
5385
- ${ASSOCIATES_FIELDS_FRAGMENT}
5386
5363
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
5387
5364
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
5388
5365
  ${RELATION_DATES_FRAGMENT}
@@ -5495,9 +5472,6 @@ var VENDOR = gql`
5495
5472
  fragment VendorFields on VendorType {
5496
5473
  _id
5497
5474
  active
5498
- associates {
5499
- ...AssociatesFields
5500
- }
5501
5475
  adIds
5502
5476
  approvedAt
5503
5477
  availability {
@@ -5588,7 +5562,6 @@ var VENDOR = gql`
5588
5562
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
5589
5563
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
5590
5564
  ${POSTER_USAGE_FIELDS_FRAGMENT}
5591
- ${ASSOCIATES_FIELDS_FRAGMENT}
5592
5565
  ${VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT}
5593
5566
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
5594
5567
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
@@ -5741,9 +5714,6 @@ var PARTNER = gql`
5741
5714
  fragment PartnerFields on PartnerType {
5742
5715
  _id
5743
5716
  active
5744
- associates {
5745
- ...AssociatesFields
5746
- }
5747
5717
  adIds
5748
5718
  approvedAt
5749
5719
  cover {
@@ -5794,7 +5764,6 @@ var PARTNER = gql`
5794
5764
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
5795
5765
  ${LOCATION_FIELDS_FRAGMENT}
5796
5766
  ${OWNER_FIELDS_FRAGMENT}
5797
- ${ASSOCIATES_FIELDS_FRAGMENT}
5798
5767
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
5799
5768
  ${POSTER_USAGE_FIELDS_FRAGMENT}
5800
5769
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
@@ -6241,7 +6210,6 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = gql`
6241
6210
  var CHAT_PARTICIPANT = gql`
6242
6211
  fragment ChatParticipantFields on ChatParticipantType {
6243
6212
  active
6244
- isAssociate
6245
6213
  userAvatar
6246
6214
  userEmail
6247
6215
  userId
@@ -7719,7 +7687,6 @@ var MessageSchema = new MongooseSchema2(
7719
7687
  var ParticipantSchema = new MongooseSchema2(
7720
7688
  {
7721
7689
  active: { default: true, required: true, type: Boolean },
7722
- isAssociate: { default: null, required: false, type: Boolean },
7723
7690
  userAvatar: { required: false, type: String },
7724
7691
  userEmail: { required: true, type: String },
7725
7692
  userId: {
@@ -8044,26 +8011,6 @@ var userLicenseSchema = new MongooseSchema6(
8044
8011
  },
8045
8012
  { _id: false, timestamps: false }
8046
8013
  );
8047
- var associatesSchema = new MongooseSchema6(
8048
- {
8049
- email: { required: true, type: String },
8050
- licence: {
8051
- required: true,
8052
- type: userLicenseSchema
8053
- },
8054
- resourceId: {
8055
- required: true,
8056
- type: String
8057
- },
8058
- resourceType: {
8059
- enum: Object.values(EnumResourceType),
8060
- required: true,
8061
- type: String
8062
- }
8063
- },
8064
- { _id: false }
8065
- // Prevents Mongoose from creating an additional _id field for subdocuments
8066
- );
8067
8014
  var ContactDetailsSchema = new MongooseSchema6(
8068
8015
  {
8069
8016
  email: { required: false, type: String },
@@ -8179,10 +8126,6 @@ var baseResourceFields = {
8179
8126
  type: [import_mongoose6.default.Schema.Types.ObjectId]
8180
8127
  },
8181
8128
  approvedAt: { default: null, required: false, type: Date },
8182
- associates: {
8183
- required: false,
8184
- type: [associatesSchema]
8185
- },
8186
8129
  contactDetails: { required: false, type: ContactDetailsSchema },
8187
8130
  cover: {
8188
8131
  required: true,
@@ -8326,7 +8269,7 @@ schema4.index({ isRead: 1, userId: 1 });
8326
8269
  schema4.index({ createdAt: -1, userId: 1 });
8327
8270
  var NotificationModel = import_mongoose8.default.models.Notification || import_mongoose8.default.model("Notification", schema4);
8328
8271
 
8329
- // node_modules/@timardex/cluemart-shared/dist/chunk-VR3TDBJL.mjs
8272
+ // node_modules/@timardex/cluemart-shared/dist/chunk-X3OLM35T.mjs
8330
8273
  var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
8331
8274
  EnumOSPlatform22["ANDROID"] = "android";
8332
8275
  EnumOSPlatform22["IOS"] = "ios";
@@ -8487,10 +8430,6 @@ var schema7 = new MongooseSchema11(
8487
8430
  required: false,
8488
8431
  type: import_mongoose11.default.Schema.Types.ObjectId
8489
8432
  },
8490
- associates: {
8491
- required: false,
8492
- type: [associatesSchema]
8493
- },
8494
8433
  avatar: {
8495
8434
  required: false,
8496
8435
  type: ResourceImageTypeSchema
@@ -8590,7 +8529,6 @@ var schema7 = new MongooseSchema11(
8590
8529
  },
8591
8530
  { strict: false, timestamps: true }
8592
8531
  );
8593
- schema7.index({ "associates.email": 1 });
8594
8532
  schema7.index({ "licences.expiryDate": 1 });
8595
8533
  schema7.index({ "licences.licenceType": 1 });
8596
8534
  var UserModel = import_mongoose11.default.models.User || import_mongoose11.default.model("User", schema7);
@@ -8708,7 +8646,6 @@ schema9.index({ name: 1 });
8708
8646
  schema9.index({ description: 1 });
8709
8647
  schema9.index({ region: 1 });
8710
8648
  schema9.index({ "categories.name": 1 });
8711
- schema9.index({ "associates.email": 1 });
8712
8649
  schema9.index({ slug: 1 });
8713
8650
  var VendorModel = import_mongoose13.default.models.Vendor || import_mongoose13.default.model("Vendor", schema9);
8714
8651
 
@@ -8847,7 +8784,6 @@ schema12.index({ description: 1 });
8847
8784
  schema12.index({ region: 1 });
8848
8785
  schema12.index({ "location.geo": "2dsphere" });
8849
8786
  schema12.index({ tags: 1 });
8850
- schema12.index({ "associates.email": 1 });
8851
8787
  schema12.index({ deletedAt: 1 });
8852
8788
  schema12.index({ "dateTime.dateStatus": 1 });
8853
8789
  schema12.index({ slug: 1 });
@@ -8876,7 +8812,6 @@ schema13.index({ name: 1 });
8876
8812
  schema13.index({ description: 1 });
8877
8813
  schema13.index({ region: 1 });
8878
8814
  schema13.index({ "location.geo": "2dsphere" });
8879
- schema13.index({ "associates.email": 1 });
8880
8815
  schema13.index({ slug: 1 });
8881
8816
  var PartnerModel = import_mongoose17.default.models.Partner || import_mongoose17.default.model("Partner", schema13);
8882
8817
 
@@ -9331,7 +9266,6 @@ var AffiliateModel = import_mongoose25.default.models.Affiliate || import_mongoo
9331
9266
  VendorInfoModel,
9332
9267
  VendorModel,
9333
9268
  VerificationTokenModel,
9334
- associatesSchema,
9335
9269
  baseResourceFields,
9336
9270
  dateTimeSchema,
9337
9271
  locationGeoSchema,