@myrjfa/state 2.2.0 → 2.3.1

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 (249) hide show
  1. package/LICENSE +201 -201
  2. package/README.md +20 -3
  3. package/dist/index.d.ts +8 -0
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +8 -0
  6. package/dist/lib/actions/actions.d.ts +13 -13
  7. package/dist/lib/actions/actions.d.ts.map +1 -1
  8. package/dist/lib/actions/actions.js +5 -4
  9. package/dist/lib/actions/adminDashboard.d.ts +4 -0
  10. package/dist/lib/actions/adminDashboard.d.ts.map +1 -0
  11. package/dist/lib/actions/adminDashboard.js +29 -0
  12. package/dist/lib/actions/adventure.d.ts +104 -0
  13. package/dist/lib/actions/adventure.d.ts.map +1 -0
  14. package/dist/lib/actions/adventure.js +203 -0
  15. package/dist/lib/actions/application.d.ts +35 -0
  16. package/dist/lib/actions/application.d.ts.map +1 -0
  17. package/dist/lib/actions/application.js +573 -0
  18. package/dist/lib/actions/auth.d.ts +108 -3
  19. package/dist/lib/actions/auth.d.ts.map +1 -1
  20. package/dist/lib/actions/auth.js +38 -8
  21. package/dist/lib/actions/blog.d.ts +61 -0
  22. package/dist/lib/actions/blog.d.ts.map +1 -0
  23. package/dist/lib/actions/blog.js +762 -0
  24. package/dist/lib/actions/brand.d.ts +83 -0
  25. package/dist/lib/actions/brand.d.ts.map +1 -0
  26. package/dist/lib/actions/brand.js +28 -0
  27. package/dist/lib/actions/chat.d.ts +261 -24
  28. package/dist/lib/actions/chat.d.ts.map +1 -1
  29. package/dist/lib/actions/chat.js +525 -41
  30. package/dist/lib/actions/companion.d.ts +174 -0
  31. package/dist/lib/actions/companion.d.ts.map +1 -0
  32. package/dist/lib/actions/companion.js +276 -0
  33. package/dist/lib/actions/event.d.ts +178 -0
  34. package/dist/lib/actions/event.d.ts.map +1 -0
  35. package/dist/lib/actions/event.js +214 -0
  36. package/dist/lib/actions/fetcher.d.ts.map +1 -1
  37. package/dist/lib/actions/fetcher.js +18 -8
  38. package/dist/lib/actions/guide.d.ts +55 -0
  39. package/dist/lib/actions/guide.d.ts.map +1 -0
  40. package/dist/lib/actions/guide.js +128 -0
  41. package/dist/lib/actions/hostDashboard.d.ts +122 -0
  42. package/dist/lib/actions/hostDashboard.d.ts.map +1 -0
  43. package/dist/lib/actions/hostDashboard.js +329 -0
  44. package/dist/lib/actions/location.d.ts +141 -0
  45. package/dist/lib/actions/location.d.ts.map +1 -0
  46. package/dist/lib/actions/location.js +113 -0
  47. package/dist/lib/actions/notifications.d.ts +91 -0
  48. package/dist/lib/actions/notifications.d.ts.map +1 -0
  49. package/dist/lib/actions/notifications.js +83 -0
  50. package/dist/lib/actions/opportunity.d.ts +44 -0
  51. package/dist/lib/actions/opportunity.d.ts.map +1 -0
  52. package/dist/lib/actions/opportunity.js +318 -0
  53. package/dist/lib/actions/package.d.ts +85 -0
  54. package/dist/lib/actions/package.d.ts.map +1 -0
  55. package/dist/lib/actions/package.js +167 -0
  56. package/dist/lib/actions/place.d.ts +191 -0
  57. package/dist/lib/actions/place.d.ts.map +1 -0
  58. package/dist/lib/actions/place.js +57 -0
  59. package/dist/lib/actions/portfolio.d.ts +65 -0
  60. package/dist/lib/actions/portfolio.d.ts.map +1 -0
  61. package/dist/lib/actions/portfolio.js +62 -0
  62. package/dist/lib/actions/property.d.ts +17 -0
  63. package/dist/lib/actions/property.d.ts.map +1 -0
  64. package/dist/lib/actions/property.js +16 -0
  65. package/dist/lib/actions/rental.d.ts +87 -0
  66. package/dist/lib/actions/rental.d.ts.map +1 -0
  67. package/dist/lib/actions/rental.js +205 -0
  68. package/dist/lib/actions/review.d.ts +8 -0
  69. package/dist/lib/actions/review.d.ts.map +1 -0
  70. package/dist/lib/actions/review.js +102 -0
  71. package/dist/lib/actions/room.d.ts +39 -0
  72. package/dist/lib/actions/room.d.ts.map +1 -0
  73. package/dist/lib/actions/room.js +74 -0
  74. package/dist/lib/actions/serverActions.d.ts +1 -0
  75. package/dist/lib/actions/serverActions.d.ts.map +1 -1
  76. package/dist/lib/actions/serverActions.js +15 -0
  77. package/dist/lib/actions/socket.d.ts.map +1 -1
  78. package/dist/lib/actions/socket.js +5 -1
  79. package/dist/lib/actions/stay.d.ts +97 -0
  80. package/dist/lib/actions/stay.d.ts.map +1 -0
  81. package/dist/lib/actions/stay.js +138 -0
  82. package/dist/lib/actions/travelPackage.d.ts +104 -0
  83. package/dist/lib/actions/travelPackage.d.ts.map +1 -0
  84. package/dist/lib/actions/travelPackage.js +487 -0
  85. package/dist/lib/actions.d.ts +24 -24
  86. package/dist/lib/actions.d.ts.map +1 -1
  87. package/dist/lib/actions.js +14 -11
  88. package/dist/lib/adminDashboardActions.d.ts +15 -3
  89. package/dist/lib/adminDashboardActions.d.ts.map +1 -1
  90. package/dist/lib/adminDashboardActions.js +16 -7
  91. package/dist/lib/authSessionManager.d.ts.map +1 -1
  92. package/dist/lib/authSessionManager.js +4 -3
  93. package/dist/lib/authSessionPolicy.d.ts +10 -0
  94. package/dist/lib/authSessionPolicy.d.ts.map +1 -0
  95. package/dist/lib/authSessionPolicy.js +9 -0
  96. package/dist/lib/authorizationActions.d.ts +77 -0
  97. package/dist/lib/authorizationActions.d.ts.map +1 -0
  98. package/dist/lib/authorizationActions.js +61 -0
  99. package/dist/lib/context/ChatContext.d.ts +25 -6
  100. package/dist/lib/context/ChatContext.d.ts.map +1 -1
  101. package/dist/lib/context/ChatContext.js +356 -245
  102. package/dist/lib/data/adventureDummyData.d.ts +3 -0
  103. package/dist/lib/data/adventureDummyData.d.ts.map +1 -0
  104. package/dist/lib/data/adventureDummyData.js +138 -0
  105. package/dist/lib/data/adventureFormPage.d.ts +28 -0
  106. package/dist/lib/data/adventureFormPage.d.ts.map +1 -0
  107. package/dist/lib/data/adventureFormPage.js +58 -0
  108. package/dist/lib/data/companionDummyData.d.ts +99 -0
  109. package/dist/lib/data/companionDummyData.d.ts.map +1 -0
  110. package/dist/lib/data/companionDummyData.js +203 -0
  111. package/dist/lib/data/destinations.d.ts +14 -0
  112. package/dist/lib/data/destinations.d.ts.map +1 -0
  113. package/dist/lib/data/destinations.js +203 -0
  114. package/dist/lib/data/eventFormPage.d.ts +38 -0
  115. package/dist/lib/data/eventFormPage.d.ts.map +1 -0
  116. package/dist/lib/data/eventFormPage.js +56 -0
  117. package/dist/lib/data/eventsDummyData.d.ts +54 -0
  118. package/dist/lib/data/eventsDummyData.d.ts.map +1 -0
  119. package/dist/lib/data/eventsDummyData.js +586 -0
  120. package/dist/lib/data/guideDummyData.d.ts +3 -0
  121. package/dist/lib/data/guideDummyData.d.ts.map +1 -0
  122. package/dist/lib/data/guideDummyData.js +66 -0
  123. package/dist/lib/data/opportunityFormData.d.ts +13 -0
  124. package/dist/lib/data/opportunityFormData.d.ts.map +1 -0
  125. package/dist/lib/data/opportunityFormData.js +62 -0
  126. package/dist/lib/data/opportunityFormPage.d.ts +12 -0
  127. package/dist/lib/data/opportunityFormPage.d.ts.map +1 -0
  128. package/dist/lib/data/opportunityFormPage.js +33 -0
  129. package/dist/lib/data/packageDummyData.d.ts +3 -0
  130. package/dist/lib/data/packageDummyData.d.ts.map +1 -0
  131. package/dist/lib/data/packageDummyData.js +56 -0
  132. package/dist/lib/data/rentalDummyData.d.ts +3 -0
  133. package/dist/lib/data/rentalDummyData.d.ts.map +1 -0
  134. package/dist/lib/data/rentalDummyData.js +382 -0
  135. package/dist/lib/data/rentalFormPage.d.ts +11 -0
  136. package/dist/lib/data/rentalFormPage.d.ts.map +1 -0
  137. package/dist/lib/data/rentalFormPage.js +86 -0
  138. package/dist/lib/data/staysDummyData.d.ts +72 -0
  139. package/dist/lib/data/staysDummyData.d.ts.map +1 -0
  140. package/dist/lib/data/staysDummyData.js +694 -0
  141. package/dist/lib/data/storeDummyData.d.ts +33 -0
  142. package/dist/lib/data/storeDummyData.d.ts.map +1 -0
  143. package/dist/lib/data/storeDummyData.js +336 -0
  144. package/dist/lib/data/travelPackageFormData.d.ts +19 -0
  145. package/dist/lib/data/travelPackageFormData.d.ts.map +1 -0
  146. package/dist/lib/data/travelPackageFormData.js +51 -0
  147. package/dist/lib/data/travelPackageFormPage.d.ts +22 -0
  148. package/dist/lib/data/travelPackageFormPage.d.ts.map +1 -0
  149. package/dist/lib/data/travelPackageFormPage.js +40 -0
  150. package/dist/lib/data/vehicleData.d.ts +2 -0
  151. package/dist/lib/data/vehicleData.d.ts.map +1 -0
  152. package/dist/lib/data/vehicleData.js +187 -0
  153. package/dist/lib/data/vehicleModels.d.ts +2 -0
  154. package/dist/lib/data/vehicleModels.d.ts.map +1 -0
  155. package/dist/lib/data/vehicleModels.js +128 -0
  156. package/dist/lib/discountActions.d.ts +43 -0
  157. package/dist/lib/discountActions.d.ts.map +1 -0
  158. package/dist/lib/discountActions.js +69 -0
  159. package/dist/lib/hooks/usePersistentDraftState.d.ts +20 -0
  160. package/dist/lib/hooks/usePersistentDraftState.d.ts.map +1 -0
  161. package/dist/lib/hooks/usePersistentDraftState.js +47 -0
  162. package/dist/lib/loyaltyActions.d.ts +32 -0
  163. package/dist/lib/loyaltyActions.d.ts.map +1 -0
  164. package/dist/lib/loyaltyActions.js +92 -0
  165. package/dist/lib/models/adventure.d.ts +0 -2
  166. package/dist/lib/models/adventure.d.ts.map +1 -1
  167. package/dist/lib/models/authorization.d.ts +107 -0
  168. package/dist/lib/models/authorization.d.ts.map +1 -0
  169. package/dist/lib/models/authorization.js +263 -0
  170. package/dist/lib/models/blog.d.ts +2 -2
  171. package/dist/lib/models/booking.d.ts +7 -2
  172. package/dist/lib/models/booking.d.ts.map +1 -1
  173. package/dist/lib/models/chat.d.ts +418 -32
  174. package/dist/lib/models/chat.d.ts.map +1 -1
  175. package/dist/lib/models/chat.js +5 -1
  176. package/dist/lib/models/discount.d.ts +587 -136
  177. package/dist/lib/models/discount.d.ts.map +1 -1
  178. package/dist/lib/models/discount.js +118 -96
  179. package/dist/lib/models/forms.d.ts +384 -0
  180. package/dist/lib/models/forms.d.ts.map +1 -0
  181. package/dist/lib/models/forms.js +121 -0
  182. package/dist/lib/models/guide.d.ts +0 -2
  183. package/dist/lib/models/guide.d.ts.map +1 -1
  184. package/dist/lib/models/loyalty.d.ts +88 -0
  185. package/dist/lib/models/loyalty.d.ts.map +1 -0
  186. package/dist/lib/models/loyalty.js +1 -0
  187. package/dist/lib/models/notifications.d.ts +4 -4
  188. package/dist/lib/models/opportunities/freelance.d.ts +66 -20
  189. package/dist/lib/models/opportunities/freelance.d.ts.map +1 -1
  190. package/dist/lib/models/opportunities/internship.d.ts +66 -20
  191. package/dist/lib/models/opportunities/internship.d.ts.map +1 -1
  192. package/dist/lib/models/opportunities/job.d.ts +66 -20
  193. package/dist/lib/models/opportunities/job.d.ts.map +1 -1
  194. package/dist/lib/models/opportunities/opportunity.d.ts +66 -20
  195. package/dist/lib/models/opportunities/opportunity.d.ts.map +1 -1
  196. package/dist/lib/models/opportunities/opportunity.js +2 -0
  197. package/dist/lib/models/opportunities/volunteerJob.d.ts +66 -20
  198. package/dist/lib/models/opportunities/volunteerJob.d.ts.map +1 -1
  199. package/dist/lib/models/package.d.ts +81 -220
  200. package/dist/lib/models/package.d.ts.map +1 -1
  201. package/dist/lib/models/package.js +0 -2
  202. package/dist/lib/models/props.d.ts +1 -1
  203. package/dist/lib/models/props.d.ts.map +1 -1
  204. package/dist/lib/models/rental.d.ts +0 -2
  205. package/dist/lib/models/rental.d.ts.map +1 -1
  206. package/dist/lib/models/stay.d.ts +4 -4
  207. package/dist/lib/models/store.d.ts +71 -0
  208. package/dist/lib/models/store.d.ts.map +1 -0
  209. package/dist/lib/models/store.js +1 -0
  210. package/dist/lib/models/tile.d.ts +0 -2
  211. package/dist/lib/models/tile.d.ts.map +1 -1
  212. package/dist/lib/models/travelPackage.d.ts +206 -305
  213. package/dist/lib/models/travelPackage.d.ts.map +1 -1
  214. package/dist/lib/models/travelPackage.js +0 -2
  215. package/dist/lib/models/user.d.ts +28 -4
  216. package/dist/lib/models/user.d.ts.map +1 -1
  217. package/dist/lib/models/user.js +10 -1
  218. package/dist/lib/opportunityFormPage.d.ts +1 -0
  219. package/dist/lib/opportunityFormPage.d.ts.map +1 -1
  220. package/dist/lib/opportunityFormPage.js +1 -0
  221. package/dist/lib/pricingActions.d.ts +13 -0
  222. package/dist/lib/pricingActions.d.ts.map +1 -0
  223. package/dist/lib/pricingActions.js +16 -0
  224. package/dist/lib/rentalActions.js +0 -1
  225. package/dist/lib/rentalDummyData.d.ts.map +1 -1
  226. package/dist/lib/rentalDummyData.js +0 -35
  227. package/dist/lib/rentalFormPage.d.ts +0 -2
  228. package/dist/lib/rentalFormPage.d.ts.map +1 -1
  229. package/dist/lib/rentalFormPage.js +0 -3
  230. package/dist/lib/storeActions.d.ts +25 -0
  231. package/dist/lib/storeActions.d.ts.map +1 -0
  232. package/dist/lib/storeActions.js +46 -0
  233. package/dist/lib/storeDummyData.d.ts +2 -26
  234. package/dist/lib/storeDummyData.d.ts.map +1 -1
  235. package/dist/lib/userAtom.d.ts +71 -36
  236. package/dist/lib/userAtom.d.ts.map +1 -1
  237. package/dist/lib/userAtom.js +11 -17
  238. package/dist/lib/utils/entitySubmission.d.ts +21 -0
  239. package/dist/lib/utils/entitySubmission.d.ts.map +1 -0
  240. package/dist/lib/utils/entitySubmission.js +10 -0
  241. package/dist/lib/utils/imageUpload.d.ts +4 -0
  242. package/dist/lib/utils/imageUpload.d.ts.map +1 -0
  243. package/dist/lib/utils/imageUpload.js +36 -0
  244. package/dist/lib/utils/tileConverters.d.ts +8 -0
  245. package/dist/lib/utils/tileConverters.d.ts.map +1 -0
  246. package/dist/lib/utils/tileConverters.js +59 -0
  247. package/dist/lib/utils.d.ts.map +1 -1
  248. package/dist/lib/utils.js +1 -1
  249. package/package.json +4 -2
