@timardex/cluemart-shared 1.2.28 → 1.2.30

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 (42) hide show
  1. package/dist/{ad-ZnPU3uan.d.ts → ad-C02AZIGy.d.ts} +1 -1
  2. package/dist/{ad-C-0i99zR.d.mts → ad-CTWMmc7b.d.mts} +1 -1
  3. package/dist/{auth-Ddkaba1k.d.mts → auth-YsJJnj12.d.mts} +1 -1
  4. package/dist/{auth-BRY-YJss.d.ts → auth-o_ns6gLk.d.ts} +1 -1
  5. package/dist/chunk-BO3HICLR.mjs +24 -0
  6. package/dist/chunk-BO3HICLR.mjs.map +1 -0
  7. package/dist/chunk-O6LVIQFK.mjs +66 -0
  8. package/dist/chunk-O6LVIQFK.mjs.map +1 -0
  9. package/dist/formFields/index.d.mts +1 -1
  10. package/dist/formFields/index.d.ts +1 -1
  11. package/dist/{global-IDogsFQv.d.ts → global-4lS-fh61.d.ts} +37 -4
  12. package/dist/{global-DlaX2SCk.d.mts → global-_ZHkOcnR.d.mts} +37 -4
  13. package/dist/graphql/index.d.mts +2 -2
  14. package/dist/graphql/index.d.ts +2 -2
  15. package/dist/hooks/index.d.mts +3 -3
  16. package/dist/hooks/index.d.ts +3 -3
  17. package/dist/hooks/index.mjs +5 -5
  18. package/dist/index.cjs +1157 -26
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.d.mts +468 -1
  21. package/dist/index.d.ts +468 -1
  22. package/dist/index.mjs +1130 -26
  23. package/dist/index.mjs.map +1 -1
  24. package/dist/mongoose/index.cjs +1097 -0
  25. package/dist/mongoose/index.cjs.map +1 -0
  26. package/dist/mongoose/index.d.mts +422 -0
  27. package/dist/mongoose/index.d.ts +422 -0
  28. package/dist/mongoose/index.mjs +874 -0
  29. package/dist/mongoose/index.mjs.map +1 -0
  30. package/dist/service/index.cjs +334 -0
  31. package/dist/service/index.cjs.map +1 -0
  32. package/dist/service/index.d.mts +27 -0
  33. package/dist/service/index.d.ts +27 -0
  34. package/dist/service/index.mjs +214 -0
  35. package/dist/service/index.mjs.map +1 -0
  36. package/dist/types/index.d.mts +3 -3
  37. package/dist/types/index.d.ts +3 -3
  38. package/dist/types/index.mjs +4 -19
  39. package/dist/types/index.mjs.map +1 -1
  40. package/dist/utils/index.d.mts +1 -1
  41. package/dist/utils/index.d.ts +1 -1
  42. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -567,10 +567,43 @@ type SchemaChatType = Omit<ChatType, "participants" | "messages" | "resourceInfo
567
567
  vendorId: ObjectId;
568
568
  } | null;
569
569
  };
