@timardex/cluemart-server-shared 2.0.0 → 2.0.2
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-IICIHY26.mjs +2258 -0
- package/dist/chunk-IICIHY26.mjs.map +1 -0
- package/dist/index.cjs +2032 -10039
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.mjs +1989 -9918
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +214 -6896
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.mjs +1 -2
- package/dist/service/index.cjs +2033 -10002
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.d.mts +5 -2
- package/dist/service/index.d.ts +5 -2
- package/dist/service/index.mjs +146 -1346
- package/dist/service/index.mjs.map +1 -1
- package/dist/types/index.mjs +0 -1
- package/package.json +5 -2
- package/dist/chunk-3QS3WKRC.mjs +0 -31
- package/dist/chunk-3QS3WKRC.mjs.map +0 -1
- package/dist/chunk-EGUFWI7R.mjs +0 -9005
- package/dist/chunk-EGUFWI7R.mjs.map +0 -1
package/dist/service/index.d.mts
CHANGED
|
@@ -169,14 +169,17 @@ 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" | "dateTime">
|
|
172
|
+
type EventOrMarket = (Pick<EventListItemType, "_id" | "name" | "dateTime"> & {
|
|
173
|
+
/** Present on owned EventModel docs; absent on Google-imported markets. */
|
|
174
|
+
owner?: SchemaOwnerType;
|
|
175
|
+
}) | null;
|
|
173
176
|
/**
|
|
174
177
|
* This function attempts to find an Event or a Google Imported Market by the given resource ID.
|
|
175
178
|
* It first normalizes the resource ID to a string format, then performs parallel queries to both collections.
|
|
176
179
|
* If an Event is found, it returns that; otherwise, it checks for a Google Imported Market and returns it if found.
|
|
177
180
|
* If neither is found, it returns null.
|
|
178
181
|
* @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, name, and
|
|
182
|
+
* @returns A promise that resolves to either an Event or a Google Imported Market object containing _id, name, dateTime, and owner (events only), or null if not found.
|
|
180
183
|
*/
|
|
181
184
|
declare function findEventOrImportedMarketById(resourceId: ObjectId | string | null | undefined): Promise<EventOrMarket>;
|
|
182
185
|
|
package/dist/service/index.d.ts
CHANGED
|
@@ -169,14 +169,17 @@ 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" | "dateTime">
|
|
172
|
+
type EventOrMarket = (Pick<EventListItemType, "_id" | "name" | "dateTime"> & {
|
|
173
|
+
/** Present on owned EventModel docs; absent on Google-imported markets. */
|
|
174
|
+
owner?: SchemaOwnerType;
|
|
175
|
+
}) | null;
|
|
173
176
|
/**
|
|
174
177
|
* This function attempts to find an Event or a Google Imported Market by the given resource ID.
|
|
175
178
|
* It first normalizes the resource ID to a string format, then performs parallel queries to both collections.
|
|
176
179
|
* If an Event is found, it returns that; otherwise, it checks for a Google Imported Market and returns it if found.
|
|
177
180
|
* If neither is found, it returns null.
|
|
178
181
|
* @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, name, and
|
|
182
|
+
* @returns A promise that resolves to either an Event or a Google Imported Market object containing _id, name, dateTime, and owner (events only), or null if not found.
|
|
180
183
|
*/
|
|
181
184
|
declare function findEventOrImportedMarketById(resourceId: ObjectId | string | null | undefined): Promise<EventOrMarket>;
|
|
182
185
|
|