@timardex/cluemart-shared 1.2.28 → 1.2.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ad-Crq-z5Wt.d.mts +69 -0
- package/dist/ad-DHetF-th.d.ts +69 -0
- package/dist/{auth-Ddkaba1k.d.mts → auth-Ci6Uskch.d.mts} +1 -1
- package/dist/{auth-BRY-YJss.d.ts → auth-CzEdRDf1.d.ts} +1 -1
- package/dist/chunk-BO3HICLR.mjs +24 -0
- package/dist/chunk-BO3HICLR.mjs.map +1 -0
- package/dist/chunk-CQ7TCXMI.mjs +68 -0
- package/dist/chunk-CQ7TCXMI.mjs.map +1 -0
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/{global-IDogsFQv.d.ts → global-2Jk7sRkL.d.ts} +18 -4
- package/dist/{global-DlaX2SCk.d.mts → global-DWuTxnJ8.d.mts} +18 -4
- package/dist/graphql/index.d.mts +3 -2
- package/dist/graphql/index.d.ts +3 -2
- package/dist/hooks/index.d.mts +4 -3
- package/dist/hooks/index.d.ts +4 -3
- package/dist/hooks/index.mjs +5 -5
- package/dist/index.cjs +1130 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +347 -2
- package/dist/index.d.ts +347 -2
- package/dist/index.mjs +1116 -26
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +1068 -0
- package/dist/mongoose/index.cjs.map +1 -0
- package/dist/mongoose/index.d.mts +318 -0
- package/dist/mongoose/index.d.ts +318 -0
- package/dist/mongoose/index.mjs +855 -0
- package/dist/mongoose/index.mjs.map +1 -0
- package/dist/service/index.cjs +336 -0
- package/dist/service/index.cjs.map +1 -0
- package/dist/service/index.d.mts +27 -0
- package/dist/service/index.d.ts +27 -0
- package/dist/service/index.mjs +214 -0
- package/dist/service/index.mjs.map +1 -0
- package/dist/types/index.d.mts +4 -3
- package/dist/types/index.d.ts +4 -3
- package/dist/types/index.mjs +4 -19
- package/dist/types/index.mjs.map +1 -1
- package/dist/user-DbEEY7fv.d.ts +64 -0
- package/dist/user-OPY5EOqR.d.mts +64 -0
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/ad-C-0i99zR.d.mts +0 -129
- package/dist/ad-ZnPU3uan.d.ts +0 -129
package/dist/index.d.ts
CHANGED
|
@@ -567,7 +567,21 @@ type SchemaChatType = Omit<ChatType, "participants" | "messages" | "resourceInfo
|
|
|
567
567
|
vendorId: ObjectId;
|
|
568
568
|
} | null;
|
|
569
569
|
};
|
|
570
|
-
|
|
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
|
+
|
|
582
|
+
type SchemaCreateBulkNotificationInput = Omit<CreateBulkNotificationInput, "userIds"> & {
|
|
583
|
+
userIds: ObjectId[];
|
|
584
|
+
};
|
|
571
585
|
type SchemaNotificationType = Omit<NotificationType, "userId"> & {
|
|
572
586
|
userId: ObjectId;
|
|
573
587
|
};
|
|
@@ -1443,6 +1457,337 @@ declare function useContactUsForm(data?: ContactUsFormData): CreateContactUsForm
|
|
|
1443
1457
|
|
|
1444
1458
|
declare function useAdForm(data?: AdFormData): CreateAdFormData;
|
|
1445
1459
|
|
|
1460
|
+
type SchemaOwnerType = Omit<OwnerType, "userId"> & {
|
|
1461
|
+
userId: ObjectId;
|
|
1462
|
+
};
|
|
1463
|
+
declare const SocialMediaTypeSchema: mongoose.Schema<SocialMediaType, mongoose.Model<SocialMediaType, any, any, any, mongoose.Document<unknown, any, SocialMediaType, any, {}> & SocialMediaType & {
|
|
1464
|
+
_id: mongoose.Types.ObjectId;
|
|
1465
|
+
} & {
|
|
1466
|
+
__v: number;
|
|
1467
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialMediaType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialMediaType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialMediaType> & {
|
|
1468
|
+
_id: mongoose.Types.ObjectId;
|
|
1469
|
+
} & {
|
|
1470
|
+
__v: number;
|
|
1471
|
+
}>;
|
|
1472
|
+
declare const ResourceImageTypeSchema: mongoose.Schema<ResourceImageType, mongoose.Model<ResourceImageType, any, any, any, mongoose.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
|
|
1473
|
+
_id: mongoose.Types.ObjectId;
|
|
1474
|
+
} & {
|
|
1475
|
+
__v: number;
|
|
1476
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceImageType> & {
|
|
1477
|
+
_id: mongoose.Types.ObjectId;
|
|
1478
|
+
} & {
|
|
1479
|
+
__v: number;
|
|
1480
|
+
}>;
|
|
1481
|
+
declare const CategorySchema: mongoose.Schema<Category, mongoose.Model<Category, any, any, any, mongoose.Document<unknown, any, Category, any, {}> & Category & {
|
|
1482
|
+
_id: mongoose.Types.ObjectId;
|
|
1483
|
+
} & {
|
|
1484
|
+
__v: number;
|
|
1485
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, Category, mongoose.Document<unknown, {}, mongoose.FlatRecord<Category>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<Category> & {
|
|
1486
|
+
_id: mongoose.Types.ObjectId;
|
|
1487
|
+
} & {
|
|
1488
|
+
__v: number;
|
|
1489
|
+
}>;
|
|
1490
|
+
declare const partnersSchema: mongoose.Schema<PartnerType, mongoose.Model<PartnerType, any, any, any, mongoose.Document<unknown, any, PartnerType, any, {}> & PartnerType & {
|
|
1491
|
+
_id: mongoose.Types.ObjectId;
|
|
1492
|
+
} & {
|
|
1493
|
+
__v: number;
|
|
1494
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, PartnerType, mongoose.Document<unknown, {}, mongoose.FlatRecord<PartnerType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<PartnerType> & {
|
|
1495
|
+
_id: mongoose.Types.ObjectId;
|
|
1496
|
+
} & {
|
|
1497
|
+
__v: number;
|
|
1498
|
+
}>;
|
|
1499
|
+
declare const termsAgreementSchema: mongoose.Schema<TermsAgreement, mongoose.Model<TermsAgreement, any, any, any, mongoose.Document<unknown, any, TermsAgreement, any, {}> & DeviceInfo & {
|
|
1500
|
+
termVersion: string;
|
|
1501
|
+
} & {
|
|
1502
|
+
_id: mongoose.Types.ObjectId;
|
|
1503
|
+
} & {
|
|
1504
|
+
__v: number;
|
|
1505
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, TermsAgreement, mongoose.Document<unknown, {}, mongoose.FlatRecord<TermsAgreement>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<TermsAgreement> & {
|
|
1506
|
+
_id: mongoose.Types.ObjectId;
|
|
1507
|
+
} & {
|
|
1508
|
+
__v: number;
|
|
1509
|
+
}>;
|
|
1510
|
+
declare const baseResourceFields: {
|
|
1511
|
+
active: {
|
|
1512
|
+
default: boolean;
|
|
1513
|
+
required: boolean;
|
|
1514
|
+
type: BooleanConstructor;
|
|
1515
|
+
};
|
|
1516
|
+
adIds: {
|
|
1517
|
+
ref: string;
|
|
1518
|
+
required: boolean;
|
|
1519
|
+
type: (typeof mongoose.Schema.Types.ObjectId)[];
|
|
1520
|
+
};
|
|
1521
|
+
contactDetails: mongoose.Schema<ResourceContactDetailsType, mongoose.Model<ResourceContactDetailsType, any, any, any, mongoose.Document<unknown, any, ResourceContactDetailsType, any, {}> & ResourceContactDetailsType & {
|
|
1522
|
+
_id: mongoose.Types.ObjectId;
|
|
1523
|
+
} & {
|
|
1524
|
+
__v: number;
|
|
1525
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceContactDetailsType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceContactDetailsType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceContactDetailsType> & {
|
|
1526
|
+
_id: mongoose.Types.ObjectId;
|
|
1527
|
+
} & {
|
|
1528
|
+
__v: number;
|
|
1529
|
+
}>;
|
|
1530
|
+
cover: mongoose.Schema<ResourceImageType, mongoose.Model<ResourceImageType, any, any, any, mongoose.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
|
|
1531
|
+
_id: mongoose.Types.ObjectId;
|
|
1532
|
+
} & {
|
|
1533
|
+
__v: number;
|
|
1534
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceImageType> & {
|
|
1535
|
+
_id: mongoose.Types.ObjectId;
|
|
1536
|
+
} & {
|
|
1537
|
+
__v: number;
|
|
1538
|
+
}>;
|
|
1539
|
+
deletedAt: {
|
|
1540
|
+
default: null;
|
|
1541
|
+
required: boolean;
|
|
1542
|
+
type: DateConstructor;
|
|
1543
|
+
};
|
|
1544
|
+
description: {
|
|
1545
|
+
required: boolean;
|
|
1546
|
+
type: StringConstructor;
|
|
1547
|
+
};
|
|
1548
|
+
images: mongoose.Schema<ResourceImageType, mongoose.Model<ResourceImageType, any, any, any, mongoose.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
|
|
1549
|
+
_id: mongoose.Types.ObjectId;
|
|
1550
|
+
} & {
|
|
1551
|
+
__v: number;
|
|
1552
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceImageType> & {
|
|
1553
|
+
_id: mongoose.Types.ObjectId;
|
|
1554
|
+
} & {
|
|
1555
|
+
__v: number;
|
|
1556
|
+
}>[];
|
|
1557
|
+
logo: 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
|
+
name: {
|
|
1567
|
+
required: boolean;
|
|
1568
|
+
type: StringConstructor;
|
|
1569
|
+
};
|
|
1570
|
+
owner: mongoose.Schema<SchemaOwnerType, mongoose.Model<SchemaOwnerType, any, any, any, mongoose.Document<unknown, any, SchemaOwnerType, any, {}> & Omit<OwnerType, "userId"> & {
|
|
1571
|
+
userId: ObjectId;
|
|
1572
|
+
} & {
|
|
1573
|
+
_id: mongoose.Types.ObjectId;
|
|
1574
|
+
} & {
|
|
1575
|
+
__v: number;
|
|
1576
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaOwnerType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaOwnerType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaOwnerType> & {
|
|
1577
|
+
_id: mongoose.Types.ObjectId;
|
|
1578
|
+
} & {
|
|
1579
|
+
__v: number;
|
|
1580
|
+
}>;
|
|
1581
|
+
partners: {
|
|
1582
|
+
required: boolean;
|
|
1583
|
+
type: mongoose.Schema<PartnerType, mongoose.Model<PartnerType, any, any, any, mongoose.Document<unknown, any, PartnerType, any, {}> & PartnerType & {
|
|
1584
|
+
_id: mongoose.Types.ObjectId;
|
|
1585
|
+
} & {
|
|
1586
|
+
__v: number;
|
|
1587
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, PartnerType, mongoose.Document<unknown, {}, mongoose.FlatRecord<PartnerType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<PartnerType> & {
|
|
1588
|
+
_id: mongoose.Types.ObjectId;
|
|
1589
|
+
} & {
|
|
1590
|
+
__v: number;
|
|
1591
|
+
}>[];
|
|
1592
|
+
};
|
|
1593
|
+
posterUsage: mongoose.Schema<PosterUsageType, mongoose.Model<PosterUsageType, any, any, any, mongoose.Document<unknown, any, PosterUsageType, any, {}> & PosterUsageType & {
|
|
1594
|
+
_id: mongoose.Types.ObjectId;
|
|
1595
|
+
} & {
|
|
1596
|
+
__v: number;
|
|
1597
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, PosterUsageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<PosterUsageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<PosterUsageType> & {
|
|
1598
|
+
_id: mongoose.Types.ObjectId;
|
|
1599
|
+
} & {
|
|
1600
|
+
__v: number;
|
|
1601
|
+
}>;
|
|
1602
|
+
promoCodes: {
|
|
1603
|
+
required: boolean;
|
|
1604
|
+
type: StringConstructor[];
|
|
1605
|
+
};
|
|
1606
|
+
region: {
|
|
1607
|
+
required: boolean;
|
|
1608
|
+
type: StringConstructor;
|
|
1609
|
+
};
|
|
1610
|
+
relations: {
|
|
1611
|
+
default: never[];
|
|
1612
|
+
required: boolean;
|
|
1613
|
+
type: mongoose.Schema<{
|
|
1614
|
+
relationId: ObjectId;
|
|
1615
|
+
relationDates: RelationDate[];
|
|
1616
|
+
}, mongoose.Model<{
|
|
1617
|
+
relationId: ObjectId;
|
|
1618
|
+
relationDates: RelationDate[];
|
|
1619
|
+
}, any, any, any, mongoose.Document<unknown, any, {
|
|
1620
|
+
relationId: ObjectId;
|
|
1621
|
+
relationDates: RelationDate[];
|
|
1622
|
+
}, any, {}> & {
|
|
1623
|
+
relationId: ObjectId;
|
|
1624
|
+
relationDates: RelationDate[];
|
|
1625
|
+
} & {
|
|
1626
|
+
_id: mongoose.Types.ObjectId;
|
|
1627
|
+
} & {
|
|
1628
|
+
__v: number;
|
|
1629
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
1630
|
+
relationId: ObjectId;
|
|
1631
|
+
relationDates: RelationDate[];
|
|
1632
|
+
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
1633
|
+
relationId: ObjectId;
|
|
1634
|
+
relationDates: RelationDate[];
|
|
1635
|
+
}>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<{
|
|
1636
|
+
relationId: ObjectId;
|
|
1637
|
+
relationDates: RelationDate[];
|
|
1638
|
+
}> & {
|
|
1639
|
+
_id: mongoose.Types.ObjectId;
|
|
1640
|
+
} & {
|
|
1641
|
+
__v: number;
|
|
1642
|
+
}>[];
|
|
1643
|
+
};
|
|
1644
|
+
socialMedia: mongoose.Schema<SocialMediaType, mongoose.Model<SocialMediaType, any, any, any, mongoose.Document<unknown, any, SocialMediaType, any, {}> & SocialMediaType & {
|
|
1645
|
+
_id: mongoose.Types.ObjectId;
|
|
1646
|
+
} & {
|
|
1647
|
+
__v: number;
|
|
1648
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialMediaType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialMediaType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialMediaType> & {
|
|
1649
|
+
_id: mongoose.Types.ObjectId;
|
|
1650
|
+
} & {
|
|
1651
|
+
__v: number;
|
|
1652
|
+
}>[];
|
|
1653
|
+
termsAgreement: mongoose.Schema<TermsAgreement, mongoose.Model<TermsAgreement, any, any, any, mongoose.Document<unknown, any, TermsAgreement, any, {}> & DeviceInfo & {
|
|
1654
|
+
termVersion: string;
|
|
1655
|
+
} & {
|
|
1656
|
+
_id: mongoose.Types.ObjectId;
|
|
1657
|
+
} & {
|
|
1658
|
+
__v: number;
|
|
1659
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, TermsAgreement, mongoose.Document<unknown, {}, mongoose.FlatRecord<TermsAgreement>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<TermsAgreement> & {
|
|
1660
|
+
_id: mongoose.Types.ObjectId;
|
|
1661
|
+
} & {
|
|
1662
|
+
__v: number;
|
|
1663
|
+
}>;
|
|
1664
|
+
};
|
|
1665
|
+
|
|
1666
|
+
type PushTokenType = {
|
|
1667
|
+
_id: string;
|
|
1668
|
+
createdAt: Date;
|
|
1669
|
+
platform: EnumOSPlatform;
|
|
1670
|
+
token: string;
|
|
1671
|
+
updatedAt: Date;
|
|
1672
|
+
userId: string;
|
|
1673
|
+
};
|
|
1674
|
+
type SchemaPushTokenType = Omit<PushTokenType, "userId"> & {
|
|
1675
|
+
userId: ObjectId;
|
|
1676
|
+
};
|
|
1677
|
+
|
|
1678
|
+
declare const relationDatesSchema: mongoose.Schema<RelationDate, mongoose.Model<RelationDate, any, any, any, mongoose.Document<unknown, any, RelationDate, any, {}> & RelationDate & {
|
|
1679
|
+
_id: mongoose.Types.ObjectId;
|
|
1680
|
+
} & {
|
|
1681
|
+
__v: number;
|
|
1682
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, RelationDate, mongoose.Document<unknown, {}, mongoose.FlatRecord<RelationDate>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<RelationDate> & {
|
|
1683
|
+
_id: mongoose.Types.ObjectId;
|
|
1684
|
+
} & {
|
|
1685
|
+
__v: number;
|
|
1686
|
+
}>;
|
|
1687
|
+
type SchemaRelationType = Omit<RelationType, "chatId" | "eventId" | "vendorId"> & {
|
|
1688
|
+
chatId: ObjectId;
|
|
1689
|
+
eventId: ObjectId;
|
|
1690
|
+
vendorId: ObjectId;
|
|
1691
|
+
};
|
|
1692
|
+
/**
|
|
1693
|
+
* This is the schema for the relation type.
|
|
1694
|
+
* It is used to define the structure of the relation type in the database.
|
|
1695
|
+
* The schema is used by Mongoose to create a model for the relation type.
|
|
1696
|
+
*/
|
|
1697
|
+
declare const RelationTypeSchema: mongoose.Schema<SchemaRelationType, mongoose.Model<SchemaRelationType, any, any, any, mongoose.Document<unknown, any, SchemaRelationType, any, {}> & Omit<RelationType, "eventId" | "vendorId" | "chatId"> & {
|
|
1698
|
+
chatId: ObjectId;
|
|
1699
|
+
eventId: ObjectId;
|
|
1700
|
+
vendorId: ObjectId;
|
|
1701
|
+
} & Required<{
|
|
1702
|
+
_id: string;
|
|
1703
|
+
}> & {
|
|
1704
|
+
__v: number;
|
|
1705
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaRelationType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaRelationType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaRelationType> & Required<{
|
|
1706
|
+
_id: string;
|
|
1707
|
+
}> & {
|
|
1708
|
+
__v: number;
|
|
1709
|
+
}>;
|
|
1710
|
+
|
|
1711
|
+
type SchemaUserActivityEvent = Omit<UserActivityEvent, "resourceId"> & {
|
|
1712
|
+
resourceId: ObjectId;
|
|
1713
|
+
};
|
|
1714
|
+
type SchemaUserType = Omit<UserType, "vendor" | "events" | "userActivity" | "_id"> & {
|
|
1715
|
+
_id: ObjectId;
|
|
1716
|
+
vendor: ObjectId;
|
|
1717
|
+
events: ObjectId[];
|
|
1718
|
+
userActivity: {
|
|
1719
|
+
favourites: {
|
|
1720
|
+
events: ObjectId[];
|
|
1721
|
+
vendors: ObjectId[];
|
|
1722
|
+
};
|
|
1723
|
+
interested: {
|
|
1724
|
+
events: SchemaUserActivityEvent[];
|
|
1725
|
+
};
|
|
1726
|
+
going: {
|
|
1727
|
+
events: SchemaUserActivityEvent[];
|
|
1728
|
+
};
|
|
1729
|
+
present: {
|
|
1730
|
+
events: SchemaUserActivityEvent[];
|
|
1731
|
+
};
|
|
1732
|
+
};
|
|
1733
|
+
};
|
|
1734
|
+
|
|
1735
|
+
interface VerificationTokenType {
|
|
1736
|
+
email: string;
|
|
1737
|
+
verificationToken: string;
|
|
1738
|
+
createdAt: Date;
|
|
1739
|
+
}
|
|
1740
|
+
|
|
1741
|
+
type SchemaVendorType = Omit<VendorType, "vendorInfoId" | "owner" | "adIds"> & {
|
|
1742
|
+
adIds?: ObjectId[];
|
|
1743
|
+
owner: SchemaOwnerType;
|
|
1744
|
+
vendorInfoId: ObjectId;
|
|
1745
|
+
};
|
|
1746
|
+
|
|
1747
|
+
type SchemaVendorInfoType = Omit<VendorInfoType, "vendorId"> & {
|
|
1748
|
+
vendorId: ObjectId;
|
|
1749
|
+
};
|
|
1750
|
+
|
|
1751
|
+
type SchemaEventType = Omit<EventType, "eventInfoId" | "owner" | "adIds"> & {
|
|
1752
|
+
adIds?: ObjectId[];
|
|
1753
|
+
eventInfoId: ObjectId;
|
|
1754
|
+
owner: SchemaOwnerType;
|
|
1755
|
+
};
|
|
1756
|
+
|
|
1757
|
+
declare const StallTypeSchema: mongoose.Schema<StallType, mongoose.Model<StallType, any, any, any, mongoose.Document<unknown, any, StallType, any, {}> & StallType & {
|
|
1758
|
+
_id: mongoose.Types.ObjectId;
|
|
1759
|
+
} & {
|
|
1760
|
+
__v: number;
|
|
1761
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, StallType, mongoose.Document<unknown, {}, mongoose.FlatRecord<StallType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<StallType> & {
|
|
1762
|
+
_id: mongoose.Types.ObjectId;
|
|
1763
|
+
} & {
|
|
1764
|
+
__v: number;
|
|
1765
|
+
}>;
|
|
1766
|
+
type SchemaEventInfoType = Omit<EventInfoType, "eventId"> & {
|
|
1767
|
+
eventId: ObjectId;
|
|
1768
|
+
};
|
|
1769
|
+
|
|
1770
|
+
/**
|
|
1771
|
+
* Connect to MongoDB using Mongoose.
|
|
1772
|
+
* Supports both local MongoDB (via MONGODB_URI) and MongoDB Atlas (via individual env vars).
|
|
1773
|
+
*/
|
|
1774
|
+
declare const connectToDatabase: () => Promise<void>;
|
|
1775
|
+
|
|
1776
|
+
declare function publishNotificationEvents(userId: ObjectId, context: GraphQLContext): Promise<void>;
|
|
1777
|
+
/**
|
|
1778
|
+
* Create notifications in the database for multiple users
|
|
1779
|
+
* This is typically called when sending push notifications
|
|
1780
|
+
*/
|
|
1781
|
+
declare function createNotifications(payload: SchemaCreateBulkNotificationInput, context: GraphQLContext): Promise<SchemaNotificationType[]>;
|
|
1782
|
+
|
|
1783
|
+
interface SendPushNotificationOptions {
|
|
1784
|
+
data: NotificationDataType;
|
|
1785
|
+
message: string;
|
|
1786
|
+
title: string;
|
|
1787
|
+
userIds: ObjectId[];
|
|
1788
|
+
}
|
|
1789
|
+
declare function sendPushNotification({ data, message, title, userIds, }: SendPushNotificationOptions): Promise<void>;
|
|
1790
|
+
|
|
1446
1791
|
declare const SAVED_PASSWORD_KEY = "savedPassword";
|
|
1447
1792
|
declare const SAVED_EMAIL_KEY = "savedEmail";
|
|
1448
1793
|
declare const SAVED_TOKEN_KEY = "savedToken";
|
|
@@ -1545,4 +1890,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1545
1890
|
declare const paymentMethodOptions: OptionItem[];
|
|
1546
1891
|
declare function normalizeUrl(url: string): string;
|
|
1547
1892
|
|
|
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 };
|
|
1893
|
+
export { type AdFormData, type AdType, type AdminUpdateResourceType, type AuthUser, type BaseResourceType, type BaseResourceTypeFormData, type Category, CategorySchema, 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, ParticipantSchema, type ParticipantType, type PartnerType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, RelationTypeSchema, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, 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, 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, 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 };
|