@timardex/cluemart-server-shared 1.1.37 → 1.1.39

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.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
2
- import { AdType, CreateBulkNotificationInput, NotificationType, EnumUserRole, ChatMessageType, ParticipantType, ChatType, ReportChatUser, RelatedPostType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, SocialShareResourceType, PosterUsageType, GoogleImportedMarket, PushTokenType, RelationType, ResourceActivityType, UserActivityEvent, UserType, VendorProductList, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameType, GameDocType, SchoolType, AffiliateRewardType, AffiliateResourceType, AffiliateType, CouponType, CouponDataType, CouponParticipantUserType, PromoCodeType, EnumAffiliateRewardType, EventListItemType, DateTimeWithPriceType, EnumUserLicence as EnumUserLicence$1, EnumNotificationResourceType, EnumNotificationType, EnumResourceType } from '@timardex/cluemart-shared';
2
+ import { AdType, ChatMessageType, ParticipantType, ChatType, CreateBulkNotificationInput, NotificationType, EnumUserRole, BillingCatalogPriceHistoryEntry, BillingCatalogEntryType, EnumBillingPeriod, EnumUserLicence, BILLING_CATALOG_KEYS, ReportChatUser, RelatedPostType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, SocialShareResourceType, PosterUsageType, GoogleImportedMarket, PushTokenType, RelationType, ResourceActivityType, UserActivityEvent, UserType, StripeSubscription, VendorProductList, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameType, GameDocType, SchoolType, AffiliateRewardType, AffiliateResourceType, AffiliateType, CouponType, CouponDataType, CouponParticipantUserType, PromoCodeType, EnumAffiliateRewardType, EventListItemType, DateTimeWithPriceType, EnumNotificationResourceType, EnumNotificationType, EnumResourceType } from '@timardex/cluemart-shared';
3
3
  import * as mongoose from 'mongoose';
4
4
  import mongoose__default from 'mongoose';
5
5
  export { default as mongoose } from 'mongoose';
@@ -7,7 +7,7 @@ import { NotificationCount, DateTimeType as DateTimeType$1 } from '@timardex/clu
7
7
  import express from 'express';
8
8
  export { default as express } from 'express';
9
9
  import dayjs, { Dayjs } from 'dayjs';
10
- import { EnumUserLicence } from '@timardex/cluemart-shared/enums';
10
+ import { EnumUserLicence as EnumUserLicence$1 } from '@timardex/cluemart-shared/enums';
11
11
 
12
12
  declare const AdModel: mongoose__default.Model<AdType, {}, {}, {}, mongoose__default.Document<unknown, {}, AdType, {}, {}> & AdType & Required<{
13
13
  _id: string;
@@ -15,6 +15,38 @@ declare const AdModel: mongoose__default.Model<AdType, {}, {}, {}, mongoose__def
15
15
  __v: number;
16
16
  }, any>;
17
17
 
18
+ type SchemaChatMessageReplyPreviewType = Omit<NonNullable<ChatMessageType["replyPreview"]>, "senderId"> & {
19
+ senderId: ObjectId;
20
+ };
21
+ type SchemaChatMessageReactionType = Omit<NonNullable<ChatMessageType["likedBy"]>[number], "userId"> & {
22
+ userId: ObjectId;
23
+ };
24
+ type SchemaChatMessageSeenType = Omit<NonNullable<ChatMessageType["seenBy"]>[number], "userId"> & {
25
+ userId: ObjectId;
26
+ };
27
+ type SchemaChatMessageType = Omit<ChatMessageType, "senderId" | "replyToMessageId" | "replyPreview" | "likedBy" | "seenBy"> & {
28
+ senderId: ObjectId;
29
+ replyToMessageId?: ObjectId | null;
30
+ replyPreview?: SchemaChatMessageReplyPreviewType | null;
31
+ likedBy?: SchemaChatMessageReactionType[];
32
+ seenBy?: SchemaChatMessageSeenType[];
33
+ };
34
+ type SchemaParticipantType = Omit<ParticipantType, "userId"> & {
35
+ userId: ObjectId;
36
+ };
37
+ type SchemaChatType = Omit<ChatType, "participants" | "messages"> & {
38
+ participants: SchemaParticipantType[];
39
+ messages: SchemaChatMessageType[];
40
+ };
41
+ declare const ChatModel: mongoose__default.Model<SchemaChatType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaChatType, {}, {}> & Omit<ChatType, "participants" | "messages"> & {
42
+ participants: SchemaParticipantType[];
43
+ messages: SchemaChatMessageType[];
44
+ } & Required<{
45
+ _id: string;
46
+ }> & {
47
+ __v: number;
48
+ }, any>;
49
+
18
50
  type SchemaCreateBulkNotificationInput = Omit<CreateBulkNotificationInput, "userIds"> & {
19
51
  userIds: ObjectId[];
20
52
  };
