@myrjfa/state 2.1.8 → 2.2.0

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 (181) hide show
  1. package/dist/hooks/usePersistentDraftState.d.ts +20 -0
  2. package/dist/hooks/usePersistentDraftState.d.ts.map +1 -0
  3. package/dist/hooks/usePersistentDraftState.js +47 -0
  4. package/dist/index.d.ts +3 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +3 -0
  7. package/dist/lib/actions/actions.d.ts +15 -15
  8. package/dist/lib/actions/actions.d.ts.map +1 -1
  9. package/dist/lib/actions/actions.js +44 -8
  10. package/dist/lib/actions/auth.d.ts +2 -2
  11. package/dist/lib/actions/auth.d.ts.map +1 -1
  12. package/dist/lib/actions/auth.js +9 -0
  13. package/dist/lib/actions/booking.js +2 -2
  14. package/dist/lib/actions/fetcher.js +2 -1
  15. package/dist/lib/actions.d.ts +556 -0
  16. package/dist/lib/actions.d.ts.map +1 -0
  17. package/dist/lib/actions.js +1327 -0
  18. package/dist/lib/adminDashboardActions.d.ts +61 -0
  19. package/dist/lib/adminDashboardActions.d.ts.map +1 -0
  20. package/dist/lib/adminDashboardActions.js +89 -0
  21. package/dist/lib/adventureActions.d.ts +102 -0
  22. package/dist/lib/adventureActions.d.ts.map +1 -0
  23. package/dist/lib/adventureActions.js +202 -0
  24. package/dist/lib/adventureDummyData.d.ts +3 -0
  25. package/dist/lib/adventureDummyData.d.ts.map +1 -0
  26. package/dist/lib/adventureDummyData.js +138 -0
  27. package/dist/lib/adventureFormPage.d.ts +39 -0
  28. package/dist/lib/adventureFormPage.d.ts.map +1 -0
  29. package/dist/lib/adventureFormPage.js +70 -0
  30. package/dist/lib/brandActions.d.ts +83 -0
  31. package/dist/lib/brandActions.d.ts.map +1 -0
  32. package/dist/lib/brandActions.js +28 -0
  33. package/dist/lib/companionActions.d.ts +174 -0
  34. package/dist/lib/companionActions.d.ts.map +1 -0
  35. package/dist/lib/companionActions.js +276 -0
  36. package/dist/lib/companionDummyData.d.ts +99 -0
  37. package/dist/lib/companionDummyData.d.ts.map +1 -0
  38. package/dist/lib/companionDummyData.js +203 -0
  39. package/dist/lib/destinations.d.ts +14 -0
  40. package/dist/lib/destinations.d.ts.map +1 -0
  41. package/dist/lib/destinations.js +203 -0
  42. package/dist/lib/entitySubmission.d.ts +21 -0
  43. package/dist/lib/entitySubmission.d.ts.map +1 -0
  44. package/dist/lib/entitySubmission.js +10 -0
  45. package/dist/lib/eventActions.d.ts +176 -0
  46. package/dist/lib/eventActions.d.ts.map +1 -0
  47. package/dist/lib/eventActions.js +222 -0
  48. package/dist/lib/eventFormPage.d.ts +49 -0
  49. package/dist/lib/eventFormPage.d.ts.map +1 -0
  50. package/dist/lib/eventFormPage.js +84 -0
  51. package/dist/lib/eventsDummyData.d.ts +54 -0
  52. package/dist/lib/eventsDummyData.d.ts.map +1 -0
  53. package/dist/lib/eventsDummyData.js +586 -0
  54. package/dist/lib/guideActions.d.ts +53 -0
  55. package/dist/lib/guideActions.d.ts.map +1 -0
  56. package/dist/lib/guideActions.js +127 -0
  57. package/dist/lib/guideDummyData.d.ts +3 -0
  58. package/dist/lib/guideDummyData.d.ts.map +1 -0
  59. package/dist/lib/guideDummyData.js +66 -0
  60. package/dist/lib/hooks/use-mobile.js +0 -1
  61. package/dist/lib/hooks/useChatSocket.js +0 -1
  62. package/dist/lib/hooks/useHostCalendarSelection.d.ts +51 -0
  63. package/dist/lib/hooks/useHostCalendarSelection.d.ts.map +1 -0
  64. package/dist/lib/hooks/useHostCalendarSelection.js +200 -0
  65. package/dist/lib/hostDashboardActions.d.ts +189 -0
  66. package/dist/lib/hostDashboardActions.d.ts.map +1 -0
  67. package/dist/lib/hostDashboardActions.js +400 -0
  68. package/dist/lib/imageUpload.d.ts +4 -0
  69. package/dist/lib/imageUpload.d.ts.map +1 -0
  70. package/dist/lib/imageUpload.js +36 -0
  71. package/dist/lib/locationActions.d.ts +141 -0
  72. package/dist/lib/locationActions.d.ts.map +1 -0
  73. package/dist/lib/locationActions.js +113 -0
  74. package/dist/lib/models/adventure.d.ts +26 -9
  75. package/dist/lib/models/adventure.d.ts.map +1 -1
  76. package/dist/lib/models/application.d.ts +1 -1
  77. package/dist/lib/models/application.d.ts.map +1 -1
  78. package/dist/lib/models/blog.d.ts +2 -2
  79. package/dist/lib/models/booking.d.ts +16 -1
  80. package/dist/lib/models/booking.d.ts.map +1 -1
  81. package/dist/lib/models/discount.d.ts +160 -0
  82. package/dist/lib/models/discount.d.ts.map +1 -0
  83. package/dist/lib/models/discount.js +106 -0
  84. package/dist/lib/models/enquiry.d.ts +34 -0
  85. package/dist/lib/models/enquiry.d.ts.map +1 -0
  86. package/dist/lib/models/enquiry.js +140 -0
  87. package/dist/lib/models/guide.d.ts +4 -3
  88. package/dist/lib/models/guide.d.ts.map +1 -1
  89. package/dist/lib/models/notifications.d.ts +12 -12
  90. package/dist/lib/models/opportunities/freelance.d.ts +82 -82
  91. package/dist/lib/models/opportunities/internship.d.ts +82 -82
  92. package/dist/lib/models/opportunities/job.d.ts +84 -84
  93. package/dist/lib/models/opportunities/opportunity.d.ts +89 -84
  94. package/dist/lib/models/opportunities/opportunity.d.ts.map +1 -1
  95. package/dist/lib/models/opportunities/opportunity.js +2 -0
  96. package/dist/lib/models/opportunities/volunteerJob.d.ts +82 -82
  97. package/dist/lib/models/package.d.ts +380 -86
  98. package/dist/lib/models/package.d.ts.map +1 -1
  99. package/dist/lib/models/package.js +9 -8
  100. package/dist/lib/models/pricing.d.ts +255 -0
  101. package/dist/lib/models/pricing.d.ts.map +1 -0
  102. package/dist/lib/models/pricing.js +145 -0
  103. package/dist/lib/models/rental.d.ts +12 -7
  104. package/dist/lib/models/rental.d.ts.map +1 -1
  105. package/dist/lib/models/review.d.ts +11 -2
  106. package/dist/lib/models/review.d.ts.map +1 -1
  107. package/dist/lib/models/review.js +2 -0
  108. package/dist/lib/models/stay.d.ts +11 -8
  109. package/dist/lib/models/stay.d.ts.map +1 -1
  110. package/dist/lib/models/stay.js +1 -0
  111. package/dist/lib/models/tile.d.ts +11 -7
  112. package/dist/lib/models/tile.d.ts.map +1 -1
  113. package/dist/lib/models/travelPackage.d.ts +943 -0
  114. package/dist/lib/models/travelPackage.d.ts.map +1 -0
  115. package/dist/lib/models/travelPackage.js +326 -0
  116. package/dist/lib/multistepDraft.d.ts +4 -0
  117. package/dist/lib/multistepDraft.d.ts.map +1 -0
  118. package/dist/lib/multistepDraft.js +18 -0
  119. package/dist/lib/opportunityFormData.d.ts +13 -0
  120. package/dist/lib/opportunityFormData.d.ts.map +1 -0
  121. package/dist/lib/opportunityFormData.js +62 -0
  122. package/dist/lib/opportunityFormPage.d.ts +38 -0
  123. package/dist/lib/opportunityFormPage.d.ts.map +1 -0
  124. package/dist/lib/opportunityFormPage.js +33 -0
  125. package/dist/lib/packageActions.d.ts +86 -0
  126. package/dist/lib/packageActions.d.ts.map +1 -0
  127. package/dist/lib/packageActions.js +168 -0
  128. package/dist/lib/packageDummyData.d.ts +3 -0
  129. package/dist/lib/packageDummyData.d.ts.map +1 -0
  130. package/dist/lib/packageDummyData.js +57 -0
  131. package/dist/lib/placeActions.d.ts +192 -0
  132. package/dist/lib/placeActions.d.ts.map +1 -0
  133. package/dist/lib/placeActions.js +57 -0
  134. package/dist/lib/propertyActions.d.ts +17 -0
  135. package/dist/lib/propertyActions.d.ts.map +1 -0
  136. package/dist/lib/propertyActions.js +16 -0
  137. package/dist/lib/rentalActions.d.ts +86 -0
  138. package/dist/lib/rentalActions.d.ts.map +1 -0
  139. package/dist/lib/rentalActions.js +235 -0
  140. package/dist/lib/rentalDummyData.d.ts +3 -0
  141. package/dist/lib/rentalDummyData.d.ts.map +1 -0
  142. package/dist/lib/rentalDummyData.js +402 -0
  143. package/dist/lib/rentalFormPage.d.ts +48 -0
  144. package/dist/lib/rentalFormPage.d.ts.map +1 -0
  145. package/dist/lib/rentalFormPage.js +97 -0
  146. package/dist/lib/roomActions.d.ts +39 -0
  147. package/dist/lib/roomActions.d.ts.map +1 -0
  148. package/dist/lib/roomActions.js +74 -0
  149. package/dist/lib/stayActions.d.ts +97 -0
  150. package/dist/lib/stayActions.d.ts.map +1 -0
  151. package/dist/lib/stayActions.js +138 -0
  152. package/dist/lib/staysDummyData.d.ts +72 -0
  153. package/dist/lib/staysDummyData.d.ts.map +1 -0
  154. package/dist/lib/staysDummyData.js +694 -0
  155. package/dist/lib/storeDummyData.d.ts +33 -0
  156. package/dist/lib/storeDummyData.d.ts.map +1 -0
  157. package/dist/lib/storeDummyData.js +336 -0
  158. package/dist/lib/travelPackageActions.d.ts +102 -0
  159. package/dist/lib/travelPackageActions.d.ts.map +1 -0
  160. package/dist/lib/travelPackageActions.js +487 -0
  161. package/dist/lib/travelPackageFormData.d.ts +20 -0
  162. package/dist/lib/travelPackageFormData.d.ts.map +1 -0
  163. package/dist/lib/travelPackageFormData.js +54 -0
  164. package/dist/lib/travelPackageFormPage.d.ts +32 -0
  165. package/dist/lib/travelPackageFormPage.d.ts.map +1 -0
  166. package/dist/lib/travelPackageFormPage.js +43 -0
  167. package/dist/lib/userAtom.d.ts +24 -24
  168. package/dist/lib/userAtom.d.ts.map +1 -1
  169. package/dist/lib/userAtom.js +17 -1
  170. package/dist/lib/util.d.ts +11 -0
  171. package/dist/lib/util.d.ts.map +1 -0
  172. package/dist/lib/util.js +82 -0
  173. package/dist/lib/utils.d.ts.map +1 -1
  174. package/dist/lib/utils.js +1 -0
  175. package/dist/lib/vehicleData.d.ts +2 -0
  176. package/dist/lib/vehicleData.d.ts.map +1 -0
  177. package/dist/lib/vehicleData.js +181 -0
  178. package/dist/lib/vehicleModels.d.ts +2 -0
  179. package/dist/lib/vehicleModels.d.ts.map +1 -0
  180. package/dist/lib/vehicleModels.js +128 -0
  181. package/package.json +6 -5
