@timardex/cluemart-server-shared 1.0.208 → 1.0.210

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.
@@ -3434,6 +3434,7 @@ var EnumEventDateStatus = /* @__PURE__ */ ((EnumEventDateStatus22) => {
3434
3434
  EnumEventDateStatus22["ENDED"] = "Ended";
3435
3435
  EnumEventDateStatus22["RE_SCHEDULED"] = "Rescheduled";
3436
3436
  EnumEventDateStatus22["CANCELED"] = "Canceled";
3437
+ EnumEventDateStatus22["INVALID"] = "Invalid";
3437
3438
  return EnumEventDateStatus22;
3438
3439
  })(EnumEventDateStatus || {});
3439
3440
  var EnumSubscriptionStatus = /* @__PURE__ */ ((EnumSubscriptionStatus22) => {
@@ -5215,8 +5216,8 @@ var EVENT = gql`
5215
5216
  ${RELATION_DATES_FRAGMENT}
5216
5217
  `;
5217
5218
  var GET_EVENTS = gql`
5218
- query getEvents {
5219
- events {
5219
+ query getEvents($dateStatus: EnumEventDateStatus) {
5220
+ events(dateStatus: $dateStatus) {
5220
5221
  ...EventListItemFields
5221
5222
  }
5222
5223
  }
@@ -5242,24 +5243,49 @@ var GET_EVENTS_BY_REGION = gql`
5242
5243
  query getEventsByRegion(
5243
5244
  $region: String!
5244
5245
  $options: ResourcesByRegionOptions
5246
+ $dateStatus: EnumEventDateStatus
5245
5247
  ) {
5246
- eventsByRegion(region: $region, options: $options) {
5248
+ eventsByRegion(
5249
+ region: $region
5250
+ options: $options
5251
+ dateStatus: $dateStatus
5252
+ ) {
5247
5253
  ...EventListItemFields
5248
5254
  }
5249
5255
  }
5250
5256
  ${EVENT_LIST_ITEM}
5251
5257
  `;
5252
5258
  var SEARCH_EVENTS = gql`
5253
- query searchEvents($region: String, $search: String, $tags: [String]) {
5254
- eventsSearch(region: $region, search: $search, tags: $tags) {
5259
+ query searchEvents(
5260
+ $region: String
5261
+ $search: String
5262
+ $tags: [String]
5263
+ $dateStatus: EnumEventDateStatus
5264
+ ) {
5265
+ eventsSearch(
5266
+ region: $region
5267
+ search: $search
5268
+ tags: $tags
5269
+ dateStatus: $dateStatus
5270
+ ) {
5255
5271
  ...EventListItemFields
5256
5272
  }
5257
5273
  }
5258
5274
  ${EVENT_LIST_ITEM}
5259
5275
  `;
5260
5276
  var GET_EVENTS_NEAR_ME = gql`
5261
- query getEventsNearMe($latitude: Float!, $longitude: Float!, $radius: Int) {
5262
- eventsNearMe(latitude: $latitude, longitude: $longitude, radius: $radius) {
5277
+ query getEventsNearMe(
5278
+ $latitude: Float!
5279
+ $longitude: Float!
5280
+ $radius: Int
5281
+ $dateStatus: EnumEventDateStatus
5282
+ ) {
5283
+ eventsNearMe(
5284
+ latitude: $latitude
5285
+ longitude: $longitude
5286
+ radius: $radius
5287
+ dateStatus: $dateStatus
5288
+ ) {
5263
5289
  ...EventListItemFields
5264
5290
  }
5265
5291
  }
@@ -7932,6 +7958,8 @@ var schema3 = new MongooseSchema7(
7932
7958
  schema3.index({ "location.geo": "2dsphere" });
7933
7959
  schema3.index({ name: 1 });
7934
7960
  schema3.index({ region: 1 });
7961
+ schema3.index({ deletedAt: 1 });
7962
+ schema3.index({ "dateTime.dateStatus": 1 });
7935
7963
  var GoogleImportedMarketModel = import_mongoose7.default.models.GoogleImportedMarket || import_mongoose7.default.model("GoogleImportedMarket", schema3);
7936
7964
 
7937
7965
  // src/mongoose/Notification.ts
@@ -7969,7 +7997,7 @@ schema4.index({ isRead: 1, userId: 1 });
7969
7997
  schema4.index({ createdAt: -1, userId: 1 });
7970
7998
  var NotificationModel = import_mongoose8.default.models.Notification || import_mongoose8.default.model("Notification", schema4);
7971
7999
 
7972
- // node_modules/@timardex/cluemart-shared/dist/chunk-6B75Q67V.mjs
8000
+ // node_modules/@timardex/cluemart-shared/dist/chunk-4SNW63TJ.mjs
7973
8001
  var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
7974
8002
  EnumOSPlatform22["ANDROID"] = "android";
7975
8003
  EnumOSPlatform22["IOS"] = "ios";
@@ -8478,6 +8506,8 @@ schema12.index({ region: 1 });
8478
8506
  schema12.index({ "location.geo": "2dsphere" });
8479
8507
  schema12.index({ tags: 1 });
8480
8508
  schema12.index({ "associates.email": 1 });
8509
+ schema12.index({ deletedAt: 1 });
8510
+ schema12.index({ "dateTime.dateStatus": 1 });
8481
8511
  var EventModel = import_mongoose16.default.models.Event || import_mongoose16.default.model("Event", schema12);
8482
8512
 
8483
8513
  // src/mongoose/Partner.ts