@timardex/cluemart-server-shared 1.1.37 → 1.1.38

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.
@@ -41,7 +41,7 @@ import {
41
41
  termsAgreementSchema,
42
42
  userLicenseSchema,
43
43
  vendorProductTypeSchema
44
- } from "../chunk-DBGVZNUX.mjs";
44
+ } from "../chunk-DJHOLZ3J.mjs";
45
45
  export {
46
46
  APP_SETTINGS_ID,
47
47
  AdModel,
@@ -2514,6 +2514,14 @@ var GET_EVENT = gql`
2514
2514
  }
2515
2515
  ${EVENT}
2516
2516
  `;
2517
+ var GET_OWNED_EVENT = gql`
2518
+ query getOwnedEvent($_id: ID!) {
2519
+ ownedEvent(_id: $_id) {
2520
+ ...EventFields
2521
+ }
2522
+ }
2523
+ ${EVENT}
2524
+ `;
2517
2525
  var GET_EVENT_BY_PLACE_ID = gql`
2518
2526
  query getEventByPlaceId($googlePlaceId: String!) {
2519
2527
  eventByPlaceId(googlePlaceId: $googlePlaceId) {
@@ -7309,7 +7317,7 @@ var gameScreenIdentifierList2 = [
7309
7317
  }
7310
7318
  ];
7311
7319
 
7312
- // node_modules/@timardex/cluemart-shared/dist/chunk-5RXL62LO.mjs
7320
+ // node_modules/@timardex/cluemart-shared/dist/chunk-RCARDOVS.mjs
7313
7321
  var import_dayjs4 = __toESM(require("dayjs"), 1);
7314
7322
  var statusOptions2 = [
7315
7323
  ...Object.values(EnumInviteStatus2).map((status) => ({
@@ -9016,8 +9024,8 @@ async function findEventOrImportedMarketById(resourceId) {
9016
9024
  }
9017
9025
  const normalizedId = convertObjectIdsToStrings(resourceId);
9018
9026
  const [eventDoc, googleImportedDoc] = await Promise.all([
9019
- EventModel.findById(normalizedId).select("_id name").lean().exec(),
9020
- GoogleImportedMarketModel.findById(normalizedId).select("_id name").lean().exec()
9027
+ EventModel.findById(normalizedId).select("_id name dateTime").lean().exec(),
9028
+ GoogleImportedMarketModel.findById(normalizedId).select("_id name dateTime").lean().exec()
9021
9029
  ]);
9022
9030
  return eventDoc ?? googleImportedDoc;
9023
9031
  }