@timardex/cluemart-shared 1.2.35 → 1.2.36

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.
Files changed (48) hide show
  1. package/dist/{ad-CWAaH5Ql.d.mts → ad-Bv5fLkN0.d.mts} +1 -1
  2. package/dist/{ad-D60cy5L4.d.ts → ad-DDPNpx02.d.ts} +1 -1
  3. package/dist/{auth-BslKse3L.d.mts → auth-BVGs-5Vm.d.mts} +1 -1
  4. package/dist/{auth-Ch9Nt77g.d.ts → auth-BhUIvvZ2.d.ts} +1 -1
  5. package/dist/formFields/index.d.mts +1 -3
  6. package/dist/formFields/index.d.ts +1 -3
  7. package/dist/{global-DvxKMAQD.d.ts → global-BA84KF8J.d.ts} +2 -148
  8. package/dist/{global-j9FEfVZs.d.mts → global-BEqzo5Z2.d.mts} +2 -148
  9. package/dist/graphql/index.d.mts +3 -5
  10. package/dist/graphql/index.d.ts +3 -5
  11. package/dist/hooks/index.d.mts +3 -5
  12. package/dist/hooks/index.d.ts +3 -5
  13. package/dist/hooks/index.mjs +5 -5
  14. package/dist/index.cjs +17 -1013
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.d.mts +311 -819
  17. package/dist/index.d.ts +311 -819
  18. package/dist/index.mjs +17 -986
  19. package/dist/index.mjs.map +1 -1
  20. package/dist/resourceActivities-0CdofGJp.d.mts +96 -0
  21. package/dist/resourceActivities-BjgH9TFc.d.ts +96 -0
  22. package/dist/types/index.cjs +2 -26
  23. package/dist/types/index.cjs.map +1 -1
  24. package/dist/types/index.d.mts +4 -6
  25. package/dist/types/index.d.ts +4 -6
  26. package/dist/types/index.mjs +11 -8
  27. package/dist/types/index.mjs.map +1 -1
  28. package/dist/utils/index.d.mts +1 -3
  29. package/dist/utils/index.d.ts +1 -3
  30. package/package.json +2 -1
  31. package/dist/chunk-4OLDTZXH.mjs +0 -26
  32. package/dist/chunk-4OLDTZXH.mjs.map +0 -1
  33. package/dist/chunk-WWL2Q5DN.mjs +0 -44
  34. package/dist/chunk-WWL2Q5DN.mjs.map +0 -1
  35. package/dist/mongoose/index.cjs +0 -1085
  36. package/dist/mongoose/index.cjs.map +0 -1
  37. package/dist/mongoose/index.d.mts +0 -415
  38. package/dist/mongoose/index.d.ts +0 -415
  39. package/dist/mongoose/index.mjs +0 -878
  40. package/dist/mongoose/index.mjs.map +0 -1
  41. package/dist/resourceActivities-B4roVKtQ.d.ts +0 -34
  42. package/dist/resourceActivities-BIjtlOGp.d.mts +0 -34
  43. package/dist/service/index.cjs +0 -172
  44. package/dist/service/index.cjs.map +0 -1
  45. package/dist/service/index.d.mts +0 -25
  46. package/dist/service/index.d.ts +0 -25
  47. package/dist/service/index.mjs +0 -79
  48. package/dist/service/index.mjs.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,6 +1,3 @@
