@myrjfa/state 2.1.9 → 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 (174) 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 +17 -19
  8. package/dist/lib/actions/actions.d.ts.map +1 -1
  9. package/dist/lib/actions/actions.js +24 -7
  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/blog.d.ts +2 -2
  77. package/dist/lib/models/discount.d.ts +160 -0
  78. package/dist/lib/models/discount.d.ts.map +1 -0
  79. package/dist/lib/models/discount.js +106 -0
  80. package/dist/lib/models/enquiry.d.ts +34 -0
  81. package/dist/lib/models/enquiry.d.ts.map +1 -0
  82. package/dist/lib/models/enquiry.js +140 -0
  83. package/dist/lib/models/guide.d.ts +4 -3
  84. package/dist/lib/models/guide.d.ts.map +1 -1
  85. package/dist/lib/models/notifications.d.ts +12 -12
  86. package/dist/lib/models/opportunities/freelance.d.ts +76 -76
  87. package/dist/lib/models/opportunities/internship.d.ts +76 -76
  88. package/dist/lib/models/opportunities/job.d.ts +78 -78
  89. package/dist/lib/models/opportunities/opportunity.d.ts +76 -76
  90. package/dist/lib/models/opportunities/volunteerJob.d.ts +76 -76
  91. package/dist/lib/models/package.d.ts +380 -86
  92. package/dist/lib/models/package.d.ts.map +1 -1
  93. package/dist/lib/models/package.js +9 -8
  94. package/dist/lib/models/pricing.d.ts +255 -0
  95. package/dist/lib/models/pricing.d.ts.map +1 -0
  96. package/dist/lib/models/pricing.js +145 -0
  97. package/dist/lib/models/rental.d.ts +12 -7
  98. package/dist/lib/models/rental.d.ts.map +1 -1
  99. package/dist/lib/models/review.d.ts +5 -2
  100. package/dist/lib/models/review.d.ts.map +1 -1
  101. package/dist/lib/models/stay.d.ts +11 -8
  102. package/dist/lib/models/stay.d.ts.map +1 -1
  103. package/dist/lib/models/stay.js +1 -0
  104. package/dist/lib/models/tile.d.ts +11 -7
  105. package/dist/lib/models/tile.d.ts.map +1 -1
  106. package/dist/lib/models/travelPackage.d.ts +943 -0
  107. package/dist/lib/models/travelPackage.d.ts.map +1 -0
  108. package/dist/lib/models/travelPackage.js +326 -0
  109. package/dist/lib/multistepDraft.d.ts +4 -0
  110. package/dist/lib/multistepDraft.d.ts.map +1 -0
  111. package/dist/lib/multistepDraft.js +18 -0
  112. package/dist/lib/opportunityFormData.d.ts +13 -0
  113. package/dist/lib/opportunityFormData.d.ts.map +1 -0
  114. package/dist/lib/opportunityFormData.js +62 -0
  115. package/dist/lib/opportunityFormPage.d.ts +38 -0
  116. package/dist/lib/opportunityFormPage.d.ts.map +1 -0
  117. package/dist/lib/opportunityFormPage.js +33 -0
  118. package/dist/lib/packageActions.d.ts +86 -0
  119. package/dist/lib/packageActions.d.ts.map +1 -0
  120. package/dist/lib/packageActions.js +168 -0
  121. package/dist/lib/packageDummyData.d.ts +3 -0
  122. package/dist/lib/packageDummyData.d.ts.map +1 -0
  123. package/dist/lib/packageDummyData.js +57 -0
  124. package/dist/lib/placeActions.d.ts +192 -0
  125. package/dist/lib/placeActions.d.ts.map +1 -0
  126. package/dist/lib/placeActions.js +57 -0
  127. package/dist/lib/propertyActions.d.ts +17 -0
  128. package/dist/lib/propertyActions.d.ts.map +1 -0
  129. package/dist/lib/propertyActions.js +16 -0
  130. package/dist/lib/rentalActions.d.ts +86 -0
  131. package/dist/lib/rentalActions.d.ts.map +1 -0
  132. package/dist/lib/rentalActions.js +235 -0
  133. package/dist/lib/rentalDummyData.d.ts +3 -0
  134. package/dist/lib/rentalDummyData.d.ts.map +1 -0
  135. package/dist/lib/rentalDummyData.js +402 -0
  136. package/dist/lib/rentalFormPage.d.ts +48 -0
  137. package/dist/lib/rentalFormPage.d.ts.map +1 -0
  138. package/dist/lib/rentalFormPage.js +97 -0
  139. package/dist/lib/roomActions.d.ts +39 -0
  140. package/dist/lib/roomActions.d.ts.map +1 -0
  141. package/dist/lib/roomActions.js +74 -0
  142. package/dist/lib/stayActions.d.ts +97 -0
  143. package/dist/lib/stayActions.d.ts.map +1 -0
  144. package/dist/lib/stayActions.js +138 -0
  145. package/dist/lib/staysDummyData.d.ts +72 -0
  146. package/dist/lib/staysDummyData.d.ts.map +1 -0
  147. package/dist/lib/staysDummyData.js +694 -0
  148. package/dist/lib/storeDummyData.d.ts +33 -0
  149. package/dist/lib/storeDummyData.d.ts.map +1 -0
  150. package/dist/lib/storeDummyData.js +336 -0
  151. package/dist/lib/travelPackageActions.d.ts +102 -0
  152. package/dist/lib/travelPackageActions.d.ts.map +1 -0
  153. package/dist/lib/travelPackageActions.js +487 -0
  154. package/dist/lib/travelPackageFormData.d.ts +20 -0
  155. package/dist/lib/travelPackageFormData.d.ts.map +1 -0
  156. package/dist/lib/travelPackageFormData.js +54 -0
  157. package/dist/lib/travelPackageFormPage.d.ts +32 -0
  158. package/dist/lib/travelPackageFormPage.d.ts.map +1 -0
  159. package/dist/lib/travelPackageFormPage.js +43 -0
  160. package/dist/lib/userAtom.d.ts +32 -32
  161. package/dist/lib/userAtom.d.ts.map +1 -1
  162. package/dist/lib/userAtom.js +17 -1
  163. package/dist/lib/util.d.ts +11 -0
  164. package/dist/lib/util.d.ts.map +1 -0
  165. package/dist/lib/util.js +82 -0
  166. package/dist/lib/utils.d.ts.map +1 -1
  167. package/dist/lib/utils.js +1 -0
  168. package/dist/lib/vehicleData.d.ts +2 -0
  169. package/dist/lib/vehicleData.d.ts.map +1 -0
  170. package/dist/lib/vehicleData.js +181 -0
  171. package/dist/lib/vehicleModels.d.ts +2 -0
  172. package/dist/lib/vehicleModels.d.ts.map +1 -0
  173. package/dist/lib/vehicleModels.js +128 -0
  174. 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 @@
