@timardex/cluemart-server-shared 1.0.303 → 1.0.304
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/index.cjs +5 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.mjs +4 -0
- package/dist/index.mjs.map +1 -1
- package/dist/service/index.cjs +5 -0
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.d.mts +5 -1
- package/dist/service/index.d.ts +5 -1
- package/dist/service/index.mjs +4 -0
- package/dist/service/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/service/index.cjs
CHANGED
|
@@ -39,6 +39,7 @@ __export(service_exports, {
|
|
|
39
39
|
findAffiliateByPromoCode: () => findAffiliateByPromoCode,
|
|
40
40
|
findEventOrImportedMarketById: () => findEventOrImportedMarketById,
|
|
41
41
|
getSubscriptionRewardPeriodBounds: () => getSubscriptionRewardPeriodBounds,
|
|
42
|
+
isValidObjectId: () => isValidObjectId,
|
|
42
43
|
mapVendorLicenceToSubscriptionRewardType: () => mapVendorLicenceToSubscriptionRewardType,
|
|
43
44
|
normalizeAffiliatePromoCodes: () => normalizeAffiliatePromoCodes,
|
|
44
45
|
normalizePromoCode: () => normalizePromoCode,
|
|
@@ -11032,6 +11033,9 @@ async function updateVendorBasedOnUserLicense(userId, licenceType) {
|
|
|
11032
11033
|
|
|
11033
11034
|
// src/service/objectIdToString.ts
|
|
11034
11035
|
var import_mongoose33 = __toESM(require("mongoose"));
|
|
11036
|
+
function isValidObjectId(value) {
|
|
11037
|
+
return import_mongoose33.default.Types.ObjectId.isValid(value);
|
|
11038
|
+
}
|
|
11035
11039
|
function convertObjectIdsToStrings(obj) {
|
|
11036
11040
|
if (obj === null || obj === void 0) {
|
|
11037
11041
|
return obj;
|
|
@@ -11228,6 +11232,7 @@ function updateRelationDatesToUnavailable(relationDates, eventDateTime) {
|
|
|
11228
11232
|
findAffiliateByPromoCode,
|
|
11229
11233
|
findEventOrImportedMarketById,
|
|
11230
11234
|
getSubscriptionRewardPeriodBounds,
|
|
11235
|
+
isValidObjectId,
|
|
11231
11236
|
mapVendorLicenceToSubscriptionRewardType,
|
|
11232
11237
|
normalizeAffiliatePromoCodes,
|
|
11233
11238
|
normalizePromoCode,
|