@timardex/cluemart-server-shared 1.0.264 → 1.0.266

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.
@@ -3239,6 +3239,7 @@ var EnumFoodFlavor = /* @__PURE__ */ ((EnumFoodFlavor22) => {
3239
3239
  return EnumFoodFlavor22;
3240
3240
  })(EnumFoodFlavor || {});
3241
3241
  var EnumResourceType = /* @__PURE__ */ ((EnumResourceType22) => {
3242
+ EnumResourceType22["AFFILIATE"] = "affiliate";
3242
3243
  EnumResourceType22["EVENT"] = "event";
3243
3244
  EnumResourceType22["VENDOR"] = "vendor";
3244
3245
  EnumResourceType22["PARTNER"] = "partner";
@@ -7380,6 +7381,7 @@ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = gql`
7380
7381
  var AFFILIATE_FIELDS_FRAGMENT = gql`
7381
7382
  fragment AffiliateFields on AffiliateType {
7382
7383
  _id
7384
+ active
7383
7385
  affiliateCode
7384
7386
  affiliateResources {
7385
7387
  ...AffiliateResourceFields
@@ -8272,7 +8274,7 @@ schema4.index({ isRead: 1, userId: 1 });
8272
8274
  schema4.index({ createdAt: -1, userId: 1 });
8273
8275
  var NotificationModel = mongoose8.models.Notification || mongoose8.model("Notification", schema4);
8274
8276
 
8275
- // node_modules/@timardex/cluemart-shared/dist/chunk-KZTOISPA.mjs
8277
+ // node_modules/@timardex/cluemart-shared/dist/chunk-HNH5YY54.mjs
8276
8278
  var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
8277
8279
  EnumOSPlatform22["ANDROID"] = "android";
8278
8280
  EnumOSPlatform22["IOS"] = "ios";
@@ -9163,6 +9165,7 @@ var affiliateResourceSchema = new MongooseSchema25(
9163
9165
  );
9164
9166
  var schema17 = new MongooseSchema25(
9165
9167
  {
9168
+ active: { default: true, required: true, type: Boolean },
9166
9169
  affiliateCode: { required: true, type: String },
9167
9170
  affiliateResources: {
9168
9171
  default: [],
@@ -9181,7 +9184,7 @@ var schema17 = new MongooseSchema25(
9181
9184
  schema17.index(
9182
9185
  { affiliateCode: 1 },
9183
9186
  {
9184
- partialFilterExpression: { deletedAt: null },
9187
+ partialFilterExpression: { active: true, deletedAt: null },
9185
9188
  unique: true
9186
9189
  }
9187
9190
  );
@@ -9238,4 +9241,4 @@ export {
9238
9241
  SchoolModel,
9239
9242
  AffiliateModel
9240
9243
  };
9241
- //# sourceMappingURL=chunk-REX574WV.mjs.map
9244
+ //# sourceMappingURL=chunk-OZZRI2C2.mjs.map