@myrjfa/state 1.0.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.
- package/LICENSE +201 -0
- package/README.md +4 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/dist/lib/QueryProvider.d.ts +4 -0
- package/dist/lib/QueryProvider.d.ts.map +1 -0
- package/dist/lib/QueryProvider.js +10 -0
- package/dist/lib/actions.d.ts +141 -0
- package/dist/lib/actions.d.ts.map +1 -0
- package/dist/lib/actions.js +307 -0
- package/dist/lib/auth.d.ts +146 -0
- package/dist/lib/auth.d.ts.map +1 -0
- package/dist/lib/auth.js +125 -0
- package/dist/lib/authSessionManager.d.ts +2 -0
- package/dist/lib/authSessionManager.d.ts.map +1 -0
- package/dist/lib/authSessionManager.js +34 -0
- package/dist/lib/fetcher.d.ts +9 -0
- package/dist/lib/fetcher.d.ts.map +1 -0
- package/dist/lib/fetcher.js +78 -0
- package/dist/lib/hooks/use-mobile.d.ts +2 -0
- package/dist/lib/hooks/use-mobile.d.ts.map +1 -0
- package/dist/lib/hooks/use-mobile.js +15 -0
- package/dist/lib/models/application.d.ts +25 -0
- package/dist/lib/models/application.d.ts.map +1 -0
- package/dist/lib/models/application.js +130 -0
- package/dist/lib/models/blog.d.ts +63 -0
- package/dist/lib/models/blog.d.ts.map +1 -0
- package/dist/lib/models/blog.js +190 -0
- package/dist/lib/models/notfications.d.ts +26 -0
- package/dist/lib/models/notfications.d.ts.map +1 -0
- package/dist/lib/models/notfications.js +46 -0
- package/dist/lib/models/portfolio.d.ts +32 -0
- package/dist/lib/models/portfolio.d.ts.map +1 -0
- package/dist/lib/models/portfolio.js +66 -0
- package/dist/lib/models/props.d.ts +39 -0
- package/dist/lib/models/props.d.ts.map +1 -0
- package/dist/lib/models/props.js +260 -0
- package/dist/lib/models/review.d.ts +40 -0
- package/dist/lib/models/review.d.ts.map +1 -0
- package/dist/lib/models/review.js +72 -0
- package/dist/lib/models/tile.d.ts +26 -0
- package/dist/lib/models/tile.d.ts.map +1 -0
- package/dist/lib/models/tile.js +1 -0
- package/dist/lib/models/user.d.ts +148 -0
- package/dist/lib/models/user.d.ts.map +1 -0
- package/dist/lib/models/user.js +87 -0
- package/dist/lib/models/volunteerJob.d.ts +377 -0
- package/dist/lib/models/volunteerJob.d.ts.map +1 -0
- package/dist/lib/models/volunteerJob.js +149 -0
- package/dist/lib/severActions.d.ts +3 -0
- package/dist/lib/severActions.d.ts.map +1 -0
- package/dist/lib/severActions.js +19 -0
- package/dist/lib/userAtom.d.ts +191 -0
- package/dist/lib/userAtom.d.ts.map +1 -0
- package/dist/lib/userAtom.js +127 -0
- package/dist/lib/utils.d.ts +53 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +182 -0
- package/package.json +51 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const PortfolioItemSchema = z.object({
|
|
3
|
+
_id: z.string(),
|
|
4
|
+
user: z.string(),
|
|
5
|
+
mediaType: z.enum(["image", "video"]),
|
|
6
|
+
url: z.string(),
|
|
7
|
+
mainUrl: z.string().optional(),
|
|
8
|
+
caption: z.string(),
|
|
9
|
+
createdAt: z.date(),
|
|
10
|
+
updatedAt: z.date(),
|
|
11
|
+
}).strict();
|
|
12
|
+
export const samplePortfolio = [{
|
|
13
|
+
_id: "1",
|
|
14
|
+
user: "wanderlust_volunteer",
|
|
15
|
+
mediaType: "image",
|
|
16
|
+
url: "/images/profile_placeholder.webp",
|
|
17
|
+
mainUrl: "https://www.google.com",
|
|
18
|
+
caption: "Documenting traditional fishing techniques in Kerala",
|
|
19
|
+
createdAt: new Date(2024, 8, 5),
|
|
20
|
+
updatedAt: new Date(2024, 8, 5),
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
_id: "2",
|
|
24
|
+
user: "wanderlust_volunteer",
|
|
25
|
+
mediaType: "video",
|
|
26
|
+
url: "https://videos.pexels.com/video-files/6548176/6548176-hd_1920_1080_24fps.mp4",
|
|
27
|
+
caption: "Teaching English to local children in Manali",
|
|
28
|
+
createdAt: new Date(2024, 7, 12),
|
|
29
|
+
updatedAt: new Date(2024, 7, 12),
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
_id: "3",
|
|
33
|
+
user: "wanderlust_volunteer",
|
|
34
|
+
mediaType: "image",
|
|
35
|
+
url: "/images/profile_placeholder.webp",
|
|
36
|
+
caption: "Helping build eco-friendly accommodations in Goa",
|
|
37
|
+
createdAt: new Date(2024, 6, 20),
|
|
38
|
+
updatedAt: new Date(2024, 6, 20),
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
_id: "4",
|
|
42
|
+
user: "wanderlust_volunteer",
|
|
43
|
+
mediaType: "image",
|
|
44
|
+
url: "/images/profile_placeholder.webp",
|
|
45
|
+
caption: "Conducting sustainable tourism workshop in Jaipur",
|
|
46
|
+
createdAt: new Date(2024, 5, 8),
|
|
47
|
+
updatedAt: new Date(2024, 5, 8),
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
_id: "5",
|
|
51
|
+
user: "wanderlust_volunteer",
|
|
52
|
+
mediaType: "video",
|
|
53
|
+
url: "/images/profile_placeholder.webp",
|
|
54
|
+
caption: "Guiding international tourists on a cultural heritage tour",
|
|
55
|
+
createdAt: new Date(2024, 4, 15),
|
|
56
|
+
updatedAt: new Date(2024, 4, 15)
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
_id: "6",
|
|
60
|
+
user: "wanderlust_volunteer",
|
|
61
|
+
mediaType: "image",
|
|
62
|
+
url: "/images/profile_placeholder.webp",
|
|
63
|
+
caption: "Wildlife photography from Ranthambore volunteering",
|
|
64
|
+
createdAt: new Date(2024, 3, 28),
|
|
65
|
+
updatedAt: new Date(2024, 3, 28)
|
|
66
|
+
}];
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const QuestionSchema: z.ZodObject<{
|
|
3
|
+
question: z.ZodString;
|
|
4
|
+
answer: z.ZodString;
|
|
5
|
+
}, "strict", z.ZodTypeAny, {
|
|
6
|
+
question: string;
|
|
7
|
+
answer: string;
|
|
8
|
+
}, {
|
|
9
|
+
question: string;
|
|
10
|
+
answer: string;
|
|
11
|
+
}>;
|
|
12
|
+
export type Question = z.infer<typeof QuestionSchema>;
|
|
13
|
+
export interface CardType {
|
|
14
|
+
title: string;
|
|
15
|
+
image?: string;
|
|
16
|
+
count?: number;
|
|
17
|
+
desc?: string;
|
|
18
|
+
}
|
|
19
|
+
export type UserRole = 'user' | 'host' | 'admin';
|
|
20
|
+
export declare const skillsData: {
|
|
21
|
+
icon: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
22
|
+
title: string;
|
|
23
|
+
}[];
|
|
24
|
+
export declare const skillsOptions: {
|
|
25
|
+
title: string;
|
|
26
|
+
}[];
|
|
27
|
+
export interface DisplayItem {
|
|
28
|
+
icon: string;
|
|
29
|
+
title: string;
|
|
30
|
+
}
|
|
31
|
+
export declare const fallBackIcon = "/images/icons/miscellaneous.webp";
|
|
32
|
+
export declare const statesOptions: {
|
|
33
|
+
india: string[];
|
|
34
|
+
pakistan: string[];
|
|
35
|
+
"united states": string[];
|
|
36
|
+
canada: string[];
|
|
37
|
+
australia: string[];
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/lib/models/props.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc;;;;;;;;;EAGhB,CAAC;AAEZ,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,MAAM,WAAW,QAAQ;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAGD,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAEjD,eAAO,MAAM,UAAU;;;GA8BtB,CAAC;AAEF,eAAO,MAAM,aAAa;;GA+FzB,CAAC;AAEF,MAAM,WAAW,WAAW;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,YAAY,qCAAqC,CAAA;AAE9D,eAAO,MAAM,aAAa;;;;;;CA6HzB,CAAA"}
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import { Badge, BarChart, BookOpen, Box, Brain, Brush, Camera, Code, Cuboid, Film, Instagram, Layout, Link, Mail, Mic, Move, Music, Paintbrush, Palette, PenTool, Search, ShoppingCart, Target, Type, UserCheck, Users, Video, Workflow, Zap } from "lucide-react";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
export const QuestionSchema = z.object({
|
|
4
|
+
question: z.string(),
|
|
5
|
+
answer: z.string(),
|
|
6
|
+
}).strict();
|
|
7
|
+
export const skillsData = [
|
|
8
|
+
{ icon: Paintbrush, title: "Graphic Design" },
|
|
9
|
+
{ icon: Badge, title: "Branding & Identity Design" },
|
|
10
|
+
{ icon: Layout, title: "UI/UX Design" },
|
|
11
|
+
{ icon: Film, title: "Motion Graphics & Animation" },
|
|
12
|
+
{ icon: Video, title: "Video Production & Editing" },
|
|
13
|
+
{ icon: Camera, title: "Photography & Photo Editing" },
|
|
14
|
+
{ icon: Brush, title: "Illustration & Digital Art" },
|
|
15
|
+
{ icon: PenTool, title: "Creative Writing & Copywriting" },
|
|
16
|
+
{ icon: BookOpen, title: "Content Marketing & Storytelling" },
|
|
17
|
+
{ icon: Instagram, title: "Social Media Content Creation" },
|
|
18
|
+
{ icon: Search, title: "Search Engine Optimization (SEO)" },
|
|
19
|
+
{ icon: UserCheck, title: "User Experience (UX) Research" },
|
|
20
|
+
{ icon: Cuboid, title: "Augmented Reality (AR) Design" },
|
|
21
|
+
{ icon: Box, title: "3D Modeling & Rendering" },
|
|
22
|
+
{ icon: Type, title: "Typography & Lettering" },
|
|
23
|
+
{ icon: Mail, title: "Email Marketing & Automation" },
|
|
24
|
+
{ icon: Users, title: "Influencer Marketing Strategy" },
|
|
25
|
+
{ icon: Zap, title: "Growth Hacking & Viral Marketing" },
|
|
26
|
+
{ icon: Workflow, title: "No-Code & Low-Code Development" },
|
|
27
|
+
{ icon: Palette, title: "Creative Direction & Art Direction" },
|
|
28
|
+
{ icon: Code, title: "Web Development (HTML, CSS, JS)" },
|
|
29
|
+
{ icon: ShoppingCart, title: "E-commerce Branding & Optimization" },
|
|
30
|
+
{ icon: Mic, title: "Podcast Production & Editing" },
|
|
31
|
+
{ icon: BarChart, title: "Data Visualization & Infographics" },
|
|
32
|
+
{ icon: Target, title: "Advertising & Performance Marketing" },
|
|
33
|
+
{ icon: Move, title: "Interactive Design & Web Animation" },
|
|
34
|
+
{ icon: Music, title: "Music Production & Sound Design" },
|
|
35
|
+
{ icon: Link, title: "NFT & Blockchain Creative Strategies" },
|
|
36
|
+
{ icon: Brain, title: "AI-Generated Art & Content Creation" }
|
|
37
|
+
];
|
|
38
|
+
export const skillsOptions = [
|
|
39
|
+
{ title: "Graphic Design" },
|
|
40
|
+
{ title: "Branding" },
|
|
41
|
+
{ title: "UI/UX" },
|
|
42
|
+
{ title: "Motion Graphics" },
|
|
43
|
+
{ title: "Video Editing" },
|
|
44
|
+
{ title: "Photography" },
|
|
45
|
+
{ title: "Illustration" },
|
|
46
|
+
{ title: "Copywriting" },
|
|
47
|
+
{ title: "Content Writing" },
|
|
48
|
+
{ title: "Social Media" },
|
|
49
|
+
{ title: "SEO" },
|
|
50
|
+
{ title: "UX Research" },
|
|
51
|
+
{ title: "AR Design" },
|
|
52
|
+
{ title: "3D Modeling" },
|
|
53
|
+
{ title: "Typography" },
|
|
54
|
+
{ title: "Email Marketing" },
|
|
55
|
+
{ title: "Influencer Marketing" },
|
|
56
|
+
{ title: "Growth Hacking" },
|
|
57
|
+
{ title: "No-Code Development" },
|
|
58
|
+
{ title: "Art Direction" },
|
|
59
|
+
{ title: "Web Development" },
|
|
60
|
+
{ title: "E-commerce" },
|
|
61
|
+
{ title: "Podcasting" },
|
|
62
|
+
{ title: "Data Visualization" },
|
|
63
|
+
{ title: "Advertising" },
|
|
64
|
+
{ title: "Web Animation" },
|
|
65
|
+
{ title: "Music Production" },
|
|
66
|
+
{ title: "NFT Strategy" },
|
|
67
|
+
{ title: "AI Content Creation" },
|
|
68
|
+
{ title: "Innovator" },
|
|
69
|
+
{ title: "Writer" },
|
|
70
|
+
{ title: "Content Creator" },
|
|
71
|
+
{ title: "Photographer" },
|
|
72
|
+
{ title: "Videographer" },
|
|
73
|
+
{ title: "Musician" },
|
|
74
|
+
{ title: "Comedian" },
|
|
75
|
+
{ title: "Architect" },
|
|
76
|
+
{ title: "Interior Design" },
|
|
77
|
+
{ title: "Event Management" },
|
|
78
|
+
{ title: "Community Engagement" },
|
|
79
|
+
{ title: "Chef" },
|
|
80
|
+
{ title: "Teacher" },
|
|
81
|
+
{ title: "Wildlife Conservation" },
|
|
82
|
+
{ title: "Hospitality Management" },
|
|
83
|
+
{ title: "Web Designer" },
|
|
84
|
+
{ title: "Digital Marketing" },
|
|
85
|
+
{ title: "Sales" },
|
|
86
|
+
{ title: "Business Development" },
|
|
87
|
+
{ title: "Public Relations" },
|
|
88
|
+
{ title: "HR" },
|
|
89
|
+
{ title: "Supply Chain" },
|
|
90
|
+
{ title: "Operations" },
|
|
91
|
+
{ title: "Farming" },
|
|
92
|
+
{ title: "Tour Guide" },
|
|
93
|
+
{ title: "Gardening" },
|
|
94
|
+
{ title: "Bartending" },
|
|
95
|
+
{ title: "Kitchen Help" },
|
|
96
|
+
{ title: "Pottery" },
|
|
97
|
+
{ title: "Jewelry Design" },
|
|
98
|
+
{ title: "Scientist" },
|
|
99
|
+
{ title: "Language Teaching" },
|
|
100
|
+
{ title: "Artist" },
|
|
101
|
+
{ title: "Grant Writing" },
|
|
102
|
+
{ title: "Waste Management" },
|
|
103
|
+
{ title: "Experience Design" },
|
|
104
|
+
{ title: "Wall Art" },
|
|
105
|
+
{ title: "Upcycling" },
|
|
106
|
+
{ title: "Party Promotion" },
|
|
107
|
+
{ title: "Crafting" },
|
|
108
|
+
{ title: "Social Media Management" },
|
|
109
|
+
{ title: "Community Management" },
|
|
110
|
+
{ title: "Creative Writing" },
|
|
111
|
+
{ title: "Blogging" },
|
|
112
|
+
{ title: "Scriptwriting" },
|
|
113
|
+
{ title: "Voiceover" },
|
|
114
|
+
{ title: "Animation" },
|
|
115
|
+
{ title: "Photo Editing" },
|
|
116
|
+
{ title: "Sound Design" },
|
|
117
|
+
{ title: "Live Streaming" },
|
|
118
|
+
{ title: "Wireframing" },
|
|
119
|
+
{ title: "Prototyping" },
|
|
120
|
+
{ title: "Visual Design" },
|
|
121
|
+
{ title: "Campaign Strategy" },
|
|
122
|
+
{ title: "Marketing Strategy" },
|
|
123
|
+
{ title: "Content Strategy" },
|
|
124
|
+
{ title: "Creative Strategy" },
|
|
125
|
+
{ title: "Digital Illustration" },
|
|
126
|
+
{ title: "Color Grading" },
|
|
127
|
+
{ title: "Editing" },
|
|
128
|
+
{ title: "Subtitling" },
|
|
129
|
+
{ title: "Voice Editing" },
|
|
130
|
+
{ title: "Photography Styling" },
|
|
131
|
+
{ title: "Property Management" },
|
|
132
|
+
{ title: "Decoration" },
|
|
133
|
+
];
|
|
134
|
+
export const fallBackIcon = "/images/icons/miscellaneous.webp";
|
|
135
|
+
export const statesOptions = {
|
|
136
|
+
"india": [
|
|
137
|
+
"Andhra Pradesh",
|
|
138
|
+
"Arunachal Pradesh",
|
|
139
|
+
"Assam",
|
|
140
|
+
"Bihar",
|
|
141
|
+
"Chhattisgarh",
|
|
142
|
+
"Goa",
|
|
143
|
+
"Gujarat",
|
|
144
|
+
"Haryana",
|
|
145
|
+
"Himachal Pradesh",
|
|
146
|
+
"Jharkhand",
|
|
147
|
+
"Karnataka",
|
|
148
|
+
"Kerala",
|
|
149
|
+
"Madhya Pradesh",
|
|
150
|
+
"Maharashtra",
|
|
151
|
+
"Manipur",
|
|
152
|
+
"Meghalaya",
|
|
153
|
+
"Mizoram",
|
|
154
|
+
"Nagaland",
|
|
155
|
+
"Odisha",
|
|
156
|
+
"Punjab",
|
|
157
|
+
"Rajasthan",
|
|
158
|
+
"Sikkim",
|
|
159
|
+
"Tamil Nadu",
|
|
160
|
+
"Telangana",
|
|
161
|
+
"Tripura",
|
|
162
|
+
"Uttar Pradesh",
|
|
163
|
+
"Uttarakhand",
|
|
164
|
+
"West Bengal",
|
|
165
|
+
"Andaman and Nicobar Islands",
|
|
166
|
+
"Chandigarh",
|
|
167
|
+
"Dadra and Nagar Haveli and Daman and Diu",
|
|
168
|
+
"Delhi",
|
|
169
|
+
"Jammu and Kashmir",
|
|
170
|
+
"Ladakh",
|
|
171
|
+
"Lakshadweep",
|
|
172
|
+
"Puducherry"
|
|
173
|
+
],
|
|
174
|
+
"pakistan": [
|
|
175
|
+
"Azad Jammu and Kashmir",
|
|
176
|
+
"Balochistan",
|
|
177
|
+
"Gilgit-Baltistan",
|
|
178
|
+
"Islamabad Capital Territory",
|
|
179
|
+
"Khyber Pakhtunkhwa",
|
|
180
|
+
"Punjab",
|
|
181
|
+
"Sindh"
|
|
182
|
+
],
|
|
183
|
+
"united states": [
|
|
184
|
+
"Alabama",
|
|
185
|
+
"Alaska",
|
|
186
|
+
"Arizona",
|
|
187
|
+
"Arkansas",
|
|
188
|
+
"California",
|
|
189
|
+
"Colorado",
|
|
190
|
+
"Connecticut",
|
|
191
|
+
"Delaware",
|
|
192
|
+
"Florida",
|
|
193
|
+
"Georgia",
|
|
194
|
+
"Hawaii",
|
|
195
|
+
"Idaho",
|
|
196
|
+
"Illinois",
|
|
197
|
+
"Indiana",
|
|
198
|
+
"Iowa",
|
|
199
|
+
"Kansas",
|
|
200
|
+
"Kentucky",
|
|
201
|
+
"Louisiana",
|
|
202
|
+
"Maine",
|
|
203
|
+
"Maryland",
|
|
204
|
+
"Massachusetts",
|
|
205
|
+
"Michigan",
|
|
206
|
+
"Minnesota",
|
|
207
|
+
"Mississippi",
|
|
208
|
+
"Missouri",
|
|
209
|
+
"Montana",
|
|
210
|
+
"Nebraska",
|
|
211
|
+
"Nevada",
|
|
212
|
+
"New Hampshire",
|
|
213
|
+
"New Jersey",
|
|
214
|
+
"New Mexico",
|
|
215
|
+
"New York",
|
|
216
|
+
"North Carolina",
|
|
217
|
+
"North Dakota",
|
|
218
|
+
"Ohio",
|
|
219
|
+
"Oklahoma",
|
|
220
|
+
"Oregon",
|
|
221
|
+
"Pennsylvania",
|
|
222
|
+
"Rhode Island",
|
|
223
|
+
"South Carolina",
|
|
224
|
+
"South Dakota",
|
|
225
|
+
"Tennessee",
|
|
226
|
+
"Texas",
|
|
227
|
+
"Utah",
|
|
228
|
+
"Vermont",
|
|
229
|
+
"Virginia",
|
|
230
|
+
"Washington",
|
|
231
|
+
"West Virginia",
|
|
232
|
+
"Wisconsin",
|
|
233
|
+
"Wyoming"
|
|
234
|
+
],
|
|
235
|
+
"canada": [
|
|
236
|
+
"Alberta",
|
|
237
|
+
"British Columbia",
|
|
238
|
+
"Manitoba",
|
|
239
|
+
"New Brunswick",
|
|
240
|
+
"Newfoundland and Labrador",
|
|
241
|
+
"Nova Scotia",
|
|
242
|
+
"Ontario",
|
|
243
|
+
"Prince Edward Island",
|
|
244
|
+
"Quebec",
|
|
245
|
+
"Saskatchewan",
|
|
246
|
+
"Northwest Territories",
|
|
247
|
+
"Nunavut",
|
|
248
|
+
"Yukon"
|
|
249
|
+
],
|
|
250
|
+
"australia": [
|
|
251
|
+
"New South Wales",
|
|
252
|
+
"Victoria",
|
|
253
|
+
"Queensland",
|
|
254
|
+
"Western Australia",
|
|
255
|
+
"South Australia",
|
|
256
|
+
"Tasmania",
|
|
257
|
+
"Australian Capital Territory",
|
|
258
|
+
"Northern Territory"
|
|
259
|
+
]
|
|
260
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ReviewSchema: z.ZodObject<{
|
|
3
|
+
_id: z.ZodString;
|
|
4
|
+
reviewerPic: z.ZodString;
|
|
5
|
+
reviewerUsername: z.ZodString;
|
|
6
|
+
rating: z.ZodNumber;
|
|
7
|
+
comment: z.ZodString;
|
|
8
|
+
createdAt: z.ZodDate;
|
|
9
|
+
updatedAt: z.ZodDate;
|
|
10
|
+
}, "strict", z.ZodTypeAny, {
|
|
11
|
+
rating: number;
|
|
12
|
+
_id: string;
|
|
13
|
+
reviewerPic: string;
|
|
14
|
+
reviewerUsername: string;
|
|
15
|
+
comment: string;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
updatedAt: Date;
|
|
18
|
+
}, {
|
|
19
|
+
rating: number;
|
|
20
|
+
_id: string;
|
|
21
|
+
reviewerPic: string;
|
|
22
|
+
reviewerUsername: string;
|
|
23
|
+
comment: string;
|
|
24
|
+
createdAt: Date;
|
|
25
|
+
updatedAt: Date;
|
|
26
|
+
}>;
|
|
27
|
+
export type Review = z.infer<typeof ReviewSchema>;
|
|
28
|
+
export declare const reviewBasicSchema: z.ZodObject<{
|
|
29
|
+
rating: z.ZodNumber;
|
|
30
|
+
comment: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
rating: number;
|
|
33
|
+
comment?: string | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
rating: number;
|
|
36
|
+
comment?: string | undefined;
|
|
37
|
+
}>;
|
|
38
|
+
export type reviewType = z.infer<typeof reviewBasicSchema>;
|
|
39
|
+
export declare const sampleReviews: Review[];
|
|
40
|
+
//# sourceMappingURL=review.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"review.d.ts","sourceRoot":"","sources":["../../../src/lib/models/review.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;EAQd,CAAC;AAEZ,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD,eAAO,MAAM,iBAAiB;;;;;;;;;EAQ5B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE3D,eAAO,MAAM,aAAa,EAAE,MAAM,EAuDjC,CAAA"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const ReviewSchema = z.object({
|
|
3
|
+
_id: z.string(),
|
|
4
|
+
reviewerPic: z.string(),
|
|
5
|
+
reviewerUsername: z.string(),
|
|
6
|
+
rating: z.number(),
|
|
7
|
+
comment: z.string(),
|
|
8
|
+
createdAt: z.date(),
|
|
9
|
+
updatedAt: z.date(),
|
|
10
|
+
}).strict();
|
|
11
|
+
export const reviewBasicSchema = z.object({
|
|
12
|
+
rating: z.number().min(1, {
|
|
13
|
+
message: "Please select a rating",
|
|
14
|
+
}),
|
|
15
|
+
comment: z.string().optional().refine((val) => !val || val.trim()?.length >= 5, { message: 'Review must be at least 5 characters' }),
|
|
16
|
+
});
|
|
17
|
+
export const sampleReviews = [
|
|
18
|
+
{
|
|
19
|
+
_id: "1",
|
|
20
|
+
reviewerUsername: "Kerala Eco Retreat",
|
|
21
|
+
reviewerPic: "/images/profile_placeholder.webp",
|
|
22
|
+
rating: 5,
|
|
23
|
+
comment: "Ravi was exceptional during his time with us. His photography skills helped us showcase our eco-retreat to a wider audience. Very professional and dedicated!",
|
|
24
|
+
createdAt: new Date(2024, 8, 15),
|
|
25
|
+
updatedAt: new Date(2024, 8, 15)
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
_id: "2",
|
|
29
|
+
reviewerUsername: "chintu",
|
|
30
|
+
reviewerPic: "/images/profile_placeholder.webp",
|
|
31
|
+
rating: 4.5,
|
|
32
|
+
comment: "Great work ethic and amazing with guests. His tour guiding skills made our treks much more informative and engaging for international tourists.",
|
|
33
|
+
createdAt: new Date(2024, 6, 22),
|
|
34
|
+
updatedAt: new Date(2024, 8, 15)
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
_id: "3",
|
|
38
|
+
reviewerUsername: "Goa Beach Resort",
|
|
39
|
+
reviewerPic: "/images/profile_placeholder.webp",
|
|
40
|
+
rating: 4,
|
|
41
|
+
comment: "Ravi's content creation skills are top-notch! He helped us create engaging social media content that significantly increased our bookings.",
|
|
42
|
+
createdAt: new Date(2024, 4, 5),
|
|
43
|
+
updatedAt: new Date(2024, 8, 15)
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
_id: '4',
|
|
47
|
+
reviewerPic: '/images/users/emma.jpg',
|
|
48
|
+
reviewerUsername: 'Emma Wilson',
|
|
49
|
+
rating: 5,
|
|
50
|
+
comment: 'This was so inspiring! I"/m planning my own volunteering trip now, thanks to your detailed experience.',
|
|
51
|
+
createdAt: new Date('2024-01-15'),
|
|
52
|
+
updatedAt: new Date(2024, 8, 15)
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
_id: '5',
|
|
56
|
+
reviewerPic: '/images/users/miguel.jpg',
|
|
57
|
+
reviewerUsername: 'Miguel Rodriguez',
|
|
58
|
+
rating: 5,
|
|
59
|
+
comment: 'As a Costa Rican, I appreciate you highlighting our conservation efforts. You captured the essence of our community spirit!',
|
|
60
|
+
createdAt: new Date('2024-01-16'),
|
|
61
|
+
updatedAt: new Date(2024, 8, 15)
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
_id: '6',
|
|
65
|
+
reviewerPic: '/images/users/sarah.jpg',
|
|
66
|
+
reviewerUsername: 'Sarah Johnson',
|
|
67
|
+
rating: 4,
|
|
68
|
+
comment: 'Could you share more details about how you found this specific opportunity? I"/d love to do something similar.',
|
|
69
|
+
createdAt: new Date('2024-01-18'),
|
|
70
|
+
updatedAt: new Date(2024, 8, 15)
|
|
71
|
+
}
|
|
72
|
+
];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type tileType = "opportunities" | "blogs" | "packages";
|
|
2
|
+
export interface TileProps {
|
|
3
|
+
slug: string;
|
|
4
|
+
image: string;
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
location?: string;
|
|
8
|
+
date: Date;
|
|
9
|
+
rating?: number;
|
|
10
|
+
skills?: string[];
|
|
11
|
+
isWishlisted?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
tileType?: tileType;
|
|
14
|
+
host?: {
|
|
15
|
+
image?: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
type?: string;
|
|
18
|
+
rating?: number;
|
|
19
|
+
};
|
|
20
|
+
duration?: number;
|
|
21
|
+
price?: number;
|
|
22
|
+
currency?: string;
|
|
23
|
+
difficultyLevel?: "easy" | "medium" | "hard";
|
|
24
|
+
includeHost?: boolean;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=tile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tile.d.ts","sourceRoot":"","sources":["../../../src/lib/models/tile.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,eAAe,GAAG,OAAO,GAAG,UAAU,CAAC;AAE9D,MAAM,WAAW,SAAS;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,IAAI,CAAC,EAAE;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC7C,WAAW,CAAC,EAAE,OAAO,CAAA;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const socialLinkTypes: [string, ...string[]];
|
|
3
|
+
export declare const zroles: z.ZodEnum<["host", "user", "admin", "hr", "sales"]>;
|
|
4
|
+
export declare const UserSchema: z.ZodObject<{
|
|
5
|
+
username: z.ZodString;
|
|
6
|
+
firstName: z.ZodString;
|
|
7
|
+
lastName: z.ZodString;
|
|
8
|
+
email: z.ZodString;
|
|
9
|
+
password: z.ZodString;
|
|
10
|
+
phoneNumber: z.ZodString;
|
|
11
|
+
location: z.ZodOptional<z.ZodString>;
|
|
12
|
+
pinCode: z.ZodOptional<z.ZodString>;
|
|
13
|
+
dob: z.ZodOptional<z.ZodDate>;
|
|
14
|
+
gender: z.ZodEnum<["male", "female", "other"]>;
|
|
15
|
+
profilePic: z.ZodOptional<z.ZodString>;
|
|
16
|
+
rating: z.ZodNumber;
|
|
17
|
+
ratingCount: z.ZodNumber;
|
|
18
|
+
reviewCount: z.ZodNumber;
|
|
19
|
+
blogsCount: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
joinedDate: z.ZodDate;
|
|
21
|
+
isActive: z.ZodBoolean;
|
|
22
|
+
lastActive: z.ZodDate;
|
|
23
|
+
userBio: z.ZodOptional<z.ZodString>;
|
|
24
|
+
userIdCard: z.ZodOptional<z.ZodString>;
|
|
25
|
+
watchHistory: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
26
|
+
accessToken: z.ZodOptional<z.ZodString>;
|
|
27
|
+
refreshToken: z.ZodOptional<z.ZodString>;
|
|
28
|
+
verifiedEmail: z.ZodBoolean;
|
|
29
|
+
verifiedMobile: z.ZodBoolean;
|
|
30
|
+
verifiedIdCard: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
role: z.ZodEnum<["host", "user", "admin", "hr", "sales"]>;
|
|
32
|
+
socialLinks: z.ZodOptional<z.ZodRecord<z.ZodEnum<[string, ...string[]]>, z.ZodString>>;
|
|
33
|
+
userResume: z.ZodOptional<z.ZodString>;
|
|
34
|
+
skills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
35
|
+
skill: z.ZodString;
|
|
36
|
+
skillExpertise: z.ZodNumber;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
skill: string;
|
|
39
|
+
skillExpertise: number;
|
|
40
|
+
}, {
|
|
41
|
+
skill: string;
|
|
42
|
+
skillExpertise: number;
|
|
43
|
+
}>, "many">>;
|
|
44
|
+
wishlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
45
|
+
favBlogs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
46
|
+
favPackages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
47
|
+
id: z.ZodOptional<z.ZodString>;
|
|
48
|
+
selfie: z.ZodOptional<z.ZodString>;
|
|
49
|
+
selfieAction: z.ZodOptional<z.ZodString>;
|
|
50
|
+
jobCount: z.ZodOptional<z.ZodNumber>;
|
|
51
|
+
travelPackageCount: z.ZodOptional<z.ZodNumber>;
|
|
52
|
+
gstNumber: z.ZodOptional<z.ZodString>;
|
|
53
|
+
panCard: z.ZodOptional<z.ZodString>;
|
|
54
|
+
verifiedBusiness: z.ZodOptional<z.ZodEnum<["true", "false", "inProgress"]>>;
|
|
55
|
+
}, "strict", z.ZodTypeAny, {
|
|
56
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
57
|
+
username: string;
|
|
58
|
+
firstName: string;
|
|
59
|
+
lastName: string;
|
|
60
|
+
email: string;
|
|
61
|
+
password: string;
|
|
62
|
+
phoneNumber: string;
|
|
63
|
+
gender: "male" | "female" | "other";
|
|
64
|
+
rating: number;
|
|
65
|
+
ratingCount: number;
|
|
66
|
+
reviewCount: number;
|
|
67
|
+
joinedDate: Date;
|
|
68
|
+
isActive: boolean;
|
|
69
|
+
lastActive: Date;
|
|
70
|
+
verifiedEmail: boolean;
|
|
71
|
+
verifiedMobile: boolean;
|
|
72
|
+
location?: string | undefined;
|
|
73
|
+
pinCode?: string | undefined;
|
|
74
|
+
dob?: Date | undefined;
|
|
75
|
+
profilePic?: string | undefined;
|
|
76
|
+
blogsCount?: number | undefined;
|
|
77
|
+
userBio?: string | undefined;
|
|
78
|
+
userIdCard?: string | undefined;
|
|
79
|
+
watchHistory?: string[] | undefined;
|
|
80
|
+
accessToken?: string | undefined;
|
|
81
|
+
refreshToken?: string | undefined;
|
|
82
|
+
verifiedIdCard?: boolean | undefined;
|
|
83
|
+
socialLinks?: Record<string, string> | undefined;
|
|
84
|
+
userResume?: string | undefined;
|
|
85
|
+
skills?: {
|
|
86
|
+
skill: string;
|
|
87
|
+
skillExpertise: number;
|
|
88
|
+
}[] | undefined;
|
|
89
|
+
wishlist?: string[] | undefined;
|
|
90
|
+
favBlogs?: string[] | undefined;
|
|
91
|
+
favPackages?: string[] | undefined;
|
|
92
|
+
id?: string | undefined;
|
|
93
|
+
selfie?: string | undefined;
|
|
94
|
+
selfieAction?: string | undefined;
|
|
95
|
+
jobCount?: number | undefined;
|
|
96
|
+
travelPackageCount?: number | undefined;
|
|
97
|
+
gstNumber?: string | undefined;
|
|
98
|
+
panCard?: string | undefined;
|
|
99
|
+
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
100
|
+
}, {
|
|
101
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
102
|
+
username: string;
|
|
103
|
+
firstName: string;
|
|
104
|
+
lastName: string;
|
|
105
|
+
email: string;
|
|
106
|
+
password: string;
|
|
107
|
+
phoneNumber: string;
|
|
108
|
+
gender: "male" | "female" | "other";
|
|
109
|
+
rating: number;
|
|
110
|
+
ratingCount: number;
|
|
111
|
+
reviewCount: number;
|
|
112
|
+
joinedDate: Date;
|
|
113
|
+
isActive: boolean;
|
|
114
|
+
lastActive: Date;
|
|
115
|
+
verifiedEmail: boolean;
|
|
116
|
+
verifiedMobile: boolean;
|
|
117
|
+
location?: string | undefined;
|
|
118
|
+
pinCode?: string | undefined;
|
|
119
|
+
dob?: Date | undefined;
|
|
120
|
+
profilePic?: string | undefined;
|
|
121
|
+
blogsCount?: number | undefined;
|
|
122
|
+
userBio?: string | undefined;
|
|
123
|
+
userIdCard?: string | undefined;
|
|
124
|
+
watchHistory?: string[] | undefined;
|
|
125
|
+
accessToken?: string | undefined;
|
|
126
|
+
refreshToken?: string | undefined;
|
|
127
|
+
verifiedIdCard?: boolean | undefined;
|
|
128
|
+
socialLinks?: Record<string, string> | undefined;
|
|
129
|
+
userResume?: string | undefined;
|
|
130
|
+
skills?: {
|
|
131
|
+
skill: string;
|
|
132
|
+
skillExpertise: number;
|
|
133
|
+
}[] | undefined;
|
|
134
|
+
wishlist?: string[] | undefined;
|
|
135
|
+
favBlogs?: string[] | undefined;
|
|
136
|
+
favPackages?: string[] | undefined;
|
|
137
|
+
id?: string | undefined;
|
|
138
|
+
selfie?: string | undefined;
|
|
139
|
+
selfieAction?: string | undefined;
|
|
140
|
+
jobCount?: number | undefined;
|
|
141
|
+
travelPackageCount?: number | undefined;
|
|
142
|
+
gstNumber?: string | undefined;
|
|
143
|
+
panCard?: string | undefined;
|
|
144
|
+
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
145
|
+
}>;
|
|
146
|
+
export type User = z.infer<typeof UserSchema>;
|
|
147
|
+
export declare const sampleUser: User;
|
|
148
|
+
//# sourceMappingURL=user.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/lib/models/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe,EAA6D,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;AAE/G,eAAO,MAAM,MAAM,qDAAmD,CAAC;AAEvE,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqDZ,CAAC;AAEZ,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAE9C,eAAO,MAAM,UAAU,EAAE,IAiCxB,CAAC"}
|