570
+ declare const ParticipantSchema: mongoose.Schema<SchemaParticipantType, mongoose.Model<SchemaParticipantType, any, any, any, mongoose.Document<unknown, any, SchemaParticipantType, any, {}> & Omit<ParticipantType, "userId"> & {
571
+ userId: ObjectId;
572
+ } & {
573
+ _id: mongoose.Types.ObjectId;
574
+ } & {
575
+ __v: number;
576
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaParticipantType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaParticipantType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaParticipantType> & {
577
+ _id: mongoose.Types.ObjectId;
578
+ } & {
579
+ __v: number;
580
+ }>;
581
+ declare const ChatModel: mongoose.Model<SchemaChatType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaChatType, {}, {}> & Omit<ChatType, "participants" | "messages" | "resourceInfo"> & {
582
+ participants: SchemaParticipantType[];
583
+ messages: SchemaChatMessageType[];
584
+ resourceInfo: {
585
+ eventId: ObjectId;
586
+ vendorId: ObjectId;
587
+ } | null;
588
+ } & Required<{
589
+ _id: string;
590
+ }> & {
591
+ __v: number;
592
+ }, any>;
570
593
 
594
+ type SchemaCreateBulkNotificationInput = Omit<CreateBulkNotificationInput, "userIds"> & {
595
+ userIds: ObjectId[];
596
+ };
571
597
  type SchemaNotificationType = Omit<NotificationType, "userId"> & {
572
598
  userId: ObjectId;
573
599
  };
600
+ declare const NotificationModel: mongoose.Model<SchemaNotificationType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaNotificationType, {}, {}> & Omit<NotificationType, "userId"> & {
601
+ userId: ObjectId;
602
+ } & Required<{
603
+ _id: string;
604
+ }> & {
605
+ __v: number;
606
+ }, any>;
574
607
 
575
608
  type Nullable<T> = {
576
609
  [K in keyof T]: T[K] | null | undefined;
@@ -1443,6 +1476,440 @@ declare function useContactUsForm(data?: ContactUsFormData): CreateContactUsForm
1443
1476
 
1444
1477
  declare function useAdForm(data?: AdFormData): CreateAdFormData;
1445
1478
 
1479
+ declare const AdModel: mongoose.Model<AdType, {}, {}, {}, mongoose.Document<unknown, {}, AdType, {}, {}> & AdType & Required<{
1480
+ _id: string;
1481
+ }> & {
1482
+ __v: number;
1483
+ }, any>;
1484
+
1485
+ type SchemaOwnerType = Omit<OwnerType, "userId"> & {
1486
+ userId: ObjectId;
1487
+ };
1488
+ declare const SocialMediaTypeSchema: mongoose.Schema<SocialMediaType, mongoose.Model<SocialMediaType, any, any, any, mongoose.Document<unknown, any, SocialMediaType, any, {}> & SocialMediaType & {
1489
+ _id: mongoose.Types.ObjectId;
1490
+ } & {
1491
+ __v: number;
1492
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialMediaType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialMediaType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialMediaType> & {
1493
+ _id: mongoose.Types.ObjectId;
1494
+ } & {
1495
+ __v: number;
1496
+ }>;
1497
+ declare const ResourceImageTypeSchema: mongoose.Schema<ResourceImageType, mongoose.Model<ResourceImageType, any, any, any, mongoose.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
1498
+ _id: mongoose.Types.ObjectId;
1499
+ } & {
1500
+ __v: number;
1501
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceImageType> & {
1502
+ _id: mongoose.Types.ObjectId;
1503
+ } & {
1504
+ __v: number;
1505
+ }>;
1506
+ declare const CategorySchema: mongoose.Schema<Category, mongoose.Model<Category, any, any, any, mongoose.Document<unknown, any, Category, any, {}> & Category & {
1507
+ _id: mongoose.Types.ObjectId;
1508
+ } & {
1509
+ __v: number;
1510
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, Category, mongoose.Document<unknown, {}, mongoose.FlatRecord<Category>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<Category> & {
1511
+ _id: mongoose.Types.ObjectId;
1512
+ } & {
1513
+ __v: number;
1514
+ }>;
1515
+ declare const partnersSchema: mongoose.Schema<PartnerType, mongoose.Model<PartnerType, any, any, any, mongoose.Document<unknown, any, PartnerType, any, {}> & PartnerType & {
1516
+ _id: mongoose.Types.ObjectId;
1517
+ } & {
1518
+ __v: number;
1519
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, PartnerType, mongoose.Document<unknown, {}, mongoose.FlatRecord<PartnerType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<PartnerType> & {
1520
+ _id: mongoose.Types.ObjectId;
1521
+ } & {
1522
+ __v: number;
1523
+ }>;
1524
+ declare const termsAgreementSchema: mongoose.Schema<TermsAgreement, mongoose.Model<TermsAgreement, any, any, any, mongoose.Document<unknown, any, TermsAgreement, any, {}> & DeviceInfo & {
1525
+ termVersion: string;
1526
+ } & {
1527
+ _id: mongoose.Types.ObjectId;
1528
+ } & {
1529
+ __v: number;
1530
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, TermsAgreement, mongoose.Document<unknown, {}, mongoose.FlatRecord<TermsAgreement>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<TermsAgreement> & {
1531
+ _id: mongoose.Types.ObjectId;
1532
+ } & {
1533
+ __v: number;
1534
+ }>;
1535
+ declare const baseResourceFields: {
1536
+ active: {
1537
+ default: boolean;
1538
+ required: boolean;
1539
+ type: BooleanConstructor;
1540
+ };
1541
+ adIds: {
1542
+ ref: string;
1543
+ required: boolean;
1544
+ type: (typeof mongoose.Schema.Types.ObjectId)[];
1545
+ };
1546
+ contactDetails: mongoose.Schema<ResourceContactDetailsType, mongoose.Model<ResourceContactDetailsType, any, any, any, mongoose.Document<unknown, any, ResourceContactDetailsType, any, {}> & ResourceContactDetailsType & {
1547
+ _id: mongoose.Types.ObjectId;
1548
+ } & {
1549
+ __v: number;
1550
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceContactDetailsType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceContactDetailsType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceContactDetailsType> & {
1551
+ _id: mongoose.Types.ObjectId;
1552
+ } & {
1553
+ __v: number;
1554
+ }>;
1555
+ cover: mongoose.Schema<ResourceImageType, mongoose.Model<ResourceImageType, any, any, any, mongoose.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
1556
+ _id: mongoose.Types.ObjectId;
1557
+ } & {
1558
+ __v: number;
1559
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceImageType> & {
1560
+ _id: mongoose.Types.ObjectId;
1561
+ } & {
1562
+ __v: number;
1563
+ }>;
1564
+ deletedAt: {
1565
+ default: null;
1566
+ required: boolean;
1567
+ type: DateConstructor;
1568
+ };
1569
+ description: {
1570
+ required: boolean;
1571
+ type: StringConstructor;
1572
+ };
1573
+ images: mongoose.Schema<ResourceImageType, mongoose.Model<ResourceImageType, any, any, any, mongoose.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
1574
+ _id: mongoose.Types.ObjectId;
1575
+ } & {
1576
+ __v: number;
1577
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceImageType> & {
1578
+ _id: mongoose.Types.ObjectId;
1579
+ } & {
1580
+ __v: number;
1581
+ }>[];
1582
+ logo: mongoose.Schema<ResourceImageType, mongoose.Model<ResourceImageType, any, any, any, mongoose.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
1583
+ _id: mongoose.Types.ObjectId;
1584
+ } & {
1585
+ __v: number;
1586
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceImageType> & {
1587
+ _id: mongoose.Types.ObjectId;
1588
+ } & {
1589
+ __v: number;
1590
+ }>;
1591
+ name: {
1592
+ required: boolean;
1593
+ type: StringConstructor;
1594
+ };
1595
+ owner: mongoose.Schema<SchemaOwnerType, mongoose.Model<SchemaOwnerType, any, any, any, mongoose.Document<unknown, any, SchemaOwnerType, any, {}> & Omit<OwnerType, "userId"> & {
1596
+ userId: ObjectId;
1597
+ } & {
1598
+ _id: mongoose.Types.ObjectId;
1599
+ } & {
1600
+ __v: number;
1601
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaOwnerType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaOwnerType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaOwnerType> & {
1602
+ _id: mongoose.Types.ObjectId;
1603
+ } & {
1604
+ __v: number;
1605
+ }>;
1606
+ partners: {
1607
+ required: boolean;
1608
+ type: mongoose.Schema<PartnerType, mongoose.Model<PartnerType, any, any, any, mongoose.Document<unknown, any, PartnerType, any, {}> & PartnerType & {
1609
+ _id: mongoose.Types.ObjectId;
1610
+ } & {
1611
+ __v: number;
1612
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, PartnerType, mongoose.Document<unknown, {}, mongoose.FlatRecord<PartnerType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<PartnerType> & {
1613
+ _id: mongoose.Types.ObjectId;
1614
+ } & {
1615
+ __v: number;
1616
+ }>[];
1617
+ };
1618
+ posterUsage: mongoose.Schema<PosterUsageType, mongoose.Model<PosterUsageType, any, any, any, mongoose.Document<unknown, any, PosterUsageType, any, {}> & PosterUsageType & {
1619
+ _id: mongoose.Types.ObjectId;
1620
+ } & {
1621
+ __v: number;
1622
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, PosterUsageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<PosterUsageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<PosterUsageType> & {
1623
+ _id: mongoose.Types.ObjectId;
1624
+ } & {
1625
+ __v: number;
1626
+ }>;
1627
+ promoCodes: {
1628
+ required: boolean;
1629
+ type: StringConstructor[];
1630
+ };
1631
+ region: {
1632
+ required: boolean;
1633
+ type: StringConstructor;
1634
+ };
1635
+ relations: {
1636
+ default: never[];
1637
+ required: boolean;
1638
+ type: mongoose.Schema<{
1639
+ relationId: ObjectId;
1640
+ relationDates: RelationDate[];
1641
+ }, mongoose.Model<{
1642
+ relationId: ObjectId;
1643
+ relationDates: RelationDate[];
1644
+ }, any, any, any, mongoose.Document<unknown, any, {
1645
+ relationId: ObjectId;
1646
+ relationDates: RelationDate[];
1647
+ }, any, {}> & {
1648
+ relationId: ObjectId;
1649
+ relationDates: RelationDate[];
1650
+ } & {
1651
+ _id: mongoose.Types.ObjectId;
1652
+ } & {
1653
+ __v: number;
1654
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
1655
+ relationId: ObjectId;
1656
+ relationDates: RelationDate[];
1657
+ }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
1658
+ relationId: ObjectId;
1659
+ relationDates: RelationDate[];
1660
+ }>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<{
1661
+ relationId: ObjectId;
1662
+ relationDates: RelationDate[];
1663
+ }> & {
1664
+ _id: mongoose.Types.ObjectId;
1665
+ } & {
1666
+ __v: number;
1667
+ }>[];
1668
+ };
1669
+ socialMedia: mongoose.Schema<SocialMediaType, mongoose.Model<SocialMediaType, any, any, any, mongoose.Document<unknown, any, SocialMediaType, any, {}> & SocialMediaType & {
1670
+ _id: mongoose.Types.ObjectId;
1671
+ } & {
1672
+ __v: number;
1673
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialMediaType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialMediaType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialMediaType> & {
1674
+ _id: mongoose.Types.ObjectId;
1675
+ } & {
1676
+ __v: number;
1677
+ }>[];
1678
+ termsAgreement: mongoose.Schema<TermsAgreement, mongoose.Model<TermsAgreement, any, any, any, mongoose.Document<unknown, any, TermsAgreement, any, {}> & DeviceInfo & {
1679
+ termVersion: string;
1680
+ } & {
1681
+ _id: mongoose.Types.ObjectId;
1682
+ } & {
1683
+ __v: number;
1684
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, TermsAgreement, mongoose.Document<unknown, {}, mongoose.FlatRecord<TermsAgreement>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<TermsAgreement> & {
1685
+ _id: mongoose.Types.ObjectId;
1686
+ } & {
1687
+ __v: number;
1688
+ }>;
1689
+ };
1690
+
1691
+ type PushTokenType = {
1692
+ _id: string;
1693
+ createdAt: Date;
1694
+ platform: EnumOSPlatform;
1695
+ token: string;
1696
+ updatedAt: Date;
1697
+ userId: string;
1698
+ };
1699
+ type SchemaPushTokenType = Omit<PushTokenType, "userId"> & {
1700
+ userId: ObjectId;
1701
+ };
1702
+ declare const PushTokenModel: mongoose.Model<SchemaPushTokenType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaPushTokenType, {}, {}> & Omit<PushTokenType, "userId"> & {
1703
+ userId: ObjectId;
1704
+ } & Required<{
1705
+ _id: string;
1706
+ }> & {
1707
+ __v: number;
1708
+ }, any>;
1709
+
1710
+ declare const relationDatesSchema: mongoose.Schema<RelationDate, mongoose.Model<RelationDate, any, any, any, mongoose.Document<unknown, any, RelationDate, any, {}> & RelationDate & {
1711
+ _id: mongoose.Types.ObjectId;
1712
+ } & {
1713
+ __v: number;
1714
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, RelationDate, mongoose.Document<unknown, {}, mongoose.FlatRecord<RelationDate>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<RelationDate> & {
1715
+ _id: mongoose.Types.ObjectId;
1716
+ } & {
1717
+ __v: number;
1718
+ }>;
1719
+ type SchemaRelationType = Omit<RelationType, "chatId" | "eventId" | "vendorId"> & {
1720
+ chatId: ObjectId;
1721
+ eventId: ObjectId;
1722
+ vendorId: ObjectId;
1723
+ };
1724
+ /**
1725
+ * This is the schema for the relation type.
1726
+ * It is used to define the structure of the relation type in the database.
1727
+ * The schema is used by Mongoose to create a model for the relation type.
1728
+ */
1729
+ declare const RelationTypeSchema: mongoose.Schema<SchemaRelationType, mongoose.Model<SchemaRelationType, any, any, any, mongoose.Document<unknown, any, SchemaRelationType, any, {}> & Omit<RelationType, "eventId" | "vendorId" | "chatId"> & {
1730
+ chatId: ObjectId;
1731
+ eventId: ObjectId;
1732
+ vendorId: ObjectId;
1733
+ } & Required<{
1734
+ _id: string;
1735
+ }> & {
1736
+ __v: number;
1737
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaRelationType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaRelationType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaRelationType> & Required<{
1738
+ _id: string;
1739
+ }> & {
1740
+ __v: number;
1741
+ }>;
1742
+ declare const RelationModel: mongoose.Model<SchemaRelationType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaRelationType, {}, {}> & Omit<RelationType, "eventId" | "vendorId" | "chatId"> & {
1743
+ chatId: ObjectId;
1744
+ eventId: ObjectId;
1745
+ vendorId: ObjectId;
1746
+ } & Required<{
1747
+ _id: string;
1748
+ }> & {
1749
+ __v: number;
1750
+ }, any>;
1751
+
1752
+ declare const ResourceActivityModel: mongoose.Model<ResourceActivityType, {}, {}, {}, mongoose.Document<unknown, {}, ResourceActivityType, {}, mongoose.DefaultSchemaOptions> & ResourceActivityType & Required<{
1753
+ _id: string;
1754
+ }> & {
1755
+ __v: number;
1756
+ }, mongoose.Schema<ResourceActivityType, mongoose.Model<ResourceActivityType, any, any, any, mongoose.Document<unknown, any, ResourceActivityType, any, {}> & ResourceActivityType & Required<{
1757
+ _id: string;
1758
+ }> & {
1759
+ __v: number;
1760
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceActivityType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceActivityType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceActivityType> & Required<{
1761
+ _id: string;
1762
+ }> & {
1763
+ __v: number;
1764
+ }>>;
1765
+
1766
+ declare const TesterModel: mongoose.Model<TesterType, {}, {}, {}, mongoose.Document<unknown, {}, TesterType, {}, {}> & TesterType & Required<{
1767
+ _id: string;
1768
+ }> & {
1769
+ __v: number;
1770
+ }, any>;
1771
+
1772
+ type SchemaUserActivityEvent = Omit<UserActivityEvent, "resourceId"> & {
1773
+ resourceId: ObjectId;
1774
+ };
1775
+ type SchemaUserType = Omit<UserType, "vendor" | "events" | "userActivity" | "_id"> & {
1776
+ _id: ObjectId;
1777
+ vendor: ObjectId;
1778
+ events: ObjectId[];
1779
+ userActivity: {
1780
+ favourites: {
1781
+ events: ObjectId[];
1782
+ vendors: ObjectId[];
1783
+ };
1784
+ interested: {
1785
+ events: SchemaUserActivityEvent[];
1786
+ };
1787
+ going: {
1788
+ events: SchemaUserActivityEvent[];
1789
+ };
1790
+ present: {
1791
+ events: SchemaUserActivityEvent[];
1792
+ };
1793
+ };
1794
+ };
1795
+ declare const UserModel: mongoose.Model<SchemaUserType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "vendor" | "_id" | "events" | "userActivity"> & {
1796
+ _id: ObjectId;
1797
+ vendor: ObjectId;
1798
+ events: ObjectId[];
1799
+ userActivity: {
1800
+ favourites: {
1801
+ events: ObjectId[];
1802
+ vendors: ObjectId[];
1803
+ };
1804
+ interested: {
1805
+ events: SchemaUserActivityEvent[];
1806
+ };
1807
+ going: {
1808
+ events: SchemaUserActivityEvent[];
1809
+ };
1810
+ present: {
1811
+ events: SchemaUserActivityEvent[];
1812
+ };
1813
+ };
1814
+ } & Required<{
1815
+ _id: mongoose.Schema.Types.ObjectId;
1816
+ }> & {
1817
+ __v: number;
1818
+ }, any>;
1819
+
1820
+ interface VerificationTokenType {
1821
+ email: string;
1822
+ verificationToken: string;
1823
+ createdAt: Date;
1824
+ }
1825
+ declare const VerificationTokenModel: mongoose.Model<VerificationTokenType, {}, {}, {}, mongoose.Document<unknown, {}, VerificationTokenType, {}, {}> & VerificationTokenType & {
1826
+ _id: mongoose.Types.ObjectId;
1827
+ } & {
1828
+ __v: number;
1829
+ }, any>;
1830
+
1831
+ type SchemaVendorType = Omit<VendorType, "vendorInfoId" | "owner" | "adIds"> & {
1832
+ adIds?: ObjectId[];
1833
+ owner: SchemaOwnerType;
1834
+ vendorInfoId: ObjectId;
1835
+ };
1836
+ declare const VendorModel: mongoose.Model<SchemaVendorType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "owner" | "vendorInfoId" | "adIds"> & {
1837
+ adIds?: ObjectId[];
1838
+ owner: SchemaOwnerType;
1839
+ vendorInfoId: ObjectId;
1840
+ } & Required<{
1841
+ _id: string;
1842
+ }> & {
1843
+ __v: number;
1844
+ }, any>;
1845
+
1846
+ type SchemaVendorInfoType = Omit<VendorInfoType, "vendorId"> & {
1847
+ vendorId: ObjectId;
1848
+ };
1849
+ declare const VendorInfoModel: mongoose.Model<SchemaVendorInfoType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorInfoType, {}, {}> & Omit<VendorInfoType, "vendorId"> & {
1850
+ vendorId: ObjectId;
1851
+ } & Required<{
1852
+ _id: string;
1853
+ }> & {
1854
+ __v: number;
1855
+ }, any>;
1856
+
1857
+ type SchemaEventType = Omit<EventType, "eventInfoId" | "owner" | "adIds"> & {
1858
+ adIds?: ObjectId[];
1859
+ eventInfoId: ObjectId;
1860
+ owner: SchemaOwnerType;
1861
+ };
1862
+ declare const EventModel: mongoose.Model<SchemaEventType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "owner" | "adIds" | "eventInfoId"> & {
1863
+ adIds?: ObjectId[];
1864
+ eventInfoId: ObjectId;
1865
+ owner: SchemaOwnerType;
1866
+ } & Required<{
1867
+ _id: string;
1868
+ }> & {
1869
+ __v: number;
1870
+ }, any>;
1871
+
1872
+ declare const StallTypeSchema: mongoose.Schema<StallType, mongoose.Model<StallType, any, any, any, mongoose.Document<unknown, any, StallType, any, {}> & StallType & {
1873
+ _id: mongoose.Types.ObjectId;
1874
+ } & {
1875
+ __v: number;
1876
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, StallType, mongoose.Document<unknown, {}, mongoose.FlatRecord<StallType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<StallType> & {
1877
+ _id: mongoose.Types.ObjectId;
1878
+ } & {
1879
+ __v: number;
1880
+ }>;
1881
+ type SchemaEventInfoType = Omit<EventInfoType, "eventId"> & {
1882
+ eventId: ObjectId;
1883
+ };
1884
+ declare const EventInfoModel: mongoose.Model<SchemaEventInfoType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventInfoType, {}, {}> & Omit<EventInfoType, "eventId"> & {
1885
+ eventId: ObjectId;
1886
+ } & Required<{
1887
+ _id: string;
1888
+ }> & {
1889
+ __v: number;
1890
+ }, any>;
1891
+
1892
+ /**
1893
+ * Connect to MongoDB using Mongoose.
1894
+ * Supports both local MongoDB (via MONGODB_URI) and MongoDB Atlas (via individual env vars).
1895
+ */
1896
+ declare const connectToDatabase: () => Promise<void>;
1897
+
1898
+ declare function publishNotificationEvents(userId: ObjectId, context: GraphQLContext): Promise<void>;
1899
+ /**
1900
+ * Create notifications in the database for multiple users
1901
+ * This is typically called when sending push notifications
1902
+ */
1903
+ declare function createNotifications(payload: SchemaCreateBulkNotificationInput, context: GraphQLContext): Promise<SchemaNotificationType[]>;
1904
+
1905
+ interface SendPushNotificationOptions {
1906
+ data: NotificationDataType;
1907
+ message: string;
1908
+ title: string;
1909
+ userIds: ObjectId[];
1910
+ }
1911
+ declare function sendPushNotification({ data, message, title, userIds, }: SendPushNotificationOptions): Promise<void>;
1912
+
1446
1913
  declare const SAVED_PASSWORD_KEY = "savedPassword";
1447
1914
  declare const SAVED_EMAIL_KEY = "savedEmail";
1448
1915
  declare const SAVED_TOKEN_KEY = "savedToken";
@@ -1545,4 +2012,4 @@ declare const availableRegionOptions: OptionItem[];
1545
2012
  declare const paymentMethodOptions: OptionItem[];
1546
2013
  declare function normalizeUrl(url: string): string;
1547
2014
 
1548
- export { type AdFormData, type AdType, type AdminUpdateResourceType, type AuthUser, 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, EnumPubSubEvents, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type GraphQLContext, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type ObjectId, 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 SubscriptionPayload, 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 };
2015
+ 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, createNotifications, 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, publishNotificationEvents, registerFields, relationDatesSchema, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, sendPushNotification, 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 };