1
- {"version":3,"file":"guide.d.ts","sourceRoot":"","sources":["../../../src/lib/models/guide.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE1F,MAAM,WAAW,KAAK;IAClB,GAAG,EAAE,MAAM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,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;
123
+ name: string;
124
+ address: string;
122
125
  city: string;
123
126
  state: string;
124
- country: string;
125
- address: string;
126
- name: string;
127
127
  pinCode?: string | undefined;
128
128
  registrationNumber?: string | undefined;
129
129
  }, {
130
+ country: string;
130
131
  type: string;
132
+ name: string;
133
+ address: string;
131
134
  city: string;
132
135
  state: string;
133
- country: string;
134
- address: string;
135
- name: string;
136
136
  pinCode?: string | undefined;
137
137
  registrationNumber?: string | undefined;
138
138
  }>, "many">>;
@@ -142,10 +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
- country: string;
146
- rating: number;
147
- ratingCount: number;
148
- reviewCount: number;
149
145
  username: string;
150
146
  firstName: string;
151
147
  lastName: string;
@@ -153,17 +149,17 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
153
149
  password: string;
154
150
  phoneNumber: string;
155
151
  countryCode: string;
152
+ country: string;
156
153
  gender: "male" | "female" | "other";
154
+ rating: number;
155
+ ratingCount: number;
156
+ reviewCount: number;
157
157
  joinedDate: Date;
158
158
  isActive: boolean;
159
159
  lastActive: Date;
160
160
  verifiedEmail: boolean;
161
161
  verifiedMobile: boolean;
162
162
  role: "host" | "user" | "admin" | "hr" | "sales";
163
- skills?: {
164
- skill: string;
165
- skillExpertise: number;
166
- }[] | undefined;
167
163
  location?: string | undefined;
168
164
  pinCode?: string | undefined;
169
165
  dob?: Date | undefined;
@@ -177,6 +173,10 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
177
173
  verifiedIdCard?: boolean | undefined;
178
174
  socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
179
175
  userResume?: string | undefined;
176
+ skills?: {
177
+ skill: string;
178
+ skillExpertise: number;
179
+ }[] | undefined;
180
180
  wishlist?: string[] | undefined;
181
181
  favBlogs?: string[] | undefined;
182
182
  favPackages?: string[] | 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;
194
+ name: string;
195
+ address: string;
193
196
  city: string;
194
197
  state: string;
195
- country: string;
196
- address: string;
197
- name: string;
198
198
  pinCode?: string | undefined;
199
199
  registrationNumber?: string | undefined;
200
200
  }[] | undefined;
@@ -204,10 +204,6 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
204
204
  businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
205
205
  businessVerificationDenialReason?: string | undefined;