@@ -0,0 +1,3 @@
1
+ import { TileProps } from "../models/tile";
2
+ export declare const adventureDummyData: TileProps[];
3
+ //# sourceMappingURL=adventureDummyData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adventureDummyData.d.ts","sourceRoot":"","sources":["../../../src/lib/data/adventureDummyData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,eAAO,MAAM,kBAAkB,EAAE,SAAS,EAqJzC,CAAC"}
@@ -0,0 +1,138 @@
1
+ export const adventureDummyData = [
2
+ {
3
+ slug: "rishikesh-river-rafting-grade4",
4
+ image: "https://images.pexels.com/photos/1497582/pexels-photo-1497582.jpeg",
5
+ title: "Rishikesh Grade 4 River Rafting",
6
+ description: "Conquer the mighty Ganges on a thrilling Grade 4 rafting run through rapids like Golf Course and The Wall.",
7
+ location: "Rishikesh, Uttarakhand",
8
+ date: new Date("2025-03-01"),
9
+ rating: 4.8,
10
+ price: 850,
11
+ currency: "INR",
12
+ tileType: "adventures",
13
+ duration: 3,
14
+ host: {
15
+ name: "Himalayan Rush",
16
+ image: "https://images.pexels.com/photos/1722198/pexels-photo-1722198.jpeg",
17
+ },
18
+ },
19
+ {
20
+ slug: "bir-billing-paragliding",
21
+ image: "https://images.pexels.com/photos/1365425/pexels-photo-1365425.jpeg",
22
+ title: "Bir Billing Paragliding",
23
+ description: "Soar above the Kangra Valley from the world's second-highest paragliding site. Tandem flight with certified pilot.",
24
+ location: "Bir, Himachal Pradesh",
25
+ date: new Date("2025-04-10"),
26
+ rating: 4.9,
27
+ price: 2500,
28
+ currency: "INR",
29
+ tileType: "adventures",
30
+ duration: 2,
31
+ host: {
32
+ name: "Sky Riders India",
33
+ image: "https://images.pexels.com/photos/733872/pexels-photo-733872.jpeg",
34
+ },
35
+ },
36
+ {
37
+ slug: "kedarkantha-winter-trek",
38
+ image: "https://images.pexels.com/photos/618833/pexels-photo-618833.jpeg",
39
+ title: "Kedarkantha Summit Trek",
40
+ description: "Trek through oak and rhododendron forests to a 12,500 ft snow-covered peak. Camping under the stars included.",
41
+ location: "Sankri, Uttarakhand",
42
+ date: new Date("2025-01-15"),
43
+ rating: 4.7,
44
+ price: 6500,
45
+ currency: "INR",
46
+ tileType: "adventures",
47
+ duration: 36,
48
+ host: {
49
+ name: "Trek The Himalayas",
50
+ image: "https://images.pexels.com/photos/1681010/pexels-photo-1681010.jpeg",
51
+ },
52
+ },
53
+ {
54
+ slug: "scuba-diving-andaman",
55
+ image: "https://images.pexels.com/photos/3231384/pexels-photo-3231384.jpeg",
56
+ title: "Scuba Diving – Andaman",
57
+ description: "Discover vibrant coral reefs and exotic marine life at Neil Island. Intro dive for beginners with PADI instructors.",
58
+ location: "Neil Island, Andaman",
59
+ date: new Date("2025-02-20"),
60
+ rating: 4.6,
61
+ price: 3200,
62
+ currency: "INR",
63
+ tileType: "adventures",
64
+ duration: 3,
65
+ host: {
66
+ name: "Andaman Divers",
67
+ image: "https://images.pexels.com/photos/415829/pexels-photo-415829.jpeg",
68
+ },
69
+ },
70
+ {
71
+ slug: "bungee-jumping-rishikesh",
72
+ image: "https://images.pexels.com/photos/1271619/pexels-photo-1271619.jpeg",
73
+ title: "83m Bungee Jump – Rishikesh",
74
+ description: "Leap from India's highest fixed bungee platform into the gorge below. Safety briefing and gear provided.",
75
+ location: "Rishikesh, Uttarakhand",
76
+ date: new Date("2025-03-05"),
77
+ rating: 4.5,
78
+ price: 3550,
79
+ currency: "INR",
80
+ tileType: "adventures",
81
+ duration: 1,
82
+ host: {
83
+ name: "Jumping Heights",
84
+ image: "https://images.pexels.com/photos/2379005/pexels-photo-2379005.jpeg",
85
+ },
86
+ },
87
+ {
88
+ slug: "rann-of-kutch-camping",
89
+ image: "https://images.pexels.com/photos/2422265/pexels-photo-2422265.jpeg",
90
+ title: "Rann of Kutch Desert Camp",
91
+ description: "Spend nights under a blanket of stars on the white salt desert. Guided cultural tour and folk music included.",
92
+ location: "Bhuj, Gujarat",
93
+ date: new Date("2025-11-20"),
94
+ rating: 4.4,
95
+ price: 4200,
96
+ currency: "INR",
97
+ tileType: "adventures",
98
+ duration: 20,
99
+ host: {
100
+ name: "Desert Trails",
101
+ image: "https://images.pexels.com/photos/774909/pexels-photo-774909.jpeg",
102
+ },
103
+ },
104
+ {
105
+ slug: "rock-climbing-hampi",
106
+ image: "https://images.pexels.com/photos/209841/pexels-photo-209841.jpeg",
107
+ title: "Rock Climbing – Hampi Boulders",
108
+ description: "Scale Hampi's iconic granite boulders with certified instructors. Suitable for beginners to intermediate climbers.",
109
+ location: "Hampi, Karnataka",
110
+ date: new Date("2025-01-25"),
111
+ rating: 4.3,
112
+ price: 1200,
113
+ currency: "INR",
114
+ tileType: "adventures",
115
+ duration: 4,
116
+ host: {
117
+ name: "Hampi Climbers",
118
+ image: "https://images.pexels.com/photos/697509/pexels-photo-697509.jpeg",
119
+ },
120
+ },
121
+ {
122
+ slug: "kaziranga-jungle-safari",
123
+ image: "https://images.pexels.com/photos/247431/pexels-photo-247431.jpeg",
124
+ title: "Kaziranga Elephant Safari",
125
+ description: "Spot the one-horned rhino on an early morning elephant safari through UNESCO-listed Kaziranga National Park.",
126
+ location: "Kaziranga, Assam",
127
+ date: new Date("2025-02-10"),
128
+ rating: 4.8,
129
+ price: 1800,
130
+ currency: "INR",
131
+ tileType: "adventures",
132
+ duration: 2,
133
+ host: {
134
+ name: "Wild Assam",
135
+ image: "https://images.pexels.com/photos/1545743/pexels-photo-1545743.jpeg",
136
+ },
137
+ },
138
+ ];
@@ -0,0 +1,28 @@
1
+ import { createSinglePricing } from "../models/pricing";
2
+ export type AdventureFormState = {
3
+ hostId: string;
4
+ title: string;
5
+ description: string;
6
+ activityType: string;
7
+ difficulty: string;
8
+ duration: string;
9
+ city: string;
10
+ state: string;
11
+ address: string;
12
+ meetingPoint: string;
13
+ pricing: ReturnType<typeof createSinglePricing>;
14
+ maxGroupSize: string;
15
+ minAge: string;
16
+ bestSeason: string;
17
+ safetyInfo: string;
18
+ highlightsRaw: string;
19
+ includedRaw: string;
20
+ excludedRaw: string;
21
+ gearRaw: string;
22
+ operatingHoursStart: string;
23
+ operatingHoursEnd: string;
24
+ status: string;
25
+ };
26
+ export declare function getDefaultAdventureFormState(): AdventureFormState;
27
+ export declare function hydrateAdventureForm(adventure: any): AdventureFormState;
28
+ //# sourceMappingURL=adventureFormPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adventureFormPage.d.ts","sourceRoot":"","sources":["../../../src/lib/data/adventureFormPage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;IAChD,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,wBAAgB,4BAA4B,IAAI,kBAAkB,CA8BjE;AAED,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,GAAG,GAAG,kBAAkB,CAyBvE"}
@@ -0,0 +1,58 @@
1
+ import { createSinglePricing } from "../models/pricing";
2
+ export function getDefaultAdventureFormState() {
3
+ return {
4
+ hostId: "",
5
+ title: "",
6
+ description: "",
7
+ activityType: "trekking",
8
+ difficulty: "Moderate",
9
+ duration: "3",
10
+ city: "",
11
+ state: "",
12
+ address: "",
13
+ meetingPoint: "",
14
+ pricing: createSinglePricing({
15
+ currency: "INR",
16
+ finalBasePrice: 1500,
17
+ basePrice: 1500,
18
+ description: "Standard admission",
19
+ }),
20
+ maxGroupSize: "10",
21
+ minAge: "12",
22
+ bestSeason: "Year round",
23
+ safetyInfo: "",
24
+ highlightsRaw: "",
25
+ includedRaw: "",
26
+ excludedRaw: "",
27
+ gearRaw: "",
28
+ operatingHoursStart: "09:00",
29
+ operatingHoursEnd: "18:00",
30
+ status: "open",
31
+ };
32
+ }
33
+ export function hydrateAdventureForm(adventure) {
34
+ return {
35
+ hostId: typeof adventure.hostId === "string" ? adventure.hostId : adventure.hostId?.username || "",
36
+ title: adventure.title || "",
37
+ description: adventure.description || "",
38
+ activityType: adventure.activityType || "trekking",
39
+ difficulty: adventure.difficulty || "Moderate",
40
+ duration: String(adventure.duration || 3),
41
+ city: adventure.city || "",
42
+ state: adventure.state || "",
43
+ address: adventure.address || "",
44
+ meetingPoint: adventure.meetingPoint || "",
45
+ pricing: createSinglePricing(adventure?.pricing?.pricingStrategies?.[0] ?? { currency: "INR", finalBasePrice: 0 }),
46
+ maxGroupSize: String(adventure.maxGroupSize || 10),
47
+ minAge: String(adventure.minAge || 12),
48
+ bestSeason: adventure.bestSeason || "Year round",
49
+ safetyInfo: adventure.safetyInfo || "",
50
+ highlightsRaw: (adventure.highlights || []).join("\n"),
51
+ includedRaw: (adventure.included || []).join("\n"),
52
+ excludedRaw: (adventure.excluded || []).join("\n"),
53
+ gearRaw: (adventure.gear || []).join("\n"),
54
+ operatingHoursStart: adventure.operatingHours?.start || "09:00",
55
+ operatingHoursEnd: adventure.operatingHours?.end || "18:00",
56
+ status: adventure.status || "open",
57
+ };
58
+ }
@@ -0,0 +1,99 @@
1
+ export declare const dummyTravelPlans: {
2
+ _id: string;
3
+ destination: {
4
+ city: string;
5
+ state: string;
6
+ country: string;
7
+ };
8
+ startDate: string;
9
+ endDate: string;
10
+ budgetRange: {
11
+ min: number;
12
+ max: number;
13
+ };
14
+ travelStyle: string;
15
+ interests: string[];
16
+ description: string;
17
+ maxTravelers: number;
18
+ participants: {
19
+ _id: string;
20
+ profilePic: string;
21
+ }[];
22
+ images: string[];
23
+ compatibilityScore: number;
24
+ compatibilityReasons: string[];
25
+ createdBy: {
26
+ _id: string;
27
+ firstName: string;
28
+ username: string;
29
+ profilePic: string;
30
+ verifiedPhoneNumber: boolean;
31
+ };
32
+ status: string;
33
+ likes: string[];
34
+ myJoinStatus: string;
35
+ isMine: boolean;
36
+ }[];
37
+ export declare const dummyTravelers: {
38
+ userId: string;
39
+ user: {
40
+ firstName: string;
41
+ lastName: string;
42
+ username: string;
43
+ profilePic: string;
44
+ };
45
+ travelStyle: string;
46
+ bio: string;
47
+ interests: string[];
48
+ destinations: string[];
49
+ languages: string[];
50
+ matchScore: number;
51
+ matchReasons: string[];
52
+ }[];
53
+ export declare const dummyMyPlans: {
54
+ _id: string;
55
+ destination: {
56
+ city: string;
57
+ state: string;
58
+ country: string;
59
+ };
60
+ startDate: string;
61
+ endDate: string;
62
+ budgetRange: {
63
+ min: number;
64
+ max: number;
65
+ };
66
+ travelStyle: string;
67
+ interests: string[];
68
+ description: string;
69
+ maxTravelers: number;
70
+ participants: {
71
+ _id: string;
72
+ profilePic: string;
73
+ }[];
74
+ images: string[];
75
+ compatibilityScore: number;
76
+ compatibilityReasons: never[];
77
+ createdBy: {
78
+ _id: string;
79
+ firstName: string;
80
+ username: string;
81
+ profilePic: string;
82
+ verifiedPhoneNumber: boolean;
83
+ };
84
+ status: string;
85
+ likes: string[];
86
+ myJoinStatus: string;
87
+ isMine: boolean;
88
+ }[];
89
+ export declare const dummyJoinRequests: {
90
+ _id: string;
91
+ userId: {
92
+ firstName: string;
93
+ lastName: string;
94
+ profilePic: string;
95
+ };
96
+ message: string;
97
+ status: string;
98
+ }[];
99
+ //# sourceMappingURL=companionDummyData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"companionDummyData.d.ts","sourceRoot":"","sources":["../../../src/lib/data/companionDummyData.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqG5B,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;GAiD1B,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BxB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;GAsB7B,CAAC"}
@@ -0,0 +1,203 @@
1
+ export const dummyTravelPlans = [
2
+ {
3
+ _id: "plan-1",
4
+ destination: { city: "Bali", state: "Bali", country: "Indonesia" },
5
+ startDate: new Date(Date.now() + 15 * 24 * 60 * 60 * 1000).toISOString(),
6
+ endDate: new Date(Date.now() + 25 * 24 * 60 * 60 * 1000).toISOString(),
7
+ budgetRange: { min: 40000, max: 80000 },
8
+ travelStyle: "flashpacker",
9
+ interests: ["surfing", "yoga", "food", "culture"],
10
+ description: "Planning to explore the beaches, temples, and rice terraces of Bali. Looking for someone adventurous to share the cost of a nice villa and join me on hikes and surfing sessions!",
11
+ maxTravelers: 4,
12
+ participants: [
13
+ { _id: "user-0", profilePic: "/images/profile_placeholder.webp" },
14
+ ],
15
+ images: [
16
+ "https://images.unsplash.com/photo-1537996194471-e657df975ab4?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80",
17
+ ],
18
+ compatibilityScore: 85,
19
+ compatibilityReasons: [
20
+ "You both love surfing",
21
+ "Matched travel style: flashpacker",
22
+ ],
23
+ createdBy: {
24
+ _id: "user-0",
25
+ firstName: "Aarav",
26
+ username: "aarav_travels",
27
+ profilePic: "/images/profile_placeholder.webp",
28
+ verifiedPhoneNumber: true,
29
+ },
30
+ status: "open",
31
+ likes: ["user-a", "user-b"],
32
+ myJoinStatus: "none",
33
+ isMine: false,
34
+ },
35
+ {
36
+ _id: "plan-2",
37
+ destination: { city: "Leh", state: "Ladakh", country: "India" },
38
+ startDate: new Date(Date.now() + 30 * 24 * 60 * 60 * 1000).toISOString(),
39
+ endDate: new Date(Date.now() + 40 * 24 * 60 * 60 * 1000).toISOString(),
40
+ budgetRange: { min: 25000, max: 45000 },
41
+ travelStyle: "backpacker",
42
+ interests: ["trekking", "photography", "adventure"],
43
+ description: "Road trip across Ladakh! Will be renting Royal Enfields. Looking for fellow riders who are comfortable with high altitudes and basic homestays.",
44
+ maxTravelers: 6,
45
+ participants: [
46
+ { _id: "user-1", profilePic: "/images/profile_placeholder.webp" },
47
+ { _id: "user-2", profilePic: "/images/profile_placeholder.webp" },
48
+ ],
49
+ images: [
50
+ "https://images.unsplash.com/photo-1626601323380-498c8c6cfd89?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80",
51
+ ],
52
+ compatibilityScore: 92,
53
+ compatibilityReasons: [
54
+ "Both interested in trekking",
55
+ "Highly compatible age group",
56
+ ],
57
+ createdBy: {
58
+ _id: "user-1",
59
+ firstName: "Rohan",
60
+ username: "rohan_rides",
61
+ profilePic: "/images/profile_placeholder.webp",
62
+ verifiedPhoneNumber: true,
63
+ },
64
+ status: "open",
65
+ likes: ["user-c"],
66
+ myJoinStatus: "none",
67
+ isMine: false,
68
+ },
69
+ {
70
+ _id: "plan-3",
71
+ destination: { city: "Tokyo", state: "Tokyo", country: "Japan" },
72
+ startDate: new Date(Date.now() + 60 * 24 * 60 * 60 * 1000).toISOString(),
73
+ endDate: new Date(Date.now() + 70 * 24 * 60 * 60 * 1000).toISOString(),
74
+ budgetRange: { min: 80000, max: 150000 },
75
+ travelStyle: "mid-range",
76
+ interests: ["food", "culture", "shopping", "nightlife"],
77
+ description: "First time in Japan! I want to visit Tokyo, Kyoto, and Osaka. Looking for 1-2 travel buddies to split accommodation and explore the incredible food scene.",
78
+ maxTravelers: 3,
79
+ participants: [
80
+ { _id: "user-3", profilePic: "/images/profile_placeholder.webp" },
81
+ ],
82
+ images: [
83
+ "https://images.unsplash.com/photo-1540959733332-eab4deabeeaf?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80",
84
+ ],
85
+ compatibilityScore: 65,
86
+ compatibilityReasons: ["Shared interest in food"],
87
+ createdBy: {
88
+ _id: "user-3",
89
+ firstName: "Priya",
90
+ username: "priya_explores",
91
+ profilePic: "/images/profile_placeholder.webp",
92
+ verifiedPhoneNumber: false,
93
+ },
94
+ status: "open",
95
+ likes: [],
96
+ myJoinStatus: "none",
97
+ isMine: false,
98
+ },
99
+ ];
100
+ export const dummyTravelers = [
101
+ {
102
+ userId: "user-10",
103
+ user: {
104
+ firstName: "Kabir",
105
+ lastName: "S",
106
+ username: "kabir99",
107
+ profilePic: "/images/profile_placeholder.webp",
108
+ },
109
+ travelStyle: "backpacker",
110
+ bio: "Software engineer by day, mountain lover by weekend. Always looking for the next hiking trail.",
111
+ interests: ["trekking", "nature", "photography"],
112
+ destinations: ["Himalayas", "Nepal", "Patagonia"],
113
+ languages: ["English", "Hindi"],
114
+ matchScore: 88,
115
+ matchReasons: ["You both love trekking", "Similar travel style"],
116
+ },
117
+ {
118
+ userId: "user-11",
119
+ user: {
120
+ firstName: "Ananya",
121
+ lastName: "M",
122
+ username: "ananya_m",
123
+ profilePic: "/images/profile_placeholder.webp",
124
+ },
125
+ travelStyle: "luxury",
126
+ bio: "I travel for the food and the resorts. Let's find the best spas and fine dining spots!",
127
+ interests: ["food", "wellness", "shopping"],
128
+ destinations: ["Maldives", "Paris", "Dubai"],
129
+ languages: ["English", "French"],
130
+ matchScore: 45,
131
+ matchReasons: ["Shared interest in food"],
132
+ },
133
+ {
134
+ userId: "user-12",
135
+ user: {
136
+ firstName: "Vikram",
137
+ lastName: "K",
138
+ username: "vikram.k",
139
+ profilePic: "/images/profile_placeholder.webp",
140
+ },
141
+ travelStyle: "mid-range",
142
+ bio: "History buff who loves exploring old ruins and museums. Easy-going and flexible planner.",
143
+ interests: ["history", "culture", "architecture"],
144
+ destinations: ["Rome", "Egypt", "Cambodia"],
145
+ languages: ["English", "Hindi", "Spanish"],
146
+ matchScore: 72,
147
+ matchReasons: ["High personality compatibility"],
148
+ },
149
+ ];
150
+ export const dummyMyPlans = [
151
+ {
152
+ _id: "plan-my-1",
153
+ destination: { city: "Goa", state: "Goa", country: "India" },
154
+ startDate: new Date(Date.now() + 5 * 24 * 60 * 60 * 1000).toISOString(),
155
+ endDate: new Date(Date.now() + 10 * 24 * 60 * 60 * 1000).toISOString(),
156
+ budgetRange: { min: 15000, max: 25000 },
157
+ travelStyle: "budget",
158
+ interests: ["nightlife", "beaches"],
159
+ description: "Quick weekend escape to North Goa.",
160
+ maxTravelers: 4,
161
+ participants: [
162
+ { _id: "me", profilePic: "/images/profile_placeholder.webp" },
163
+ ],
164
+ images: [
165
+ "https://images.unsplash.com/photo-1512343879784-a960bf40e7f2?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80",
166
+ ],
167
+ compatibilityScore: 0,
168
+ compatibilityReasons: [],
169
+ createdBy: {
170
+ _id: "me",
171
+ firstName: "You",
172
+ username: "you",
173
+ profilePic: "/images/profile_placeholder.webp",
174
+ verifiedPhoneNumber: true,
175
+ },
176
+ status: "open",
177
+ likes: ["user-x", "user-y"],
178
+ myJoinStatus: "accepted",
179
+ isMine: true,
180
+ },
181
+ ];
182
+ export const dummyJoinRequests = [
183
+ {
184
+ _id: "req-1",
185
+ userId: {
186
+ firstName: "Rahul",
187
+ lastName: "T",
188
+ profilePic: "/images/profile_placeholder.webp",
189
+ },
190
+ message: "Hey, your plan sounds awesome! I have been to Goa before and know some good hidden spots.",
191
+ status: "pending",
192
+ },
193
+ {
194
+ _id: "req-2",
195
+ userId: {
196
+ firstName: "Neha",
197
+ lastName: "S",
198
+ profilePic: "/images/profile_placeholder.webp",
199
+ },
200
+ message: "Would love to join for the nightlife!",
201
+ status: "pending",
202
+ },
203
+ ];
@@ -0,0 +1,14 @@
1
+ export interface Destination {
2
+ name: string;
3
+ emoji: string;
4
+ state: string;
5
+ country: string;
6
+ }
7
+ export declare const ALL_DESTINATIONS: Destination[];
8
+ /** Flat array of city names — use for autocomplete suggestions */
9
+ export declare const INDIAN_CITIES: string[];
10
+ /** { title: cityName } format — compatible with skillsOptions / Filter component */
11
+ export declare const INDIAN_CITIES_OPTIONS: {
12
+ title: string;
13
+ }[];
14
+ //# sourceMappingURL=destinations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"destinations.d.ts","sourceRoot":"","sources":["../../../src/lib/data/destinations.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,gBAAgB,EAAE,WAAW,EAsMzC,CAAC;AAeF,kEAAkE;AAClE,eAAO,MAAM,aAAa,EAAE,MAAM,EAAwC,CAAC;AAE3E,oFAAoF;AACpF,eAAO,MAAM,qBAAqB,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,EAElD,CAAC"}