@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/service/index.d.mts
CHANGED
|
@@ -169,14 +169,14 @@ declare function updateSingleDateTimeStatus<T extends DateTimeType>(dateTime: T,
|
|
|
169
169
|
*/
|
|
170
170
|
declare function updateAllEventDateTimeStatuses(): Promise<void>;
|
|
171
171
|
|
|
172
|
-
type EventOrMarket = Pick<EventListItemType, "_id" | "name"> | null;
|
|
172
|
+
type EventOrMarket = Pick<EventListItemType, "_id" | "name" | "dateTime"> | null;
|
|
173
173
|
/**
|
|
174
174
|
* This function attempts to find an Event or a Google Imported Market by the given resource ID.
|
|
175
175
|
* It first normalizes the resource ID to a string format, then performs parallel queries to both collections.
|
|
176
176
|
* If an Event is found, it returns that; otherwise, it checks for a Google Imported Market and returns it if found.
|
|
177
177
|
* If neither is found, it returns null.
|
|
178
178
|
* @param resourceId - The ID of the resource to find, which can be an ObjectId, string, null, or undefined.
|
|
179
|
-
* @returns A promise that resolves to either an Event or a Google Imported Market object containing _id and
|
|
179
|
+
* @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.
|
|
180
180
|
*/
|
|
181
181
|
declare function findEventOrImportedMarketById(resourceId: ObjectId | string | null | undefined): Promise<EventOrMarket>;
|
|
182
182
|
|
package/dist/service/index.d.ts
CHANGED
|
@@ -169,14 +169,14 @@ declare function updateSingleDateTimeStatus<T extends DateTimeType>(dateTime: T,
|
|
|
169
169
|
*/
|
|
170
170
|
declare function updateAllEventDateTimeStatuses(): Promise<void>;
|
|
171
171
|
|
|
172
|
-
type EventOrMarket = Pick<EventListItemType, "_id" | "name"> | null;
|
|
172
|
+
type EventOrMarket = Pick<EventListItemType, "_id" | "name" | "dateTime"> | null;
|
|
173
173
|
/**
|
|
174
174
|
* This function attempts to find an Event or a Google Imported Market by the given resource ID.
|
|
175
175
|
* It first normalizes the resource ID to a string format, then performs parallel queries to both collections.
|
|
176
176
|
* If an Event is found, it returns that; otherwise, it checks for a Google Imported Market and returns it if found.
|
|
177
177
|
* If neither is found, it returns null.
|
|
178
178
|
* @param resourceId - The ID of the resource to find, which can be an ObjectId, string, null, or undefined.
|
|
179
|
-
* @returns A promise that resolves to either an Event or a Google Imported Market object containing _id and
|
|
179
|
+
* @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.
|
|
180
180
|
*/
|
|
181
181
|
declare function findEventOrImportedMarketById(resourceId: ObjectId | string | null | undefined): Promise<EventOrMarket>;
|
|
182
182
|
|
package/dist/service/index.mjs
CHANGED
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
isNonVisitorResourceType,
|
|
27
27
|
licenseNiceNames,
|
|
28
28
|
timeFormat
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-DJHOLZ3J.mjs";
|
|
30
30
|
import "../chunk-6PNG5BI5.mjs";
|
|
31
31
|
|
|
32
32
|
// src/service/promoCode/constants.ts
|
|
@@ -229,7 +229,7 @@ var gameScreenIdentifierList = [
|
|
|
229
229
|
}
|
|
230
230
|
];
|
|
231
231
|
|
|
232
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
232
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-RCARDOVS.mjs
|
|
233
233
|
import dayjs2 from "dayjs";
|
|
234
234
|
var statusOptions = [
|
|
235
235
|
...Object.values(EnumInviteStatus2).map((status) => ({
|
|
@@ -1932,8 +1932,8 @@ async function findEventOrImportedMarketById(resourceId) {
|
|
|
1932
1932
|
}
|
|
1933
1933
|
const normalizedId = convertObjectIdsToStrings(resourceId);
|
|
1934
1934
|
const [eventDoc, googleImportedDoc] = await Promise.all([
|
|
1935
|
-
EventModel.findById(normalizedId).select("_id name").lean().exec(),
|
|
1936
|
-
GoogleImportedMarketModel.findById(normalizedId).select("_id name").lean().exec()
|
|
1935
|
+
EventModel.findById(normalizedId).select("_id name dateTime").lean().exec(),
|
|
1936
|
+
GoogleImportedMarketModel.findById(normalizedId).select("_id name dateTime").lean().exec()
|
|
1937
1937
|
]);
|
|
1938
1938
|
return eventDoc ?? googleImportedDoc;
|
|
1939
1939
|
}
|