@@ -0,0 +1,140 @@
1
+ export {};
2
+ // export const mockEnquiries: PackageEnquiry[] = [
3
+ // {
4
+ // _id: '1',
5
+ // userId: "johndoe",
6
+ // name: 'John Doe',
7
+ // email: 'john.doe@example.com',
8
+ // phoneNumber: '+1234567890',
9
+ // profilePic: "/images/profile_placeholder.webp",
10
+ // userRating: 4.2,
11
+ // packageId: 'spiti-valley-adventure',
12
+ // packageTitle: 'Spiti Valley Overland Adventure',
13
+ // destination: 'Shimla, Himachal Pradesh',
14
+ // status: 'pending',
15
+ // // travelers: [
16
+ // // { name: 'John Doe', age: 28, gender: 'male', specialRequests: 'Vegetarian meals' },
17
+ // // { name: 'Jane Doe', age: 26, gender: 'female', specialRequests: 'No spicy food' }
18
+ // // ],
19
+ // males: 6,
20
+ // females: 8,
21
+ // message: "Hi! We're interested in this amazing Spiti Valley adventure. Could you please provide more details about the accommodation types and what's included in the package? We're particularly interested in photography opportunities.",
22
+ // createdAt: '2025-03-01',
23
+ // updatedAt: '2025-03-01',
24
+ // },
25
+ // {
26
+ // _id: '2',
27
+ // userId: "janesmith",
28
+ // name: 'Jane Smith',
29
+ // email: 'jane.smith@example.com',
30
+ // phoneNumber: '+0987654321',
31
+ // profilePic: "/images/profile_placeholder.webp",
32
+ // userRating: 4.5,
33
+ // packageId: 'kerala-backwaters',
34
+ // packageTitle: 'Kerala Backwater Experience',
35
+ // destination: 'Alleppey, Kerala',
36
+ // status: 'pending',
37
+ // // travelers: [
38
+ // // { name: 'Jane Smith', age: 32, gender: 'female' },
39
+ // // { name: 'Robert Smith', age: 35, gender: 'male', specialRequests: 'Wheelchair accessible accommodation' }
40
+ // // ],
41
+ // males: 6,
42
+ // females: 8,
43
+ // message: "Looking for a peaceful getaway in Kerala. Interested in houseboat stays and Ayurvedic treatments. My husband has mobility issues, so we need accessible facilities.",
44
+ // hostId: '201',
45
+ // createdAt: '2025-02-15',
46
+ // updatedAt: '2025-03-05',
47
+ // },
48
+ // {
49
+ // _id: '3',
50
+ // userId: "alicejohnson",
51
+ // name: 'Alice Johnson',
52
+ // email: 'alice.johnson@example.com',
53
+ // phoneNumber: '+1122334455',
54
+ // profilePic: "/images/profile_placeholder.webp",
55
+ // userRating: 4.8,
56
+ // packageId: 'rajasthan-heritage',
57
+ // packageTitle: 'Royal Rajasthan Heritage Tour',
58
+ // destination: 'Jaipur, Rajasthan',
59
+ // status: 'booked',
60
+ // // travelers: [
61
+ // // { name: 'Alice Johnson', age: 29, gender: 'female', specialRequests: 'Vegan meals preferred' },
62
+ // // { name: 'Mike Johnson', age: 31, gender: 'male' },
63
+ // // { name: 'Emma Johnson', age: 8, gender: 'female', specialRequests: 'Child-friendly activities' }
64
+ // // ],
65
+ // males: 6,
66
+ // females: 8,
67
+ // message: "Family trip to explore Rajasthan's palaces and forts. We have an 8-year-old daughter, so would appreciate kid-friendly activities and accommodations.",
68
+ // hostId: '202',
69
+ // createdAt: '2024-11-20',
70
+ // updatedAt: '2025-03-25',
71
+ // },
72
+ // {
73
+ // _id: '4',
74
+ // userId: "mikebrown",
75
+ // name: 'Mike Brown',
76
+ // email: 'mike.brown@example.com',
77
+ // phoneNumber: '+5566778899',
78
+ // userRating: 4.1,
79
+ // packageId: 'goa-beach-holiday',
80
+ // packageTitle: 'Goa Beach Paradise',
81
+ // destination: 'Goa',
82
+ // status: 'completed',
83
+ // // travelers: [
84
+ // // { name: 'Mike Brown', age: 27, gender: 'male' },
85
+ // // { name: 'Sarah Brown', age: 25, gender: 'female', specialRequests: 'Seafood allergy' }
86
+ // // ],
87
+ // males: 6,
88
+ // females: 8,
89
+ // message: "Honeymoon trip to Goa. Looking for romantic beachside accommodation and water sports activities. My wife has a seafood allergy.",
90
+ // hostId: '203',
91
+ // createdAt: '2024-10-20',
92
+ // updatedAt: '2024-12-25',
93
+ // },
94
+ // {
95
+ // _id: '5',
96
+ // userId: "sarahwilson",
97
+ // name: 'Sarah Wilson',
98
+ // email: 'sarah.wilson@example.com',
99
+ // phoneNumber: '+9988776655',
100
+ // profilePic: "/images/profile_placeholder.webp",
101
+ // userRating: 4.6,
102
+ // packageId: 'ladakh-adventure',
103
+ // packageTitle: 'Ladakh High Altitude Adventure',
104
+ // destination: 'Leh, Ladakh',
105
+ // status: 'cancelled',
106
+ // // travelers: [
107
+ // // { name: 'Sarah Wilson', age: 24, gender: 'female' }
108
+ // // ],
109
+ // males: 6,
110
+ // females: 8,
111
+ // message: "Solo female traveler interested in Ladakh adventure. Looking for safe accommodation and group activities. Interested in photography and trekking.",
112
+ // hostId: '201',
113
+ // createdAt: '2025-01-15',
114
+ // updatedAt: '2025-02-20',
115
+ // },
116
+ // {
117
+ // _id: '6',
118
+ // userId: "davidlee",
119
+ // name: 'David Lee',
120
+ // email: 'david.lee@example.com',
121
+ // phoneNumber: '+3344556677',
122
+ // userRating: 4.3,
123
+ // packageId: 'himachal-hill-stations',
124
+ // packageTitle: 'Himachal Hill Station Tour',
125
+ // destination: 'Shimla, Himachal Pradesh',
126
+ // status: 'pending',
127
+ // // travelers: [
128
+ // // { name: 'David Lee', age: 35, gender: 'male' },
129
+ // // { name: 'Lisa Lee', age: 33, gender: 'female' },
130
+ // // { name: 'Tommy Lee', age: 12, gender: 'male', specialRequests: 'Lactose intolerant' },
131
+ // // { name: 'Amy Lee', age: 10, gender: 'female' }
132
+ // // ],
133
+ // males: 6,
134
+ // females: 8,
135
+ // message: "Family vacation to Himachal hill stations. We have two kids (12 and 10 years old). Looking for family-friendly accommodations and activities. Our son is lactose intolerant.",
136
+ // hostId: '204',
137
+ // createdAt: '2025-02-10',
138
+ // updatedAt: '2025-03-15',
139
+ // }
140
+ // ];
@@ -1,3 +1,5 @@
1
+ import { Pricing } from "./pricing";
2
+ import { Discount } from "./discount";
1
3
  export type GuideStatus = "draft" | "pending" | "open" | "closed" | "denied" | "archived";
