@timardex/cluemart-server-shared 1.0.132 → 1.0.134
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-OBW4LAAG.mjs → chunk-AMB6NVKD.mjs} +220 -100
- package/dist/chunk-AMB6NVKD.mjs.map +1 -0
- package/dist/index.cjs +226 -104
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +102 -60
- package/dist/index.d.ts +102 -60
- package/dist/index.mjs +224 -104
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +220 -98
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +102 -60
- package/dist/mongoose/index.d.ts +102 -60
- package/dist/mongoose/index.mjs +5 -1
- package/dist/service/index.cjs +218 -100
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-OBW4LAAG.mjs.map +0 -1
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, ChatMessageType, ParticipantType, ChatType, ReportChatUser, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType,
|
|
2
|
+
import { AdType, CreateBulkNotificationInput, NotificationType, ChatMessageType, ParticipantType, ChatType, ReportChatUser, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, GoogleImportedMarket, RelationType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType, GameDocType, SchoolType, EnumUserLicence } from '@timardex/cluemart-shared';
|
|
3
3
|
import mongoose from 'mongoose';
|
|
4
4
|
export { default as mongoose } from 'mongoose';
|
|
5
5
|
import { NotificationCount } from '@timardex/cluemart-shared/types';
|
|
@@ -178,6 +178,15 @@ declare const associatesSchema: mongoose.Schema<AssociateType, mongoose.Model<As
|
|
|
178
178
|
} & {
|
|
179
179
|
__v: number;
|
|
180
180
|
}>;
|
|
181
|
+
declare const ContactDetailsSchema: mongoose.Schema<ResourceContactDetailsType, mongoose.Model<ResourceContactDetailsType, any, any, any, mongoose.Document<unknown, any, ResourceContactDetailsType, any, {}> & ResourceContactDetailsType & {
|
|
182
|
+
_id: mongoose.Types.ObjectId;
|
|
183
|
+
} & {
|
|
184
|
+
__v: number;
|
|
185
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceContactDetailsType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceContactDetailsType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceContactDetailsType> & {
|
|
186
|
+
_id: mongoose.Types.ObjectId;
|
|
187
|
+
} & {
|
|
188
|
+
__v: number;
|
|
189
|
+
}>;
|
|
181
190
|
declare const termsAgreementSchema: mongoose.Schema<TermsAgreement, mongoose.Model<TermsAgreement, any, any, any, mongoose.Document<unknown, any, TermsAgreement, any, {}> & _timardex_cluemart_shared.DeviceInfo & {
|
|
182
191
|
termVersion: string;
|
|
183
192
|
} & {
|
|
@@ -269,15 +278,18 @@ declare const baseResourceFields: {
|
|
|
269
278
|
__v: number;
|
|
270
279
|
}>[];
|
|
271
280
|
};
|
|
272
|
-
contactDetails:
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
+
contactDetails: {
|
|
282
|
+
required: boolean;
|
|
283
|
+
type: mongoose.Schema<ResourceContactDetailsType, mongoose.Model<ResourceContactDetailsType, any, any, any, mongoose.Document<unknown, any, ResourceContactDetailsType, any, {}> & ResourceContactDetailsType & {
|
|
284
|
+
_id: mongoose.Types.ObjectId;
|
|
285
|
+
} & {
|
|
286
|
+
__v: number;
|
|
287
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceContactDetailsType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceContactDetailsType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceContactDetailsType> & {
|
|
288
|
+
_id: mongoose.Types.ObjectId;
|
|
289
|
+
} & {
|
|
290
|
+
__v: number;
|
|
291
|
+
}>;
|
|
292
|
+
};
|
|
281
293
|
cover: {
|
|
282
294
|
required: boolean;
|
|
283
295
|
type: mongoose.Schema<ResourceImageType, mongoose.Model<ResourceImageType, any, any, any, mongoose.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
|
|
@@ -299,24 +311,30 @@ declare const baseResourceFields: {
|
|
|
299
311
|
required: boolean;
|
|
300
312
|
type: StringConstructor;
|
|
301
313
|
};
|
|
302
|
-
images:
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
314
|
+
images: {
|
|
315
|
+
required: boolean;
|
|
316
|
+
type: mongoose.Schema<ResourceImageType, mongoose.Model<ResourceImageType, any, any, any, mongoose.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
|
|
317
|
+
_id: mongoose.Types.ObjectId;
|
|
318
|
+
} & {
|
|
319
|
+
__v: number;
|
|
320
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceImageType> & {
|
|
321
|
+
_id: mongoose.Types.ObjectId;
|
|
322
|
+
} & {
|
|
323
|
+
__v: number;
|
|
324
|
+
}>[];
|
|
325
|
+
};
|
|
326
|
+
logo: {
|
|
327
|
+
required: boolean;
|
|
328
|
+
type: mongoose.Schema<ResourceImageType, mongoose.Model<ResourceImageType, any, any, any, mongoose.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
|
|
329
|
+
_id: mongoose.Types.ObjectId;
|
|
330
|
+
} & {
|
|
331
|
+
__v: number;
|
|
332
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceImageType> & {
|
|
333
|
+
_id: mongoose.Types.ObjectId;
|
|
334
|
+
} & {
|
|
335
|
+
__v: number;
|
|
336
|
+
}>;
|
|
337
|
+
};
|
|
320
338
|
name: {
|
|
321
339
|
required: boolean;
|
|
322
340
|
type: StringConstructor;
|
|
@@ -335,15 +353,18 @@ declare const baseResourceFields: {
|
|
|
335
353
|
__v: number;
|
|
336
354
|
}>;
|
|
337
355
|
};
|
|
338
|
-
posterUsage:
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
356
|
+
posterUsage: {
|
|
357
|
+
required: boolean;
|
|
358
|
+
type: mongoose.Schema<PosterUsageType, mongoose.Model<PosterUsageType, any, any, any, mongoose.Document<unknown, any, PosterUsageType, any, {}> & PosterUsageType & {
|
|
359
|
+
_id: mongoose.Types.ObjectId;
|
|
360
|
+
} & {
|
|
361
|
+
__v: number;
|
|
362
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, PosterUsageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<PosterUsageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<PosterUsageType> & {
|
|
363
|
+
_id: mongoose.Types.ObjectId;
|
|
364
|
+
} & {
|
|
365
|
+
__v: number;
|
|
366
|
+
}>;
|
|
367
|
+
};
|
|
347
368
|
promoCodes: {
|
|
348
369
|
required: boolean;
|
|
349
370
|
type: StringConstructor[];
|
|
@@ -360,26 +381,32 @@ declare const baseResourceFields: {
|
|
|
360
381
|
required: boolean;
|
|
361
382
|
type: NumberConstructor;
|
|
362
383
|
};
|
|
363
|
-
socialMedia:
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
384
|
+
socialMedia: {
|
|
385
|
+
required: boolean;
|
|
386
|
+
type: mongoose.Schema<SocialMediaType, mongoose.Model<SocialMediaType, any, any, any, mongoose.Document<unknown, any, SocialMediaType, any, {}> & SocialMediaType & {
|
|
387
|
+
_id: mongoose.Types.ObjectId;
|
|
388
|
+
} & {
|
|
389
|
+
__v: number;
|
|
390
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialMediaType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialMediaType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialMediaType> & {
|
|
391
|
+
_id: mongoose.Types.ObjectId;
|
|
392
|
+
} & {
|
|
393
|
+
__v: number;
|
|
394
|
+
}>[];
|
|
395
|
+
};
|
|
396
|
+
termsAgreement: {
|
|
397
|
+
required: boolean;
|
|
398
|
+
type: mongoose.Schema<TermsAgreement, mongoose.Model<TermsAgreement, any, any, any, mongoose.Document<unknown, any, TermsAgreement, any, {}> & _timardex_cluemart_shared.DeviceInfo & {
|
|
399
|
+
termVersion: string;
|
|
400
|
+
} & {
|
|
401
|
+
_id: mongoose.Types.ObjectId;
|
|
402
|
+
} & {
|
|
403
|
+
__v: number;
|
|
404
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, TermsAgreement, mongoose.Document<unknown, {}, mongoose.FlatRecord<TermsAgreement>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<TermsAgreement> & {
|
|
405
|
+
_id: mongoose.Types.ObjectId;
|
|
406
|
+
} & {
|
|
407
|
+
__v: number;
|
|
408
|
+
}>;
|
|
409
|
+
};
|
|
383
410
|
};
|
|
384
411
|
|
|
385
412
|
type SchemaGoogleImportedMarket = Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
|
|
@@ -465,11 +492,12 @@ declare const ResourceActivityModel: mongoose.Model<ResourceActivityType, {}, {}
|
|
|
465
492
|
type SchemaUserActivityEvent = Omit<UserActivityEvent, "resourceId"> & {
|
|
466
493
|
resourceId: ObjectId;
|
|
467
494
|
};
|
|
468
|
-
type SchemaUserType = Omit<UserType, "vendor" | "events" | "partner" | "userActivity" | "_id" | "game"> & {
|
|
495
|
+
type SchemaUserType = Omit<UserType, "vendor" | "events" | "partner" | "userActivity" | "_id" | "game" | "school"> & {
|
|
469
496
|
_id: ObjectId;
|
|
470
497
|
events: ObjectId[];
|
|
471
498
|
game: ObjectId;
|
|
472
499
|
partner: ObjectId;
|
|
500
|
+
school: ObjectId;
|
|
473
501
|
vendor: ObjectId;
|
|
474
502
|
userActivity: {
|
|
475
503
|
favourites: {
|
|
@@ -488,11 +516,12 @@ type SchemaUserType = Omit<UserType, "vendor" | "events" | "partner" | "userActi
|
|
|
488
516
|
};
|
|
489
517
|
};
|
|
490
518
|
};
|
|
491
|
-
declare const UserModel: mongoose.Model<SchemaUserType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "events" | "partner" | "userActivity" | "game"> & {
|
|
519
|
+
declare const UserModel: mongoose.Model<SchemaUserType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "events" | "partner" | "userActivity" | "game" | "school"> & {
|
|
492
520
|
_id: ObjectId;
|
|
493
521
|
events: ObjectId[];
|
|
494
522
|
game: ObjectId;
|
|
495
523
|
partner: ObjectId;
|
|
524
|
+
school: ObjectId;
|
|
496
525
|
vendor: ObjectId;
|
|
497
526
|
userActivity: {
|
|
498
527
|
favourites: {
|
|
@@ -641,6 +670,19 @@ declare const GameModel: mongoose.Model<GameDocType, {}, {}, {}, mongoose.Docume
|
|
|
641
670
|
__v: number;
|
|
642
671
|
}, any>;
|
|
643
672
|
|
|
673
|
+
declare const SchoolModel: mongoose.Model<SchoolType, {}, {}, {}, mongoose.Document<unknown, {}, SchoolType, {}, {}> & Omit<_timardex_cluemart_shared.SchoolFormData, "logoUpload"> & {
|
|
674
|
+
_id: string;
|
|
675
|
+
createdAt: Date;
|
|
676
|
+
deletedAt: Date | null;
|
|
677
|
+
overallPoints: number | null;
|
|
678
|
+
owner: _timardex_cluemart_shared.OwnerType | null;
|
|
679
|
+
updatedAt: Date | null;
|
|
680
|
+
} & Required<{
|
|
681
|
+
_id: string;
|
|
682
|
+
}> & {
|
|
683
|
+
__v: number;
|
|
684
|
+
}, any>;
|
|
685
|
+
|
|
644
686
|
/**
|
|
645
687
|
* Connect to MongoDB using Mongoose.
|
|
646
688
|
* Supports both local MongoDB (via MONGODB_URI) and MongoDB Atlas (via individual env vars).
|
|
@@ -698,4 +740,4 @@ type EventOrMarket = {
|
|
|
698
740
|
*/
|
|
699
741
|
declare function findEventOrImportedMarketById(resourceId: ObjectId | string | null | undefined): Promise<EventOrMarket>;
|
|
700
742
|
|
|
701
|
-
export { APP_SETTINGS_ID, AdModel, AppSettingModel, type AuthUser, CategorySchema, ChatModel, ChatReportModel, EnumPubSubEvents, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, type GraphQLContext, NotificationModel, type ObjectId, OwnerTypeSchema, ParticipantSchema, PartnerModel, PostModel, PushTokenModel, RelationModel, RelationTypeSchema, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatMessageReactionType, type SchemaChatMessageReplyPreviewType, type SchemaChatMessageSeenType, type SchemaChatMessageType, type SchemaChatReportType, type SchemaChatType, type SchemaCreateBulkNotificationInput, type SchemaEventInfoType, type SchemaEventType, type SchemaGoogleImportedMarket, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelationType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SocialMediaTypeSchema, StallTypeSchema, type SubscriptionPayload, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, connectToDatabase, convertObjectIdsToStrings, dateTimeSchema, findEventOrImportedMarketById, locationGeoSchema, locationsSchema, refundPolicySchema, relationDatesSchema, resourceRelationsSchema, saveNotificationsInDb, sendPushNotifications, termsAgreementSchema, updateAdStatuses, updateVendorBasedOnUserLicense, userLicenseSchema };
|
|
743
|
+
export { APP_SETTINGS_ID, AdModel, AppSettingModel, type AuthUser, CategorySchema, ChatModel, ChatReportModel, ContactDetailsSchema, EnumPubSubEvents, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, type GraphQLContext, NotificationModel, type ObjectId, OwnerTypeSchema, ParticipantSchema, PartnerModel, PostModel, PushTokenModel, RelationModel, RelationTypeSchema, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatMessageReactionType, type SchemaChatMessageReplyPreviewType, type SchemaChatMessageSeenType, type SchemaChatMessageType, type SchemaChatReportType, type SchemaChatType, type SchemaCreateBulkNotificationInput, type SchemaEventInfoType, type SchemaEventType, type SchemaGoogleImportedMarket, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelationType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, type SubscriptionPayload, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, connectToDatabase, convertObjectIdsToStrings, dateTimeSchema, findEventOrImportedMarketById, locationGeoSchema, locationsSchema, refundPolicySchema, relationDatesSchema, resourceRelationsSchema, saveNotificationsInDb, sendPushNotifications, termsAgreementSchema, updateAdStatuses, updateVendorBasedOnUserLicense, userLicenseSchema };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
|
|
2
|
-
import { AdType, CreateBulkNotificationInput, NotificationType, ChatMessageType, ParticipantType, ChatType, ReportChatUser, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType,
|
|
2
|
+
import { AdType, CreateBulkNotificationInput, NotificationType, ChatMessageType, ParticipantType, ChatType, ReportChatUser, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, GoogleImportedMarket, RelationType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType, GameDocType, SchoolType, EnumUserLicence } from '@timardex/cluemart-shared';
|
|
3
3
|
import mongoose from 'mongoose';
|
|
4
4
|
export { default as mongoose } from 'mongoose';
|
|
5
5
|
import { NotificationCount } from '@timardex/cluemart-shared/types';
|
|
@@ -178,6 +178,15 @@ declare const associatesSchema: mongoose.Schema<AssociateType, mongoose.Model<As
|
|
|
178
178
|
} & {
|
|
179
179
|
__v: number;
|
|
180
180
|
}>;
|
|
181
|
+
declare const ContactDetailsSchema: mongoose.Schema<ResourceContactDetailsType, mongoose.Model<ResourceContactDetailsType, any, any, any, mongoose.Document<unknown, any, ResourceContactDetailsType, any, {}> & ResourceContactDetailsType & {
|
|
182
|
+
_id: mongoose.Types.ObjectId;
|
|
183
|
+
} & {
|
|
184
|
+
__v: number;
|
|
185
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceContactDetailsType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceContactDetailsType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceContactDetailsType> & {
|
|
186
|
+
_id: mongoose.Types.ObjectId;
|
|
187
|
+
} & {
|
|
188
|
+
__v: number;
|
|
189
|
+
}>;
|
|
181
190
|
declare const termsAgreementSchema: mongoose.Schema<TermsAgreement, mongoose.Model<TermsAgreement, any, any, any, mongoose.Document<unknown, any, TermsAgreement, any, {}> & _timardex_cluemart_shared.DeviceInfo & {
|
|
182
191
|
termVersion: string;
|
|
183
192
|
} & {
|
|
@@ -269,15 +278,18 @@ declare const baseResourceFields: {
|
|
|
269
278
|
__v: number;
|
|
270
279
|
}>[];
|
|
271
280
|
};
|
|
272
|
-
contactDetails:
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
+
contactDetails: {
|
|
282
|
+
required: boolean;
|
|
283
|
+
type: mongoose.Schema<ResourceContactDetailsType, mongoose.Model<ResourceContactDetailsType, any, any, any, mongoose.Document<unknown, any, ResourceContactDetailsType, any, {}> & ResourceContactDetailsType & {
|
|
284
|
+
_id: mongoose.Types.ObjectId;
|
|
285
|
+
} & {
|
|
286
|
+
__v: number;
|
|
287
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceContactDetailsType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceContactDetailsType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceContactDetailsType> & {
|
|
288
|
+
_id: mongoose.Types.ObjectId;
|
|
289
|
+
} & {
|
|
290
|
+
__v: number;
|
|
291
|
+
}>;
|
|
292
|
+
};
|
|
281
293
|
cover: {
|
|
282
294
|
required: boolean;
|
|
283
295
|
type: mongoose.Schema<ResourceImageType, mongoose.Model<ResourceImageType, any, any, any, mongoose.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
|
|
@@ -299,24 +311,30 @@ declare const baseResourceFields: {
|
|
|
299
311
|
required: boolean;
|
|
300
312
|
type: StringConstructor;
|
|
301
313
|
};
|
|
302
|
-
images:
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
314
|
+
images: {
|
|
315
|
+
required: boolean;
|
|
316
|
+
type: mongoose.Schema<ResourceImageType, mongoose.Model<ResourceImageType, any, any, any, mongoose.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
|
|
317
|
+
_id: mongoose.Types.ObjectId;
|
|
318
|
+
} & {
|
|
319
|
+
__v: number;
|
|
320
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceImageType> & {
|
|
321
|
+
_id: mongoose.Types.ObjectId;
|
|
322
|
+
} & {
|
|
323
|
+
__v: number;
|
|
324
|
+
}>[];
|
|
325
|
+
};
|
|
326
|
+
logo: {
|
|
327
|
+
required: boolean;
|
|
328
|
+
type: mongoose.Schema<ResourceImageType, mongoose.Model<ResourceImageType, any, any, any, mongoose.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
|
|
329
|
+
_id: mongoose.Types.ObjectId;
|
|
330
|
+
} & {
|
|
331
|
+
__v: number;
|
|
332
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceImageType> & {
|
|
333
|
+
_id: mongoose.Types.ObjectId;
|
|
334
|
+
} & {
|
|
335
|
+
__v: number;
|
|
336
|
+
}>;
|
|
337
|
+
};
|
|
320
338
|
name: {
|
|
321
339
|
required: boolean;
|
|
322
340
|
type: StringConstructor;
|
|
@@ -335,15 +353,18 @@ declare const baseResourceFields: {
|
|
|
335
353
|
__v: number;
|
|
336
354
|
}>;
|
|
337
355
|
};
|
|
338
|
-
posterUsage:
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
356
|
+
posterUsage: {
|
|
357
|
+
required: boolean;
|
|
358
|
+
type: mongoose.Schema<PosterUsageType, mongoose.Model<PosterUsageType, any, any, any, mongoose.Document<unknown, any, PosterUsageType, any, {}> & PosterUsageType & {
|
|
359
|
+
_id: mongoose.Types.ObjectId;
|
|
360
|
+
} & {
|
|
361
|
+
__v: number;
|
|
362
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, PosterUsageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<PosterUsageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<PosterUsageType> & {
|
|
363
|
+
_id: mongoose.Types.ObjectId;
|
|
364
|
+
} & {
|
|
365
|
+
__v: number;
|
|
366
|
+
}>;
|
|
367
|
+
};
|
|
347
368
|
promoCodes: {
|
|
348
369
|
required: boolean;
|
|
349
370
|
type: StringConstructor[];
|
|
@@ -360,26 +381,32 @@ declare const baseResourceFields: {
|
|
|
360
381
|
required: boolean;
|
|
361
382
|
type: NumberConstructor;
|
|
362
383
|
};
|
|
363
|
-
socialMedia:
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
384
|
+
socialMedia: {
|
|
385
|
+
required: boolean;
|
|
386
|
+
type: mongoose.Schema<SocialMediaType, mongoose.Model<SocialMediaType, any, any, any, mongoose.Document<unknown, any, SocialMediaType, any, {}> & SocialMediaType & {
|
|
387
|
+
_id: mongoose.Types.ObjectId;
|
|
388
|
+
} & {
|
|
389
|
+
__v: number;
|
|
390
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialMediaType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialMediaType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialMediaType> & {
|
|
391
|
+
_id: mongoose.Types.ObjectId;
|
|
392
|
+
} & {
|
|
393
|
+
__v: number;
|
|
394
|
+
}>[];
|
|
395
|
+
};
|
|
396
|
+
termsAgreement: {
|
|
397
|
+
required: boolean;
|
|
398
|
+
type: mongoose.Schema<TermsAgreement, mongoose.Model<TermsAgreement, any, any, any, mongoose.Document<unknown, any, TermsAgreement, any, {}> & _timardex_cluemart_shared.DeviceInfo & {
|
|
399
|
+
termVersion: string;
|
|
400
|
+
} & {
|
|
401
|
+
_id: mongoose.Types.ObjectId;
|
|
402
|
+
} & {
|
|
403
|
+
__v: number;
|
|
404
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, TermsAgreement, mongoose.Document<unknown, {}, mongoose.FlatRecord<TermsAgreement>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<TermsAgreement> & {
|
|
405
|
+
_id: mongoose.Types.ObjectId;
|
|
406
|
+
} & {
|
|
407
|
+
__v: number;
|
|
408
|
+
}>;
|
|
409
|
+
};
|
|
383
410
|
};
|
|
384
411
|
|
|
385
412
|
type SchemaGoogleImportedMarket = Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
|
|
@@ -465,11 +492,12 @@ declare const ResourceActivityModel: mongoose.Model<ResourceActivityType, {}, {}
|
|
|
465
492
|
type SchemaUserActivityEvent = Omit<UserActivityEvent, "resourceId"> & {
|
|
466
493
|
resourceId: ObjectId;
|
|
467
494
|
};
|
|
468
|
-
type SchemaUserType = Omit<UserType, "vendor" | "events" | "partner" | "userActivity" | "_id" | "game"> & {
|
|
495
|
+
type SchemaUserType = Omit<UserType, "vendor" | "events" | "partner" | "userActivity" | "_id" | "game" | "school"> & {
|
|
469
496
|
_id: ObjectId;
|
|
470
497
|
events: ObjectId[];
|
|
471
498
|
game: ObjectId;
|
|
472
499
|
partner: ObjectId;
|
|
500
|
+
school: ObjectId;
|
|
473
501
|
vendor: ObjectId;
|
|
474
502
|
userActivity: {
|
|
475
503
|
favourites: {
|
|
@@ -488,11 +516,12 @@ type SchemaUserType = Omit<UserType, "vendor" | "events" | "partner" | "userActi
|
|
|
488
516
|
};
|
|
489
517
|
};
|
|
490
518
|
};
|
|
491
|
-
declare const UserModel: mongoose.Model<SchemaUserType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "events" | "partner" | "userActivity" | "game"> & {
|
|
519
|
+
declare const UserModel: mongoose.Model<SchemaUserType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "events" | "partner" | "userActivity" | "game" | "school"> & {
|
|
492
520
|
_id: ObjectId;
|
|
493
521
|
events: ObjectId[];
|
|
494
522
|
game: ObjectId;
|
|
495
523
|
partner: ObjectId;
|
|
524
|
+
school: ObjectId;
|
|
496
525
|
vendor: ObjectId;
|
|
497
526
|
userActivity: {
|
|
498
527
|
favourites: {
|
|
@@ -641,6 +670,19 @@ declare const GameModel: mongoose.Model<GameDocType, {}, {}, {}, mongoose.Docume
|
|
|
641
670
|
__v: number;
|
|
642
671
|
}, any>;
|
|
643
672
|
|
|
673
|
+
declare const SchoolModel: mongoose.Model<SchoolType, {}, {}, {}, mongoose.Document<unknown, {}, SchoolType, {}, {}> & Omit<_timardex_cluemart_shared.SchoolFormData, "logoUpload"> & {
|
|
674
|
+
_id: string;
|
|
675
|
+
createdAt: Date;
|
|
676
|
+
deletedAt: Date | null;
|
|
677
|
+
overallPoints: number | null;
|
|
678
|
+
owner: _timardex_cluemart_shared.OwnerType | null;
|
|
679
|
+
updatedAt: Date | null;
|
|
680
|
+
} & Required<{
|
|
681
|
+
_id: string;
|
|
682
|
+
}> & {
|
|
683
|
+
__v: number;
|
|
684
|
+
}, any>;
|
|
685
|
+
|
|
644
686
|
/**
|
|
645
687
|
* Connect to MongoDB using Mongoose.
|
|
646
688
|
* Supports both local MongoDB (via MONGODB_URI) and MongoDB Atlas (via individual env vars).
|
|
@@ -698,4 +740,4 @@ type EventOrMarket = {
|
|
|
698
740
|
*/
|
|
699
741
|
declare function findEventOrImportedMarketById(resourceId: ObjectId | string | null | undefined): Promise<EventOrMarket>;
|
|
700
742
|
|
|
701
|
-
export { APP_SETTINGS_ID, AdModel, AppSettingModel, type AuthUser, CategorySchema, ChatModel, ChatReportModel, EnumPubSubEvents, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, type GraphQLContext, NotificationModel, type ObjectId, OwnerTypeSchema, ParticipantSchema, PartnerModel, PostModel, PushTokenModel, RelationModel, RelationTypeSchema, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatMessageReactionType, type SchemaChatMessageReplyPreviewType, type SchemaChatMessageSeenType, type SchemaChatMessageType, type SchemaChatReportType, type SchemaChatType, type SchemaCreateBulkNotificationInput, type SchemaEventInfoType, type SchemaEventType, type SchemaGoogleImportedMarket, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelationType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SocialMediaTypeSchema, StallTypeSchema, type SubscriptionPayload, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, connectToDatabase, convertObjectIdsToStrings, dateTimeSchema, findEventOrImportedMarketById, locationGeoSchema, locationsSchema, refundPolicySchema, relationDatesSchema, resourceRelationsSchema, saveNotificationsInDb, sendPushNotifications, termsAgreementSchema, updateAdStatuses, updateVendorBasedOnUserLicense, userLicenseSchema };
|
|
743
|
+
export { APP_SETTINGS_ID, AdModel, AppSettingModel, type AuthUser, CategorySchema, ChatModel, ChatReportModel, ContactDetailsSchema, EnumPubSubEvents, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, type GraphQLContext, NotificationModel, type ObjectId, OwnerTypeSchema, ParticipantSchema, PartnerModel, PostModel, PushTokenModel, RelationModel, RelationTypeSchema, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatMessageReactionType, type SchemaChatMessageReplyPreviewType, type SchemaChatMessageSeenType, type SchemaChatMessageType, type SchemaChatReportType, type SchemaChatType, type SchemaCreateBulkNotificationInput, type SchemaEventInfoType, type SchemaEventType, type SchemaGoogleImportedMarket, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelationType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, type SubscriptionPayload, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, connectToDatabase, convertObjectIdsToStrings, dateTimeSchema, findEventOrImportedMarketById, locationGeoSchema, locationsSchema, refundPolicySchema, relationDatesSchema, resourceRelationsSchema, saveNotificationsInDb, sendPushNotifications, termsAgreementSchema, updateAdStatuses, updateVendorBasedOnUserLicense, userLicenseSchema };
|