@timardex/cluemart-server-shared 2.4.0 → 2.5.1
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-T5TP2XMR.mjs → chunk-X76LYIOC.mjs} +232 -247
- package/dist/chunk-X76LYIOC.mjs.map +1 -0
- package/dist/index.cjs +243 -260
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +14 -22
- package/dist/index.d.ts +14 -22
- package/dist/index.mjs +241 -256
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +232 -249
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +12 -20
- package/dist/mongoose/index.d.ts +12 -20
- package/dist/mongoose/index.mjs +1 -5
- package/dist/service/index.cjs +242 -251
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.d.mts +3 -3
- package/dist/service/index.d.ts +3 -3
- package/dist/service/index.mjs +4 -4
- package/dist/service/index.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-T5TP2XMR.mjs.map +0 -1
package/dist/service/index.d.mts
CHANGED
|
@@ -320,9 +320,9 @@ declare function didRemoveAnyEventDates(previousDateTime: EventDateSlot[] | unde
|
|
|
320
320
|
declare function didRemoveAnyStartedDates(previousDateTime: StartedDateSlot[] | undefined, nextDateTime: StartedDateSlot[] | undefined): boolean;
|
|
321
321
|
/**
|
|
322
322
|
* Helper: Update relationDates based on event's dateTime
|
|
323
|
-
* Marks dates as
|
|
323
|
+
* Marks dates as CANCELED if they no longer exist in the event's dateTime.
|
|
324
324
|
*/
|
|
325
|
-
declare function
|
|
325
|
+
declare function updateRelationDatesToCanceled(relationDates: SchemaRelationType["relationDates"], eventDateTime: DateTimeWithPriceType[] | undefined): SchemaRelationType["relationDates"];
|
|
326
326
|
|
|
327
327
|
type StripeSubscriptionPlanResult = {
|
|
328
328
|
/** Meets the caller's eligibility policy; reward eligibility is not paid access. */
|
|
@@ -600,4 +600,4 @@ declare function checkOwnerHasLicence({ userId, resourceType, }: {
|
|
|
600
600
|
resourceType: EnumResourceType;
|
|
601
601
|
}): Promise<void>;
|
|
602
602
|
|
|
603
|
-
export { ACTIVE_NOT_DELETED_FILTER, type AwardAffiliateVendorSubscriptionRewardsResult, LicenceCategory, type NotificationPubSub, REMINDER_WINDOW_MAX_HOURS, REMINDER_WINDOW_MIN_HOURS, SUBSCRIPTION_REWARD_TIMEZONE, activeAffiliateCodeExists, awardAffiliateVendorSubscriptionRewards, buildLicenceExpiryPipeline, buildUserHasEnoughPointsFilter, buildUserPointAwardEntry, buildUserPointCreditFilter, buildUserPointDebitPipeline, buildUserPointEntryRemovalPipeline, checkOwnerHasLicence, connectToDatabase, convertObjectIdsToStrings, createLicenceObject, dedupeArchivedSlotsByStartDateTime, didRemoveAnyEventDates, didRemoveAnyStartedDates, downgradeVendorProFeatures, ensureUserLicenseCompliance, ensureUserLicenseComplianceForUser, eventLicences, findAffiliateByPromoCode, findEventOrImportedMarketById, getEventResourceInfo, getHighestLicenceForCategory, getLicenceCategory, getLicenceExpiryMode, getPartnerResourceInfo, getPayingEventStripeSubscriptionPlan, getPayingStripeSubscriptionPlan, getPayingVendorStripeSubscriptionPlan, getSubscriptionRewardPeriodBounds, getVendorResourceInfo, handleEventLicenceCompliance, handlePartnerLicenceCompliance, handleVendorLicenceCompliance, hasValidLicence, isStandardLicence, isValidObjectId, licenceCategoryMapping, licencePriority, mapVendorLicenceToSubscriptionRewardType, normalizeAffiliatePromoCodes, normalizePromoCode, notifyUsers, partnerLicences, persistArchivedEventDates, processLicenseReminder, processUserCompliance, processUserLicenseReminders, publishNotificationEvents, remindUsersAboutLicenseExpiration, replaceUserLicenceWithObject, restoreVendorProFeatures, saveNotificationsInDb, sendDeactivationNotification, sendLicenseReminder, sendPushNotifications, sendReminderSafely, splitEventDatesForArchive, syncUserLicencesAfterExpiry, updateAdStatuses, updateAllEventDateTimeStatuses,
|
|
603
|
+
export { ACTIVE_NOT_DELETED_FILTER, type AwardAffiliateVendorSubscriptionRewardsResult, LicenceCategory, type NotificationPubSub, REMINDER_WINDOW_MAX_HOURS, REMINDER_WINDOW_MIN_HOURS, SUBSCRIPTION_REWARD_TIMEZONE, activeAffiliateCodeExists, awardAffiliateVendorSubscriptionRewards, buildLicenceExpiryPipeline, buildUserHasEnoughPointsFilter, buildUserPointAwardEntry, buildUserPointCreditFilter, buildUserPointDebitPipeline, buildUserPointEntryRemovalPipeline, checkOwnerHasLicence, connectToDatabase, convertObjectIdsToStrings, createLicenceObject, dedupeArchivedSlotsByStartDateTime, didRemoveAnyEventDates, didRemoveAnyStartedDates, downgradeVendorProFeatures, ensureUserLicenseCompliance, ensureUserLicenseComplianceForUser, eventLicences, findAffiliateByPromoCode, findEventOrImportedMarketById, getEventResourceInfo, getHighestLicenceForCategory, getLicenceCategory, getLicenceExpiryMode, getPartnerResourceInfo, getPayingEventStripeSubscriptionPlan, getPayingStripeSubscriptionPlan, getPayingVendorStripeSubscriptionPlan, getSubscriptionRewardPeriodBounds, getVendorResourceInfo, handleEventLicenceCompliance, handlePartnerLicenceCompliance, handleVendorLicenceCompliance, hasValidLicence, isStandardLicence, isValidObjectId, licenceCategoryMapping, licencePriority, mapVendorLicenceToSubscriptionRewardType, normalizeAffiliatePromoCodes, normalizePromoCode, notifyUsers, partnerLicences, persistArchivedEventDates, processLicenseReminder, processUserCompliance, processUserLicenseReminders, publishNotificationEvents, remindUsersAboutLicenseExpiration, replaceUserLicenceWithObject, restoreVendorProFeatures, saveNotificationsInDb, sendDeactivationNotification, sendLicenseReminder, sendPushNotifications, sendReminderSafely, splitEventDatesForArchive, syncUserLicencesAfterExpiry, updateAdStatuses, updateAllEventDateTimeStatuses, updateRelationDatesToCanceled, upgradeUserToLicence, vendorOwnerHasProLicence };
|
package/dist/service/index.d.ts
CHANGED
|
@@ -320,9 +320,9 @@ declare function didRemoveAnyEventDates(previousDateTime: EventDateSlot[] | unde
|
|
|
320
320
|
declare function didRemoveAnyStartedDates(previousDateTime: StartedDateSlot[] | undefined, nextDateTime: StartedDateSlot[] | undefined): boolean;
|
|
321
321
|
/**
|
|
322
322
|
* Helper: Update relationDates based on event's dateTime
|
|
323
|
-
* Marks dates as
|
|
323
|
+
* Marks dates as CANCELED if they no longer exist in the event's dateTime.
|
|
324
324
|
*/
|
|
325
|
-
declare function
|
|
325
|
+
declare function updateRelationDatesToCanceled(relationDates: SchemaRelationType["relationDates"], eventDateTime: DateTimeWithPriceType[] | undefined): SchemaRelationType["relationDates"];
|
|
326
326
|
|
|
327
327
|
type StripeSubscriptionPlanResult = {
|
|
328
328
|
/** Meets the caller's eligibility policy; reward eligibility is not paid access. */
|
|
@@ -600,4 +600,4 @@ declare function checkOwnerHasLicence({ userId, resourceType, }: {
|
|
|
600
600
|
resourceType: EnumResourceType;
|
|
601
601
|
}): Promise<void>;
|
|
602
602
|
|
|
603
|
-
export { ACTIVE_NOT_DELETED_FILTER, type AwardAffiliateVendorSubscriptionRewardsResult, LicenceCategory, type NotificationPubSub, REMINDER_WINDOW_MAX_HOURS, REMINDER_WINDOW_MIN_HOURS, SUBSCRIPTION_REWARD_TIMEZONE, activeAffiliateCodeExists, awardAffiliateVendorSubscriptionRewards, buildLicenceExpiryPipeline, buildUserHasEnoughPointsFilter, buildUserPointAwardEntry, buildUserPointCreditFilter, buildUserPointDebitPipeline, buildUserPointEntryRemovalPipeline, checkOwnerHasLicence, connectToDatabase, convertObjectIdsToStrings, createLicenceObject, dedupeArchivedSlotsByStartDateTime, didRemoveAnyEventDates, didRemoveAnyStartedDates, downgradeVendorProFeatures, ensureUserLicenseCompliance, ensureUserLicenseComplianceForUser, eventLicences, findAffiliateByPromoCode, findEventOrImportedMarketById, getEventResourceInfo, getHighestLicenceForCategory, getLicenceCategory, getLicenceExpiryMode, getPartnerResourceInfo, getPayingEventStripeSubscriptionPlan, getPayingStripeSubscriptionPlan, getPayingVendorStripeSubscriptionPlan, getSubscriptionRewardPeriodBounds, getVendorResourceInfo, handleEventLicenceCompliance, handlePartnerLicenceCompliance, handleVendorLicenceCompliance, hasValidLicence, isStandardLicence, isValidObjectId, licenceCategoryMapping, licencePriority, mapVendorLicenceToSubscriptionRewardType, normalizeAffiliatePromoCodes, normalizePromoCode, notifyUsers, partnerLicences, persistArchivedEventDates, processLicenseReminder, processUserCompliance, processUserLicenseReminders, publishNotificationEvents, remindUsersAboutLicenseExpiration, replaceUserLicenceWithObject, restoreVendorProFeatures, saveNotificationsInDb, sendDeactivationNotification, sendLicenseReminder, sendPushNotifications, sendReminderSafely, splitEventDatesForArchive, syncUserLicencesAfterExpiry, updateAdStatuses, updateAllEventDateTimeStatuses,
|
|
603
|
+
export { ACTIVE_NOT_DELETED_FILTER, type AwardAffiliateVendorSubscriptionRewardsResult, LicenceCategory, type NotificationPubSub, REMINDER_WINDOW_MAX_HOURS, REMINDER_WINDOW_MIN_HOURS, SUBSCRIPTION_REWARD_TIMEZONE, activeAffiliateCodeExists, awardAffiliateVendorSubscriptionRewards, buildLicenceExpiryPipeline, buildUserHasEnoughPointsFilter, buildUserPointAwardEntry, buildUserPointCreditFilter, buildUserPointDebitPipeline, buildUserPointEntryRemovalPipeline, checkOwnerHasLicence, connectToDatabase, convertObjectIdsToStrings, createLicenceObject, dedupeArchivedSlotsByStartDateTime, didRemoveAnyEventDates, didRemoveAnyStartedDates, downgradeVendorProFeatures, ensureUserLicenseCompliance, ensureUserLicenseComplianceForUser, eventLicences, findAffiliateByPromoCode, findEventOrImportedMarketById, getEventResourceInfo, getHighestLicenceForCategory, getLicenceCategory, getLicenceExpiryMode, getPartnerResourceInfo, getPayingEventStripeSubscriptionPlan, getPayingStripeSubscriptionPlan, getPayingVendorStripeSubscriptionPlan, getSubscriptionRewardPeriodBounds, getVendorResourceInfo, handleEventLicenceCompliance, handlePartnerLicenceCompliance, handleVendorLicenceCompliance, hasValidLicence, isStandardLicence, isValidObjectId, licenceCategoryMapping, licencePriority, mapVendorLicenceToSubscriptionRewardType, normalizeAffiliatePromoCodes, normalizePromoCode, notifyUsers, partnerLicences, persistArchivedEventDates, processLicenseReminder, processUserCompliance, processUserLicenseReminders, publishNotificationEvents, remindUsersAboutLicenseExpiration, replaceUserLicenceWithObject, restoreVendorProFeatures, saveNotificationsInDb, sendDeactivationNotification, sendLicenseReminder, sendPushNotifications, sendReminderSafely, splitEventDatesForArchive, syncUserLicencesAfterExpiry, updateAdStatuses, updateAllEventDateTimeStatuses, updateRelationDatesToCanceled, upgradeUserToLicence, vendorOwnerHasProLicence };
|
package/dist/service/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
PushTokenModel,
|
|
11
11
|
UserModel,
|
|
12
12
|
VendorModel
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-X76LYIOC.mjs";
|
|
14
14
|
import "../chunk-TMPPPLIW.mjs";
|
|
15
15
|
|
|
16
16
|
// src/service/promoCode/constants.ts
|
|
@@ -1096,14 +1096,14 @@ function didRemoveAnyStartedDates(previousDateTime, nextDateTime) {
|
|
|
1096
1096
|
)
|
|
1097
1097
|
);
|
|
1098
1098
|
}
|
|
1099
|
-
function
|
|
1099
|
+
function updateRelationDatesToCanceled(relationDates, eventDateTime) {
|
|
1100
1100
|
return relationDates.map((relationDate) => {
|
|
1101
1101
|
const existsInEvent = eventDateTime?.some(
|
|
1102
1102
|
(dt) => dt.startDate === relationDate.dateTime.startDate && dt.startTime === relationDate.dateTime.startTime
|
|
1103
1103
|
) ?? false;
|
|
1104
1104
|
return {
|
|
1105
1105
|
...relationDate,
|
|
1106
|
-
status: existsInEvent ? relationDate.status : EnumInviteStatus.
|
|
1106
|
+
status: existsInEvent ? relationDate.status : EnumInviteStatus.CANCELED
|
|
1107
1107
|
};
|
|
1108
1108
|
});
|
|
1109
1109
|
}
|
|
@@ -2295,7 +2295,7 @@ export {
|
|
|
2295
2295
|
syncUserLicencesAfterExpiry,
|
|
2296
2296
|
updateAdStatuses,
|
|
2297
2297
|
updateAllEventDateTimeStatuses,
|
|
2298
|
-
|
|
2298
|
+
updateRelationDatesToCanceled,
|
|
2299
2299
|
updateSingleDateTimeStatus2 as updateSingleDateTimeStatus,
|
|
2300
2300
|
upgradeUserToLicence,
|
|
2301
2301
|
vendorOwnerHasProLicence
|