2
4
  export interface Guide {
3
5
  _id: string;
@@ -11,9 +13,8 @@ export interface Guide {
11
13
  languages: string[];
12
14
  specialties: string[];
13
15
  experienceYears?: number;
14
- pricePerPerson: number;
15
- pricePerHour?: number;
16
- currency: string;
16
+ pricing?: Pricing;
17
+ discount?: Discount;
17
18
  operatingHours?: {
18
19
  start: string;
19
20
  end: string;
@@ -1 +1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AAE,WAAW,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,IAAI,CAAC;IAGlB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,WAAW,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;IAEF,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,CAAC,EAAE,IAAI,CAAC;CACpB"}
@@ -22,6 +22,8 @@ export declare const NotifSchema: z.ZodObject<{
22
22
  title: z.ZodOptional<z.ZodString>;
23
23
  rating: z.ZodOptional<z.ZodNumber>;
24
24
  }, "strip", z.ZodTypeAny, {
25
+ status?: string | undefined;
26
+ rating?: number | undefined;
25
27
  conversationId?: string | undefined;
26
28
  messageId?: string | undefined;
27
29
  senderId?: string | undefined;
@@ -31,10 +33,10 @@ export declare const NotifSchema: z.ZodObject<{
31
33
  expenseId?: string | undefined;
32
34
  referenceId?: string | undefined;
33
35
  referenceType?: string | undefined;
34
- status?: string | undefined;
35
36
  title?: string | undefined;
36
- rating?: number | undefined;
37
37
  }, {
38
+ status?: string | undefined;
39
+ rating?: number | undefined;
38
40
  conversationId?: string | undefined;
39
41
  messageId?: string | undefined;
40
42
  senderId?: string | undefined;
@@ -44,20 +46,20 @@ export declare const NotifSchema: z.ZodObject<{
44
46
  expenseId?: string | undefined;
45
47
  referenceId?: string | undefined;
46
48
  referenceType?: string | undefined;
47
- status?: string | undefined;
48
49
  title?: string | undefined;
49
- rating?: number | undefined;
50
50
  }>>;
51
51
  }, "strip", z.ZodTypeAny, {
52
- _id: string;
53
52
  message: string;
53
+ _id: string;
54
54
  read: boolean;
55
+ type?: "new_message" | "milestone_completed" | "expense_added" | "group_invite" | "mention" | "application_received" | "application_status" | "application_shortlisted" | "id_verification_request" | "id_verified" | "id_rejected" | "package_enquiry" | "package_approval" | "package_denial" | "package_rating" | "package_review" | "opportunity_assigned" | "opportunity_approval" | "opportunity_denial" | "opportunity_rating" | "opportunity_review" | "blog_like" | "blog_comment" | "blog_posted" | "blog_approval" | "blog_denial" | "booking_confirmed" | "system" | "general" | undefined;
55
56
  userId?: string | undefined;
56
57
  timestamp?: any;
57
58
  link?: string | undefined;
58
- type?: "new_message" | "milestone_completed" | "expense_added" | "group_invite" | "mention" | "application_received" | "application_status" | "application_shortlisted" | "id_verification_request" | "id_verified" | "id_rejected" | "package_enquiry" | "package_approval" | "package_denial" | "package_rating" | "package_review" | "opportunity_assigned" | "opportunity_approval" | "opportunity_denial" | "opportunity_rating" | "opportunity_review" | "blog_like" | "blog_comment" | "blog_posted" | "blog_approval" | "blog_denial" | "booking_confirmed" | "system" | "general" | undefined;
59
59
  category?: "system" | "general" | "chat" | "application" | "opportunity" | "package" | "blog" | "account" | "booking" | undefined;
60
60
  metadata?: {
61
+ status?: string | undefined;
62
+ rating?: number | undefined;
61
63
  conversationId?: string | undefined;
62
64
  messageId?: string | undefined;
63
65
  senderId?: string | undefined;
@@ -67,20 +69,20 @@ export declare const NotifSchema: z.ZodObject<{
67
69
  expenseId?: string | undefined;
68
70
  referenceId?: string | undefined;
69
71
  referenceType?: string | undefined;
70
- status?: string | undefined;
71
72
  title?: string | undefined;
72
- rating?: number | undefined;
73
73
  } | undefined;
74
74
  }, {
75
- _id: string;
76
75
  message: string;
76
+ _id: string;
77
77
  read: boolean;
78
+ type?: "new_message" | "milestone_completed" | "expense_added" | "group_invite" | "mention" | "application_received" | "application_status" | "application_shortlisted" | "id_verification_request" | "id_verified" | "id_rejected" | "package_enquiry" | "package_approval" | "package_denial" | "package_rating" | "package_review" | "opportunity_assigned" | "opportunity_approval" | "opportunity_denial" | "opportunity_rating" | "opportunity_review" | "blog_like" | "blog_comment" | "blog_posted" | "blog_approval" | "blog_denial" | "booking_confirmed" | "system" | "general" | undefined;
78
79
  userId?: string | undefined;
79
80
  timestamp?: any;
80
81
  link?: string | undefined;
81
- type?: "new_message" | "milestone_completed" | "expense_added" | "group_invite" | "mention" | "application_received" | "application_status" | "application_shortlisted" | "id_verification_request" | "id_verified" | "id_rejected" | "package_enquiry" | "package_approval" | "package_denial" | "package_rating" | "package_review" | "opportunity_assigned" | "opportunity_approval" | "opportunity_denial" | "opportunity_rating" | "opportunity_review" | "blog_like" | "blog_comment" | "blog_posted" | "blog_approval" | "blog_denial" | "booking_confirmed" | "system" | "general" | undefined;
82
82
  category?: "system" | "general" | "chat" | "application" | "opportunity" | "package" | "blog" | "account" | "booking" | undefined;
83
83
  metadata?: {
84
+ status?: string | undefined;
85
+ rating?: number | undefined;
84
86
  conversationId?: string | undefined;
85
87
  messageId?: string | undefined;
86
88
  senderId?: string | undefined;
@@ -90,9 +92,7 @@ export declare const NotifSchema: z.ZodObject<{
90
92
  expenseId?: string | undefined;
91
93
  referenceId?: string | undefined;
92
94
  referenceType?: string | undefined;
93
- status?: string | undefined;
94
95
  title?: string | undefined;
95
- rating?: number | undefined;
96
96
  } | undefined;
97
97
  }>;
98
98
  export type Notif = z.infer<typeof NotifSchema>;
@@ -118,21 +118,21 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
118
118
  pinCode: z.ZodOptional<z.ZodString>;
119
119
  registrationNumber: z.ZodOptional<z.ZodString>;
120
120
  }, "strip", z.ZodTypeAny, {
121
+ country: string;
121
122
  type: string;
122
123
  name: string;
124
+ address: string;
123
125
  city: string;
124
126
  state: string;
125
- country: string;
126
- address: string;
127
127
  pinCode?: string | undefined;
128
128
  registrationNumber?: string | undefined;
129
129
  }, {
130
+ country: string;
130
131
  type: string;
131
132
  name: string;
133
+ address: string;
132
134
  city: string;
133
135
  state: string;
134
- country: string;
135
- address: string;
136
136
  pinCode?: string | undefined;
137
137
  registrationNumber?: string | undefined;
138
138
  }>, "many">>;
@@ -142,11 +142,6 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
142
142
  businessApiVerificationStatus: z.ZodOptional<z.ZodEnum<["pending", "verified", "failed"]>>;
143
143
  businessVerificationDenialReason: z.ZodOptional<z.ZodString>;
144
144
  }, "strict", z.ZodTypeAny, {
145
- role: "host" | "user" | "admin" | "hr" | "sales";
146
- country: string;
147
- rating: number;
148
- ratingCount: number;
149
- reviewCount: number;
150
145
  username: string;
151
146
  firstName: string;
152
147
  lastName: string;
@@ -154,17 +149,17 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
154
149
  password: string;
155
150
  phoneNumber: string;
156
151
  countryCode: string;
152
+ country: string;
157
153
  gender: "male" | "female" | "other";
154
+ rating: number;
155
+ ratingCount: number;
156
+ reviewCount: number;
158
157
  joinedDate: Date;
159
158
  isActive: boolean;
160
159
  lastActive: Date;
161
160
  verifiedEmail: boolean;
162
161
  verifiedMobile: boolean;
163
- id?: string | undefined;
164
- skills?: {
165
- skill: string;
166
- skillExpertise: number;
167
- }[] | undefined;
162
+ role: "host" | "user" | "admin" | "hr" | "sales";
168
163
  location?: string | undefined;
169
164
  pinCode?: string | undefined;
170
165
  dob?: Date | undefined;
@@ -178,9 +173,14 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
178
173
  verifiedIdCard?: boolean | undefined;
179
174
  socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
180
175
  userResume?: string | undefined;
176
+ skills?: {
177
+ skill: string;
178
+ skillExpertise: number;
179
+ }[] | undefined;
181
180
  wishlist?: string[] | undefined;
182
181
  favBlogs?: string[] | undefined;
183
182
  favPackages?: string[] | undefined;
183
+ id?: string | undefined;
184
184
  selfie?: string | undefined;
185
185
  selfieAction?: string | undefined;
186
186
  jobCount?: number | undefined;
@@ -189,12 +189,12 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
189
189
  panCard?: string | undefined;
190
190
  verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
191
191
  properties?: {
192
+ country: string;
192
193
  type: string;
193
194
  name: string;
195
+ address: string;
194
196
  city: string;
195
197
  state: string;
196
- country: string;
197
- address: string;
198
198
  pinCode?: string | undefined;
199
199
  registrationNumber?: string | undefined;
200
200
  }[] | undefined;
@@ -204,11 +204,6 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
204
204
  businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
205
205
  businessVerificationDenialReason?: string | undefined;
206
206
  }, {
207
- role: "host" | "user" | "admin" | "hr" | "sales";
208
- country: string;
209
- rating: number;
210
- ratingCount: number;
211
- reviewCount: number;
212
207
  username: string;
213
208
  firstName: string;
214
209
  lastName: string;
@@ -216,17 +211,17 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
216
211
  password: string;
217
212
  phoneNumber: string;
218
213
  countryCode: string;
214
+ country: string;
219
215
  gender: "male" | "female" | "other";
216
+ rating: number;
217
+ ratingCount: number;
218
+ reviewCount: number;
220
219
  joinedDate: Date;
221
220
  isActive: boolean;
222
221
  lastActive: Date;
223
222
  verifiedEmail: boolean;
224
223
  verifiedMobile: boolean;
225
- id?: string | undefined;
226
- skills?: {
227
- skill: string;
228
- skillExpertise: number;
229
- }[] | undefined;
224
+ role: "host" | "user" | "admin" | "hr" | "sales";
230
225
  location?: string | undefined;
231
226
  pinCode?: string | undefined;
232
227
  dob?: Date | undefined;
@@ -240,9 +235,14 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
240
235
  verifiedIdCard?: boolean | undefined;
241
236
  socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
242
237
  userResume?: string | undefined;
238
+ skills?: {
239
+ skill: string;
240
+ skillExpertise: number;
241
+ }[] | undefined;
243
242
  wishlist?: string[] | undefined;
244
243
  favBlogs?: string[] | undefined;
245
244
  favPackages?: string[] | undefined;
245
+ id?: string | undefined;
246
246
  selfie?: string | undefined;
247
247
  selfieAction?: string | undefined;
248
248
  jobCount?: number | undefined;
@@ -251,12 +251,12 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
251
251
  panCard?: string | undefined;
252
252
  verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
253
253
  properties?: {
254
+ country: string;
254
255
  type: string;
255
256
  name: string;
257
+ address: string;
256
258
  city: string;
257
259
  state: string;
258
- country: string;
259
- address: string;
260
260
  pinCode?: string | undefined;
261
261
  registrationNumber?: string | undefined;
262
262
  }[] | undefined;
@@ -273,17 +273,17 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
273
273
  phoneNumber: z.ZodString;
274
274
  email: z.ZodString;
275
275
  }, "strip", z.ZodTypeAny, {
276
- role: "host" | "user" | "admin" | "hr" | "sales";
277
276
  username: string;
278
277
  email: string;
279
278
  phoneNumber: string;
280
279
  countryCode: string;
281
- }, {
282
280
  role: "host" | "user" | "admin" | "hr" | "sales";
281
+ }, {
283
282
  username: string;
284
283
  email: string;
285
284
  phoneNumber: string;
286
285
  countryCode: string;
286
+ role: "host" | "user" | "admin" | "hr" | "sales";
287
287
  }>, "many">>;
288
288
  status: z.ZodEnum<["draft", "archived", "pending", "open", "closed", "denied", "deleted"]>;
289
289
  adminApproval: z.ZodBoolean;
@@ -334,16 +334,19 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
334
334
  ipOwnership?: "host" | "shared" | "freelancer" | undefined;
335
335
  }>;
336
336
  }, "strict", z.ZodTypeAny, {
337
- status: "draft" | "archived" | "pending" | "open" | "closed" | "denied" | "deleted";
338
- slug: string;
339
- opportunityType: "freelance";
340
- title: string;
337
+ country: string;
338
+ status: "pending" | "denied" | "draft" | "archived" | "open" | "closed" | "deleted";
339
+ rating: number;
340
+ ratingCount: number;
341
+ reviewCount: number;
341
342
  skills: string[];
342
- description: string;
343
- images: string[];
344
343
  city: string;
345
344
  state: string;
346
- country: string;
345
+ title: string;
346
+ description: string;
347
+ images: string[];
348
+ slug: string;
349
+ opportunityType: "freelance";
347
350
  compensation: {
348
351
  type: "free" | "stipend" | "salary" | "project-based";
349
352
  currency: string;
@@ -364,15 +367,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
364
367
  applicationCount: number;
365
368
  views: number;
366
369
  shares: number;
367
- rating: number;
368
- ratingCount: number;
369
- reviewCount: number;
370
370
  hostId: {
371
- role: "host" | "user" | "admin" | "hr" | "sales";
372
- country: string;
373
- rating: number;
374
- ratingCount: number;
375
- reviewCount: number;
376
371
  username: string;
377
372
  firstName: string;
378
373
  lastName: string;
@@ -380,17 +375,17 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
380
375
  password: string;
381
376
  phoneNumber: string;
382
377
  countryCode: string;
378
+ country: string;
383
379
  gender: "male" | "female" | "other";
380
+ rating: number;
381
+ ratingCount: number;
382
+ reviewCount: number;
384
383
  joinedDate: Date;
385
384
  isActive: boolean;
386
385
  lastActive: Date;
387
386
  verifiedEmail: boolean;
388
387
  verifiedMobile: boolean;
389
- id?: string | undefined;
390
- skills?: {
391
- skill: string;
392
- skillExpertise: number;
393
- }[] | undefined;
388
+ role: "host" | "user" | "admin" | "hr" | "sales";
394
389
  location?: string | undefined;
395
390
  pinCode?: string | undefined;
396
391
  dob?: Date | undefined;
@@ -404,9 +399,14 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
404
399
  verifiedIdCard?: boolean | undefined;
405
400
  socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
406
401
  userResume?: string | undefined;
402
+ skills?: {
403
+ skill: string;
404
+ skillExpertise: number;
405
+ }[] | undefined;
407
406
  wishlist?: string[] | undefined;
408
407
  favBlogs?: string[] | undefined;
409
408
  favPackages?: string[] | undefined;
409
+ id?: string | undefined;
410
410
  selfie?: string | undefined;
411
411
  selfieAction?: string | undefined;
412
412
  jobCount?: number | undefined;
@@ -415,12 +415,12 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
415
415
  panCard?: string | undefined;
416
416
  verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
417
417
  properties?: {
418
+ country: string;
418
419
  type: string;
419
420
  name: string;
421
+ address: string;
420
422
  city: string;
421
423
  state: string;
422
- country: string;
423
- address: string;
424
424
  pinCode?: string | undefined;
425
425
  registrationNumber?: string | undefined;
426
426
  }[] | undefined;
@@ -441,8 +441,10 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
441
441
  ndaRequired: boolean;
442
442
  ipOwnership?: "host" | "shared" | "freelancer" | undefined;
443
443
  };
444
- categoryId?: string | undefined;
445
444
  address?: string | undefined;
445
+ createdAt?: Date | undefined;
446
+ updatedAt?: Date | undefined;
447
+ categoryId?: string | undefined;
446
448
  workMode?: "onsite" | "remote" | "hybrid" | undefined;
447
449
  bondPlan?: {
448
450
  enabled: boolean;
@@ -454,25 +456,26 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
454
456
  pendingApplicationCount?: number | undefined;
455
457
  hostingType?: string | undefined;
456
458
  applicationObservers?: {
457
- role: "host" | "user" | "admin" | "hr" | "sales";
458
459
  username: string;
459
460
  email: string;
460
461
  phoneNumber: string;
461
462
  countryCode: string;
463
+ role: "host" | "user" | "admin" | "hr" | "sales";
462
464
  }[] | undefined;
463
- createdAt?: Date | undefined;
464
- updatedAt?: Date | undefined;
465
465
  }, {
466
- status: "draft" | "archived" | "pending" | "open" | "closed" | "denied" | "deleted";
467
- slug: string;
468
- opportunityType: "freelance";
469
- title: string;
466
+ country: string;
467
+ status: "pending" | "denied" | "draft" | "archived" | "open" | "closed" | "deleted";
468
+ rating: number;
469
+ ratingCount: number;
470
+ reviewCount: number;
470
471
  skills: string[];
471
- description: string;
472
- images: string[];
473
472
  city: string;
474
473
  state: string;
475
- country: string;
474
+ title: string;
475
+ description: string;
476
+ images: string[];
477
+ slug: string;
478
+ opportunityType: "freelance";
476
479
  compensation: {
477
480
  type: "free" | "stipend" | "salary" | "project-based";
478
481
  currency: string;
@@ -493,15 +496,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
493
496
  applicationCount: number;
494
497
  views: number;
495
498
  shares: number;
496
- rating: number;
497
- ratingCount: number;
498
- reviewCount: number;
499
499
  hostId: {
500
- role: "host" | "user" | "admin" | "hr" | "sales";
501
- country: string;
502
- rating: number;
503
- ratingCount: number;
504
- reviewCount: number;
505
500
  username: string;
506
501
  firstName: string;
507
502
  lastName: string;
@@ -509,17 +504,17 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
509
504
  password: string;
510
505
  phoneNumber: string;
511
506
  countryCode: string;
507
+ country: string;
512
508
  gender: "male" | "female" | "other";
509
+ rating: number;
510
+ ratingCount: number;
511
+ reviewCount: number;
513
512
  joinedDate: Date;
514
513
  isActive: boolean;
515
514
  lastActive: Date;
516
515
  verifiedEmail: boolean;
517
516
  verifiedMobile: boolean;
518
- id?: string | undefined;
519
- skills?: {
520
- skill: string;
521
- skillExpertise: number;
522
- }[] | undefined;
517
+ role: "host" | "user" | "admin" | "hr" | "sales";
523
518
  location?: string | undefined;
524
519
  pinCode?: string | undefined;
525
520
  dob?: Date | undefined;
@@ -533,9 +528,14 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
533
528
  verifiedIdCard?: boolean | undefined;
534
529
  socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
535
530
  userResume?: string | undefined;
531
+ skills?: {
532
+ skill: string;
533
+ skillExpertise: number;
534
+ }[] | undefined;
536
535
  wishlist?: string[] | undefined;
537
536
  favBlogs?: string[] | undefined;
538
537
  favPackages?: string[] | undefined;
538
+ id?: string | undefined;
539
539
  selfie?: string | undefined;
540
540
  selfieAction?: string | undefined;
541
541
  jobCount?: number | undefined;
@@ -544,12 +544,12 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
544
544
  panCard?: string | undefined;
545
545
  verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
546
546
  properties?: {
547
+ country: string;
547
548
  type: string;
548
549
  name: string;
550
+ address: string;
549
551
  city: string;
550
552
  state: string;
551
- country: string;
552
- address: string;
553
553
  pinCode?: string | undefined;
554
554
  registrationNumber?: string | undefined;
555
555
  }[] | undefined;
@@ -570,8 +570,10 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
570
570
  ndaRequired: boolean;
571
571
  ipOwnership?: "host" | "shared" | "freelancer" | undefined;
572
572
  };
573
- categoryId?: string | undefined;
574
573
  address?: string | undefined;
574
+ createdAt?: Date | undefined;
575
+ updatedAt?: Date | undefined;
576
+ categoryId?: string | undefined;
575
577
  workMode?: "onsite" | "remote" | "hybrid" | undefined;
576
578
  bondPlan?: {
577
579
  enabled: boolean;
@@ -583,13 +585,11 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
583
585
  pendingApplicationCount?: number | undefined;
584
586
  hostingType?: string | undefined;
585
587
  applicationObservers?: {
586
- role: "host" | "user" | "admin" | "hr" | "sales";
587
588
  username: string;
588
589
  email: string;
589
590
  phoneNumber: string;
590
591
  countryCode: string;
592
+ role: "host" | "user" | "admin" | "hr" | "sales";
591
593
  }[] | undefined;
592
- createdAt?: Date | undefined;
593
- updatedAt?: Date | undefined;
594
594
  }>;
595
595
  //# sourceMappingURL=freelance.d.ts.map