@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.
- package/dist/{chunk-DBGVZNUX.mjs → chunk-DJHOLZ3J.mjs} +9 -1
- package/dist/chunk-DJHOLZ3J.mjs.map +1 -0
- package/dist/index.cjs +11 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +11 -3
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +8 -0
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +11 -3
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.d.mts +2 -2
- package/dist/service/index.d.ts +2 -2
- package/dist/service/index.mjs +4 -4
- package/dist/service/index.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-DBGVZNUX.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -944,14 +944,14 @@ declare function updateSingleDateTimeStatus<T extends DateTimeType>(dateTime: T,
|
|
|
944
944
|
*/
|
|
945
945
|
declare function updateAllEventDateTimeStatuses(): Promise<void>;
|
|
946
946
|
|
|
947
|
-
type EventOrMarket = Pick<EventListItemType, "_id" | "name"> | null;
|
|
947
|
+
type EventOrMarket = Pick<EventListItemType, "_id" | "name" | "dateTime"> | null;
|
|
948
948
|
/**
|
|
949
949
|
* This function attempts to find an Event or a Google Imported Market by the given resource ID.
|
|
950
950
|
* It first normalizes the resource ID to a string format, then performs parallel queries to both collections.
|
|
951
951
|
* If an Event is found, it returns that; otherwise, it checks for a Google Imported Market and returns it if found.
|
|
952
952
|
* If neither is found, it returns null.
|
|
953
953
|
* @param resourceId - The ID of the resource to find, which can be an ObjectId, string, null, or undefined.
|
|
954
|
-
* @returns A promise that resolves to either an Event or a Google Imported Market object containing _id and
|
|
954
|
+
* @returns A promise that resolves to either an Event or a Google Imported Market object containing _id, name, and dateTime, or null if not found.
|
|
955
955
|
*/
|
|
956
956
|
declare function findEventOrImportedMarketById(resourceId: ObjectId | string | null | undefined): Promise<EventOrMarket>;
|
|
957
957
|
|
package/dist/index.d.ts
CHANGED
|
@@ -944,14 +944,14 @@ declare function updateSingleDateTimeStatus<T extends DateTimeType>(dateTime: T,
|
|
|
944
944
|
*/
|
|
945
945
|
declare function updateAllEventDateTimeStatuses(): Promise<void>;
|
|
946
946
|
|
|
947
|
-
type EventOrMarket = Pick<EventListItemType, "_id" | "name"> | null;
|
|
947
|
+
type EventOrMarket = Pick<EventListItemType, "_id" | "name" | "dateTime"> | null;
|
|
948
948
|
/**
|
|
949
949
|
* This function attempts to find an Event or a Google Imported Market by the given resource ID.
|
|
950
950
|
* It first normalizes the resource ID to a string format, then performs parallel queries to both collections.
|
|
951
951
|
* If an Event is found, it returns that; otherwise, it checks for a Google Imported Market and returns it if found.
|
|
952
952
|
* If neither is found, it returns null.
|
|
953
953
|
* @param resourceId - The ID of the resource to find, which can be an ObjectId, string, null, or undefined.
|
|
954
|
-
* @returns A promise that resolves to either an Event or a Google Imported Market object containing _id and
|
|
954
|
+
* @returns A promise that resolves to either an Event or a Google Imported Market object containing _id, name, and dateTime, or null if not found.
|
|
955
955
|
*/
|
|
956
956
|
declare function findEventOrImportedMarketById(resourceId: ObjectId | string | null | undefined): Promise<EventOrMarket>;
|
|
957
957
|
|
package/dist/index.mjs
CHANGED
|
@@ -2418,6 +2418,14 @@ var GET_EVENT = gql`
|
|
|
2418
2418
|
}
|
|
2419
2419
|
${EVENT}
|
|
2420
2420
|
`;
|
|
2421
|
+
var GET_OWNED_EVENT = gql`
|
|
2422
|
+
query getOwnedEvent($_id: ID!) {
|
|
2423
|
+
ownedEvent(_id: $_id) {
|
|
2424
|
+
...EventFields
|
|
2425
|
+
}
|
|
2426
|
+
}
|
|
2427
|
+
${EVENT}
|
|
2428
|
+
`;
|
|
2421
2429
|
var GET_EVENT_BY_PLACE_ID = gql`
|
|
2422
2430
|
query getEventByPlaceId($googlePlaceId: String!) {
|
|
2423
2431
|
eventByPlaceId(googlePlaceId: $googlePlaceId) {
|
|
@@ -7213,7 +7221,7 @@ var gameScreenIdentifierList2 = [
|
|
|
7213
7221
|
}
|
|
7214
7222
|
];
|
|
7215
7223
|
|
|
7216
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
7224
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-RCARDOVS.mjs
|
|
7217
7225
|
import dayjs4 from "dayjs";
|
|
7218
7226
|
var statusOptions2 = [
|
|
7219
7227
|
...Object.values(EnumInviteStatus2).map((status) => ({
|
|
@@ -8927,8 +8935,8 @@ async function findEventOrImportedMarketById(resourceId) {
|
|
|
8927
8935
|
}
|
|
8928
8936
|
const normalizedId = convertObjectIdsToStrings(resourceId);
|
|
8929
8937
|
const [eventDoc, googleImportedDoc] = await Promise.all([
|
|
8930
|
-
EventModel.findById(normalizedId).select("_id name").lean().exec(),
|
|
8931
|
-
GoogleImportedMarketModel.findById(normalizedId).select("_id name").lean().exec()
|
|
8938
|
+
EventModel.findById(normalizedId).select("_id name dateTime").lean().exec(),
|
|
8939
|
+
GoogleImportedMarketModel.findById(normalizedId).select("_id name dateTime").lean().exec()
|
|
8932
8940
|
]);
|
|
8933
8941
|
return eventDoc ?? googleImportedDoc;
|
|
8934
8942
|
}
|