@timardex/cluemart-server-shared 1.0.0

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.
@@ -0,0 +1,485 @@
1
+ import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
2
+ import { AdType, CreateBulkNotificationInput, NotificationType, ChatMessageType, ParticipantType, ChatType, OwnerType, SocialMediaType, ResourceImageType, Category, PartnerType, TermsAgreement, ResourceContactDetailsType, PosterUsageType, RelationDate, RelationType, ResourceActivityType, TesterType, UserActivityEvent, UserType, VendorType, VendorInfoType, EventType, StallType, EventInfoType } from '@timardex/cluemart-shared';
3
+ import mongoose from 'mongoose';
4
+ import { EnumOSPlatform } from '@timardex/cluemart-shared/enums';
5
+
6
+ declare const AdModel: mongoose.Model<AdType, {}, {}, {}, mongoose.Document<unknown, {}, AdType, {}, {}> & AdType & Required<{
7
+ _id: string;
8
+ }> & {
9
+ __v: number;
10
+ }, any>;
11
+
12
+ type SchemaCreateBulkNotificationInput = Omit<CreateBulkNotificationInput, "userIds"> & {
13
+ userIds: ObjectId[];
14
+ };
15
+ type SchemaNotificationType = Omit<NotificationType, "userId"> & {
16
+ userId: ObjectId;
17
+ };
18
+ declare const NotificationModel: mongoose.Model<SchemaNotificationType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaNotificationType, {}, {}> & Omit<NotificationType, "userId"> & {
19
+ userId: ObjectId;
20
+ } & Required<{
21
+ _id: string;
22
+ }> & {
23
+ __v: number;
24
+ }, any>;
25
+
26
+ type ObjectId = mongoose.Schema.Types.ObjectId;
27
+
28
+ type SchemaChatMessageType = Omit<ChatMessageType, "senderId"> & {
29
+ senderId: ObjectId;
30
+ };
31
+ type SchemaParticipantType = Omit<ParticipantType, "userId"> & {
32
+ userId: ObjectId;
33
+ };
34
+ type SchemaChatType = Omit<ChatType, "participants" | "messages" | "resourceInfo"> & {
35
+ participants: SchemaParticipantType[];
36
+ messages: SchemaChatMessageType[];
37
+ resourceInfo: {
38
+ eventId: ObjectId;
39
+ vendorId: ObjectId;
40
+ } | null;
41
+ };
42
+ declare const ParticipantSchema: mongoose.Schema<SchemaParticipantType, mongoose.Model<SchemaParticipantType, any, any, any, mongoose.Document<unknown, any, SchemaParticipantType, any, {}> & Omit<ParticipantType, "userId"> & {
43
+ userId: ObjectId;
44
+ } & {
45
+ _id: mongoose.Types.ObjectId;
46
+ } & {
47
+ __v: number;
48
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaParticipantType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaParticipantType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaParticipantType> & {
49
+ _id: mongoose.Types.ObjectId;
50
+ } & {
51
+ __v: number;
52
+ }>;
53
+ declare const ChatModel: mongoose.Model<SchemaChatType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaChatType, {}, {}> & Omit<ChatType, "participants" | "messages" | "resourceInfo"> & {
54
+ participants: SchemaParticipantType[];
55
+ messages: SchemaChatMessageType[];
56
+ resourceInfo: {
57
+ eventId: ObjectId;
58
+ vendorId: ObjectId;
59
+ } | null;
60
+ } & Required<{
61
+ _id: string;
62
+ }> & {
63
+ __v: number;
64
+ }, any>;
65
+
66
+ type SchemaOwnerType = Omit<OwnerType, "userId"> & {
67
+ userId: ObjectId;
68
+ };
69
+ declare const SocialMediaTypeSchema: mongoose.Schema<SocialMediaType, mongoose.Model<SocialMediaType, any, any, any, mongoose.Document<unknown, any, SocialMediaType, any, {}> & SocialMediaType & {
70
+ _id: mongoose.Types.ObjectId;
71
+ } & {
72
+ __v: number;
73
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialMediaType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialMediaType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialMediaType> & {
74
+ _id: mongoose.Types.ObjectId;
75
+ } & {
76
+ __v: number;
77
+ }>;
78
+ declare const ResourceImageTypeSchema: mongoose.Schema<ResourceImageType, mongoose.Model<ResourceImageType, any, any, any, mongoose.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
79
+ _id: mongoose.Types.ObjectId;
80
+ } & {
81
+ __v: number;
82
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceImageType> & {
83
+ _id: mongoose.Types.ObjectId;
84
+ } & {
85
+ __v: number;
86
+ }>;
87
+ declare const CategorySchema: mongoose.Schema<Category, mongoose.Model<Category, any, any, any, mongoose.Document<unknown, any, Category, any, {}> & Category & {
88
+ _id: mongoose.Types.ObjectId;
89
+ } & {
90
+ __v: number;
91
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, Category, mongoose.Document<unknown, {}, mongoose.FlatRecord<Category>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<Category> & {
92
+ _id: mongoose.Types.ObjectId;
93
+ } & {
94
+ __v: number;
95
+ }>;
96
+ declare const partnersSchema: mongoose.Schema<PartnerType, mongoose.Model<PartnerType, any, any, any, mongoose.Document<unknown, any, PartnerType, any, {}> & PartnerType & {
97
+ _id: mongoose.Types.ObjectId;
98
+ } & {
99
+ __v: number;
100
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, PartnerType, mongoose.Document<unknown, {}, mongoose.FlatRecord<PartnerType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<PartnerType> & {
101
+ _id: mongoose.Types.ObjectId;
102
+ } & {
103
+ __v: number;
104
+ }>;
105
+ declare const termsAgreementSchema: mongoose.Schema<TermsAgreement, mongoose.Model<TermsAgreement, any, any, any, mongoose.Document<unknown, any, TermsAgreement, any, {}> & _timardex_cluemart_shared.DeviceInfo & {
106
+ termVersion: string;
107
+ } & {
108
+ _id: mongoose.Types.ObjectId;
109
+ } & {
110
+ __v: number;
111
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, TermsAgreement, mongoose.Document<unknown, {}, mongoose.FlatRecord<TermsAgreement>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<TermsAgreement> & {
112
+ _id: mongoose.Types.ObjectId;
113
+ } & {
114
+ __v: number;
115
+ }>;
116
+ declare const baseResourceFields: {
117
+ active: {
118
+ default: boolean;
119
+ required: boolean;
120
+ type: BooleanConstructor;
121
+ };
122
+ adIds: {
123
+ ref: string;
124
+ required: boolean;
125
+ type: (typeof mongoose.Schema.Types.ObjectId)[];
126
+ };
127
+ contactDetails: mongoose.Schema<ResourceContactDetailsType, mongoose.Model<ResourceContactDetailsType, any, any, any, mongoose.Document<unknown, any, ResourceContactDetailsType, any, {}> & ResourceContactDetailsType & {
128
+ _id: mongoose.Types.ObjectId;
129
+ } & {
130
+ __v: number;
131
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceContactDetailsType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceContactDetailsType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceContactDetailsType> & {
132
+ _id: mongoose.Types.ObjectId;
133
+ } & {
134
+ __v: number;
135
+ }>;
136
+ cover: mongoose.Schema<ResourceImageType, mongoose.Model<ResourceImageType, any, any, any, mongoose.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
137
+ _id: mongoose.Types.ObjectId;
138
+ } & {
139
+ __v: number;
140
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceImageType> & {
141
+ _id: mongoose.Types.ObjectId;
142
+ } & {
143
+ __v: number;
144
+ }>;
145
+ deletedAt: {
146
+ default: null;
147
+ required: boolean;
148
+ type: DateConstructor;
149
+ };
150
+ description: {
151
+ required: boolean;
152
+ type: StringConstructor;
153
+ };
154
+ images: mongoose.Schema<ResourceImageType, mongoose.Model<ResourceImageType, any, any, any, mongoose.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
155
+ _id: mongoose.Types.ObjectId;
156
+ } & {
157
+ __v: number;
158
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceImageType> & {
159
+ _id: mongoose.Types.ObjectId;
160
+ } & {
161
+ __v: number;
162
+ }>[];
163
+ logo: mongoose.Schema<ResourceImageType, mongoose.Model<ResourceImageType, any, any, any, mongoose.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
164
+ _id: mongoose.Types.ObjectId;
165
+ } & {
166
+ __v: number;
167
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceImageType> & {
168
+ _id: mongoose.Types.ObjectId;
169
+ } & {
170
+ __v: number;
171
+ }>;
172
+ name: {
173
+ required: boolean;
174
+ type: StringConstructor;
175
+ };
176
+ owner: mongoose.Schema<SchemaOwnerType, mongoose.Model<SchemaOwnerType, any, any, any, mongoose.Document<unknown, any, SchemaOwnerType, any, {}> & Omit<OwnerType, "userId"> & {
177
+ userId: ObjectId;
178
+ } & {
179
+ _id: mongoose.Types.ObjectId;
180
+ } & {
181
+ __v: number;
182
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaOwnerType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaOwnerType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaOwnerType> & {
183
+ _id: mongoose.Types.ObjectId;
184
+ } & {
185
+ __v: number;
186
+ }>;
187
+ partners: {
188
+ required: boolean;
189
+ type: mongoose.Schema<PartnerType, mongoose.Model<PartnerType, any, any, any, mongoose.Document<unknown, any, PartnerType, any, {}> & PartnerType & {
190
+ _id: mongoose.Types.ObjectId;
191
+ } & {
192
+ __v: number;
193
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, PartnerType, mongoose.Document<unknown, {}, mongoose.FlatRecord<PartnerType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<PartnerType> & {
194
+ _id: mongoose.Types.ObjectId;
195
+ } & {
196
+ __v: number;
197
+ }>[];
198
+ };
199
+ posterUsage: mongoose.Schema<PosterUsageType, mongoose.Model<PosterUsageType, any, any, any, mongoose.Document<unknown, any, PosterUsageType, any, {}> & PosterUsageType & {
200
+ _id: mongoose.Types.ObjectId;
201
+ } & {
202
+ __v: number;
203
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, PosterUsageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<PosterUsageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<PosterUsageType> & {
204
+ _id: mongoose.Types.ObjectId;
205
+ } & {
206
+ __v: number;
207
+ }>;
208
+ promoCodes: {
209
+ required: boolean;
210
+ type: StringConstructor[];
211
+ };
212
+ region: {
213
+ required: boolean;
214
+ type: StringConstructor;
215
+ };
216
+ relations: {
217
+ default: never[];
218
+ required: boolean;
219
+ type: mongoose.Schema<{
220
+ relationId: ObjectId;
221
+ relationDates: RelationDate[];
222
+ }, mongoose.Model<{
223
+ relationId: ObjectId;
224
+ relationDates: RelationDate[];
225
+ }, any, any, any, mongoose.Document<unknown, any, {
226
+ relationId: ObjectId;
227
+ relationDates: RelationDate[];
228
+ }, any, {}> & {
229
+ relationId: ObjectId;
230
+ relationDates: RelationDate[];
231
+ } & {
232
+ _id: mongoose.Types.ObjectId;
233
+ } & {
234
+ __v: number;
235
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
236
+ relationId: ObjectId;
237
+ relationDates: RelationDate[];
238
+ }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
239
+ relationId: ObjectId;
240
+ relationDates: RelationDate[];
241
+ }>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<{
242
+ relationId: ObjectId;
243
+ relationDates: RelationDate[];
244
+ }> & {
245
+ _id: mongoose.Types.ObjectId;
246
+ } & {
247
+ __v: number;
248
+ }>[];
249
+ };
250
+ socialMedia: mongoose.Schema<SocialMediaType, mongoose.Model<SocialMediaType, any, any, any, mongoose.Document<unknown, any, SocialMediaType, any, {}> & SocialMediaType & {
251
+ _id: mongoose.Types.ObjectId;
252
+ } & {
253
+ __v: number;
254
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialMediaType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialMediaType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialMediaType> & {
255
+ _id: mongoose.Types.ObjectId;
256
+ } & {
257
+ __v: number;
258
+ }>[];
259
+ termsAgreement: mongoose.Schema<TermsAgreement, mongoose.Model<TermsAgreement, any, any, any, mongoose.Document<unknown, any, TermsAgreement, any, {}> & _timardex_cluemart_shared.DeviceInfo & {
260
+ termVersion: string;
261
+ } & {
262
+ _id: mongoose.Types.ObjectId;
263
+ } & {
264
+ __v: number;
265
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, TermsAgreement, mongoose.Document<unknown, {}, mongoose.FlatRecord<TermsAgreement>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<TermsAgreement> & {
266
+ _id: mongoose.Types.ObjectId;
267
+ } & {
268
+ __v: number;
269
+ }>;
270
+ };
271
+
272
+ type PushTokenType = {
273
+ _id: string;
274
+ createdAt: Date;
275
+ platform: EnumOSPlatform;
276
+ token: string;
277
+ updatedAt: Date;
278
+ userId: string;
279
+ };
280
+ type SchemaPushTokenType = Omit<PushTokenType, "userId"> & {
281
+ userId: ObjectId;
282
+ };
283
+ declare const PushTokenModel: mongoose.Model<SchemaPushTokenType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaPushTokenType, {}, {}> & Omit<PushTokenType, "userId"> & {
284
+ userId: ObjectId;
285
+ } & Required<{
286
+ _id: string;
287
+ }> & {
288
+ __v: number;
289
+ }, any>;
290
+
291
+ declare const relationDatesSchema: mongoose.Schema<RelationDate, mongoose.Model<RelationDate, any, any, any, mongoose.Document<unknown, any, RelationDate, any, {}> & RelationDate & {
292
+ _id: mongoose.Types.ObjectId;
293
+ } & {
294
+ __v: number;
295
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, RelationDate, mongoose.Document<unknown, {}, mongoose.FlatRecord<RelationDate>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<RelationDate> & {
296
+ _id: mongoose.Types.ObjectId;
297
+ } & {
298
+ __v: number;
299
+ }>;
300
+ type SchemaRelationType = Omit<RelationType, "chatId" | "eventId" | "vendorId"> & {
301
+ chatId: ObjectId;
302
+ eventId: ObjectId;
303
+ vendorId: ObjectId;
304
+ };
305
+ /**
306
+ * This is the schema for the relation type.
307
+ * It is used to define the structure of the relation type in the database.
308
+ * The schema is used by Mongoose to create a model for the relation type.
309
+ */
310
+ declare const RelationTypeSchema: mongoose.Schema<SchemaRelationType, mongoose.Model<SchemaRelationType, any, any, any, mongoose.Document<unknown, any, SchemaRelationType, any, {}> & Omit<RelationType, "eventId" | "vendorId" | "chatId"> & {
311
+ chatId: ObjectId;
312
+ eventId: ObjectId;
313
+ vendorId: ObjectId;
314
+ } & Required<{
315
+ _id: string;
316
+ }> & {
317
+ __v: number;
318
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaRelationType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaRelationType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaRelationType> & Required<{
319
+ _id: string;
320
+ }> & {
321
+ __v: number;
322
+ }>;
323
+ declare const RelationModel: mongoose.Model<SchemaRelationType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaRelationType, {}, {}> & Omit<RelationType, "eventId" | "vendorId" | "chatId"> & {
324
+ chatId: ObjectId;
325
+ eventId: ObjectId;
326
+ vendorId: ObjectId;
327
+ } & Required<{
328
+ _id: string;
329
+ }> & {
330
+ __v: number;
331
+ }, any>;
332
+
333
+ declare const ResourceActivityModel: mongoose.Model<ResourceActivityType, {}, {}, {}, mongoose.Document<unknown, {}, ResourceActivityType, {}, {}> & ResourceActivityType & Required<{
334
+ _id: string;
335
+ }> & {
336
+ __v: number;
337
+ }, any>;
338
+
339
+ declare const TesterModel: mongoose.Model<TesterType, {}, {}, {}, mongoose.Document<unknown, {}, TesterType, {}, {}> & TesterType & Required<{
340
+ _id: string;
341
+ }> & {
342
+ __v: number;
343
+ }, any>;
344
+
345
+ type SchemaUserActivityEvent = Omit<UserActivityEvent, "resourceId"> & {
346
+ resourceId: ObjectId;
347
+ };
348
+ type SchemaUserType = Omit<UserType, "vendor" | "events" | "userActivity" | "_id"> & {
349
+ _id: ObjectId;
350
+ vendor: ObjectId;
351
+ events: ObjectId[];
352
+ userActivity: {
353
+ favourites: {
354
+ events: ObjectId[];
355
+ vendors: ObjectId[];
356
+ };
357
+ interested: {
358
+ events: SchemaUserActivityEvent[];
359
+ };
360
+ going: {
361
+ events: SchemaUserActivityEvent[];
362
+ };
363
+ present: {
364
+ events: SchemaUserActivityEvent[];
365
+ };
366
+ };
367
+ };
368
+ declare const UserModel: mongoose.Model<SchemaUserType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "events" | "userActivity"> & {
369
+ _id: ObjectId;
370
+ vendor: ObjectId;
371
+ events: ObjectId[];
372
+ userActivity: {
373
+ favourites: {
374
+ events: ObjectId[];
375
+ vendors: ObjectId[];
376
+ };
377
+ interested: {
378
+ events: SchemaUserActivityEvent[];
379
+ };
380
+ going: {
381
+ events: SchemaUserActivityEvent[];
382
+ };
383
+ present: {
384
+ events: SchemaUserActivityEvent[];
385
+ };
386
+ };
387
+ } & Required<{
388
+ _id: mongoose.Schema.Types.ObjectId;
389
+ }> & {
390
+ __v: number;
391
+ }, any>;
392
+
393
+ interface VerificationTokenType {
394
+ email: string;
395
+ verificationToken: string;
396
+ createdAt: Date;
397
+ }
398
+ declare const VerificationTokenModel: mongoose.Model<VerificationTokenType, {}, {}, {}, mongoose.Document<unknown, {}, VerificationTokenType, {}, {}> & VerificationTokenType & {
399
+ _id: mongoose.Types.ObjectId;
400
+ } & {
401
+ __v: number;
402
+ }, any>;
403
+
404
+ type SchemaVendorType = Omit<VendorType, "vendorInfoId" | "owner" | "adIds"> & {
405
+ adIds?: ObjectId[];
406
+ owner: SchemaOwnerType;
407
+ vendorInfoId: ObjectId;
408
+ };
409
+ declare const VendorModel: mongoose.Model<SchemaVendorType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "owner" | "vendorInfoId" | "adIds"> & {
410
+ adIds?: ObjectId[];
411
+ owner: SchemaOwnerType;
412
+ vendorInfoId: ObjectId;
413
+ } & Required<{
414
+ _id: string;
415
+ }> & {
416
+ __v: number;
417
+ }, any>;
418
+
419
+ type SchemaVendorInfoType = Omit<VendorInfoType, "vendorId"> & {
420
+ vendorId: ObjectId;
421
+ };
422
+ declare const VendorInfoModel: mongoose.Model<SchemaVendorInfoType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorInfoType, {}, {}> & Omit<VendorInfoType, "vendorId"> & {
423
+ vendorId: ObjectId;
424
+ } & Required<{
425
+ _id: string;
426
+ }> & {
427
+ __v: number;
428
+ }, any>;
429
+
430
+ type SchemaEventType = Omit<EventType, "eventInfoId" | "owner" | "adIds"> & {
431
+ adIds?: ObjectId[];
432
+ eventInfoId: ObjectId;
433
+ owner: SchemaOwnerType;
434
+ };
435
+ declare const EventModel: mongoose.Model<SchemaEventType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "owner" | "adIds" | "eventInfoId"> & {
436
+ adIds?: ObjectId[];
437
+ eventInfoId: ObjectId;
438
+ owner: SchemaOwnerType;
439
+ } & Required<{
440
+ _id: string;
441
+ }> & {
442
+ __v: number;
443
+ }, any>;
444
+
445
+ declare const StallTypeSchema: mongoose.Schema<StallType, mongoose.Model<StallType, any, any, any, mongoose.Document<unknown, any, StallType, any, {}> & StallType & {
446
+ _id: mongoose.Types.ObjectId;
447
+ } & {
448
+ __v: number;
449
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, StallType, mongoose.Document<unknown, {}, mongoose.FlatRecord<StallType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<StallType> & {
450
+ _id: mongoose.Types.ObjectId;
451
+ } & {
452
+ __v: number;
453
+ }>;
454
+ type SchemaEventInfoType = Omit<EventInfoType, "eventId"> & {
455
+ eventId: ObjectId;
456
+ };
457
+ declare const EventInfoModel: mongoose.Model<SchemaEventInfoType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventInfoType, {}, {}> & Omit<EventInfoType, "eventId"> & {
458
+ eventId: ObjectId;
459
+ } & Required<{
460
+ _id: string;
461
+ }> & {
462
+ __v: number;
463
+ }, any>;
464
+
465
+ /**
466
+ * Connect to MongoDB using Mongoose.
467
+ * Supports both local MongoDB (via MONGODB_URI) and MongoDB Atlas (via individual env vars).
468
+ */
469
+ declare const connectToDatabase: ({ appName, dbName, dbPassword, dbUser, mongodbUri, }: {
470
+ appName: string;
471
+ dbName: string;
472
+ dbPassword: string;
473
+ dbUser: string;
474
+ mongodbUri: string;
475
+ }) => Promise<void>;
476
+
477
+ /**
478
+ * Create notifications in the database for multiple users
479
+ * This is typically called when sending push notifications
480
+ */
481
+ declare function saveNotificationsInDb(payload: SchemaCreateBulkNotificationInput): Promise<ObjectId[]>;
482
+
483
+ declare function sendPushNotifications({ data, message, title, userIds, }: SchemaCreateBulkNotificationInput): Promise<void>;
484
+
485
+ export { AdModel, CategorySchema, ChatModel, EventInfoModel, EventModel, NotificationModel, ParticipantSchema, PushTokenModel, RelationModel, RelationTypeSchema, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatMessageType, type SchemaChatType, type SchemaCreateBulkNotificationInput, type SchemaEventInfoType, type SchemaEventType, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPushTokenType, type SchemaRelationType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SocialMediaTypeSchema, StallTypeSchema, TesterModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, baseResourceFields, connectToDatabase, partnersSchema, relationDatesSchema, saveNotificationsInDb, sendPushNotifications, termsAgreementSchema };