@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
@@ -1,5 +1,5 @@
1
1
  import { EnumOSPlatform, EnumResourceType, EnumUserLicence, EnumUserRole } from './enums/index.js';
2
- import { C as Category, K as CreateFormData, t as ResourceImageType, v as PartnerType, T as TermsAgreement, u as SocialMediaType } from './global-IDogsFQv.js';
2
+ import { C as Category, a3 as CreateFormData, s as ResourceImageType, P as PartnerType, T as TermsAgreement, r as SocialMediaType } from './global-4lS-fh61.js';
3
3
 
4
4
  interface TestersFormData {
5
5
  categories?: Category[] | null;
@@ -1,5 +1,5 @@
1
1
  import { EnumOSPlatform, EnumResourceType, EnumUserLicence, EnumUserRole } from './enums/index.mjs';
2
- import { C as Category, K as CreateFormData, t as ResourceImageType, v as PartnerType, T as TermsAgreement, u as SocialMediaType } from './global-DlaX2SCk.mjs';
2
+ import { C as Category, a3 as CreateFormData, s as ResourceImageType, P as PartnerType, T as TermsAgreement, r as SocialMediaType } from './global-_ZHkOcnR.mjs';
3
3
 
4
4
  interface TestersFormData {
5
5
  categories?: Category[] | null;
@@ -1,4 +1,4 @@
1
- import { K as CreateFormData, T as TermsAgreement } from './global-DlaX2SCk.mjs';
1
+ import { a3 as CreateFormData, T as TermsAgreement } from './global-_ZHkOcnR.mjs';
2
2
  import { EnumOSPlatform } from './enums/index.mjs';
3
3
 
4
4
  type ContactUsFormData = {
@@ -1,4 +1,4 @@
1
- import { K as CreateFormData, T as TermsAgreement } from './global-IDogsFQv.js';
1
+ import { a3 as CreateFormData, T as TermsAgreement } from './global-4lS-fh61.js';
2
2
  import { EnumOSPlatform } from './enums/index.js';
3
3
 
4
4
  type ContactUsFormData = {
@@ -0,0 +1,24 @@
1
+ // src/types/global.ts
2
+ var EnumPubSubEvents = /* @__PURE__ */ ((EnumPubSubEvents2) => {
3
+ EnumPubSubEvents2["GET_CHAT_MESSAGE"] = "GET_CHAT_MESSAGE";
4
+ EnumPubSubEvents2["GET_NOTIFICATIONS"] = "GET_NOTIFICATIONS";
5
+ EnumPubSubEvents2["GET_NOTIFICATIONS_COUNT"] = "GET_NOTIFICATIONS_COUNT";
6
+ EnumPubSubEvents2["USER_TYPING"] = "USER_TYPING";
7
+ return EnumPubSubEvents2;
8
+ })(EnumPubSubEvents || {});
9
+
10
+ // src/types/resourceActivities.ts
11
+ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
12
+ EnumActivity2["FAVORITE"] = "FAVORITE";
13
+ EnumActivity2["GOING"] = "GOING";
14
+ EnumActivity2["INTERESTED"] = "INTERESTED";
15
+ EnumActivity2["PRESENT"] = "PRESENT";
16
+ EnumActivity2["VIEW"] = "VIEW";
17
+ return EnumActivity2;
18
+ })(EnumActivity || {});
19
+
20
+ export {
21
+ EnumPubSubEvents,
22
+ EnumActivity
23
+ };
24
+ //# sourceMappingURL=chunk-BO3HICLR.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/types/global.ts","../src/types/resourceActivities.ts"],"sourcesContent":["import mongoose from \"mongoose\";\nimport {\n Control,\n FieldErrors,\n FieldValues,\n UseFormHandleSubmit,\n UseFormReset,\n UseFormSetValue,\n UseFormWatch,\n} from \"react-hook-form\";\n\nimport { SchemaChatType } from \"src/mongoose/Chat\";\nimport { SchemaNotificationType } from \"src/mongoose/Notification\";\n\nimport { EnumResourceType, EnumSocialMedia, EnumUserLicence } from \"../enums\";\n\nimport { EventType } from \"./event\";\nimport { NotificationCount } from \"./notification\";\nimport { RelationDate } from \"./relation\";\nimport { VendorType } from \"./vendor\";\n\nexport type Nullable<T> = {\n [K in keyof T]: T[K] | null | undefined;\n};\n\nexport type DeviceInfo = {\n appBuildNumber: string;\n appId: string;\n appVersion: string;\n brand: string;\n deviceName: string;\n installationId: string;\n manufacturer: string;\n modelName: string;\n osName: string;\n osVersion: string;\n timestamp: string;\n};\n\nexport type TermsAgreement = DeviceInfo & {\n termVersion: string;\n};\n\nexport type ResourceContactDetailsType = {\n email?: string | null;\n landlinePhone?: string | null;\n mobilePhone?: string | null;\n};\n\nexport type ResourceImageType = {\n source: string;\n title: string;\n};\n\nexport type SocialMediaType = {\n name?: EnumSocialMedia;\n link?: string;\n};\n\nexport type PartnerType = {\n email: string;\n resourceId: string;\n resourceType: EnumResourceType;\n licence: EnumUserLicence;\n};\n\nexport type OwnerType = {\n email: string;\n userId: string;\n};\n\nexport interface BaseResourceTypeFormData {\n _id?: string;\n active: boolean;\n contactDetails?: ResourceContactDetailsType | null;\n cover: ResourceImageType;\n coverUpload?: ResourceImageType | null;\n description: string;\n images?: ResourceImageType[] | null;\n imagesUpload?: ResourceImageType[] | null;\n logo?: ResourceImageType | null;\n logoUpload?: ResourceImageType | null;\n name: string;\n owner?: OwnerType | null;\n partners?: PartnerType[] | null;\n promoCodes?: string[] | null;\n region: string;\n socialMedia?: SocialMediaType[] | null;\n termsAgreement?: TermsAgreement | null;\n}\n\nexport type PosterUsageType = {\n month: string;\n count: number;\n};\n\nexport type BaseResourceType = Omit<\n BaseResourceTypeFormData,\n \"_id\" | \"coverUpload\" | \"imagesUpload\" | \"logoUpload\" | \"owner\"\n> & {\n _id: string;\n adIds?: string[] | null;\n createdAt: string;\n deletedAt: string | null;\n owner: OwnerType;\n posterUsage?: PosterUsageType | null;\n relations:\n | {\n relationId: string | null;\n relationDates: RelationDate[] | null;\n }[]\n | null;\n updatedAt: string;\n};\n\nexport type LocationType = {\n city: string;\n coordinates: number[]; // [longitude, latitude]\n country: string;\n fullAddress: string;\n latitude: number;\n longitude: number;\n region: string;\n type: \"Point\"; // Mongoose GeoJSON type\n};\n\nexport type DateTimeType = {\n endDate: string;\n endTime: string;\n startDate: string;\n startTime: string;\n};\n\nexport type Region = {\n latitude: number;\n latitudeDelta: number;\n longitude: number;\n longitudeDelta: number;\n};\n\nexport type GeocodeLocation = Pick<LocationType, \"latitude\" | \"longitude\">;\n\nexport type MapMultiLocation = {\n dateTime: DateTimeType | null;\n location: LocationType | null;\n resourceId?: string;\n resourceName?: string;\n resourceType?: EnumResourceType;\n};\n\nexport interface FormField {\n disabled?: boolean;\n helperText?: string;\n isTextArea?: boolean;\n keyboardType?:\n | \"default\"\n | \"email-address\"\n | \"number-pad\"\n | \"url\"\n | \"decimal-pad\"\n | \"phone-pad\";\n name: string;\n placeholder: string;\n secureTextEntry?: boolean;\n}\n\nexport interface FormDateField {\n dateMode: \"date\" | \"time\";\n helperText?: string;\n name: \"endDate\" | \"endTime\" | \"startDate\" | \"startTime\";\n placeholder: string;\n}\n\nexport interface SubcategoryItems {\n id: string;\n name: string;\n description?: string | null;\n}\n\nexport interface Subcategory {\n id: string;\n name: string;\n items?: SubcategoryItems[] | null;\n}\n\nexport interface Category {\n color?: string | null;\n description?: string | null;\n id: string;\n name: string;\n subcategories: Subcategory[];\n}\n\nexport type OptionItem = {\n value: string;\n label: string;\n};\n\nexport type ImageObjectType = {\n uri: string;\n type: string;\n name: string;\n};\n\nexport interface ResourceConnectionsType {\n events: EventType[] | null;\n vendors: VendorType[] | null;\n}\n\nexport interface CreateFormData<T extends FieldValues> {\n control: Control<T, any>;\n fields: T;\n formState: { errors: FieldErrors<T> };\n handleSubmit: UseFormHandleSubmit<T, any>;\n reset: UseFormReset<T>;\n setValue: UseFormSetValue<T>;\n watch: UseFormWatch<T>;\n}\n\nexport type ObjectId = mongoose.Schema.Types.ObjectId;\n\nexport enum EnumPubSubEvents {\n GET_CHAT_MESSAGE = \"GET_CHAT_MESSAGE\",\n GET_NOTIFICATIONS = \"GET_NOTIFICATIONS\",\n GET_NOTIFICATIONS_COUNT = \"GET_NOTIFICATIONS_COUNT\",\n USER_TYPING = \"USER_TYPING\",\n}\n\nexport interface AuthUser {\n email: string;\n role: string;\n userId: ObjectId;\n}\n\nexport interface SubscriptionPayload {\n getChatMessage?: SchemaChatType;\n userTyping?: SchemaChatType; // NOT USED\n getNotifications?: SchemaNotificationType[];\n // Used only for filtering; not part of the GraphQL schema output\n getNotificationsUserId?: ObjectId;\n getNotificationsCount?: NotificationCount & { userId: ObjectId };\n}\n\nexport interface GraphQLContext {\n user: AuthUser | null;\n pubsub: {\n publish: (\n eventName: EnumPubSubEvents,\n payload: SubscriptionPayload,\n ) => void;\n subscribe: (eventName: EnumPubSubEvents) => AsyncIterable<any>;\n };\n request: Request;\n response: Response;\n}\n","import { EnumOSPlatform, EnumResourceType } from \"src/enums\";\n\nexport enum EnumActivity {\n FAVORITE = \"FAVORITE\",\n GOING = \"GOING\",\n INTERESTED = \"INTERESTED\",\n PRESENT = \"PRESENT\",\n VIEW = \"VIEW\",\n}\n\nexport type ResourceActivityEntry = {\n activityType: EnumActivity;\n location: {\n type: \"Point\";\n coordinates: number[]; // [longitude, latitude]\n } | null;\n startDate?: string | null;\n startTime?: string | null;\n timestamp: Date;\n userAgent: EnumOSPlatform;\n userId?: string | null;\n};\n\nexport type ResourceActivityType = {\n _id: string;\n resourceType: EnumResourceType;\n resourceId: string;\n activity: ResourceActivityEntry[];\n};\n\nexport type ResourceActivityInputType = {\n resourceId: string;\n resourceType: string;\n activity: Omit<ResourceActivityEntry, \"timestamp\">;\n};\n"],"mappings":";AA6NO,IAAK,mBAAL,kBAAKA,sBAAL;AACL,EAAAA,kBAAA,sBAAmB;AACnB,EAAAA,kBAAA,uBAAoB;AACpB,EAAAA,kBAAA,6BAA0B;AAC1B,EAAAA,kBAAA,iBAAc;AAJJ,SAAAA;AAAA,GAAA;;;AC3NL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,cAAW;AACX,EAAAA,cAAA,WAAQ;AACR,EAAAA,cAAA,gBAAa;AACb,EAAAA,cAAA,aAAU;AACV,EAAAA,cAAA,UAAO;AALG,SAAAA;AAAA,GAAA;","names":["EnumPubSubEvents","EnumActivity"]}
@@ -0,0 +1,66 @@
1
+ import {
2
+ EnumNotificationResourceType,
3
+ EnumNotificationType,
4
+ EnumOSPlatform
5
+ } from "./chunk-NNS747QT.mjs";
6
+
7
+ // src/mongoose/Notification.ts
8
+ import mongoose from "mongoose";
9
+ var MongooseSchema = mongoose.Schema;
10
+ var schema = new MongooseSchema(
11
+ {
12
+ data: {
13
+ resourceId: { required: true, type: String },
14
+ resourceName: { required: true, type: String },
15
+ resourceType: {
16
+ enum: Object.values(EnumNotificationResourceType),
17
+ required: true,
18
+ type: String
19
+ }
20
+ },
21
+ isRead: { default: false, index: true, required: true, type: Boolean },
22
+ message: { required: true, type: String },
23
+ title: { required: true, type: String },
24
+ type: {
25
+ default: "system" /* SYSTEM */,
26
+ enum: Object.values(EnumNotificationType),
27
+ required: true,
28
+ type: String
29
+ },
30
+ userId: {
31
+ ref: "User",
32
+ required: true,
33
+ type: mongoose.Schema.Types.ObjectId
34
+ }
35
+ },
36
+ { timestamps: true }
37
+ );
38
+ schema.index({ isRead: 1, userId: 1 });
39
+ schema.index({ createdAt: -1, userId: 1 });
40
+ var NotificationModel = mongoose.model(
41
+ "Notification",
42
+ schema
43
+ );
44
+
45
+ // src/mongoose/PushToken.ts
46
+ import mongoose2 from "mongoose";
47
+ var MongooseSchema2 = mongoose2.Schema;
48
+ var schema2 = new MongooseSchema2(
49
+ {
50
+ platform: {
51
+ enum: Object.values(EnumOSPlatform),
52
+ required: true,
53
+ type: String
54
+ },
55
+ token: { required: true, type: String },
56
+ userId: { required: true, type: mongoose2.Schema.Types.ObjectId }
57
+ },
58
+ { timestamps: true }
59
+ );
60
+ var PushTokenModel = mongoose2.model("PushToken", schema2);
61
+
62
+ export {
63
+ NotificationModel,
64
+ PushTokenModel
65
+ };
66
+ //# sourceMappingURL=chunk-O6LVIQFK.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/mongoose/Notification.ts","../src/mongoose/PushToken.ts"],"sourcesContent":["import mongoose from \"mongoose\";\n\nimport { EnumNotificationResourceType, EnumNotificationType } from \"src/enums\";\nimport {\n CreateBulkNotificationInput,\n NotificationType,\n ObjectId,\n} from \"src/types\";\n\nconst MongooseSchema = mongoose.Schema;\n\nexport type SchemaCreateBulkNotificationInput = Omit<\n CreateBulkNotificationInput,\n \"userIds\"\n> & {\n userIds: ObjectId[];\n};\n\nexport type SchemaNotificationType = Omit<NotificationType, \"userId\"> & {\n userId: ObjectId;\n};\n/**\n * Schema for storing in-app notifications\n * Each notification is tied to a specific user and can be marked as read/unread\n */\nconst schema = new MongooseSchema<SchemaNotificationType>(\n {\n data: {\n resourceId: { required: true, type: String },\n resourceName: { required: true, type: String },\n resourceType: {\n enum: Object.values(EnumNotificationResourceType),\n required: true,\n type: String,\n },\n },\n isRead: { default: false, index: true, required: true, type: Boolean },\n message: { required: true, type: String },\n title: { required: true, type: String },\n type: {\n default: EnumNotificationType.SYSTEM,\n enum: Object.values(EnumNotificationType),\n required: true,\n type: String,\n },\n userId: {\n ref: \"User\",\n required: true,\n type: mongoose.Schema.Types.ObjectId,\n },\n },\n { timestamps: true },\n);\n\n// Compound index for efficient queries\nschema.index({ isRead: 1, userId: 1 });\nschema.index({ createdAt: -1, userId: 1 });\n\nexport const NotificationModel = mongoose.model<SchemaNotificationType>(\n \"Notification\",\n schema,\n);\n","import mongoose from \"mongoose\";\n\nimport { EnumOSPlatform } from \"src/enums\";\nimport { ObjectId } from \"src/types\";\n\nconst MongooseSchema = mongoose.Schema;\n\ntype PushTokenType = {\n _id: string;\n createdAt: Date;\n platform: EnumOSPlatform;\n token: string;\n updatedAt: Date;\n userId: string;\n};\n\nexport type SchemaPushTokenType = Omit<PushTokenType, \"userId\"> & {\n userId: ObjectId;\n};\n\n/**\n * This is the schema for the push token type.\n * It is used to define the structure of the push token type in the database.\n * The schema is used by Mongoose to create a model for the push token type.\n */\nconst schema = new MongooseSchema<SchemaPushTokenType>(\n {\n platform: {\n enum: Object.values(EnumOSPlatform),\n required: true,\n type: String,\n },\n token: { required: true, type: String },\n userId: { required: true, type: mongoose.Schema.Types.ObjectId },\n },\n { timestamps: true },\n);\n\nexport const PushTokenModel = mongoose.model<SchemaPushTokenType>(\"PushToken\", schema);\n"],"mappings":";;;;;;;AAAA,OAAO,cAAc;AASrB,IAAM,iBAAiB,SAAS;AAgBhC,IAAM,SAAS,IAAI;AAAA,EACjB;AAAA,IACE,MAAM;AAAA,MACJ,YAAY,EAAE,UAAU,MAAM,MAAM,OAAO;AAAA,MAC3C,cAAc,EAAE,UAAU,MAAM,MAAM,OAAO;AAAA,MAC7C,cAAc;AAAA,QACZ,MAAM,OAAO,OAAO,4BAA4B;AAAA,QAChD,UAAU;AAAA,QACV,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,QAAQ,EAAE,SAAS,OAAO,OAAO,MAAM,UAAU,MAAM,MAAM,QAAQ;AAAA,IACrE,SAAS,EAAE,UAAU,MAAM,MAAM,OAAO;AAAA,IACxC,OAAO,EAAE,UAAU,MAAM,MAAM,OAAO;AAAA,IACtC,MAAM;AAAA,MACJ;AAAA,MACA,MAAM,OAAO,OAAO,oBAAoB;AAAA,MACxC,UAAU;AAAA,MACV,MAAM;AAAA,IACR;AAAA,IACA,QAAQ;AAAA,MACN,KAAK;AAAA,MACL,UAAU;AAAA,MACV,MAAM,SAAS,OAAO,MAAM;AAAA,IAC9B;AAAA,EACF;AAAA,EACA,EAAE,YAAY,KAAK;AACrB;AAGA,OAAO,MAAM,EAAE,QAAQ,GAAG,QAAQ,EAAE,CAAC;AACrC,OAAO,MAAM,EAAE,WAAW,IAAI,QAAQ,EAAE,CAAC;AAElC,IAAM,oBAAoB,SAAS;AAAA,EACxC;AAAA,EACA;AACF;;;AC7DA,OAAOA,eAAc;AAKrB,IAAMC,kBAAiBC,UAAS;AAoBhC,IAAMC,UAAS,IAAIF;AAAA,EACjB;AAAA,IACE,UAAU;AAAA,MACR,MAAM,OAAO,OAAO,cAAc;AAAA,MAClC,UAAU;AAAA,MACV,MAAM;AAAA,IACR;AAAA,IACA,OAAO,EAAE,UAAU,MAAM,MAAM,OAAO;AAAA,IACtC,QAAQ,EAAE,UAAU,MAAM,MAAMC,UAAS,OAAO,MAAM,SAAS;AAAA,EACjE;AAAA,EACA,EAAE,YAAY,KAAK;AACrB;AAEO,IAAM,iBAAiBA,UAAS,MAA2B,aAAaC,OAAM;","names":["mongoose","MongooseSchema","mongoose","schema"]}
@@ -1,4 +1,4 @@
1
- import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-DlaX2SCk.mjs';
1
+ import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-_ZHkOcnR.mjs';
2
2
  import 'mongoose';
3
3
  import 'react-hook-form';
4
4
  import '../enums/index.mjs';
@@ -1,4 +1,4 @@
1
- import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-IDogsFQv.js';
1
+ import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-4lS-fh61.js';
2
2
  import 'mongoose';
3
3
  import 'react-hook-form';
4
4
  import '../enums/index.js';
@@ -199,6 +199,20 @@ type VendorInfoType = Omit<VendorInfoFormData, "_id" | "documentsUpload"> & {
199
199
  _id: string;
200
200
  };
201
201
 
202
+ type SchemaCreateBulkNotificationInput = Omit<CreateBulkNotificationInput, "userIds"> & {
203
+ userIds: ObjectId[];
204
+ };
205
+ type SchemaNotificationType = Omit<NotificationType, "userId"> & {
206
+ userId: ObjectId;
207
+ };
208
+ declare const NotificationModel: mongoose.Model<SchemaNotificationType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaNotificationType, {}, {}> & Omit<NotificationType, "userId"> & {
209
+ userId: ObjectId;
210
+ } & Required<{
211
+ _id: string;
212
+ }> & {
213
+ __v: number;
214
+ }, any>;
215
+
202
216
  interface NotificationDataType {
203
217
  resourceId: string;
204
218
  resourceName: string;
@@ -241,10 +255,29 @@ type SchemaChatType = Omit<ChatType, "participants" | "messages" | "resourceInfo
241
255
  vendorId: ObjectId;
242
256
  } | null;
243
257
  };
244
-
245
- type SchemaNotificationType = Omit<NotificationType, "userId"> & {
258
+ declare const ParticipantSchema: mongoose.Schema<SchemaParticipantType, mongoose.Model<SchemaParticipantType, any, any, any, mongoose.Document<unknown, any, SchemaParticipantType, any, {}> & Omit<ParticipantType, "userId"> & {
246
259
  userId: ObjectId;
247
- };
260
+ } & {
261
+ _id: mongoose.Types.ObjectId;
262
+ } & {
263
+ __v: number;
264
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaParticipantType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaParticipantType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaParticipantType> & {
265
+ _id: mongoose.Types.ObjectId;
266
+ } & {
267
+ __v: number;
268
+ }>;
269
+ declare const ChatModel: mongoose.Model<SchemaChatType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaChatType, {}, {}> & Omit<ChatType, "messages" | "participants" | "resourceInfo"> & {
270
+ participants: SchemaParticipantType[];
271
+ messages: SchemaChatMessageType[];
272
+ resourceInfo: {
273
+ eventId: ObjectId;
274
+ vendorId: ObjectId;
275
+ } | null;
276
+ } & Required<{
277
+ _id: string;
278
+ }> & {
279
+ __v: number;
280
+ }, any>;
248
281
 
249
282
  type Nullable<T> = {
250
283
  [K in keyof T]: T[K] | null | undefined;
@@ -441,4 +474,4 @@ interface GraphQLContext {
441
474
  response: Response;
442
475
  }
443
476
 
444
- export { type NotificationDataType as $, type Region as A, type BaseResourceTypeFormData as B, type Category as C, type DeviceInfo as D, type EventType as E, type FormField as F, type GeocodeLocation as G, type SubcategoryItems as H, type Subcategory as I, type ImageObjectType as J, type CreateFormData as K, type LocationType as L, type MapMultiLocation as M, type NotificationType as N, type OptionItem as O, type ParticipantType as P, type ObjectId as Q, type Requirement as R, type StallType as S, type TermsAgreement as T, EnumPubSubEvents as U, type VendorType as V, type AuthUser as W, type SubscriptionPayload as X, type GraphQLContext as Y, type DateTimeWithPriceType as Z, type PaymentInfoType as _, type FormDateField as a, type CreateBulkNotificationInput as a0, type RelationDate as a1, type VendorLocation as a2, type VendorMenuType as a3, type VendorAttributes as a4, type ChatType as b, type EventInfoType as c, type NotificationCount as d, type RelationType as e, type ResourceConnectionsType as f, type VendorInfoType as g, type VendorFormData as h, type CreateVendorFormData as i, type VendorInfoFormData as j, type CreateVendorInfoFormData as k, type EventFormData as l, type CreateEventFormData as m, type EventInfoFormData as n, type CreateEventInfoFormData as o, type ChatMessageInput as p, type ChatMessageType as q, type Nullable as r, type ResourceContactDetailsType as s, type ResourceImageType as t, type SocialMediaType as u, type PartnerType as v, type OwnerType as w, type PosterUsageType as x, type BaseResourceType as y, type DateTimeType as z };
477
+ export { type MapMultiLocation as $, ChatModel as A, type BaseResourceTypeFormData as B, type Category as C, type DeviceInfo as D, type EventType as E, type FormField as F, type SchemaCreateBulkNotificationInput as G, type SchemaNotificationType as H, NotificationModel as I, type GraphQLContext as J, type NotificationDataType as K, type LocationType as L, type ParticipantType as M, type NotificationType as N, type OptionItem as O, type PartnerType as P, type ChatMessageInput as Q, type Requirement as R, type StallType as S, type TermsAgreement as T, type ChatMessageType as U, type VendorType as V, type Nullable as W, type BaseResourceType as X, type DateTimeType as Y, type Region as Z, type GeocodeLocation as _, type FormDateField as a, type SubcategoryItems as a0, type Subcategory as a1, type ImageObjectType as a2, type CreateFormData as a3, EnumPubSubEvents as a4, type AuthUser as a5, type SubscriptionPayload as a6, type DateTimeWithPriceType as a7, type PaymentInfoType as a8, type CreateBulkNotificationInput as a9, type VendorLocation as aa, type VendorMenuType as ab, type VendorAttributes as ac, type ChatType as b, type EventInfoType as c, type NotificationCount as d, type RelationType as e, type ResourceConnectionsType as f, type VendorInfoType as g, type VendorFormData as h, type CreateVendorFormData as i, type VendorInfoFormData as j, type CreateVendorInfoFormData as k, type EventFormData as l, type CreateEventFormData as m, type EventInfoFormData as n, type CreateEventInfoFormData as o, type OwnerType as p, type ObjectId as q, type SocialMediaType as r, type ResourceImageType as s, type ResourceContactDetailsType as t, type PosterUsageType as u, type RelationDate as v, type SchemaChatMessageType as w, type SchemaParticipantType as x, type SchemaChatType as y, ParticipantSchema as z };
@@ -199,6 +199,20 @@ type VendorInfoType = Omit<VendorInfoFormData, "_id" | "documentsUpload"> & {
199
199
  _id: string;
200
200
  };
201
201
 
202
+ type SchemaCreateBulkNotificationInput = Omit<CreateBulkNotificationInput, "userIds"> & {
203
+ userIds: ObjectId[];
204
+ };
205
+ type SchemaNotificationType = Omit<NotificationType, "userId"> & {
206
+ userId: ObjectId;
207
+ };
208
+ declare const NotificationModel: mongoose.Model<SchemaNotificationType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaNotificationType, {}, {}> & Omit<NotificationType, "userId"> & {
209
+ userId: ObjectId;
210
+ } & Required<{
211
+ _id: string;
212
+ }> & {
213
+ __v: number;
214
+ }, any>;
215
+
202
216
  interface NotificationDataType {
203
217
  resourceId: string;
204
218
  resourceName: string;
@@ -241,10 +255,29 @@ type SchemaChatType = Omit<ChatType, "participants" | "messages" | "resourceInfo
241
255
  vendorId: ObjectId;
242
256
  } | null;
243
257
  };
244
-
245
- type SchemaNotificationType = Omit<NotificationType, "userId"> & {
258
+ declare const ParticipantSchema: mongoose.Schema<SchemaParticipantType, mongoose.Model<SchemaParticipantType, any, any, any, mongoose.Document<unknown, any, SchemaParticipantType, any, {}> & Omit<ParticipantType, "userId"> & {
246
259
  userId: ObjectId;
247
- };
260
+ } & {
261
+ _id: mongoose.Types.ObjectId;
262
+ } & {
263
+ __v: number;
264
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaParticipantType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaParticipantType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaParticipantType> & {
265
+ _id: mongoose.Types.ObjectId;
266
+ } & {
267
+ __v: number;
268
+ }>;
269
+ declare const ChatModel: mongoose.Model<SchemaChatType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaChatType, {}, {}> & Omit<ChatType, "messages" | "participants" | "resourceInfo"> & {
270
+ participants: SchemaParticipantType[];
271
+ messages: SchemaChatMessageType[];
272
+ resourceInfo: {
273
+ eventId: ObjectId;
274
+ vendorId: ObjectId;
275
+ } | null;
276
+ } & Required<{
277
+ _id: string;
278
+ }> & {
279
+ __v: number;
280
+ }, any>;
248
281
 
249
282
  type Nullable<T> = {
250
283
  [K in keyof T]: T[K] | null | undefined;
@@ -441,4 +474,4 @@ interface GraphQLContext {
441
474
  response: Response;
442
475
  }
443
476
 
444
- export { type NotificationDataType as $, type Region as A, type BaseResourceTypeFormData as B, type Category as C, type DeviceInfo as D, type EventType as E, type FormField as F, type GeocodeLocation as G, type SubcategoryItems as H, type Subcategory as I, type ImageObjectType as J, type CreateFormData as K, type LocationType as L, type MapMultiLocation as M, type NotificationType as N, type OptionItem as O, type ParticipantType as P, type ObjectId as Q, type Requirement as R, type StallType as S, type TermsAgreement as T, EnumPubSubEvents as U, type VendorType as V, type AuthUser as W, type SubscriptionPayload as X, type GraphQLContext as Y, type DateTimeWithPriceType as Z, type PaymentInfoType as _, type FormDateField as a, type CreateBulkNotificationInput as a0, type RelationDate as a1, type VendorLocation as a2, type VendorMenuType as a3, type VendorAttributes as a4, type ChatType as b, type EventInfoType as c, type NotificationCount as d, type RelationType as e, type ResourceConnectionsType as f, type VendorInfoType as g, type VendorFormData as h, type CreateVendorFormData as i, type VendorInfoFormData as j, type CreateVendorInfoFormData as k, type EventFormData as l, type CreateEventFormData as m, type EventInfoFormData as n, type CreateEventInfoFormData as o, type ChatMessageInput as p, type ChatMessageType as q, type Nullable as r, type ResourceContactDetailsType as s, type ResourceImageType as t, type SocialMediaType as u, type PartnerType as v, type OwnerType as w, type PosterUsageType as x, type BaseResourceType as y, type DateTimeType as z };
477
+ export { type MapMultiLocation as $, ChatModel as A, type BaseResourceTypeFormData as B, type Category as C, type DeviceInfo as D, type EventType as E, type FormField as F, type SchemaCreateBulkNotificationInput as G, type SchemaNotificationType as H, NotificationModel as I, type GraphQLContext as J, type NotificationDataType as K, type LocationType as L, type ParticipantType as M, type NotificationType as N, type OptionItem as O, type PartnerType as P, type ChatMessageInput as Q, type Requirement as R, type StallType as S, type TermsAgreement as T, type ChatMessageType as U, type VendorType as V, type Nullable as W, type BaseResourceType as X, type DateTimeType as Y, type Region as Z, type GeocodeLocation as _, type FormDateField as a, type SubcategoryItems as a0, type Subcategory as a1, type ImageObjectType as a2, type CreateFormData as a3, EnumPubSubEvents as a4, type AuthUser as a5, type SubscriptionPayload as a6, type DateTimeWithPriceType as a7, type PaymentInfoType as a8, type CreateBulkNotificationInput as a9, type VendorLocation as aa, type VendorMenuType as ab, type VendorAttributes as ac, type ChatType as b, type EventInfoType as c, type NotificationCount as d, type RelationType as e, type ResourceConnectionsType as f, type VendorInfoType as g, type VendorFormData as h, type CreateVendorFormData as i, type VendorInfoFormData as j, type CreateVendorInfoFormData as k, type EventFormData as l, type CreateEventFormData as m, type EventInfoFormData as n, type CreateEventInfoFormData as o, type OwnerType as p, type ObjectId as q, type SocialMediaType as r, type ResourceImageType as s, type ResourceContactDetailsType as t, type PosterUsageType as u, type RelationDate as v, type SchemaChatMessageType as w, type SchemaParticipantType as x, type SchemaChatType as y, ParticipantSchema as z };
@@ -1,7 +1,7 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
- import { b as ChatType, E as EventType, c as EventInfoType, N as NotificationType, d as NotificationCount, e as RelationType, f as ResourceConnectionsType, V as VendorType, g as VendorInfoType } from '../global-DlaX2SCk.mjs';
2
+ import { b as ChatType, E as EventType, c as EventInfoType, N as NotificationType, d as NotificationCount, e as RelationType, f as ResourceConnectionsType, V as VendorType, g as VendorInfoType } from '../global-_ZHkOcnR.mjs';
3
3
  import { EnumResourceType } from '../enums/index.mjs';
4
- import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus } from '../ad-C-0i99zR.mjs';
4
+ import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus } from '../ad-CTWMmc7b.mjs';
5
5
  import { R as ResourceActivityType } from '../resourceActivities-BIjtlOGp.mjs';
6
6
  import 'mongoose';
7
7
  import 'react-hook-form';
@@ -1,7 +1,7 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
- import { b as ChatType, E as EventType, c as EventInfoType, N as NotificationType, d as NotificationCount, e as RelationType, f as ResourceConnectionsType, V as VendorType, g as VendorInfoType } from '../global-IDogsFQv.js';
2
+ import { b as ChatType, E as EventType, c as EventInfoType, N as NotificationType, d as NotificationCount, e as RelationType, f as ResourceConnectionsType, V as VendorType, g as VendorInfoType } from '../global-4lS-fh61.js';
3
3
  import { EnumResourceType } from '../enums/index.js';
4
- import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus } from '../ad-ZnPU3uan.js';
4
+ import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus } from '../ad-C02AZIGy.js';
5
5
  import { R as ResourceActivityType } from '../resourceActivities-B4roVKtQ.js';
6
6
  import 'mongoose';
7
7
  import 'react-hook-form';
@@ -1,6 +1,6 @@
1
- import { L as LocationType, h as VendorFormData, i as CreateVendorFormData, j as VendorInfoFormData, k as CreateVendorInfoFormData, l as EventFormData, m as CreateEventFormData, n as EventInfoFormData, o as CreateEventInfoFormData, B as BaseResourceTypeFormData } from '../global-DlaX2SCk.mjs';
2
- import { a as UserFormData, C as CreateUserFormData, b as TestersFormData, c as CreateTestersFormData, d as AdFormData, e as CreateAdFormData } from '../ad-C-0i99zR.mjs';
3
- import { C as CreateLoginFormData, a as CreateRegisterFormData, b as CreateRequestPasswordResetFormData, c as CreateValidateVerificationTokenFormData, d as CreateResetPasswordFormData, e as ContactUsFormData, f as CreateContactUsFormData } from '../auth-Ddkaba1k.mjs';
1
+ import { L as LocationType, h as VendorFormData, i as CreateVendorFormData, j as VendorInfoFormData, k as CreateVendorInfoFormData, l as EventFormData, m as CreateEventFormData, n as EventInfoFormData, o as CreateEventInfoFormData, B as BaseResourceTypeFormData } from '../global-_ZHkOcnR.mjs';
2
+ import { a as UserFormData, C as CreateUserFormData, b as TestersFormData, c as CreateTestersFormData, d as AdFormData, e as CreateAdFormData } from '../ad-CTWMmc7b.mjs';
3
+ import { C as CreateLoginFormData, a as CreateRegisterFormData, b as CreateRequestPasswordResetFormData, c as CreateValidateVerificationTokenFormData, d as CreateResetPasswordFormData, e as ContactUsFormData, f as CreateContactUsFormData } from '../auth-YsJJnj12.mjs';
4
4
  import 'mongoose';
5
5
  import 'react-hook-form';
6
6
  import '../enums/index.mjs';
@@ -1,6 +1,6 @@
1
- import { L as LocationType, h as VendorFormData, i as CreateVendorFormData, j as VendorInfoFormData, k as CreateVendorInfoFormData, l as EventFormData, m as CreateEventFormData, n as EventInfoFormData, o as CreateEventInfoFormData, B as BaseResourceTypeFormData } from '../global-IDogsFQv.js';
2
- import { a as UserFormData, C as CreateUserFormData, b as TestersFormData, c as CreateTestersFormData, d as AdFormData, e as CreateAdFormData } from '../ad-ZnPU3uan.js';
3
- import { C as CreateLoginFormData, a as CreateRegisterFormData, b as CreateRequestPasswordResetFormData, c as CreateValidateVerificationTokenFormData, d as CreateResetPasswordFormData, e as ContactUsFormData, f as CreateContactUsFormData } from '../auth-BRY-YJss.js';
1
+ import { L as LocationType, h as VendorFormData, i as CreateVendorFormData, j as VendorInfoFormData, k as CreateVendorInfoFormData, l as EventFormData, m as CreateEventFormData, n as EventInfoFormData, o as CreateEventInfoFormData, B as BaseResourceTypeFormData } from '../global-4lS-fh61.js';
2
+ import { a as UserFormData, C as CreateUserFormData, b as TestersFormData, c as CreateTestersFormData, d as AdFormData, e as CreateAdFormData } from '../ad-C02AZIGy.js';
3
+ import { C as CreateLoginFormData, a as CreateRegisterFormData, b as CreateRequestPasswordResetFormData, c as CreateValidateVerificationTokenFormData, d as CreateResetPasswordFormData, e as ContactUsFormData, f as CreateContactUsFormData } from '../auth-o_ns6gLk.js';
4
4
  import 'mongoose';
5
5
  import 'react-hook-form';
6
6
  import '../enums/index.js';
@@ -1,14 +1,14 @@
1
+ import {
2
+ dateFormat,
3
+ normalizeUrl,
4
+ timeFormat
5
+ } from "../chunk-GGNNB6MQ.mjs";
1
6
  import {
2
7
  EnumAdShowOn,
3
8
  EnumAdStatus,
4
9
  EnumAdStyle,
5
10
  EnumAdType
6
11
  } from "../chunk-XXZPSRMS.mjs";
7
- import {
8
- dateFormat,
9
- normalizeUrl,
10
- timeFormat
11
- } from "../chunk-GGNNB6MQ.mjs";
12
12
  import {
13
13
  EnumEventType,
14
14
  EnumFoodFlavor,