@@ -61,37 +93,45 @@ interface GraphQLContext {
61
93
  response: express.Response;
62
94
  }
63
95
 
64
- type SchemaChatMessageReplyPreviewType = Omit<NonNullable<ChatMessageType["replyPreview"]>, "senderId"> & {
65
- senderId: ObjectId;
66
- };
67
- type SchemaChatMessageReactionType = Omit<NonNullable<ChatMessageType["likedBy"]>[number], "userId"> & {
68
- userId: ObjectId;
69
- };
70
- type SchemaChatMessageSeenType = Omit<NonNullable<ChatMessageType["seenBy"]>[number], "userId"> & {
71
- userId: ObjectId;
72
- };
73
- type SchemaChatMessageType = Omit<ChatMessageType, "senderId" | "replyToMessageId" | "replyPreview" | "likedBy" | "seenBy"> & {
74
- senderId: ObjectId;
75
- replyToMessageId?: ObjectId | null;
76
- replyPreview?: SchemaChatMessageReplyPreviewType | null;
77
- likedBy?: SchemaChatMessageReactionType[];
78
- seenBy?: SchemaChatMessageSeenType[];
96
+ declare const BILLING_CATALOG_COLLECTION_NAME = "billingCatalog";
97
+ type SchemaBillingCatalogPriceHistoryEntry = Omit<BillingCatalogPriceHistoryEntry, "changedBy"> & {
98
+ changedBy?: ObjectId | null;
79
99
  };
80
- type SchemaParticipantType = Omit<ParticipantType, "userId"> & {
81
- userId: ObjectId;
82
- };
83
- type SchemaChatType = Omit<ChatType, "participants" | "messages"> & {
84
- participants: SchemaParticipantType[];
85
- messages: SchemaChatMessageType[];
100
+ type SchemaBillingCatalogEntry = Omit<BillingCatalogEntryType, "_id" | "priceHistory" | "updatedBy"> & {
101
+ _id: ObjectId;
102
+ priceHistory: SchemaBillingCatalogPriceHistoryEntry[];
103
+ updatedBy?: ObjectId | null;
86
104
  };
87
- declare const ChatModel: mongoose__default.Model<SchemaChatType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaChatType, {}, {}> & Omit<ChatType, "participants" | "messages"> & {
88
- participants: SchemaParticipantType[];
89
- messages: SchemaChatMessageType[];
105
+ declare const BillingCatalogModel: mongoose__default.Model<SchemaBillingCatalogEntry, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaBillingCatalogEntry, {}, {}> & Omit<BillingCatalogEntryType, "_id" | "priceHistory" | "updatedBy"> & {
106
+ _id: ObjectId;
107
+ priceHistory: SchemaBillingCatalogPriceHistoryEntry[];
108
+ updatedBy?: ObjectId | null;
90
109
  } & Required<{
91
- _id: string;
110
+ _id: mongoose__default.Types.ObjectId;
92
111
  }> & {
93
112
  __v: number;
94
113
  }, any>;
114
+ /**
115
+ * Produces the four records used for an idempotent `$setOnInsert` catalogue
116
+ * initialisation. Stripe identifiers deliberately start empty and are attached
117
+ * only after Stripe successfully creates the matching Product and Price.
118
+ */
119
+ declare function buildInitialBillingCatalogEntries(now?: Date): {
120
+ active: boolean;
121
+ billingPeriod: EnumBillingPeriod;
122
+ currency: "nzd";
123
+ effectiveFrom: Date;
124
+ key: _timardex_cluemart_shared.BillingCatalogKey;
125
+ licenceType: EnumUserLicence.PRO_PLUS_VENDOR | EnumUserLicence.PRO_VENDOR;
126
+ priceHistory: never[];
127
+ revision: number;
128
+ stripePriceId: null;
129
+ stripeProductId: null;
130
+ taxInclusive: boolean;
131
+ unitAmount: number;
132
+ updatedBy: null;
133
+ }[];
134
+ declare function getBillingCatalogDefinition(key: (typeof BILLING_CATALOG_KEYS)[number]): _timardex_cluemart_shared.BillingCatalogDefinition;
95
135
 
96
136
  type SchemaChatReportType = Omit<ReportChatUser, "reporterUserId" | "reportedUserId" | "chatId"> & {
97
137
  reporterUserId: ObjectId;
@@ -510,7 +550,7 @@ declare const ResourceActivityModel: mongoose__default.Model<ResourceActivityTyp
510
550
  type SchemaUserActivityEvent = Omit<UserActivityEvent, "resourceId"> & {
511
551
  resourceId: ObjectId;
512
552
  };
513
- type SchemaUserType = Omit<UserType, "vendor" | "coupon" | "events" | "partner" | "userActivity" | "_id" | "game" | "school" | "affiliate" | "permissions"> & {
553
+ type SchemaUserType = Omit<UserType, "vendor" | "coupon" | "events" | "partner" | "userActivity" | "_id" | "game" | "school" | "affiliate" | "permissions" | "stripe"> & {
514
554
  _id: ObjectId;
515
555
  affiliate: ObjectId;
516
556
  coupon: ObjectId;
@@ -518,6 +558,7 @@ type SchemaUserType = Omit<UserType, "vendor" | "coupon" | "events" | "partner"
518
558
  game: ObjectId;
519
559
  partner: ObjectId;
520
560
  school: ObjectId;
561
+ stripe?: SchemaStripeSubscription;
521
562
  vendor: ObjectId;
522
563
  userActivity: {
523
564
  favourites: {
@@ -536,7 +577,18 @@ type SchemaUserType = Omit<UserType, "vendor" | "coupon" | "events" | "partner"
536
577
  };
537
578
  };
538
579
  };
539
- declare const UserModel: mongoose__default.Model<SchemaUserType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "coupon" | "events" | "partner" | "userActivity" | "game" | "school" | "affiliate" | "permissions"> & {
580
+ type SchemaStripeSubscription = StripeSubscription & {
581
+ billingPeriod?: EnumBillingPeriod;
582
+ cancelAtPeriodEnd?: boolean;
583
+ pendingBillingPeriod?: EnumBillingPeriod;
584
+ pendingChangeEffectiveAt?: Date;
585
+ pendingPlan?: EnumUserLicence;
586
+ priceId?: string;
587
+ scheduleId?: string;
588
+ subscriptionMutationLockExpiresAt?: Date;
589
+ subscriptionMutationLockId?: string;
590
+ };
591
+ declare const UserModel: mongoose__default.Model<SchemaUserType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "coupon" | "events" | "partner" | "userActivity" | "game" | "school" | "affiliate" | "permissions" | "stripe"> & {
540
592
  _id: ObjectId;
541
593
  affiliate: ObjectId;
542
594
  coupon: ObjectId;
@@ -544,6 +596,7 @@ declare const UserModel: mongoose__default.Model<SchemaUserType, {}, {}, {}, mon
544
596
  game: ObjectId;
545
597
  partner: ObjectId;
546
598
  school: ObjectId;
599
+ stripe?: SchemaStripeSubscription;
547
600
  vendor: ObjectId;
548
601
  userActivity: {
549
602
  favourites: {
@@ -944,14 +997,14 @@ declare function updateSingleDateTimeStatus<T extends DateTimeType>(dateTime: T,
944
997
  */
945
998
  declare function updateAllEventDateTimeStatuses(): Promise<void>;
946
999
 
947
- type EventOrMarket = Pick<EventListItemType, "_id" | "name"> | null;
1000
+ type EventOrMarket = Pick<EventListItemType, "_id" | "name" | "dateTime"> | null;
948
1001
  /**
949
1002
  * This function attempts to find an Event or a Google Imported Market by the given resource ID.
950
1003
  * It first normalizes the resource ID to a string format, then performs parallel queries to both collections.
951
1004
  * If an Event is found, it returns that; otherwise, it checks for a Google Imported Market and returns it if found.
952
1005
  * If neither is found, it returns null.
953
1006
  * @param resourceId - The ID of the resource to find, which can be an ObjectId, string, null, or undefined.
954
- * @returns A promise that resolves to either an Event or a Google Imported Market object containing _id and name, or null if not found.
1007
+ * @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.
955
1008
  */
956
1009
  declare function findEventOrImportedMarketById(resourceId: ObjectId | string | null | undefined): Promise<EventOrMarket>;
957
1010
 
@@ -969,8 +1022,8 @@ declare function updateRelationDatesToUnavailable(relationDates: SchemaRelationT
969
1022
 
970
1023
  type PayingStripeSubscriptionPlanResult = {
971
1024
  hasSubscription: boolean;
972
- plan: EnumUserLicence | null;
973
- validTypes: Set<EnumUserLicence>;
1025
+ plan: EnumUserLicence$1 | null;
1026
+ validTypes: Set<EnumUserLicence$1>;
974
1027
  };
975
1028
  /**
976
1029
  * Returns the paying Stripe plan when `currentPlan` is any PRO plan
@@ -988,9 +1041,15 @@ declare function getPayingVendorStripeSubscriptionPlan(userId: ObjectId | string
988
1041
  */
989
1042
  declare function getPayingEventStripeSubscriptionPlan(userId: ObjectId | string, now?: Date): Promise<PayingStripeSubscriptionPlanResult>;
990
1043
 
1044
+ /**
1045
+ * Runs the established compliance pipeline for one freshly loaded user.
1046
+ * Stripe webhooks use this at the actual paid-through boundary; the global
1047
+ * scheduled scan remains the fallback for missed or delayed webhook handling.
1048
+ */
1049
+ declare function ensureUserLicenseComplianceForUser(userId: ObjectId, now?: Dayjs): Promise<void>;
991
1050
  declare function ensureUserLicenseCompliance(): Promise<void>;
992
1051
 
993
- declare const eventLicences: EnumUserLicence$1[];
1052
+ declare const eventLicences: EnumUserLicence[];
994
1053
  /**
995
1054
  * Handles event licence compliance for a single user.
996
1055
  *
@@ -1031,7 +1090,7 @@ declare function buildLicenceExpiryPipeline(params: {
1031
1090
  oneYearFromNow: Date;
1032
1091
  }): object[];
1033
1092
 
1034
- declare const partnerLicences: EnumUserLicence$1[];
1093
+ declare const partnerLicences: EnumUserLicence[];
1035
1094
  /**
1036
1095
  * Handles partner licence compliance for a single user.
1037
1096
  *
@@ -1052,11 +1111,11 @@ declare function handlePartnerLicenceCompliance(user: SchemaUserType, now: Dayjs
1052
1111
  * is extended to one year from now
1053
1112
  * - Non-expired or non-targeted licences are unchanged in both modes
1054
1113
  */
1055
- declare function syncUserLicencesAfterExpiry(userId: ObjectId, licenceTypes: EnumUserLicence$1[], now: dayjs.Dayjs, mode?: "downgrade" | "extend"): Promise<void>;
1114
+ declare function syncUserLicencesAfterExpiry(userId: ObjectId, licenceTypes: EnumUserLicence[], now: dayjs.Dayjs, mode?: "downgrade" | "extend"): Promise<void>;
1056
1115
  /**
1057
1116
  * Checks if user has a valid licence of the given types
1058
1117
  */
1059
- declare function hasValidLicence(licences: UserLicenceType[], licenceTypes: EnumUserLicence$1[], now: dayjs.Dayjs): boolean;
1118
+ declare function hasValidLicence(licences: UserLicenceType[], licenceTypes: EnumUserLicence[], now: dayjs.Dayjs): boolean;
1060
1119
  /**
1061
1120
  * Sends a deactivation notification to the user
1062
1121
  */
@@ -1076,8 +1135,8 @@ declare function sendDeactivationNotification(payload: {
1076
1135
  */
1077
1136
  declare function processUserCompliance(user: SchemaUserType, now: dayjs.Dayjs): Promise<void>;
1078
1137
 
1079
- declare function updateVendorBasedOnUserLicense(userId: ObjectId, licenceType: EnumUserLicence$1): Promise<void>;
1080
- declare const vendorLicences: EnumUserLicence$1[];
1138
+ declare function updateVendorBasedOnUserLicense(userId: ObjectId, licenceType: EnumUserLicence): Promise<void>;
1139
+ declare const vendorLicences: EnumUserLicence[];
1081
1140
  /**
1082
1141
  * Handles vendor licence compliance for a single user
1083
1142
  */
@@ -1131,7 +1190,7 @@ declare const REMINDER_WINDOW_MAX_HOURS: number;
1131
1190
  * (ModelHelpers/licenses/index.ts) is a SEPARATE concern (entitlement priority,
1132
1191
  * not expiry behaviour) and is intentionally not merged here.
1133
1192
  */
1134
- declare function getLicenceExpiryMode(licenceType: EnumUserLicence$1): "downgrade" | "extend";
1193
+ declare function getLicenceExpiryMode(licenceType: EnumUserLicence): "downgrade" | "extend";
1135
1194
  /**
1136
1195
  * Sends a reminder notification for a license.
1137
1196
  *
@@ -1148,7 +1207,7 @@ declare function sendLicenseReminder(user: {
1148
1207
  events?: ObjectId[];
1149
1208
  partner?: ObjectId;
1150
1209
  }, licence: {
1151
- licenceType: EnumUserLicence$1;
1210
+ licenceType: EnumUserLicence;
1152
1211
  expiryDate: Date | string;
1153
1212
  }): Promise<void>;
1154
1213
  /**
@@ -1159,13 +1218,8 @@ declare function sendLicenseReminder(user: {
1159
1218
  *
1160
1219
  * @returns true if a reminder should be sent, false otherwise
1161
1220
  */
1162
- declare function processLicenseReminder(user: {
1163
- _id: ObjectId;
1164
- vendor?: ObjectId;
1165
- events?: ObjectId[];
1166
- partner?: ObjectId;
1167
- }, licence: {
1168
- licenceType: EnumUserLicence$1;
1221
+ declare function processLicenseReminder(licence: {
1222
+ licenceType: EnumUserLicence;
1169
1223
  expiryDate: Date | string;
1170
1224
  }, now: dayjs.Dayjs): Promise<boolean>;
1171
1225
  /**
@@ -1202,26 +1256,27 @@ declare enum LicenceCategory {
1202
1256
  AFFILIATE = "affiliate",
1203
1257
  SCHOOL = "school"
1204
1258
  }
1205
- declare const licenceCategoryMapping: Record<EnumUserLicence$1, LicenceCategory>;
1206
- declare const licencePriority: Record<EnumUserLicence$1, number>;
1207
- declare const standardLicences: readonly [EnumUserLicence$1.STANDARD_VENDOR, EnumUserLicence$1.STANDARD_EVENT, EnumUserLicence$1.STANDARD_PARTNER];
1208
- declare function isStandardLicence(licence: EnumUserLicence$1): licence is (typeof standardLicences)[number];
1259
+ declare const licenceCategoryMapping: Record<EnumUserLicence, LicenceCategory>;
1260
+ declare const licencePriority: Record<EnumUserLicence, number>;
1261
+ declare const standardLicences: readonly [EnumUserLicence.STANDARD_VENDOR, EnumUserLicence.STANDARD_EVENT, EnumUserLicence.STANDARD_PARTNER];
1262
+ declare function isStandardLicence(licence: EnumUserLicence): licence is (typeof standardLicences)[number];
1209
1263
  type LicenceUpgradeArgs = {
1210
1264
  expiryDate: LicenceExpiryDate;
1211
- licenceType: EnumUserLicence$1;
1265
+ licenceType: EnumUserLicence;
1212
1266
  userId: ObjectId;
1213
1267
  };
1214
1268
  type LicenceUpgradeResult = {
1215
1269
  licenceObject: UserLicenceType;
1216
1270
  updatedUser: SchemaUserType | null;
1217
1271
  };
1218
- declare function getLicenceCategory(licence: EnumUserLicence$1): LicenceCategory;
1219
- declare function getHighestLicenceForCategory(licences: UserLicenceType[] | null | undefined, category: LicenceCategory): EnumUserLicence$1 | null;
1220
- declare function createLicenceObject(expiryDate: LicenceExpiryDate, licenceType: EnumUserLicence$1): UserLicenceType;
1221
- declare function replaceUserLicenceWithObject({ userId, licenceObject, protectHigherLicence, }: {
1272
+ declare function getLicenceCategory(licence: EnumUserLicence): LicenceCategory;
1273
+ declare function getHighestLicenceForCategory(licences: UserLicenceType[] | null | undefined, category: LicenceCategory): EnumUserLicence | null;
1274
+ declare function createLicenceObject(expiryDate: LicenceExpiryDate, licenceType: EnumUserLicence): UserLicenceType;
1275
+ declare function replaceUserLicenceWithObject({ userId, licenceObject, protectHigherLicence, refreshExistingLicence, }: {
1222
1276
  userId: ObjectId;
1223
1277
  licenceObject: UserLicenceType;
1224
1278
  protectHigherLicence?: boolean;
1279
+ refreshExistingLicence?: boolean;
1225
1280
  }): Promise<void>;
1226
1281
  /**
1227
1282
  * Upgrades a user's license by adding a new license object to their account.
@@ -1237,4 +1292,4 @@ declare function checkOwnerHasLicence({ userId, resourceType, }: {
1237
1292
  resourceType: EnumResourceType;
1238
1293
  }): Promise<void>;
1239
1294
 
1240
- export { ACTIVE_NOT_DELETED_FILTER, APP_SETTINGS_ID, AdModel, AffiliateModel, AppSettingModel, type AuthUser, type AwardAffiliateVendorSubscriptionRewardsResult, CategorySchema, ChatModel, ChatReportModel, ContactDetailsSchema, type CouponDocument, CouponModel, EnumPubSubEvents, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, type GraphQLContext, LicenceCategory, LicenceExpiryDate, 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 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 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, buildLicenceExpiryPipeline, checkOwnerHasLicence, connectToDatabase, convertObjectIdsToStrings, createLicenceObject, dateTimeSchema, didRemoveAnyEventDates, ensureUserLicenseCompliance, eventLicences, findAffiliateByPromoCode, findEventOrImportedMarketById, 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, saveNotificationsInDb, sendDeactivationNotification, sendLicenseReminder, sendPushNotifications, sendReminderSafely, socialShareResourceSchema, syncUserLicencesAfterExpiry, termsAgreementSchema, updateAdStatuses, updateAllEventDateTimeStatuses, updateRelationDatesToUnavailable, updateSingleDateTimeStatus, updateVendorBasedOnUserLicense, upgradeUserToLicence, userLicenseSchema, vendorLicences, vendorOwnerHasProLicence, vendorProductTypeSchema };
1295
+ export { ACTIVE_NOT_DELETED_FILTER, APP_SETTINGS_ID, AdModel, AffiliateModel, AppSettingModel, type AuthUser, type AwardAffiliateVendorSubscriptionRewardsResult, BILLING_CATALOG_COLLECTION_NAME, BillingCatalogModel, CategorySchema, ChatModel, ChatReportModel, ContactDetailsSchema, type CouponDocument, CouponModel, EnumPubSubEvents, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, type GraphQLContext, LicenceCategory, LicenceExpiryDate, 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, 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, saveNotificationsInDb, sendDeactivationNotification, sendLicenseReminder, sendPushNotifications, sendReminderSafely, socialShareResourceSchema, syncUserLicencesAfterExpiry, termsAgreementSchema, updateAdStatuses, updateAllEventDateTimeStatuses, updateRelationDatesToUnavailable, updateSingleDateTimeStatus, updateVendorBasedOnUserLicense, upgradeUserToLicence, userLicenseSchema, vendorLicences, vendorOwnerHasProLicence, vendorProductTypeSchema };