1
- import { Request } from 'express';
2
- import mongoose from 'mongoose';
3
- export { default as mongoose } from 'mongoose';
4
1
  import { FieldValues, Control, FieldErrors, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
5
2
  import * as _apollo_client from '@apollo/client';
6
3
 
@@ -120,87 +117,6 @@ declare enum EnumSocialMedia {
120
117
  YOUTUBE = "youtube"
121
118
  }
122
119
 
123
- interface AdminUpdateResourceType {
124
- active: boolean;
125
- resourceId: string;
126
- resourceType: EnumResourceType;
127
- }
128
-
129
- type LoginFormData = {
130
- email: string;
131
- isAdminPage?: boolean;
132
- password: string;
133
- platform?: EnumOSPlatform;
134
- };
135
- type CreateLoginFormData = CreateFormData<LoginFormData>;
136
- type RegisterFormData = {
137
- email: string;
138
- firstName: string;
139
- lastName: string;
140
- password: string;
141
- platform?: EnumOSPlatform;
142
- preferredRegion: string;
143
- termsAgreement?: TermsAgreement | null;
144
- };
145
- type CreateRegisterFormData = CreateFormData<RegisterFormData>;
146
- type RequestPasswordResetFormData = {
147
- email: string;
148
- };
149
- type CreateRequestPasswordResetFormData = CreateFormData<RequestPasswordResetFormData>;
150
- type ResetPasswordFormData = {
151
- confirmPassword: string;
152
- email: string;
153
- password: string;
154
- };
155
- type CreateResetPasswordFormData = CreateFormData<ResetPasswordFormData>;
156
- type ValidateVerificationTokenFormData = {
157
- email: string;
158
- verificationToken: string;
159
- };
160
- type CreateValidateVerificationTokenFormData = CreateFormData<ValidateVerificationTokenFormData>;
161
-
162
- type ParticipantType = {
163
- active: boolean;
164
- email: string;
165
- userId: string;
166
- };
167
- interface ChatMessageInput {
168
- content: string;
169
- senderId: string;
170
- }
171
- interface ChatMessageType {
172
- _id?: string;
173
- content: string;
174
- createdAt?: string;
175
- senderAvatar: string | null;
176
- senderId: string;
177
- senderName: string;
178
- updatedAt?: string;
179
- }
180
- interface ChatType {
181
- _id: string;
182
- active: boolean;
183
- chatType: EnumChatType;
184
- chatName: string;
185
- createdAt: string;
186
- messages: ChatMessageType[];
187
- participants: ParticipantType[];
188
- resourceInfo: {
189
- eventId: string;
190
- vendorId: string;
191
- } | null;
192
- updatedAt: string;
193
- deletedAt: string | null;
194
- }
195
-
196
- type ContactUsFormData = {
197
- email: string;
198
- firstName: string;
199
- lastName: string;
200
- message: string;
201
- };
202
- type CreateContactUsFormData = CreateFormData<ContactUsFormData>;
203
-
204
120
  type StallType = {
205
121
  label: string;
206
122
  price: number;
@@ -259,41 +175,6 @@ type EventInfoType = Omit<EventInfoFormData, "_id"> & {
259
175
  _id: string;
260
176
  };
261
177
 
262
- interface NotificationDataType {
263
- resourceId: string;
264
- resourceName: string;
265
- resourceType: EnumNotificationResourceType;
266
- }
267
- type NotificationType = {
268
- _id: string;
269
- userId: string;
270
- title: string;
271
- message: string;
272
- isRead: boolean;
273
- type: EnumNotificationType;
274
- data: NotificationDataType | null;
275
- createdAt: string;
276
- updatedAt: string;
277
- };
278
- type NotificationCount = {
279
- total: number;
280
- unread: number;
281
- };
282
- type CreateBulkNotificationInput = {
283
- data: NotificationDataType | null;
284
- message: string;
285
- title: string;
286
- type: EnumNotificationType;
287
- userIds: string[];
288
- };
289
-
290
- interface PosterInputType {
291
- description: string;
292
- posterName: string;
293
- resourceId: string;
294
- resourceType: EnumResourceType;
295
- }
296
-
297
178
  type RelationDate = {
298
179
  lastUpdateBy: {
299
180
  resourceId: string;
@@ -399,214 +280,6 @@ type VendorInfoType = Omit<VendorInfoFormData, "_id" | "documentsUpload"> & {
399
280
  _id: string;
400
281
  };
401
282
 
402
- interface TestersFormData {
403
- categories?: Category[] | null;
404
- companyName: string;
405
- email: string;
406
- firstName: string;
407
- lastName: string;
408
- osType: EnumOSPlatform;
409
- region: string;
410
- resourceType: EnumResourceType;
411
- }
412
- type CreateTestersFormData = CreateFormData<TestersFormData>;
413
- interface TesterType extends TestersFormData {
414
- _id: string;
415
- active: boolean;
416
- createdAt: string;
417
- updatedAt: string;
418
- }
419
-
420
- type UserFormData = {
421
- _id?: string;
422
- active: boolean;
423
- avatar?: ResourceImageType | null;
424
- avatarUpload?: ResourceImageType | null;
425
- confirmPassword: string;
426
- email: string;
427
- firstName: string;
428
- lastName: string;
429
- password: string;
430
- platform?: EnumOSPlatform;
431
- preferredRegion: string;
432
- role: EnumUserRole;
433
- termsAgreement?: TermsAgreement | null;
434
- };
435
- type CreateUserFormData = CreateFormData<UserFormData>;
436
- type UserActivityEvent = {
437
- resourceId: string;
438
- startDate: string;
439
- startTime: string;
440
- };
441
- type UserActivity = {
442
- favourites: {
443
- events: string[];
444
- vendors: string[];
445
- };
446
- going: {
447
- events: UserActivityEvent[];
448
- };
449
- interested: {
450
- events: UserActivityEvent[];
451
- };
452
- present: {
453
- events: UserActivityEvent[];
454
- };
455
- };
456
- interface UserType {
457
- _id: string;
458
- active: boolean;
459
- avatar: ResourceImageType | null;
460
- createdAt: string;
461
- deletedAt: string | null;
462
- email: string;
463
- events: string[] | null;
464
- firstName: string;
465
- isTester: boolean;
466
- lastName: string;
467
- licences: EnumUserLicence[] | null;
468
- partners?: PartnerType[] | null;
469
- password: string;
470
- platform: EnumOSPlatform | null;
471
- preferredRegion: string;
472
- refreshToken: string | null;
473
- role: EnumUserRole;
474
- termsAgreement?: TermsAgreement | null;
475
- updatedAt: string;
476
- userActivity: UserActivity | null;
477
- vendor: string | null;
478
- }
479
-
480
- declare enum EnumAdShowOn {
481
- FRONT_PAGE = "Front_page",
482
- EVENTS_PAGE = "Events_page",
483
- VENDORS_PAGE = "Vendors_page"
484
- }
485
- declare enum EnumAdStatus {
486
- ACTIVE = "Active",
487
- PAUSED = "Paused",
488
- EXPIRED = "Expired"
489
- }
490
- declare enum EnumAdType {
491
- SPONSORED = "Sponsored",
492
- FREE = "Free"
493
- }
494
- declare enum EnumAdStyle {
495
- BLOOM = "Bloom",
496
- RISE = "Rise"
497
- }
498
- interface AdFormData {
499
- active: boolean;
500
- adStyle: EnumAdStyle;
501
- adType: EnumAdType;
502
- clui?: string | null;
503
- end: Date;
504
- resourceCover: string;
505
- resourceDescription: string;
506
- resourceId: string;
507
- resourceLogo?: string | null;
508
- resourceName: string;
509
- resourceRegion: string;
510
- resourceType: EnumResourceType;
511
- showOn: EnumAdShowOn;
512
- socialMedia?: SocialMediaType[] | null;
513
- start?: Date;
514
- status: EnumAdStatus;
515
- targetRegion?: string | null;
516
- }
517
- type CreateAdFormData = CreateFormData<AdFormData>;
518
- interface AdType extends AdFormData {
519
- _id: string;
520
- clicks?: number;
521
- createdAt: Date;
522
- impressions?: number;
523
- start: Date;
524
- updatedAt: Date;
525
- }
526
-
527
- declare enum EnumActivity {
528
- FAVORITE = "FAVORITE",
529
- GOING = "GOING",
530
- INTERESTED = "INTERESTED",
531
- PRESENT = "PRESENT",
532
- VIEW = "VIEW"
533
- }
534
- type ResourceActivityEntry = {
535
- activityType: EnumActivity;
536
- location: {
537
- type: "Point";
538
- coordinates: number[];
539
- } | null;
540
- startDate?: string | null;
541
- startTime?: string | null;
542
- timestamp: Date;
543
- userAgent: EnumOSPlatform;
544
- userId?: string | null;
545
- };
546
- type ResourceActivityType = {
547
- _id: string;
548
- resourceType: EnumResourceType;
549
- resourceId: string;
550
- activity: ResourceActivityEntry[];
551
- };
552
- type ResourceActivityInputType = {
553
- resourceId: string;
554
- resourceType: string;
555
- activity: Omit<ResourceActivityEntry, "timestamp">;
556
- };
557
-
558
- type SchemaChatMessageType = Omit<ChatMessageType, "senderId"> & {
559
- senderId: ObjectId;
560
- };
561
- type SchemaParticipantType = Omit<ParticipantType, "userId"> & {
562
- userId: ObjectId;
563
- };
564
- type SchemaChatType = Omit<ChatType, "participants" | "messages" | "resourceInfo"> & {
565
- participants: SchemaParticipantType[];
566
- messages: SchemaChatMessageType[];
567
- resourceInfo: {
568
- eventId: ObjectId;
569
- vendorId: ObjectId;
570
- } | null;
571
- };
572
- declare const ParticipantSchema: mongoose.Schema<SchemaParticipantType, mongoose.Model<SchemaParticipantType, any, any, any, mongoose.Document<unknown, any, SchemaParticipantType, any, {}> & Omit<ParticipantType, "userId"> & {
573
- userId: ObjectId;
574
- } & {
575
- _id: mongoose.Types.ObjectId;
576
- } & {
577
- __v: number;
578
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaParticipantType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaParticipantType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaParticipantType> & {
579
- _id: mongoose.Types.ObjectId;
580
- } & {
581
- __v: number;
582
- }>;
583
- declare const ChatModel: mongoose.Model<SchemaChatType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaChatType, {}, {}> & Omit<ChatType, "participants" | "messages" | "resourceInfo"> & {
584
- participants: SchemaParticipantType[];
585
- messages: SchemaChatMessageType[];
586
- resourceInfo: {
587
- eventId: ObjectId;
588
- vendorId: ObjectId;
589
- } | null;
590
- } & Required<{
591
- _id: string;
592
- }> & {
593
- __v: number;
594
- }, any>;
595
-
596
- type SchemaCreateBulkNotificationInput = Omit<CreateBulkNotificationInput, "userIds"> & {
597
- userIds: ObjectId[];
598
- };
599
- type SchemaNotificationType = Omit<NotificationType, "userId"> & {
600
- userId: ObjectId;
601
- };
602
- declare const NotificationModel: mongoose.Model<SchemaNotificationType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaNotificationType, {}, {}> & Omit<NotificationType, "userId"> & {
603
- userId: ObjectId;
604
- } & Required<{
605
- _id: string;
606
- }> & {
607
- __v: number;
608
- }, any>;
609
-
610
283
  type Nullable<T> = {
611
284
  [K in keyof T]: T[K] | null | undefined;
612
285
  };
@@ -740,84 +413,326 @@ interface Subcategory {
740
413
  name: string;
741
414
  items?: SubcategoryItems[] | null;
742
415
  }
743
- interface Category {
744
- color?: string | null;
745
- description?: string | null;
746
- id: string;
747
- name: string;
748
- subcategories: Subcategory[];
416
+ interface Category {
417
+ color?: string | null;
418
+ description?: string | null;
419
+ id: string;
420
+ name: string;
421
+ subcategories: Subcategory[];
422
+ }
423
+ type OptionItem = {
424
+ value: string;
425
+ label: string;
426
+ };
427
+ type ImageObjectType = {
428
+ uri: string;
429
+ type: string;
430
+ name: string;
431
+ };
432
+ interface ResourceConnectionsType {
433
+ events: EventType[] | null;
434
+ vendors: VendorType[] | null;
435
+ }
436
+ interface CreateFormData<T extends FieldValues> {
437
+ control: Control<T, any>;
438
+ fields: T;
439
+ formState: {
440
+ errors: FieldErrors<T>;
441
+ };
442
+ handleSubmit: UseFormHandleSubmit<T, any>;
443
+ reset: UseFormReset<T>;
444
+ setValue: UseFormSetValue<T>;
445
+ watch: UseFormWatch<T>;
446
+ }
447
+
448
+ declare const vendorBasicInfoFields: FormField[];
449
+ declare const vendorMultiLocation: FormField;
450
+ declare const vendorFullAddress: FormField;
451
+ declare const vendorStartDateFields: FormDateField[];
452
+ declare const vendorEndDateFields: FormDateField[];
453
+ declare const vendorAvailability: FormField[];
454
+ declare const vendorLocationDescription: FormField;
455
+ declare const vendorMenuFields: FormField[];
456
+ declare const availableCityOptions: OptionItem[];
457
+ declare const productLabelGroups: {
458
+ category: string;
459
+ items: {
460
+ abbreviation: string;
461
+ fullName: string;
462
+ }[];
463
+ }[];
464
+
465
+ interface AdminUpdateResourceType {
466
+ active: boolean;
467
+ resourceId: string;
468
+ resourceType: EnumResourceType;
469
+ }
470
+
471
+ type LoginFormData = {
472
+ email: string;
473
+ isAdminPage?: boolean;
474
+ password: string;
475
+ platform?: EnumOSPlatform;
476
+ };
477
+ type CreateLoginFormData = CreateFormData<LoginFormData>;
478
+ type RegisterFormData = {
479
+ email: string;
480
+ firstName: string;
481
+ lastName: string;
482
+ password: string;
483
+ platform?: EnumOSPlatform;
484
+ preferredRegion: string;
485
+ termsAgreement?: TermsAgreement | null;
486
+ };
487
+ type CreateRegisterFormData = CreateFormData<RegisterFormData>;
488
+ type RequestPasswordResetFormData = {
489
+ email: string;
490
+ };
491
+ type CreateRequestPasswordResetFormData = CreateFormData<RequestPasswordResetFormData>;
492
+ type ResetPasswordFormData = {
493
+ confirmPassword: string;
494
+ email: string;
495
+ password: string;
496
+ };
497
+ type CreateResetPasswordFormData = CreateFormData<ResetPasswordFormData>;
498
+ type ValidateVerificationTokenFormData = {
499
+ email: string;
500
+ verificationToken: string;
501
+ };
502
+ type CreateValidateVerificationTokenFormData = CreateFormData<ValidateVerificationTokenFormData>;
503
+
504
+ type ParticipantType = {
505
+ active: boolean;
506
+ email: string;
507
+ userId: string;
508
+ };
509
+ interface ChatMessageInput {
510
+ content: string;
511
+ senderId: string;
512
+ }
513
+ interface ChatMessageType {
514
+ _id?: string;
515
+ content: string;
516
+ createdAt?: string;
517
+ senderAvatar: string | null;
518
+ senderId: string;
519
+ senderName: string;
520
+ updatedAt?: string;
521
+ }
522
+ interface ChatType {
523
+ _id: string;
524
+ active: boolean;
525
+ chatType: EnumChatType;
526
+ chatName: string;
527
+ createdAt: string;
528
+ messages: ChatMessageType[];
529
+ participants: ParticipantType[];
530
+ resourceInfo: {
531
+ eventId: string;
532
+ vendorId: string;
533
+ } | null;
534
+ updatedAt: string;
535
+ deletedAt: string | null;
536
+ }
537
+
538
+ type ContactUsFormData = {
539
+ email: string;
540
+ firstName: string;
541
+ lastName: string;
542
+ message: string;
543
+ };
544
+ type CreateContactUsFormData = CreateFormData<ContactUsFormData>;
545
+
546
+ interface NotificationDataType {
547
+ resourceId: string;
548
+ resourceName: string;
549
+ resourceType: EnumNotificationResourceType;
550
+ }
551
+ type NotificationType = {
552
+ _id: string;
553
+ userId: string;
554
+ title: string;
555
+ message: string;
556
+ isRead: boolean;
557
+ type: EnumNotificationType;
558
+ data: NotificationDataType | null;
559
+ createdAt: string;
560
+ updatedAt: string;
561
+ };
562
+ type NotificationCount = {
563
+ total: number;
564
+ unread: number;
565
+ };
566
+ type CreateBulkNotificationInput = {
567
+ data: NotificationDataType | null;
568
+ message: string;
569
+ title: string;
570
+ type: EnumNotificationType;
571
+ userIds: string[];
572
+ };
573
+
574
+ interface PosterInputType {
575
+ description: string;
576
+ posterName: string;
577
+ resourceId: string;
578
+ resourceType: EnumResourceType;
579
+ }
580
+
581
+ interface TestersFormData {
582
+ categories?: Category[] | null;
583
+ companyName: string;
584
+ email: string;
585
+ firstName: string;
586
+ lastName: string;
587
+ osType: EnumOSPlatform;
588
+ region: string;
589
+ resourceType: EnumResourceType;
590
+ }
591
+ type CreateTestersFormData = CreateFormData<TestersFormData>;
592
+ interface TesterType extends TestersFormData {
593
+ _id: string;
594
+ active: boolean;
595
+ createdAt: string;
596
+ updatedAt: string;
749
597
  }
750
- type OptionItem = {
751
- value: string;
752
- label: string;
598
+
599
+ type UserFormData = {
600
+ _id?: string;
601
+ active: boolean;
602
+ avatar?: ResourceImageType | null;
603
+ avatarUpload?: ResourceImageType | null;
604
+ confirmPassword: string;
605
+ email: string;
606
+ firstName: string;
607
+ lastName: string;
608
+ password: string;
609
+ platform?: EnumOSPlatform;
610
+ preferredRegion: string;
611
+ role: EnumUserRole;
612
+ termsAgreement?: TermsAgreement | null;
753
613
  };
754
- type ImageObjectType = {
755
- uri: string;
756
- type: string;
757
- name: string;
614
+ type CreateUserFormData = CreateFormData<UserFormData>;
615
+ type UserActivityEvent = {
616
+ resourceId: string;
617
+ startDate: string;
618
+ startTime: string;
758
619
  };
759
- interface ResourceConnectionsType {
760
- events: EventType[] | null;
761
- vendors: VendorType[] | null;
762
- }
763
- interface CreateFormData<T extends FieldValues> {
764
- control: Control<T, any>;
765
- fields: T;
766
- formState: {
767
- errors: FieldErrors<T>;
620
+ type UserActivity = {
621
+ favourites: {
622
+ events: string[];
623
+ vendors: string[];
768
624
  };
769
- handleSubmit: UseFormHandleSubmit<T, any>;
770
- reset: UseFormReset<T>;
771
- setValue: UseFormSetValue<T>;
772
- watch: UseFormWatch<T>;
625
+ going: {
626
+ events: UserActivityEvent[];
627
+ };
628
+ interested: {
629
+ events: UserActivityEvent[];
630
+ };
631
+ present: {
632
+ events: UserActivityEvent[];
633
+ };
634
+ };
635
+ interface UserType {
636
+ _id: string;
637
+ active: boolean;
638
+ avatar: ResourceImageType | null;
639
+ createdAt: string;
640
+ deletedAt: string | null;
641
+ email: string;
642
+ events: string[] | null;
643
+ firstName: string;
644
+ isTester: boolean;
645
+ lastName: string;
646
+ licences: EnumUserLicence[] | null;
647
+ partners?: PartnerType[] | null;
648
+ password: string;
649
+ platform: EnumOSPlatform | null;
650
+ preferredRegion: string;
651
+ refreshToken: string | null;
652
+ role: EnumUserRole;
653
+ termsAgreement?: TermsAgreement | null;
654
+ updatedAt: string;
655
+ userActivity: UserActivity | null;
656
+ vendor: string | null;
773
657
  }
774
- type ObjectId = mongoose.Schema.Types.ObjectId;
775
- declare enum EnumPubSubEvents {
776
- GET_CHAT_MESSAGE = "GET_CHAT_MESSAGE",
777
- GET_NOTIFICATIONS = "GET_NOTIFICATIONS",
778
- GET_NOTIFICATIONS_COUNT = "GET_NOTIFICATIONS_COUNT",
779
- USER_TYPING = "USER_TYPING"
658
+
659
+ declare enum EnumAdShowOn {
660
+ FRONT_PAGE = "Front_page",
661
+ EVENTS_PAGE = "Events_page",
662
+ VENDORS_PAGE = "Vendors_page"
780
663
  }
781
- interface AuthUser {
782
- email: string;
783
- role: string;
784
- userId: ObjectId;
664
+ declare enum EnumAdStatus {
665
+ ACTIVE = "Active",
666
+ PAUSED = "Paused",
667
+ EXPIRED = "Expired"
785
668
  }
786
- interface SubscriptionPayload {
787
- getChatMessage?: SchemaChatType;
788
- userTyping?: SchemaChatType;
789
- getNotifications?: SchemaNotificationType[];
790
- getNotificationsUserId?: ObjectId;
791
- getNotificationsCount?: NotificationCount & {
792
- userId: ObjectId;
793
- };
669
+ declare enum EnumAdType {
670
+ SPONSORED = "Sponsored",
671
+ FREE = "Free"
794
672
  }
795
- interface GraphQLContext {
796
- user: AuthUser | null;
797
- pubsub: {
798
- publish: (eventName: EnumPubSubEvents, payload: SubscriptionPayload) => void;
799
- subscribe: (eventName: EnumPubSubEvents) => AsyncIterable<any>;
800
- };
801
- request: Request;
802
- response: Response;
673
+ declare enum EnumAdStyle {
674
+ BLOOM = "Bloom",
675
+ RISE = "Rise"
676
+ }
677
+ interface AdFormData {
678
+ active: boolean;
679
+ adStyle: EnumAdStyle;
680
+ adType: EnumAdType;
681
+ clui?: string | null;
682
+ end: Date;
683
+ resourceCover: string;
684
+ resourceDescription: string;
685
+ resourceId: string;
686
+ resourceLogo?: string | null;
687
+ resourceName: string;
688
+ resourceRegion: string;
689
+ resourceType: EnumResourceType;
690
+ showOn: EnumAdShowOn;
691
+ socialMedia?: SocialMediaType[] | null;
692
+ start?: Date;
693
+ status: EnumAdStatus;
694
+ targetRegion?: string | null;
695
+ }
696
+ type CreateAdFormData = CreateFormData<AdFormData>;
697
+ interface AdType extends AdFormData {
698
+ _id: string;
699
+ clicks?: number;
700
+ createdAt: Date;
701
+ impressions?: number;
702
+ start: Date;
703
+ updatedAt: Date;
803
704
  }
804
705
 
805
- declare const vendorBasicInfoFields: FormField[];
806
- declare const vendorMultiLocation: FormField;
807
- declare const vendorFullAddress: FormField;
808
- declare const vendorStartDateFields: FormDateField[];
809
- declare const vendorEndDateFields: FormDateField[];
810
- declare const vendorAvailability: FormField[];
811
- declare const vendorLocationDescription: FormField;
812
- declare const vendorMenuFields: FormField[];
813
- declare const availableCityOptions: OptionItem[];
814
- declare const productLabelGroups: {
815
- category: string;
816
- items: {
817
- abbreviation: string;
818
- fullName: string;
819
- }[];
820
- }[];
706
+ declare enum EnumActivity {
707
+ FAVORITE = "FAVORITE",
708
+ GOING = "GOING",
709
+ INTERESTED = "INTERESTED",
710
+ PRESENT = "PRESENT",
711
+ VIEW = "VIEW"
712
+ }
713
+ type ResourceActivityEntry = {
714
+ activityType: EnumActivity;
715
+ location: {
716
+ type: "Point";
717
+ coordinates: number[];
718
+ } | null;
719
+ startDate?: string | null;
720
+ startTime?: string | null;
721
+ timestamp: Date;
722
+ userAgent: EnumOSPlatform;
723
+ userId?: string | null;
724
+ };
725
+ type ResourceActivityType = {
726
+ _id: string;
727
+ resourceType: EnumResourceType;
728
+ resourceId: string;
729
+ activity: ResourceActivityEntry[];
730
+ };
731
+ type ResourceActivityInputType = {
732
+ resourceId: string;
733
+ resourceType: string;
734
+ activity: Omit<ResourceActivityEntry, "timestamp">;
735
+ };
821
736
 
822
737
  declare const vendorElectricity: {
823
738
  details: FormField;
@@ -1478,429 +1393,6 @@ declare function useContactUsForm(data?: ContactUsFormData): CreateContactUsForm
1478
1393
 
1479
1394
  declare function useAdForm(data?: AdFormData): CreateAdFormData;
1480
1395
 
1481
- declare const AdModel: mongoose.Model<AdType, {}, {}, {}, mongoose.Document<unknown, {}, AdType, {}, {}> & AdType & Required<{
1482
- _id: string;
1483
- }> & {
1484
- __v: number;
1485
- }, any>;
1486
-
1487
- type SchemaOwnerType = Omit<OwnerType, "userId"> & {
1488
- userId: ObjectId;
1489
- };
1490
- declare const SocialMediaTypeSchema: mongoose.Schema<SocialMediaType, mongoose.Model<SocialMediaType, any, any, any, mongoose.Document<unknown, any, SocialMediaType, any, {}> & SocialMediaType & {
1491
- _id: mongoose.Types.ObjectId;
1492
- } & {
1493
- __v: number;
1494
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialMediaType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialMediaType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialMediaType> & {
1495
- _id: mongoose.Types.ObjectId;
1496
- } & {
1497
- __v: number;
1498
- }>;
1499
- declare const ResourceImageTypeSchema: mongoose.Schema<ResourceImageType, mongoose.Model<ResourceImageType, any, any, any, mongoose.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
1500
- _id: mongoose.Types.ObjectId;
1501
- } & {
1502
- __v: number;
1503
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceImageType> & {
1504
- _id: mongoose.Types.ObjectId;
1505
- } & {
1506
- __v: number;
1507
- }>;
1508
- declare const CategorySchema: mongoose.Schema<Category, mongoose.Model<Category, any, any, any, mongoose.Document<unknown, any, Category, any, {}> & Category & {
1509
- _id: mongoose.Types.ObjectId;
1510
- } & {
1511
- __v: number;
1512
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, Category, mongoose.Document<unknown, {}, mongoose.FlatRecord<Category>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<Category> & {
1513
- _id: mongoose.Types.ObjectId;
1514
- } & {
1515
- __v: number;
1516
- }>;
1517
- declare const partnersSchema: mongoose.Schema<PartnerType, mongoose.Model<PartnerType, any, any, any, mongoose.Document<unknown, any, PartnerType, any, {}> & PartnerType & {
1518
- _id: mongoose.Types.ObjectId;
1519
- } & {
1520
- __v: number;
1521
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, PartnerType, mongoose.Document<unknown, {}, mongoose.FlatRecord<PartnerType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<PartnerType> & {
1522
- _id: mongoose.Types.ObjectId;
1523
- } & {
1524
- __v: number;
1525
- }>;
1526
- declare const termsAgreementSchema: mongoose.Schema<TermsAgreement, mongoose.Model<TermsAgreement, any, any, any, mongoose.Document<unknown, any, TermsAgreement, any, {}> & DeviceInfo & {
1527
- termVersion: string;
1528
- } & {
1529
- _id: mongoose.Types.ObjectId;
1530
- } & {
1531
- __v: number;
1532
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, TermsAgreement, mongoose.Document<unknown, {}, mongoose.FlatRecord<TermsAgreement>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<TermsAgreement> & {
1533
- _id: mongoose.Types.ObjectId;
1534
- } & {
1535
- __v: number;
1536
- }>;
1537
- declare const baseResourceFields: {
1538
- active: {
1539
- default: boolean;
1540
- required: boolean;
1541
- type: BooleanConstructor;
1542
- };
1543
- adIds: {
1544
- ref: string;
1545
- required: boolean;
1546
- type: (typeof mongoose.Schema.Types.ObjectId)[];
1547
- };
1548
- contactDetails: mongoose.Schema<ResourceContactDetailsType, mongoose.Model<ResourceContactDetailsType, any, any, any, mongoose.Document<unknown, any, ResourceContactDetailsType, any, {}> & ResourceContactDetailsType & {
1549
- _id: mongoose.Types.ObjectId;
1550
- } & {
1551
- __v: number;
1552
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceContactDetailsType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceContactDetailsType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceContactDetailsType> & {
1553
- _id: mongoose.Types.ObjectId;
1554
- } & {
1555
- __v: number;
1556
- }>;
1557
- cover: mongoose.Schema<ResourceImageType, mongoose.Model<ResourceImageType, any, any, any, mongoose.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
1558
- _id: mongoose.Types.ObjectId;
1559
- } & {
1560
- __v: number;
1561
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceImageType> & {
1562
- _id: mongoose.Types.ObjectId;
1563
- } & {
1564
- __v: number;
1565
- }>;
1566
- deletedAt: {
1567
- default: null;
1568
- required: boolean;
1569
- type: DateConstructor;
1570
- };
1571
- description: {
1572
- required: boolean;
1573
- type: StringConstructor;
1574
- };
1575
- images: mongoose.Schema<ResourceImageType, mongoose.Model<ResourceImageType, any, any, any, mongoose.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
1576
- _id: mongoose.Types.ObjectId;
1577
- } & {
1578
- __v: number;
1579
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceImageType> & {
1580
- _id: mongoose.Types.ObjectId;
1581
- } & {
1582
- __v: number;
1583
- }>[];
1584
- logo: mongoose.Schema<ResourceImageType, mongoose.Model<ResourceImageType, any, any, any, mongoose.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
1585
- _id: mongoose.Types.ObjectId;
1586
- } & {
1587
- __v: number;
1588
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceImageType> & {
1589
- _id: mongoose.Types.ObjectId;
1590
- } & {
1591
- __v: number;
1592
- }>;
1593
- name: {
1594
- required: boolean;
1595
- type: StringConstructor;
1596
- };
1597
- owner: mongoose.Schema<SchemaOwnerType, mongoose.Model<SchemaOwnerType, any, any, any, mongoose.Document<unknown, any, SchemaOwnerType, any, {}> & Omit<OwnerType, "userId"> & {
1598
- userId: ObjectId;
1599
- } & {
1600
- _id: mongoose.Types.ObjectId;
1601
- } & {
1602
- __v: number;
1603
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaOwnerType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaOwnerType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaOwnerType> & {
1604
- _id: mongoose.Types.ObjectId;
1605
- } & {
1606
- __v: number;
1607
- }>;
1608
- partners: {
1609
- required: boolean;
1610
- type: mongoose.Schema<PartnerType, mongoose.Model<PartnerType, any, any, any, mongoose.Document<unknown, any, PartnerType, any, {}> & PartnerType & {
1611
- _id: mongoose.Types.ObjectId;
1612
- } & {
1613
- __v: number;
1614
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, PartnerType, mongoose.Document<unknown, {}, mongoose.FlatRecord<PartnerType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<PartnerType> & {
1615
- _id: mongoose.Types.ObjectId;
1616
- } & {
1617
- __v: number;
1618
- }>[];
1619
- };
1620
- posterUsage: mongoose.Schema<PosterUsageType, mongoose.Model<PosterUsageType, any, any, any, mongoose.Document<unknown, any, PosterUsageType, any, {}> & PosterUsageType & {
1621
- _id: mongoose.Types.ObjectId;
1622
- } & {
1623
- __v: number;
1624
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, PosterUsageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<PosterUsageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<PosterUsageType> & {
1625
- _id: mongoose.Types.ObjectId;
1626
- } & {
1627
- __v: number;
1628
- }>;
1629
- promoCodes: {
1630
- required: boolean;
1631
- type: StringConstructor[];
1632
- };
1633
- region: {
1634
- required: boolean;
1635
- type: StringConstructor;
1636
- };
1637
- relations: {
1638
- default: never[];
1639
- required: boolean;
1640
- type: mongoose.Schema<{
1641
- relationId: ObjectId;
1642
- relationDates: RelationDate[];
1643
- }, mongoose.Model<{
1644
- relationId: ObjectId;
1645
- relationDates: RelationDate[];
1646
- }, any, any, any, mongoose.Document<unknown, any, {
1647
- relationId: ObjectId;
1648
- relationDates: RelationDate[];
1649
- }, any, {}> & {
1650
- relationId: ObjectId;
1651
- relationDates: RelationDate[];
1652
- } & {
1653
- _id: mongoose.Types.ObjectId;
1654
- } & {
1655
- __v: number;
1656
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
1657
- relationId: ObjectId;
1658
- relationDates: RelationDate[];
1659
- }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
1660
- relationId: ObjectId;
1661
- relationDates: RelationDate[];
1662
- }>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<{
1663
- relationId: ObjectId;
1664
- relationDates: RelationDate[];
1665
- }> & {
1666
- _id: mongoose.Types.ObjectId;
1667
- } & {
1668
- __v: number;
1669
- }>[];
1670
- };
1671
- socialMedia: mongoose.Schema<SocialMediaType, mongoose.Model<SocialMediaType, any, any, any, mongoose.Document<unknown, any, SocialMediaType, any, {}> & SocialMediaType & {
1672
- _id: mongoose.Types.ObjectId;
1673
- } & {
1674
- __v: number;
1675
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialMediaType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialMediaType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialMediaType> & {
1676
- _id: mongoose.Types.ObjectId;
1677
- } & {
1678
- __v: number;
1679
- }>[];
1680
- termsAgreement: mongoose.Schema<TermsAgreement, mongoose.Model<TermsAgreement, any, any, any, mongoose.Document<unknown, any, TermsAgreement, any, {}> & DeviceInfo & {
1681
- termVersion: string;
1682
- } & {
1683
- _id: mongoose.Types.ObjectId;
1684
- } & {
1685
- __v: number;
1686
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, TermsAgreement, mongoose.Document<unknown, {}, mongoose.FlatRecord<TermsAgreement>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<TermsAgreement> & {
1687
- _id: mongoose.Types.ObjectId;
1688
- } & {
1689
- __v: number;
1690
- }>;
1691
- };
1692
-
1693
- type PushTokenType = {
1694
- _id: string;
1695
- createdAt: Date;
1696
- platform: EnumOSPlatform;
1697
- token: string;
1698
- updatedAt: Date;
1699
- userId: string;
1700
- };
1701
- type SchemaPushTokenType = Omit<PushTokenType, "userId"> & {
1702
- userId: ObjectId;
1703
- };
1704
- declare const PushTokenModel: mongoose.Model<SchemaPushTokenType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaPushTokenType, {}, {}> & Omit<PushTokenType, "userId"> & {
1705
- userId: ObjectId;
1706
- } & Required<{
1707
- _id: string;
1708
- }> & {
1709
- __v: number;
1710
- }, any>;
1711
-
1712
- declare const relationDatesSchema: mongoose.Schema<RelationDate, mongoose.Model<RelationDate, any, any, any, mongoose.Document<unknown, any, RelationDate, any, {}> & RelationDate & {
1713
- _id: mongoose.Types.ObjectId;
1714
- } & {
1715
- __v: number;
1716
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, RelationDate, mongoose.Document<unknown, {}, mongoose.FlatRecord<RelationDate>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<RelationDate> & {
1717
- _id: mongoose.Types.ObjectId;
1718
- } & {
1719
- __v: number;
1720
- }>;
1721
- type SchemaRelationType = Omit<RelationType, "chatId" | "eventId" | "vendorId"> & {
1722
- chatId: ObjectId;
1723
- eventId: ObjectId;
1724
- vendorId: ObjectId;
1725
- };
1726
- /**
1727
- * This is the schema for the relation type.
1728
- * It is used to define the structure of the relation type in the database.
1729
- * The schema is used by Mongoose to create a model for the relation type.
1730
- */
1731
- declare const RelationTypeSchema: mongoose.Schema<SchemaRelationType, mongoose.Model<SchemaRelationType, any, any, any, mongoose.Document<unknown, any, SchemaRelationType, any, {}> & Omit<RelationType, "eventId" | "vendorId" | "chatId"> & {
1732
- chatId: ObjectId;
1733
- eventId: ObjectId;
1734
- vendorId: ObjectId;
1735
- } & Required<{
1736
- _id: string;
1737
- }> & {
1738
- __v: number;
1739
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaRelationType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaRelationType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaRelationType> & Required<{
1740
- _id: string;
1741
- }> & {
1742
- __v: number;
1743
- }>;
1744
- declare const RelationModel: mongoose.Model<SchemaRelationType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaRelationType, {}, {}> & Omit<RelationType, "eventId" | "vendorId" | "chatId"> & {
1745
- chatId: ObjectId;
1746
- eventId: ObjectId;
1747
- vendorId: ObjectId;
1748
- } & Required<{
1749
- _id: string;
1750
- }> & {
1751
- __v: number;
1752
- }, any>;
1753
-
1754
- declare const ResourceActivityModel: mongoose.Model<ResourceActivityType, {}, {}, {}, mongoose.Document<unknown, {}, ResourceActivityType, {}, {}> & ResourceActivityType & Required<{
1755
- _id: string;
1756
- }> & {
1757
- __v: number;
1758
- }, any>;
1759
-
1760
- declare const TesterModel: mongoose.Model<TesterType, {}, {}, {}, mongoose.Document<unknown, {}, TesterType, {}, {}> & TesterType & Required<{
1761
- _id: string;
1762
- }> & {
1763
- __v: number;
1764
- }, any>;
1765
-
1766
- type SchemaUserActivityEvent = Omit<UserActivityEvent, "resourceId"> & {
1767
- resourceId: ObjectId;
1768
- };
1769
- type SchemaUserType = Omit<UserType, "vendor" | "events" | "userActivity" | "_id"> & {
1770
- _id: ObjectId;
1771
- vendor: ObjectId;
1772
- events: ObjectId[];
1773
- userActivity: {
1774
- favourites: {
1775
- events: ObjectId[];
1776
- vendors: ObjectId[];
1777
- };
1778
- interested: {
1779
- events: SchemaUserActivityEvent[];
1780
- };
1781
- going: {
1782
- events: SchemaUserActivityEvent[];
1783
- };
1784
- present: {
1785
- events: SchemaUserActivityEvent[];
1786
- };
1787
- };
1788
- };
1789
- declare const UserModel: mongoose.Model<SchemaUserType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "vendor" | "_id" | "events" | "userActivity"> & {
1790
- _id: ObjectId;
1791
- vendor: ObjectId;
1792
- events: ObjectId[];
1793
- userActivity: {
1794
- favourites: {
1795
- events: ObjectId[];
1796
- vendors: ObjectId[];
1797
- };
1798
- interested: {
1799
- events: SchemaUserActivityEvent[];
1800
- };
1801
- going: {
1802
- events: SchemaUserActivityEvent[];
1803
- };
1804
- present: {
1805
- events: SchemaUserActivityEvent[];
1806
- };
1807
- };
1808
- } & Required<{
1809
- _id: mongoose.Schema.Types.ObjectId;
1810
- }> & {
1811
- __v: number;
1812
- }, any>;
1813
-
1814
- interface VerificationTokenType {
1815
- email: string;
1816
- verificationToken: string;
1817
- createdAt: Date;
1818
- }
1819
- declare const VerificationTokenModel: mongoose.Model<VerificationTokenType, {}, {}, {}, mongoose.Document<unknown, {}, VerificationTokenType, {}, {}> & VerificationTokenType & {
1820
- _id: mongoose.Types.ObjectId;
1821
- } & {
1822
- __v: number;
1823
- }, any>;
1824
-
1825
- type SchemaVendorType = Omit<VendorType, "vendorInfoId" | "owner" | "adIds"> & {
1826
- adIds?: ObjectId[];
1827
- owner: SchemaOwnerType;
1828
- vendorInfoId: ObjectId;
1829
- };
1830
- declare const VendorModel: mongoose.Model<SchemaVendorType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "owner" | "vendorInfoId" | "adIds"> & {
1831
- adIds?: ObjectId[];
1832
- owner: SchemaOwnerType;
1833
- vendorInfoId: ObjectId;
1834
- } & Required<{
1835
- _id: string;
1836
- }> & {
1837
- __v: number;
1838
- }, any>;
1839
-
1840
- type SchemaVendorInfoType = Omit<VendorInfoType, "vendorId"> & {
1841
- vendorId: ObjectId;
1842
- };
1843
- declare const VendorInfoModel: mongoose.Model<SchemaVendorInfoType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorInfoType, {}, {}> & Omit<VendorInfoType, "vendorId"> & {
1844
- vendorId: ObjectId;
1845
- } & Required<{
1846
- _id: string;
1847
- }> & {
1848
- __v: number;
1849
- }, any>;
1850
-
1851
- type SchemaEventType = Omit<EventType, "eventInfoId" | "owner" | "adIds"> & {
1852
- adIds?: ObjectId[];
1853
- eventInfoId: ObjectId;
1854
- owner: SchemaOwnerType;
1855
- };
1856
- declare const EventModel: mongoose.Model<SchemaEventType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "owner" | "adIds" | "eventInfoId"> & {
1857
- adIds?: ObjectId[];
1858
- eventInfoId: ObjectId;
1859
- owner: SchemaOwnerType;
1860
- } & Required<{
1861
- _id: string;
1862
- }> & {
1863
- __v: number;
1864
- }, any>;
1865
-
1866
- declare const StallTypeSchema: mongoose.Schema<StallType, mongoose.Model<StallType, any, any, any, mongoose.Document<unknown, any, StallType, any, {}> & StallType & {
1867
- _id: mongoose.Types.ObjectId;
1868
- } & {
1869
- __v: number;
1870
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, StallType, mongoose.Document<unknown, {}, mongoose.FlatRecord<StallType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<StallType> & {
1871
- _id: mongoose.Types.ObjectId;
1872
- } & {
1873
- __v: number;
1874
- }>;
1875
- type SchemaEventInfoType = Omit<EventInfoType, "eventId"> & {
1876
- eventId: ObjectId;
1877
- };
1878
- declare const EventInfoModel: mongoose.Model<SchemaEventInfoType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventInfoType, {}, {}> & Omit<EventInfoType, "eventId"> & {
1879
- eventId: ObjectId;
1880
- } & Required<{
1881
- _id: string;
1882
- }> & {
1883
- __v: number;
1884
- }, any>;
1885
-
1886
- /**
1887
- * Connect to MongoDB using Mongoose.
1888
- * Supports both local MongoDB (via MONGODB_URI) and MongoDB Atlas (via individual env vars).
1889
- */
1890
- declare const connectToDatabase: ({ appName, dbName, dbPassword, dbUser, mongodbUri, }: {
1891
- appName: string;
1892
- dbName: string;
1893
- dbPassword: string;
1894
- dbUser: string;
1895
- mongodbUri: string;
1896
- }) => Promise<void>;
1897
-
1898
- /**
1899
- * Create notifications in the database for multiple users
1900
- * This is typically called when sending push notifications
1901
- */
1902
- declare function saveNotificationsInDb(payload: SchemaCreateBulkNotificationInput): Promise<ObjectId[]>;
1903
-
1904
1396
  declare const SAVED_PASSWORD_KEY = "savedPassword";
1905
1397
  declare const SAVED_EMAIL_KEY = "savedEmail";
1906
1398
  declare const SAVED_TOKEN_KEY = "savedToken";
@@ -2003,4 +1495,4 @@ declare const availableRegionOptions: OptionItem[];
2003
1495
  declare const paymentMethodOptions: OptionItem[];
2004
1496
  declare function normalizeUrl(url: string): string;
2005
1497
 
2006
- export { type AdFormData, AdModel, type AdType, type AdminUpdateResourceType, type AuthUser, type BaseResourceType, type BaseResourceTypeFormData, type Category, CategorySchema, type ChatMessageInput, type ChatMessageType, ChatModel, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventType, EnumFoodFlavor, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumPubSubEvents, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, EventInfoModel, type EventInfoType, EventModel, type EventType, type FormDateField, type FormField, type GeocodeLocation, type GraphQLContext, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, NotificationModel, type NotificationType, type Nullable, type ObjectId, type OptionItem, type OwnerType, ParticipantSchema, type ParticipantType, type PartnerType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, PushTokenModel, type Region, type RegisterFormData, type RelationDate, RelationModel, type RelationType, RelationTypeSchema, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, ResourceActivityModel, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, ResourceImageTypeSchema, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, 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, type SocialMediaType, SocialMediaTypeSchema, type StallType, StallTypeSchema, type Subcategory, type SubcategoryItems, type SubscriptionPayload, type TermsAgreement, TesterModel, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserActivity, type UserActivityEvent, type UserFormData, UserModel, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, VendorInfoModel, type VendorInfoType, type VendorLocation, type VendorMenuType, VendorModel, type VendorType, VerificationTokenModel, type VerificationTokenType, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, baseResourceFields, capitalizeFirstLetter, categoryColors, companyContactFields, connectToDatabase, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultRegion, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnersSchema, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, relationDatesSchema, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, saveNotificationsInDb, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, termsAgreementSchema, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivities, useGetResourceConnections, useGetTester, useGetTesters, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useTestersForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
1498
+ export { type AdFormData, type AdType, type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventType, EnumFoodFlavor, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PartnerType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type Subcategory, type SubcategoryItems, type TermsAgreement, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserActivity, type UserActivityEvent, type UserFormData, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, type VendorType, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultRegion, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivities, useGetResourceConnections, useGetTester, useGetTesters, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useTestersForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };