@timardex/cluemart-shared 1.2.27 → 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.
Files changed (52) hide show
  1. package/dist/ad-Crq-z5Wt.d.mts +69 -0
  2. package/dist/ad-DHetF-th.d.ts +69 -0
  3. package/dist/{auth-BVGs-5Vm.d.mts → auth-Ci6Uskch.d.mts} +1 -1
  4. package/dist/{auth-BhUIvvZ2.d.ts → auth-CzEdRDf1.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-CQ7TCXMI.mjs +68 -0
  8. package/dist/chunk-CQ7TCXMI.mjs.map +1 -0
  9. package/dist/formFields/index.d.mts +2 -1
  10. package/dist/formFields/index.d.ts +2 -1
  11. package/dist/{global-BA84KF8J.d.ts → global-2Jk7sRkL.d.ts} +128 -2
  12. package/dist/{global-BEqzo5Z2.d.mts → global-DWuTxnJ8.d.mts} +128 -2
  13. package/dist/graphql/index.d.mts +5 -3
  14. package/dist/graphql/index.d.ts +5 -3
  15. package/dist/hooks/index.d.mts +5 -3
  16. package/dist/hooks/index.d.ts +5 -3
  17. package/dist/hooks/index.mjs +5 -5
  18. package/dist/index.cjs +1132 -17
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.d.mts +695 -300
  21. package/dist/index.d.ts +695 -300
  22. package/dist/index.mjs +1117 -17
  23. package/dist/index.mjs.map +1 -1
  24. package/dist/mongoose/index.cjs +1068 -0
  25. package/dist/mongoose/index.cjs.map +1 -0
  26. package/dist/mongoose/index.d.mts +318 -0
  27. package/dist/mongoose/index.d.ts +318 -0
  28. package/dist/mongoose/index.mjs +855 -0
  29. package/dist/mongoose/index.mjs.map +1 -0
  30. package/dist/resourceActivities-B4roVKtQ.d.ts +34 -0
  31. package/dist/resourceActivities-BIjtlOGp.d.mts +34 -0
  32. package/dist/service/index.cjs +336 -0
  33. package/dist/service/index.cjs.map +1 -0
  34. package/dist/service/index.d.mts +27 -0
  35. package/dist/service/index.d.ts +27 -0
  36. package/dist/service/index.mjs +214 -0
  37. package/dist/service/index.mjs.map +1 -0
  38. package/dist/types/index.cjs +13 -2
  39. package/dist/types/index.cjs.map +1 -1
  40. package/dist/types/index.d.mts +6 -4
  41. package/dist/types/index.d.ts +6 -4
  42. package/dist/types/index.mjs +6 -11
  43. package/dist/types/index.mjs.map +1 -1
  44. package/dist/user-DbEEY7fv.d.ts +64 -0
  45. package/dist/user-OPY5EOqR.d.mts +64 -0
  46. package/dist/utils/index.d.mts +2 -1
  47. package/dist/utils/index.d.ts +2 -1
  48. package/package.json +13 -1
  49. package/dist/ad-Bv5fLkN0.d.mts +0 -129
  50. package/dist/ad-DDPNpx02.d.ts +0 -129
  51. package/dist/resourceActivities-DWC-Btmf.d.ts +0 -96
  52. package/dist/resourceActivities-DoLx4lPo.d.mts +0 -96
@@ -0,0 +1,69 @@
1
+ import { EnumOSPlatform, EnumResourceType } from './enums/index.mjs';
2
+ import { C as Category, a1 as CreateFormData, r as SocialMediaType } from './global-DWuTxnJ8.mjs';
3
+
4
+ interface TestersFormData {
5
+ categories?: Category[] | null;
6
+ companyName: string;
7
+ email: string;
8
+ firstName: string;
9
+ lastName: string;
10
+ osType: EnumOSPlatform;
11
+ region: string;
12
+ resourceType: EnumResourceType;
13
+ }
14
+ type CreateTestersFormData = CreateFormData<TestersFormData>;
15
+ interface TesterType extends TestersFormData {
16
+ _id: string;
17
+ active: boolean;
18
+ createdAt: string;
19
+ updatedAt: string;
20
+ }
21
+
22
+ declare enum EnumAdShowOn {
23
+ FRONT_PAGE = "Front_page",
24
+ EVENTS_PAGE = "Events_page",
25
+ VENDORS_PAGE = "Vendors_page"
26
+ }
27
+ declare enum EnumAdStatus {
28
+ ACTIVE = "Active",
29
+ PAUSED = "Paused",
30
+ EXPIRED = "Expired"
31
+ }
32
+ declare enum EnumAdType {
33
+ SPONSORED = "Sponsored",
34
+ FREE = "Free"
35
+ }
36
+ declare enum EnumAdStyle {
37
+ BLOOM = "Bloom",
38
+ RISE = "Rise"
39
+ }
40
+ interface AdFormData {
41
+ active: boolean;
42
+ adStyle: EnumAdStyle;
43
+ adType: EnumAdType;
44
+ clui?: string | null;
45
+ end: Date;
46
+ resourceCover: string;
47
+ resourceDescription: string;
48
+ resourceId: string;
49
+ resourceLogo?: string | null;
50
+ resourceName: string;
51
+ resourceRegion: string;
52
+ resourceType: EnumResourceType;
53
+ showOn: EnumAdShowOn;
54
+ socialMedia?: SocialMediaType[] | null;
55
+ start?: Date;
56
+ status: EnumAdStatus;
57
+ targetRegion?: string | null;
58
+ }
59
+ type CreateAdFormData = CreateFormData<AdFormData>;
60
+ interface AdType extends AdFormData {
61
+ _id: string;
62
+ clicks?: number;
63
+ createdAt: Date;
64
+ impressions?: number;
65
+ start: Date;
66
+ updatedAt: Date;
67
+ }
68
+
69
+ export { type AdType as A, type CreateTestersFormData as C, EnumAdStatus as E, type TesterType as T, type TestersFormData as a, type AdFormData as b, type CreateAdFormData as c, EnumAdShowOn as d, EnumAdType as e, EnumAdStyle as f };
@@ -0,0 +1,69 @@
1
+ import { EnumOSPlatform, EnumResourceType } from './enums/index.js';
2
+ import { C as Category, a1 as CreateFormData, r as SocialMediaType } from './global-2Jk7sRkL.js';
3
+
4
+ interface TestersFormData {
5
+ categories?: Category[] | null;
6
+ companyName: string;
7
+ email: string;
8
+ firstName: string;
9
+ lastName: string;
10
+ osType: EnumOSPlatform;
11
+ region: string;
12
+ resourceType: EnumResourceType;
13
+ }
14
+ type CreateTestersFormData = CreateFormData<TestersFormData>;
15
+ interface TesterType extends TestersFormData {
16
+ _id: string;
17
+ active: boolean;
18
+ createdAt: string;
19
+ updatedAt: string;
20
+ }
21
+
22
+ declare enum EnumAdShowOn {
23
+ FRONT_PAGE = "Front_page",
24
+ EVENTS_PAGE = "Events_page",
25
+ VENDORS_PAGE = "Vendors_page"
26
+ }
27
+ declare enum EnumAdStatus {
28
+ ACTIVE = "Active",
29
+ PAUSED = "Paused",
30
+ EXPIRED = "Expired"
31
+ }
32
+ declare enum EnumAdType {
33
+ SPONSORED = "Sponsored",
34
+ FREE = "Free"
35
+ }
36
+ declare enum EnumAdStyle {
37
+ BLOOM = "Bloom",
38
+ RISE = "Rise"
39
+ }
40
+ interface AdFormData {
41
+ active: boolean;
42
+ adStyle: EnumAdStyle;
43
+ adType: EnumAdType;
44
+ clui?: string | null;
45
+ end: Date;
46
+ resourceCover: string;
47
+ resourceDescription: string;
48
+ resourceId: string;
49
+ resourceLogo?: string | null;
50
+ resourceName: string;
51
+ resourceRegion: string;
52
+ resourceType: EnumResourceType;
53
+ showOn: EnumAdShowOn;
54
+ socialMedia?: SocialMediaType[] | null;
55
+ start?: Date;
56
+ status: EnumAdStatus;
57
+ targetRegion?: string | null;
58
+ }
59
+ type CreateAdFormData = CreateFormData<AdFormData>;
60
+ interface AdType extends AdFormData {
61
+ _id: string;
62
+ clicks?: number;
63
+ createdAt: Date;
64
+ impressions?: number;
65
+ start: Date;
66
+ updatedAt: Date;
67
+ }
68
+
69
+ export { type AdType as A, type CreateTestersFormData as C, EnumAdStatus as E, type TesterType as T, type TestersFormData as a, type AdFormData as b, type CreateAdFormData as c, EnumAdShowOn as d, EnumAdType as e, EnumAdStyle as f };
@@ -1,4 +1,4 @@
1
- import { x as CreateFormData, T as TermsAgreement } from './global-BEqzo5Z2.mjs';
1
+ import { a1 as CreateFormData, T as TermsAgreement } from './global-DWuTxnJ8.mjs';
2
2
  import { EnumOSPlatform } from './enums/index.mjs';
3
3
 
4
4
  type ContactUsFormData = {
@@ -1,4 +1,4 @@
1
- import { x as CreateFormData, T as TermsAgreement } from './global-BA84KF8J.js';
1
+ import { a1 as CreateFormData, T as TermsAgreement } from './global-2Jk7sRkL.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,68 @@
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
+ var Notification_default = NotificationModel;
45
+
46
+ // src/mongoose/PushToken.ts
47
+ import mongoose2 from "mongoose";
48
+ var MongooseSchema2 = mongoose2.Schema;
49
+ var schema2 = new MongooseSchema2(
50
+ {
51
+ platform: {
52
+ enum: Object.values(EnumOSPlatform),
53
+ required: true,
54
+ type: String
55
+ },
56
+ token: { required: true, type: String },
57
+ userId: { required: true, type: mongoose2.Schema.Types.ObjectId }
58
+ },
59
+ { timestamps: true }
60
+ );
61
+ var PushTokenModel = mongoose2.model("PushToken", schema2);
62
+ var PushToken_default = PushTokenModel;
63
+
64
+ export {
65
+ Notification_default,
66
+ PushToken_default
67
+ };
68
+ //# sourceMappingURL=chunk-CQ7TCXMI.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\nconst NotificationModel = mongoose.model<SchemaNotificationType>(\n \"Notification\",\n schema,\n);\n\nexport default NotificationModel;\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\nconst PushTokenModel = mongoose.model<SchemaPushTokenType>(\"PushToken\", schema);\n\nexport default PushTokenModel;\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;AAEzC,IAAM,oBAAoB,SAAS;AAAA,EACjC;AAAA,EACA;AACF;AAEA,IAAO,uBAAQ;;;AC/Df,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;AAEA,IAAM,iBAAiBA,UAAS,MAA2B,aAAaC,OAAM;AAE9E,IAAO,oBAAQ;","names":["mongoose","MongooseSchema","mongoose","schema"]}
@@ -1,4 +1,5 @@
1
- import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-BEqzo5Z2.mjs';
1
+ import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-DWuTxnJ8.mjs';
2
+ import 'mongoose';
2
3
  import 'react-hook-form';
3
4
  import '../enums/index.mjs';
4
5
 
@@ -1,4 +1,5 @@
1
- import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-BA84KF8J.js';
1
+ import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-2Jk7sRkL.js';
2
+ import 'mongoose';
2
3
  import 'react-hook-form';
3
4
  import '../enums/index.js';
4
5
 
@@ -1,5 +1,40 @@
1
+ import mongoose from 'mongoose';
1
2
  import { FieldValues, Control, FieldErrors, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
2
- import { EnumEventType, EnumPaymentMethod, EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumVendorType, EnumFoodFlavor, EnumUserLicence, EnumSocialMedia } from './enums/index.js';
3
+ import { EnumChatType, EnumEventType, EnumPaymentMethod, EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumVendorType, EnumFoodFlavor, EnumNotificationType, EnumNotificationResourceType, EnumUserLicence, EnumSocialMedia } from './enums/index.js';
4
+
5
+ type ParticipantType = {
6
+ active: boolean;
7
+ email: string;
8
+ userId: string;
9
+ };
10
+ interface ChatMessageInput {
11
+ content: string;
12
+ senderId: string;
13
+ }
14
+ interface ChatMessageType {
15
+ _id?: string;
16
+ content: string;
17
+ createdAt?: string;
18
+ senderAvatar: string | null;
19
+ senderId: string;
20
+ senderName: string;
21
+ updatedAt?: string;
22
+ }
23
+ interface ChatType {
24
+ _id: string;
25
+ active: boolean;
26
+ chatType: EnumChatType;
27
+ chatName: string;
28
+ createdAt: string;
29
+ messages: ChatMessageType[];
30
+ participants: ParticipantType[];
31
+ resourceInfo: {
32
+ eventId: string;
33
+ vendorId: string;
34
+ } | null;
35
+ updatedAt: string;
36
+ deletedAt: string | null;
37
+ }
3
38
 
4
39
  type StallType = {
5
40
  label: string;
@@ -164,6 +199,67 @@ type VendorInfoType = Omit<VendorInfoFormData, "_id" | "documentsUpload"> & {
164
199
  _id: string;
165
200
  };
166
201
 
202
+ type SchemaCreateBulkNotificationInput = Omit<CreateBulkNotificationInput, "userIds"> & {
203
+ userIds: ObjectId[];
204
+ };
205
+ type SchemaNotificationType = Omit<NotificationType, "userId"> & {
206
+ userId: ObjectId;
207
+ };
208
+
209
+ interface NotificationDataType {
210
+ resourceId: string;
211
+ resourceName: string;
212
+ resourceType: EnumNotificationResourceType;
213
+ }
214
+ type NotificationType = {
215
+ _id: string;
216
+ userId: string;
217
+ title: string;
218
+ message: string;
219
+ isRead: boolean;
220
+ type: EnumNotificationType;
221
+ data: NotificationDataType | null;
222
+ createdAt: string;
223
+ updatedAt: string;
224
+ };
225
+ type NotificationCount = {
226
+ total: number;
227
+ unread: number;
228
+ };
229
+ type CreateBulkNotificationInput = {
230
+ userIds: string[];
231
+ title: string;
232
+ message: string;
233
+ type: EnumNotificationType;
234
+ data: NotificationDataType | null;
235
+ };
236
+
237
+ type SchemaChatMessageType = Omit<ChatMessageType, "senderId"> & {
238
+ senderId: ObjectId;
239
+ };
240
+ type SchemaParticipantType = Omit<ParticipantType, "userId"> & {
241
+ userId: ObjectId;
242
+ };
243
+ type SchemaChatType = Omit<ChatType, "participants" | "messages" | "resourceInfo"> & {
244
+ participants: SchemaParticipantType[];
245
+ messages: SchemaChatMessageType[];
246
+ resourceInfo: {
247
+ eventId: ObjectId;
248
+ vendorId: ObjectId;
249
+ } | null;
250
+ };
251
+ declare const ParticipantSchema: mongoose.Schema<SchemaParticipantType, mongoose.Model<SchemaParticipantType, any, any, any, mongoose.Document<unknown, any, SchemaParticipantType, any, {}> & Omit<ParticipantType, "userId"> & {
252
+ userId: ObjectId;
253
+ } & {
254
+ _id: mongoose.Types.ObjectId;
255
+ } & {
256
+ __v: number;
257
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaParticipantType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaParticipantType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaParticipantType> & {
258
+ _id: mongoose.Types.ObjectId;
259
+ } & {
260
+ __v: number;
261
+ }>;
262
+
167
263
  type Nullable<T> = {
168
264
  [K in keyof T]: T[K] | null | undefined;
169
265
  };
@@ -328,5 +424,35 @@ interface CreateFormData<T extends FieldValues> {
328
424
  setValue: UseFormSetValue<T>;
329
425
  watch: UseFormWatch<T>;
330
426
  }
427
+ type ObjectId = mongoose.Schema.Types.ObjectId;
428
+ declare enum EnumPubSubEvents {
429
+ GET_CHAT_MESSAGE = "GET_CHAT_MESSAGE",
430
+ GET_NOTIFICATIONS = "GET_NOTIFICATIONS",
431
+ GET_NOTIFICATIONS_COUNT = "GET_NOTIFICATIONS_COUNT",
432
+ USER_TYPING = "USER_TYPING"
433
+ }
434
+ interface AuthUser {
435
+ email: string;
436
+ role: string;
437
+ userId: ObjectId;
438
+ }
439
+ interface SubscriptionPayload {
440
+ getChatMessage?: SchemaChatType;
441
+ userTyping?: SchemaChatType;
442
+ getNotifications?: SchemaNotificationType[];
443
+ getNotificationsUserId?: ObjectId;
444
+ getNotificationsCount?: NotificationCount & {
445
+ userId: ObjectId;
446
+ };
447
+ }
448
+ interface GraphQLContext {
449
+ user: AuthUser | null;
450
+ pubsub: {
451
+ publish: (eventName: EnumPubSubEvents, payload: SubscriptionPayload) => void;
452
+ subscribe: (eventName: EnumPubSubEvents) => AsyncIterable<any>;
453
+ };
454
+ request: Request;
455
+ response: Response;
456
+ }
331
457
 
332
- export type { RelationDate as A, BaseResourceTypeFormData as B, Category as C, DeviceInfo as D, EventType as E, FormField as F, GeocodeLocation as G, VendorLocation as H, ImageObjectType as I, VendorMenuType as J, VendorAttributes as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PartnerType as P, Requirement as R, StallType as S, TermsAgreement as T, VendorType as V, FormDateField as a, EventInfoType as b, RelationType as c, ResourceConnectionsType as d, VendorInfoType as e, VendorFormData as f, CreateVendorFormData as g, VendorInfoFormData as h, CreateVendorInfoFormData as i, EventFormData as j, CreateEventFormData as k, EventInfoFormData as l, CreateEventInfoFormData as m, ResourceContactDetailsType as n, ResourceImageType as o, SocialMediaType as p, OwnerType as q, PosterUsageType as r, BaseResourceType as s, DateTimeType as t, Region as u, SubcategoryItems as v, Subcategory as w, CreateFormData as x, DateTimeWithPriceType as y, PaymentInfoType as z };
458
+ export { type Subcategory as $, type SchemaCreateBulkNotificationInput as A, type BaseResourceTypeFormData as B, type Category as C, type DeviceInfo as D, type EventType as E, type FormField as F, type SchemaNotificationType as G, type GraphQLContext as H, type NotificationDataType as I, type ParticipantType as J, type ChatMessageInput as K, type LocationType as L, type ChatMessageType as M, type NotificationType as N, type OptionItem as O, type PartnerType as P, type Nullable as Q, type Requirement as R, type StallType as S, type TermsAgreement as T, type BaseResourceType as U, type VendorType as V, type DateTimeType as W, type Region as X, type GeocodeLocation as Y, type MapMultiLocation as Z, type SubcategoryItems as _, type FormDateField as a, type ImageObjectType as a0, type CreateFormData as a1, EnumPubSubEvents as a2, type AuthUser as a3, type SubscriptionPayload as a4, type DateTimeWithPriceType as a5, type PaymentInfoType as a6, type CreateBulkNotificationInput as a7, type VendorLocation as a8, type VendorMenuType as a9, type VendorAttributes as aa, 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,5 +1,40 @@
1
+ import mongoose from 'mongoose';
1
2
  import { FieldValues, Control, FieldErrors, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
2
- import { EnumEventType, EnumPaymentMethod, EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumVendorType, EnumFoodFlavor, EnumUserLicence, EnumSocialMedia } from './enums/index.mjs';
3
+ import { EnumChatType, EnumEventType, EnumPaymentMethod, EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumVendorType, EnumFoodFlavor, EnumNotificationType, EnumNotificationResourceType, EnumUserLicence, EnumSocialMedia } from './enums/index.mjs';
4
+
5
+ type ParticipantType = {
6
+ active: boolean;
7
+ email: string;
8
+ userId: string;
9
+ };
10
+ interface ChatMessageInput {
11
+ content: string;
12
+ senderId: string;
13
+ }
14
+ interface ChatMessageType {
15
+ _id?: string;
16
+ content: string;
17
+ createdAt?: string;
18
+ senderAvatar: string | null;
19
+ senderId: string;
20
+ senderName: string;
21
+ updatedAt?: string;
22
+ }
23
+ interface ChatType {
24
+ _id: string;
25
+ active: boolean;
26
+ chatType: EnumChatType;
27
+ chatName: string;
28
+ createdAt: string;
29
+ messages: ChatMessageType[];
30
+ participants: ParticipantType[];
31
+ resourceInfo: {
32
+ eventId: string;
33
+ vendorId: string;
34
+ } | null;
35
+ updatedAt: string;
36
+ deletedAt: string | null;
37
+ }
3
38
 
4
39
  type StallType = {
5
40
  label: string;
@@ -164,6 +199,67 @@ type VendorInfoType = Omit<VendorInfoFormData, "_id" | "documentsUpload"> & {
164
199
  _id: string;
165
200
  };
166
201
 
202
+ type SchemaCreateBulkNotificationInput = Omit<CreateBulkNotificationInput, "userIds"> & {
203
+ userIds: ObjectId[];
204
+ };
205
+ type SchemaNotificationType = Omit<NotificationType, "userId"> & {
206
+ userId: ObjectId;
207
+ };
208
+
209
+ interface NotificationDataType {
210
+ resourceId: string;
211
+ resourceName: string;
212
+ resourceType: EnumNotificationResourceType;
213
+ }
214
+ type NotificationType = {
215
+ _id: string;
216
+ userId: string;
217
+ title: string;
218
+ message: string;
219
+ isRead: boolean;
220
+ type: EnumNotificationType;
221
+ data: NotificationDataType | null;
222
+ createdAt: string;
223
+ updatedAt: string;
224
+ };
225
+ type NotificationCount = {
226
+ total: number;
227
+ unread: number;
228
+ };
229
+ type CreateBulkNotificationInput = {
230
+ userIds: string[];
231
+ title: string;
232
+ message: string;
233
+ type: EnumNotificationType;
234
+ data: NotificationDataType | null;
235
+ };
236
+
237
+ type SchemaChatMessageType = Omit<ChatMessageType, "senderId"> & {
238
+ senderId: ObjectId;
239
+ };
240
+ type SchemaParticipantType = Omit<ParticipantType, "userId"> & {
241
+ userId: ObjectId;
242
+ };
243
+ type SchemaChatType = Omit<ChatType, "participants" | "messages" | "resourceInfo"> & {
244
+ participants: SchemaParticipantType[];
245
+ messages: SchemaChatMessageType[];
246
+ resourceInfo: {
247
+ eventId: ObjectId;
248
+ vendorId: ObjectId;
249
+ } | null;
250
+ };
251
+ declare const ParticipantSchema: mongoose.Schema<SchemaParticipantType, mongoose.Model<SchemaParticipantType, any, any, any, mongoose.Document<unknown, any, SchemaParticipantType, any, {}> & Omit<ParticipantType, "userId"> & {
252
+ userId: ObjectId;
253
+ } & {
254
+ _id: mongoose.Types.ObjectId;
255
+ } & {
256
+ __v: number;
257
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaParticipantType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaParticipantType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaParticipantType> & {
258
+ _id: mongoose.Types.ObjectId;
259
+ } & {
260
+ __v: number;
261
+ }>;
262
+
167
263
  type Nullable<T> = {
168
264
  [K in keyof T]: T[K] | null | undefined;
169
265
  };
@@ -328,5 +424,35 @@ interface CreateFormData<T extends FieldValues> {
328
424
  setValue: UseFormSetValue<T>;
329
425
  watch: UseFormWatch<T>;
330
426
  }
427
+ type ObjectId = mongoose.Schema.Types.ObjectId;
428
+ declare enum EnumPubSubEvents {
429
+ GET_CHAT_MESSAGE = "GET_CHAT_MESSAGE",
430
+ GET_NOTIFICATIONS = "GET_NOTIFICATIONS",
431
+ GET_NOTIFICATIONS_COUNT = "GET_NOTIFICATIONS_COUNT",
432
+ USER_TYPING = "USER_TYPING"
433
+ }
434
+ interface AuthUser {
435
+ email: string;
436
+ role: string;
437
+ userId: ObjectId;
438
+ }
439
+ interface SubscriptionPayload {
440
+ getChatMessage?: SchemaChatType;
441
+ userTyping?: SchemaChatType;
442
+ getNotifications?: SchemaNotificationType[];
443
+ getNotificationsUserId?: ObjectId;
444
+ getNotificationsCount?: NotificationCount & {
445
+ userId: ObjectId;
446
+ };
447
+ }
448
+ interface GraphQLContext {
449
+ user: AuthUser | null;
450
+ pubsub: {
451
+ publish: (eventName: EnumPubSubEvents, payload: SubscriptionPayload) => void;
452
+ subscribe: (eventName: EnumPubSubEvents) => AsyncIterable<any>;
453
+ };
454
+ request: Request;
455
+ response: Response;
456
+ }
331
457
 
332
- export type { RelationDate as A, BaseResourceTypeFormData as B, Category as C, DeviceInfo as D, EventType as E, FormField as F, GeocodeLocation as G, VendorLocation as H, ImageObjectType as I, VendorMenuType as J, VendorAttributes as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PartnerType as P, Requirement as R, StallType as S, TermsAgreement as T, VendorType as V, FormDateField as a, EventInfoType as b, RelationType as c, ResourceConnectionsType as d, VendorInfoType as e, VendorFormData as f, CreateVendorFormData as g, VendorInfoFormData as h, CreateVendorInfoFormData as i, EventFormData as j, CreateEventFormData as k, EventInfoFormData as l, CreateEventInfoFormData as m, ResourceContactDetailsType as n, ResourceImageType as o, SocialMediaType as p, OwnerType as q, PosterUsageType as r, BaseResourceType as s, DateTimeType as t, Region as u, SubcategoryItems as v, Subcategory as w, CreateFormData as x, DateTimeWithPriceType as y, PaymentInfoType as z };
458
+ export { type Subcategory as $, type SchemaCreateBulkNotificationInput as A, type BaseResourceTypeFormData as B, type Category as C, type DeviceInfo as D, type EventType as E, type FormField as F, type SchemaNotificationType as G, type GraphQLContext as H, type NotificationDataType as I, type ParticipantType as J, type ChatMessageInput as K, type LocationType as L, type ChatMessageType as M, type NotificationType as N, type OptionItem as O, type PartnerType as P, type Nullable as Q, type Requirement as R, type StallType as S, type TermsAgreement as T, type BaseResourceType as U, type VendorType as V, type DateTimeType as W, type Region as X, type GeocodeLocation as Y, type MapMultiLocation as Z, type SubcategoryItems as _, type FormDateField as a, type ImageObjectType as a0, type CreateFormData as a1, EnumPubSubEvents as a2, type AuthUser as a3, type SubscriptionPayload as a4, type DateTimeWithPriceType as a5, type PaymentInfoType as a6, type CreateBulkNotificationInput as a7, type VendorLocation as a8, type VendorMenuType as a9, type VendorAttributes as aa, 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,8 +1,10 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
- import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-DoLx4lPo.mjs';
3
- import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType } from '../global-BEqzo5Z2.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-DWuTxnJ8.mjs';
4
3
  import { EnumResourceType } from '../enums/index.mjs';
5
- import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus } from '../ad-Bv5fLkN0.mjs';
4
+ import { T as TesterType, A as AdType, E as EnumAdStatus } from '../ad-Crq-z5Wt.mjs';
5
+ import { U as UserType } from '../user-OPY5EOqR.mjs';
6
+ import { R as ResourceActivityType } from '../resourceActivities-BIjtlOGp.mjs';
7
+ import 'mongoose';
6
8
  import 'react-hook-form';
7
9
 
8
10
  declare const useAdminUpdateResourceType: () => {
@@ -1,8 +1,10 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
- import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-DWC-Btmf.js';
3
- import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType } from '../global-BA84KF8J.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-2Jk7sRkL.js';
4
3
  import { EnumResourceType } from '../enums/index.js';
5
- import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus } from '../ad-DDPNpx02.js';
4
+ import { T as TesterType, A as AdType, E as EnumAdStatus } from '../ad-DHetF-th.js';
5
+ import { U as UserType } from '../user-DbEEY7fv.js';
6
+ import { R as ResourceActivityType } from '../resourceActivities-B4roVKtQ.js';
7
+ import 'mongoose';
6
8
  import 'react-hook-form';
7
9
 
8
10
  declare const useAdminUpdateResourceType: () => {
@@ -1,6 +1,8 @@
1
- import { L as LocationType, f as VendorFormData, g as CreateVendorFormData, h as VendorInfoFormData, i as CreateVendorInfoFormData, j as EventFormData, k as CreateEventFormData, l as EventInfoFormData, m as CreateEventInfoFormData, B as BaseResourceTypeFormData } from '../global-BEqzo5Z2.mjs';
2
- import { a as UserFormData, C as CreateUserFormData, b as TestersFormData, c as CreateTestersFormData, d as AdFormData, e as CreateAdFormData } from '../ad-Bv5fLkN0.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-BVGs-5Vm.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-DWuTxnJ8.mjs';
2
+ import { a as UserFormData, C as CreateUserFormData } from '../user-OPY5EOqR.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-Ci6Uskch.mjs';
4
+ import { a as TestersFormData, C as CreateTestersFormData, b as AdFormData, c as CreateAdFormData } from '../ad-Crq-z5Wt.mjs';
5
+ import 'mongoose';
4
6
  import 'react-hook-form';
5
7
  import '../enums/index.mjs';
6
8
 
@@ -1,6 +1,8 @@
1
- import { L as LocationType, f as VendorFormData, g as CreateVendorFormData, h as VendorInfoFormData, i as CreateVendorInfoFormData, j as EventFormData, k as CreateEventFormData, l as EventInfoFormData, m as CreateEventInfoFormData, B as BaseResourceTypeFormData } from '../global-BA84KF8J.js';
2
- import { a as UserFormData, C as CreateUserFormData, b as TestersFormData, c as CreateTestersFormData, d as AdFormData, e as CreateAdFormData } from '../ad-DDPNpx02.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-BhUIvvZ2.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-2Jk7sRkL.js';
2
+ import { a as UserFormData, C as CreateUserFormData } from '../user-DbEEY7fv.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-CzEdRDf1.js';
4
+ import { a as TestersFormData, C as CreateTestersFormData, b as AdFormData, c as CreateAdFormData } from '../ad-DHetF-th.js';
5
+ import 'mongoose';
4
6
  import 'react-hook-form';
5
7
  import '../enums/index.js';
6
8