206
206
  }, {
207
- country: string;
208
- rating: number;
209
- ratingCount: number;
210
- reviewCount: number;
211
207
  username: string;
212
208
  firstName: string;
213
209
  lastName: string;
@@ -215,17 +211,17 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
215
211
  password: string;
216
212
  phoneNumber: string;
217
213
  countryCode: string;
214
+ country: string;
218
215
  gender: "male" | "female" | "other";
216
+ rating: number;
217
+ ratingCount: number;
218
+ reviewCount: number;
219
219
  joinedDate: Date;
220
220
  isActive: boolean;
221
221
  lastActive: Date;
222
222
  verifiedEmail: boolean;
223
223
  verifiedMobile: boolean;
224
224
  role: "host" | "user" | "admin" | "hr" | "sales";
225
- skills?: {
226
- skill: string;
227
- skillExpertise: number;
228
- }[] | undefined;
229
225
  location?: string | undefined;
230
226
  pinCode?: string | undefined;
231
227
  dob?: Date | undefined;
@@ -239,6 +235,10 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
239
235
  verifiedIdCard?: boolean | undefined;
240
236
  socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
241
237
  userResume?: string | undefined;
238
+ skills?: {
239
+ skill: string;
240
+ skillExpertise: number;
241
+ }[] | undefined;
242
242
  wishlist?: string[] | undefined;
243
243
  favBlogs?: string[] | undefined;
244
244
  favPackages?: string[] | 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;
256
+ name: string;
257
+ address: string;
255
258
  city: string;
256
259
  state: string;
257
- country: string;
258
- address: string;
259
- name: string;
260
260
  pinCode?: string | undefined;
261
261
  registrationNumber?: string | undefined;
262
262
  }[] | undefined;
@@ -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,14 +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
- country: string;
372
- rating: number;
373
- ratingCount: number;
374
- reviewCount: number;
375
371
  username: string;
376
372
  firstName: string;
377
373
  lastName: string;
@@ -379,17 +375,17 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
379
375
  password: string;
380
376
  phoneNumber: string;
381
377
  countryCode: string;
378
+ country: string;
382
379
  gender: "male" | "female" | "other";
380
+ rating: number;
381
+ ratingCount: number;
382
+ reviewCount: number;
383
383
  joinedDate: Date;
384
384
  isActive: boolean;
385
385
  lastActive: Date;
386
386
  verifiedEmail: boolean;
387
387
  verifiedMobile: boolean;
388
388
  role: "host" | "user" | "admin" | "hr" | "sales";
389
- skills?: {
390
- skill: string;
391
- skillExpertise: number;
392
- }[] | undefined;
393
389
  location?: string | undefined;
394
390
  pinCode?: string | undefined;
395
391
  dob?: Date | undefined;
@@ -403,6 +399,10 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
403
399
  verifiedIdCard?: boolean | undefined;
404
400
  socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
405
401
  userResume?: string | undefined;
402
+ skills?: {
403
+ skill: string;
404
+ skillExpertise: number;
405
+ }[] | undefined;
406
406
  wishlist?: string[] | undefined;
407
407
  favBlogs?: string[] | undefined;
408
408
  favPackages?: string[] | 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;
420
+ name: string;
421
+ address: string;
419
422
  city: string;
420
423
  state: string;
421
- country: string;
422
- address: string;
423
- name: 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;
@@ -460,19 +462,20 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
460
462
  countryCode: string;
461
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,14 +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
- country: string;
501
- rating: number;
502
- ratingCount: number;
503
- reviewCount: number;
504
500
  username: string;
505
501
  firstName: string;
506
502
  lastName: string;
@@ -508,17 +504,17 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
508
504
  password: string;
509
505
  phoneNumber: string;
510
506
  countryCode: string;
507
+ country: string;
511
508
  gender: "male" | "female" | "other";
509
+ rating: number;
510
+ ratingCount: number;
511
+ reviewCount: number;
512
512
  joinedDate: Date;
513
513
  isActive: boolean;
514
514
  lastActive: Date;
515
515
  verifiedEmail: boolean;
516
516
  verifiedMobile: boolean;
517
517
  role: "host" | "user" | "admin" | "hr" | "sales";
518
- skills?: {
519
- skill: string;
520
- skillExpertise: number;
521
- }[] | undefined;
522
518
  location?: string | undefined;
523
519
  pinCode?: string | undefined;
524
520
  dob?: Date | undefined;
@@ -532,6 +528,10 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
532
528
  verifiedIdCard?: boolean | undefined;
533
529
  socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
534
530
  userResume?: string | undefined;
531
+ skills?: {
532
+ skill: string;
533
+ skillExpertise: number;
534
+ }[] | undefined;
535
535
  wishlist?: string[] | undefined;
536
536
  favBlogs?: string[] | undefined;
537
537
  favPackages?: string[] | 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;
549
+ name: string;
550
+ address: string;
548
551
  city: string;
549
552
  state: string;
550
- country: string;
551
- address: string;
552
- name: 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;
@@ -589,7 +591,5 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
589
591
  countryCode: string;
590
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