@timardex/cluemart-server-shared 2.1.4 → 2.1.6
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-MEEBCSMJ.mjs → chunk-2MNX373V.mjs} +10 -6
- package/dist/chunk-2MNX373V.mjs.map +1 -0
- package/dist/index.cjs +12 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +11 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.mjs +12 -8
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +9 -5
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +11 -2
- package/dist/mongoose/index.d.ts +11 -2
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +12 -8
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +4 -4
- package/dist/service/index.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-MEEBCSMJ.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -831,13 +831,22 @@ declare const PostModel: mongoose__default.Model<PostType, {}, {}, {}, mongoose_
|
|
|
831
831
|
}, any>;
|
|
832
832
|
|
|
833
833
|
declare const APP_SETTINGS_ID = "APP_SETTINGS_DOCUMENT_ID";
|
|
834
|
-
|
|
834
|
+
type SchemaAppSettingsType = AppSettingsType & {
|
|
835
|
+
adSettings: {
|
|
836
|
+
displayEnabled: boolean;
|
|
837
|
+
};
|
|
838
|
+
};
|
|
839
|
+
declare const AppSettingModel: mongoose__default.Model<SchemaAppSettingsType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaAppSettingsType, {}, {}> & _timardex_cluemart_shared.AppSettingsFormData & {
|
|
835
840
|
_id: string;
|
|
836
841
|
activeSchoolsStudentCountTotal: number;
|
|
837
842
|
activeSchoolsStudentCountUpdatedAt: Date;
|
|
838
843
|
createdAt: Date;
|
|
839
844
|
key: string;
|
|
840
845
|
updatedAt: Date | null;
|
|
846
|
+
} & {
|
|
847
|
+
adSettings: {
|
|
848
|
+
displayEnabled: boolean;
|
|
849
|
+
};
|
|
841
850
|
} & Required<{
|
|
842
851
|
_id: string;
|
|
843
852
|
}> & {
|
|
@@ -1365,4 +1374,4 @@ declare function checkOwnerHasLicence({ userId, resourceType, }: {
|
|
|
1365
1374
|
resourceType: EnumResourceType;
|
|
1366
1375
|
}): Promise<void>;
|
|
1367
1376
|
|
|
1368
|
-
export { ACTIVE_NOT_DELETED_FILTER, AD_BILLING_CATALOG_COLLECTION_NAME, APP_SETTINGS_ID, AdBillingCatalogModel, AdBookingModel, type AdImpressionEntry, AdImpressionModel, AdModel, AdSettingsModel, AffiliateModel, AppSettingModel, type AuthUser, type AwardAffiliateVendorSubscriptionRewardsResult, BILLING_CATALOG_COLLECTION_NAME, BillingCatalogModel, CategorySchema, ChatModel, ChatReportModel, ContactDetailsSchema, type CouponDocument, CouponModel, DEFAULT_AD_SETTINGS, EnumPubSubEvents, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, type GraphQLContext, LicenceCategory, NotificationModel, type NotificationPubSub, type ObjectId, OwnerTypeSchema, PartnerModel, PostModel, PushTokenModel, REMINDER_WINDOW_MAX_HOURS, REMINDER_WINDOW_MIN_HOURS, RelationModel, RelationTypeSchema, ResourceActivityModel, ResourceImageTypeSchema, SUBSCRIPTION_REWARD_TIMEZONE, type SchemaAffiliateResourceType, type SchemaAffiliateReward, type SchemaBillingCatalogEntry, type SchemaBillingCatalogPriceHistoryEntry, type SchemaChatMessageReactionType, type SchemaChatMessageReplyPreviewType, type SchemaChatMessageSeenType, type SchemaChatMessageType, type SchemaChatReportType, type SchemaChatType, type SchemaCreateBulkNotificationInput, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelatedPostType, type SchemaRelationType, type SchemaStripeSubscription, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, type SubscriptionPayload, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, activeAffiliateCodeExists, awardAffiliateVendorSubscriptionRewards, baseResourceFields, buildInitialBillingCatalogEntries, buildLicenceExpiryPipeline, checkOwnerHasLicence, connectToDatabase, convertObjectIdsToStrings, createLicenceObject, dateTimeSchema, didRemoveAnyEventDates, downgradeVendorProFeatures, ensureUserLicenseCompliance, ensureUserLicenseComplianceForUser, eventLicences, findAffiliateByPromoCode, findEventOrImportedMarketById, getBillingCatalogDefinition, getEventResourceInfo, getHighestLicenceForCategory, getLicenceCategory, getLicenceExpiryMode, getPartnerResourceInfo, getPayingEventStripeSubscriptionPlan, getPayingStripeSubscriptionPlan, getPayingVendorStripeSubscriptionPlan, getSubscriptionRewardPeriodBounds, getVendorResourceInfo, handleEventLicenceCompliance, handlePartnerLicenceCompliance, handleVendorLicenceCompliance, hasValidLicence, isStandardLicence, isValidObjectId, licenceCategoryMapping, licencePriority, locationGeoSchema, locationsSchema, mapVendorLicenceToSubscriptionRewardType, normalizeAffiliatePromoCodes, normalizePromoCode, notifyUsers, partnerLicences, processLicenseReminder, processUserCompliance, processUserLicenseReminders, publishNotificationEvents, refundPolicySchema, relatedPostSchema, relationDatesSchema, remindUsersAboutLicenseExpiration, replaceUserLicenceWithObject, resourceRelationsSchema, restoreVendorProFeatures, saveNotificationsInDb, schemaAdresource, sendDeactivationNotification, sendLicenseReminder, sendPushNotifications, sendReminderSafely, socialShareResourceSchema, syncUserLicencesAfterExpiry, termsAgreementSchema, updateAdStatuses, updateAllEventDateTimeStatuses, updateRelationDatesToUnavailable, updateSingleDateTimeStatus, upgradeUserToLicence, userLicenseSchema, vendorOwnerHasProLicence, vendorProductTypeSchema };
|
|
1377
|
+
export { ACTIVE_NOT_DELETED_FILTER, AD_BILLING_CATALOG_COLLECTION_NAME, APP_SETTINGS_ID, AdBillingCatalogModel, AdBookingModel, type AdImpressionEntry, AdImpressionModel, AdModel, AdSettingsModel, AffiliateModel, AppSettingModel, type AuthUser, type AwardAffiliateVendorSubscriptionRewardsResult, BILLING_CATALOG_COLLECTION_NAME, BillingCatalogModel, CategorySchema, ChatModel, ChatReportModel, ContactDetailsSchema, type CouponDocument, CouponModel, DEFAULT_AD_SETTINGS, EnumPubSubEvents, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, type GraphQLContext, LicenceCategory, NotificationModel, type NotificationPubSub, type ObjectId, OwnerTypeSchema, PartnerModel, PostModel, PushTokenModel, REMINDER_WINDOW_MAX_HOURS, REMINDER_WINDOW_MIN_HOURS, RelationModel, RelationTypeSchema, ResourceActivityModel, ResourceImageTypeSchema, SUBSCRIPTION_REWARD_TIMEZONE, type SchemaAffiliateResourceType, type SchemaAffiliateReward, type SchemaAppSettingsType, type SchemaBillingCatalogEntry, type SchemaBillingCatalogPriceHistoryEntry, type SchemaChatMessageReactionType, type SchemaChatMessageReplyPreviewType, type SchemaChatMessageSeenType, type SchemaChatMessageType, type SchemaChatReportType, type SchemaChatType, type SchemaCreateBulkNotificationInput, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelatedPostType, type SchemaRelationType, type SchemaStripeSubscription, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, type SubscriptionPayload, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, activeAffiliateCodeExists, awardAffiliateVendorSubscriptionRewards, baseResourceFields, buildInitialBillingCatalogEntries, buildLicenceExpiryPipeline, checkOwnerHasLicence, connectToDatabase, convertObjectIdsToStrings, createLicenceObject, dateTimeSchema, didRemoveAnyEventDates, downgradeVendorProFeatures, ensureUserLicenseCompliance, ensureUserLicenseComplianceForUser, eventLicences, findAffiliateByPromoCode, findEventOrImportedMarketById, getBillingCatalogDefinition, getEventResourceInfo, getHighestLicenceForCategory, getLicenceCategory, getLicenceExpiryMode, getPartnerResourceInfo, getPayingEventStripeSubscriptionPlan, getPayingStripeSubscriptionPlan, getPayingVendorStripeSubscriptionPlan, getSubscriptionRewardPeriodBounds, getVendorResourceInfo, handleEventLicenceCompliance, handlePartnerLicenceCompliance, handleVendorLicenceCompliance, hasValidLicence, isStandardLicence, isValidObjectId, licenceCategoryMapping, licencePriority, locationGeoSchema, locationsSchema, mapVendorLicenceToSubscriptionRewardType, normalizeAffiliatePromoCodes, normalizePromoCode, notifyUsers, partnerLicences, processLicenseReminder, processUserCompliance, processUserLicenseReminders, publishNotificationEvents, refundPolicySchema, relatedPostSchema, relationDatesSchema, remindUsersAboutLicenseExpiration, replaceUserLicenceWithObject, resourceRelationsSchema, restoreVendorProFeatures, saveNotificationsInDb, schemaAdresource, sendDeactivationNotification, sendLicenseReminder, sendPushNotifications, sendReminderSafely, socialShareResourceSchema, syncUserLicencesAfterExpiry, termsAgreementSchema, updateAdStatuses, updateAllEventDateTimeStatuses, updateRelationDatesToUnavailable, updateSingleDateTimeStatus, upgradeUserToLicence, userLicenseSchema, vendorOwnerHasProLicence, vendorProductTypeSchema };
|
package/dist/index.d.ts
CHANGED
|
@@ -831,13 +831,22 @@ declare const PostModel: mongoose__default.Model<PostType, {}, {}, {}, mongoose_
|
|
|
831
831
|
}, any>;
|
|
832
832
|
|
|
833
833
|
declare const APP_SETTINGS_ID = "APP_SETTINGS_DOCUMENT_ID";
|
|
834
|
-
|
|
834
|
+
type SchemaAppSettingsType = AppSettingsType & {
|
|
835
|
+
adSettings: {
|
|
836
|
+
displayEnabled: boolean;
|
|
837
|
+
};
|
|
838
|
+
};
|
|
839
|
+
declare const AppSettingModel: mongoose__default.Model<SchemaAppSettingsType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaAppSettingsType, {}, {}> & _timardex_cluemart_shared.AppSettingsFormData & {
|
|
835
840
|
_id: string;
|
|
836
841
|
activeSchoolsStudentCountTotal: number;
|
|
837
842
|
activeSchoolsStudentCountUpdatedAt: Date;
|
|
838
843
|
createdAt: Date;
|
|
839
844
|
key: string;
|
|
840
845
|
updatedAt: Date | null;
|
|
846
|
+
} & {
|
|
847
|
+
adSettings: {
|
|
848
|
+
displayEnabled: boolean;
|
|
849
|
+
};
|
|
841
850
|
} & Required<{
|
|
842
851
|
_id: string;
|
|
843
852
|
}> & {
|
|
@@ -1365,4 +1374,4 @@ declare function checkOwnerHasLicence({ userId, resourceType, }: {
|
|
|
1365
1374
|
resourceType: EnumResourceType;
|
|
1366
1375
|
}): Promise<void>;
|
|
1367
1376
|
|
|
1368
|
-
export { ACTIVE_NOT_DELETED_FILTER, AD_BILLING_CATALOG_COLLECTION_NAME, APP_SETTINGS_ID, AdBillingCatalogModel, AdBookingModel, type AdImpressionEntry, AdImpressionModel, AdModel, AdSettingsModel, AffiliateModel, AppSettingModel, type AuthUser, type AwardAffiliateVendorSubscriptionRewardsResult, BILLING_CATALOG_COLLECTION_NAME, BillingCatalogModel, CategorySchema, ChatModel, ChatReportModel, ContactDetailsSchema, type CouponDocument, CouponModel, DEFAULT_AD_SETTINGS, EnumPubSubEvents, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, type GraphQLContext, LicenceCategory, NotificationModel, type NotificationPubSub, type ObjectId, OwnerTypeSchema, PartnerModel, PostModel, PushTokenModel, REMINDER_WINDOW_MAX_HOURS, REMINDER_WINDOW_MIN_HOURS, RelationModel, RelationTypeSchema, ResourceActivityModel, ResourceImageTypeSchema, SUBSCRIPTION_REWARD_TIMEZONE, type SchemaAffiliateResourceType, type SchemaAffiliateReward, type SchemaBillingCatalogEntry, type SchemaBillingCatalogPriceHistoryEntry, type SchemaChatMessageReactionType, type SchemaChatMessageReplyPreviewType, type SchemaChatMessageSeenType, type SchemaChatMessageType, type SchemaChatReportType, type SchemaChatType, type SchemaCreateBulkNotificationInput, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelatedPostType, type SchemaRelationType, type SchemaStripeSubscription, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, type SubscriptionPayload, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, activeAffiliateCodeExists, awardAffiliateVendorSubscriptionRewards, baseResourceFields, buildInitialBillingCatalogEntries, buildLicenceExpiryPipeline, checkOwnerHasLicence, connectToDatabase, convertObjectIdsToStrings, createLicenceObject, dateTimeSchema, didRemoveAnyEventDates, downgradeVendorProFeatures, ensureUserLicenseCompliance, ensureUserLicenseComplianceForUser, eventLicences, findAffiliateByPromoCode, findEventOrImportedMarketById, getBillingCatalogDefinition, getEventResourceInfo, getHighestLicenceForCategory, getLicenceCategory, getLicenceExpiryMode, getPartnerResourceInfo, getPayingEventStripeSubscriptionPlan, getPayingStripeSubscriptionPlan, getPayingVendorStripeSubscriptionPlan, getSubscriptionRewardPeriodBounds, getVendorResourceInfo, handleEventLicenceCompliance, handlePartnerLicenceCompliance, handleVendorLicenceCompliance, hasValidLicence, isStandardLicence, isValidObjectId, licenceCategoryMapping, licencePriority, locationGeoSchema, locationsSchema, mapVendorLicenceToSubscriptionRewardType, normalizeAffiliatePromoCodes, normalizePromoCode, notifyUsers, partnerLicences, processLicenseReminder, processUserCompliance, processUserLicenseReminders, publishNotificationEvents, refundPolicySchema, relatedPostSchema, relationDatesSchema, remindUsersAboutLicenseExpiration, replaceUserLicenceWithObject, resourceRelationsSchema, restoreVendorProFeatures, saveNotificationsInDb, schemaAdresource, sendDeactivationNotification, sendLicenseReminder, sendPushNotifications, sendReminderSafely, socialShareResourceSchema, syncUserLicencesAfterExpiry, termsAgreementSchema, updateAdStatuses, updateAllEventDateTimeStatuses, updateRelationDatesToUnavailable, updateSingleDateTimeStatus, upgradeUserToLicence, userLicenseSchema, vendorOwnerHasProLicence, vendorProductTypeSchema };
|
|
1377
|
+
export { ACTIVE_NOT_DELETED_FILTER, AD_BILLING_CATALOG_COLLECTION_NAME, APP_SETTINGS_ID, AdBillingCatalogModel, AdBookingModel, type AdImpressionEntry, AdImpressionModel, AdModel, AdSettingsModel, AffiliateModel, AppSettingModel, type AuthUser, type AwardAffiliateVendorSubscriptionRewardsResult, BILLING_CATALOG_COLLECTION_NAME, BillingCatalogModel, CategorySchema, ChatModel, ChatReportModel, ContactDetailsSchema, type CouponDocument, CouponModel, DEFAULT_AD_SETTINGS, EnumPubSubEvents, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, type GraphQLContext, LicenceCategory, NotificationModel, type NotificationPubSub, type ObjectId, OwnerTypeSchema, PartnerModel, PostModel, PushTokenModel, REMINDER_WINDOW_MAX_HOURS, REMINDER_WINDOW_MIN_HOURS, RelationModel, RelationTypeSchema, ResourceActivityModel, ResourceImageTypeSchema, SUBSCRIPTION_REWARD_TIMEZONE, type SchemaAffiliateResourceType, type SchemaAffiliateReward, type SchemaAppSettingsType, type SchemaBillingCatalogEntry, type SchemaBillingCatalogPriceHistoryEntry, type SchemaChatMessageReactionType, type SchemaChatMessageReplyPreviewType, type SchemaChatMessageSeenType, type SchemaChatMessageType, type SchemaChatReportType, type SchemaChatType, type SchemaCreateBulkNotificationInput, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelatedPostType, type SchemaRelationType, type SchemaStripeSubscription, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, type SubscriptionPayload, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, activeAffiliateCodeExists, awardAffiliateVendorSubscriptionRewards, baseResourceFields, buildInitialBillingCatalogEntries, buildLicenceExpiryPipeline, checkOwnerHasLicence, connectToDatabase, convertObjectIdsToStrings, createLicenceObject, dateTimeSchema, didRemoveAnyEventDates, downgradeVendorProFeatures, ensureUserLicenseCompliance, ensureUserLicenseComplianceForUser, eventLicences, findAffiliateByPromoCode, findEventOrImportedMarketById, getBillingCatalogDefinition, getEventResourceInfo, getHighestLicenceForCategory, getLicenceCategory, getLicenceExpiryMode, getPartnerResourceInfo, getPayingEventStripeSubscriptionPlan, getPayingStripeSubscriptionPlan, getPayingVendorStripeSubscriptionPlan, getSubscriptionRewardPeriodBounds, getVendorResourceInfo, handleEventLicenceCompliance, handlePartnerLicenceCompliance, handleVendorLicenceCompliance, hasValidLicence, isStandardLicence, isValidObjectId, licenceCategoryMapping, licencePriority, locationGeoSchema, locationsSchema, mapVendorLicenceToSubscriptionRewardType, normalizeAffiliatePromoCodes, normalizePromoCode, notifyUsers, partnerLicences, processLicenseReminder, processUserCompliance, processUserLicenseReminders, publishNotificationEvents, refundPolicySchema, relatedPostSchema, relationDatesSchema, remindUsersAboutLicenseExpiration, replaceUserLicenceWithObject, resourceRelationsSchema, restoreVendorProFeatures, saveNotificationsInDb, schemaAdresource, sendDeactivationNotification, sendLicenseReminder, sendPushNotifications, sendReminderSafely, socialShareResourceSchema, syncUserLicencesAfterExpiry, termsAgreementSchema, updateAdStatuses, updateAllEventDateTimeStatuses, updateRelationDatesToUnavailable, updateSingleDateTimeStatus, upgradeUserToLicence, userLicenseSchema, vendorOwnerHasProLicence, vendorProductTypeSchema };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// src/mongoose/Ad.ts
|
|
1
|
+
// src/mongoose/ad/Ad.ts
|
|
2
2
|
import {
|
|
3
3
|
EnumAdApprovalStatus,
|
|
4
4
|
EnumAdBookingSlotKind,
|
|
@@ -104,7 +104,7 @@ schema.index(
|
|
|
104
104
|
);
|
|
105
105
|
var AdModel = mongoose.models.Ad || mongoose.model("Ad", schema);
|
|
106
106
|
|
|
107
|
-
// src/mongoose/AdBillingCatalog.ts
|
|
107
|
+
// src/mongoose/ad/AdBillingCatalog.ts
|
|
108
108
|
import mongoose2 from "mongoose";
|
|
109
109
|
var AD_BILLING_CATALOG_COLLECTION_NAME = "adBillingCatalog";
|
|
110
110
|
var schema2 = new mongoose2.Schema(
|
|
@@ -143,7 +143,7 @@ var AdBillingCatalogModel = mongoose2.models.AdBillingCatalog || mongoose2.model
|
|
|
143
143
|
AD_BILLING_CATALOG_COLLECTION_NAME
|
|
144
144
|
);
|
|
145
145
|
|
|
146
|
-
// src/mongoose/AdBooking.ts
|
|
146
|
+
// src/mongoose/ad/AdBooking.ts
|
|
147
147
|
import {
|
|
148
148
|
EnumAdApprovalStatus as EnumAdApprovalStatus2,
|
|
149
149
|
EnumAdBookingSlotKind as EnumAdBookingSlotKind2,
|
|
@@ -290,7 +290,7 @@ schema3.index(
|
|
|
290
290
|
);
|
|
291
291
|
var AdBookingModel = mongoose3.models.AdBooking || mongoose3.model("AdBooking", schema3);
|
|
292
292
|
|
|
293
|
-
// src/mongoose/AdImpression.ts
|
|
293
|
+
// src/mongoose/ad/AdImpression.ts
|
|
294
294
|
import { EnumAdShowOn as EnumAdShowOn3 } from "@timardex/cluemart-shared";
|
|
295
295
|
import mongoose4 from "mongoose";
|
|
296
296
|
var schema4 = new mongoose4.Schema(
|
|
@@ -314,7 +314,7 @@ schema4.index({ recordedAt: 1 }, { expireAfterSeconds: 7 * 24 * 60 * 60 });
|
|
|
314
314
|
schema4.index({ dayKey: 1, placement: 1, adId: 1 });
|
|
315
315
|
var AdImpressionModel = mongoose4.models.AdImpression || mongoose4.model("AdImpression", schema4, "adImpressions");
|
|
316
316
|
|
|
317
|
-
// src/mongoose/AdSettings.ts
|
|
317
|
+
// src/mongoose/ad/AdSettings.ts
|
|
318
318
|
import mongoose5 from "mongoose";
|
|
319
319
|
var DEFAULT_AD_SETTINGS = {
|
|
320
320
|
_id: "default",
|
|
@@ -1646,6 +1646,7 @@ var schema12 = new MongooseSchema12(
|
|
|
1646
1646
|
schema12.index({ "licences.expiryDate": 1 });
|
|
1647
1647
|
schema12.index({ "licences.licenceType": 1 });
|
|
1648
1648
|
schema12.index({ promoCodes: 1, active: 1, deletedAt: 1 });
|
|
1649
|
+
schema12.index({ email: "text", firstName: "text", lastName: "text" });
|
|
1649
1650
|
var UserModel = mongoose16.models.User || mongoose16.model("User", schema12);
|
|
1650
1651
|
|
|
1651
1652
|
// src/mongoose/VerificationToken.ts
|
|
@@ -2056,6 +2057,9 @@ var AppSettingSchema = new MongooseSchema20(
|
|
|
2056
2057
|
required: true,
|
|
2057
2058
|
type: Date
|
|
2058
2059
|
},
|
|
2060
|
+
adSettings: {
|
|
2061
|
+
displayEnabled: { default: false, required: true, type: Boolean }
|
|
2062
|
+
},
|
|
2059
2063
|
appVersion: { default: "1.0.1", required: true, type: String },
|
|
2060
2064
|
isOfflineMode: { default: false, required: true, type: Boolean },
|
|
2061
2065
|
key: {
|
|
@@ -3978,8 +3982,8 @@ async function handleVendorLicenceCompliance(user, now) {
|
|
|
3978
3982
|
resourceName: vendor.name,
|
|
3979
3983
|
resourceType: EnumNotificationResourceType4.DOWNGRADED_VENDOR
|
|
3980
3984
|
},
|
|
3981
|
-
message: `Your Vendor
|
|
3982
|
-
title: `Vendor
|
|
3985
|
+
message: `Your Vendor licence has been downgraded due to licence expiration.`,
|
|
3986
|
+
title: `Vendor Licence Downgraded`,
|
|
3983
3987
|
type: EnumNotificationType3.SYSTEM,
|
|
3984
3988
|
userIds: [user._id]
|
|
3985
3989
|
};
|
|
@@ -4320,7 +4324,7 @@ async function sendLicenseReminder(user, licence) {
|
|
|
4320
4324
|
resourceType: resourceInfo.resourceType
|
|
4321
4325
|
},
|
|
4322
4326
|
message: isExtension ? `Your ${licenceName} will be automatically extended for another year on ${formatDate(expiryDate, "date")}.` : `Your ${licenceName} expires in 7 days (${formatDate(expiryDate, "date")}). Renew now to avoid deactivation.`,
|
|
4323
|
-
title: isExtension ? "
|
|
4327
|
+
title: isExtension ? "Licence Extension Reminder" : "Licence Expiring Soon",
|
|
4324
4328
|
type: resourceInfo.notificationType,
|
|
4325
4329
|
userIds: [user._id]
|
|
4326
4330
|
};
|