@myrjfa/state 1.0.1 → 1.0.3
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/dist/lib/actions.d.ts +6 -6
- package/dist/lib/actions.d.ts.map +1 -1
- package/dist/lib/models/blog.d.ts +64 -62
- package/dist/lib/models/blog.d.ts.map +1 -1
- package/dist/lib/models/blog.js +134 -143
- package/dist/lib/models/portfolio.d.ts +42 -31
- package/dist/lib/models/portfolio.d.ts.map +1 -1
- package/dist/lib/models/portfolio.js +59 -55
- package/dist/lib/models/review.d.ts +3 -2
- package/dist/lib/models/review.d.ts.map +1 -1
- package/dist/lib/models/volunteerJob.d.ts +379 -376
- package/dist/lib/models/volunteerJob.d.ts.map +1 -1
- package/dist/lib/models/volunteerJob.js +1 -0
- package/dist/lib/userAtom.d.ts +4 -4
- package/package.json +1 -1
|
@@ -6,61 +6,65 @@ export const PortfolioItemSchema = z.object({
|
|
|
6
6
|
url: z.string(),
|
|
7
7
|
mainUrl: z.string().optional(),
|
|
8
8
|
caption: z.string(),
|
|
9
|
+
views: z.number(),
|
|
10
|
+
likes: z.number(),
|
|
11
|
+
comments: z.number(),
|
|
12
|
+
shares: z.number(),
|
|
9
13
|
createdAt: z.date(),
|
|
10
14
|
updatedAt: z.date(),
|
|
11
15
|
}).strict();
|
|
12
|
-
export const samplePortfolio = [{
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
16
|
+
// export const samplePortfolio: PortfolioItem[] = [{
|
|
17
|
+
// _id: "1",
|
|
18
|
+
// user: "wanderlust_volunteer",
|
|
19
|
+
// mediaType: "image",
|
|
20
|
+
// url: "/images/profile_placeholder.webp",
|
|
21
|
+
// mainUrl: "https://www.google.com",
|
|
22
|
+
// caption: "Documenting traditional fishing techniques in Kerala",
|
|
23
|
+
// createdAt: new Date(2024, 8, 5),
|
|
24
|
+
// updatedAt: new Date(2024, 8, 5),
|
|
25
|
+
// },
|
|
26
|
+
// {
|
|
27
|
+
// _id: "2",
|
|
28
|
+
// user: "wanderlust_volunteer",
|
|
29
|
+
// mediaType: "video",
|
|
30
|
+
// url: "https://videos.pexels.com/video-files/6548176/6548176-hd_1920_1080_24fps.mp4",
|
|
31
|
+
// caption: "Teaching English to local children in Manali",
|
|
32
|
+
// createdAt: new Date(2024, 7, 12),
|
|
33
|
+
// updatedAt: new Date(2024, 7, 12),
|
|
34
|
+
// },
|
|
35
|
+
// {
|
|
36
|
+
// _id: "3",
|
|
37
|
+
// user: "wanderlust_volunteer",
|
|
38
|
+
// mediaType: "image",
|
|
39
|
+
// url: "/images/profile_placeholder.webp",
|
|
40
|
+
// caption: "Helping build eco-friendly accommodations in Goa",
|
|
41
|
+
// createdAt: new Date(2024, 6, 20),
|
|
42
|
+
// updatedAt: new Date(2024, 6, 20),
|
|
43
|
+
// },
|
|
44
|
+
// {
|
|
45
|
+
// _id: "4",
|
|
46
|
+
// user: "wanderlust_volunteer",
|
|
47
|
+
// mediaType: "image",
|
|
48
|
+
// url: "/images/profile_placeholder.webp",
|
|
49
|
+
// caption: "Conducting sustainable tourism workshop in Jaipur",
|
|
50
|
+
// createdAt: new Date(2024, 5, 8),
|
|
51
|
+
// updatedAt: new Date(2024, 5, 8),
|
|
52
|
+
// },
|
|
53
|
+
// {
|
|
54
|
+
// _id: "5",
|
|
55
|
+
// user: "wanderlust_volunteer",
|
|
56
|
+
// mediaType: "video",
|
|
57
|
+
// url: "/images/profile_placeholder.webp",
|
|
58
|
+
// caption: "Guiding international tourists on a cultural heritage tour",
|
|
59
|
+
// createdAt: new Date(2024, 4, 15),
|
|
60
|
+
// updatedAt: new Date(2024, 4, 15)
|
|
61
|
+
// },
|
|
62
|
+
// {
|
|
63
|
+
// _id: "6",
|
|
64
|
+
// user: "wanderlust_volunteer",
|
|
65
|
+
// mediaType: "image",
|
|
66
|
+
// url: "/images/profile_placeholder.webp",
|
|
67
|
+
// caption: "Wildlife photography from Ranthambore volunteering",
|
|
68
|
+
// createdAt: new Date(2024, 3, 28),
|
|
69
|
+
// updatedAt: new Date(2024, 3, 28)
|
|
70
|
+
// }]
|
|
@@ -8,22 +8,23 @@ export declare const ReviewSchema: z.ZodObject<{
|
|
|
8
8
|
createdAt: z.ZodDate;
|
|
9
9
|
updatedAt: z.ZodDate;
|
|
10
10
|
}, "strict", z.ZodTypeAny, {
|
|
11
|
-
rating: number;
|
|
12
11
|
_id: string;
|
|
13
12
|
reviewerPic: string;
|
|
14
13
|
reviewerUsername: string;
|
|
14
|
+
rating: number;
|
|
15
15
|
comment: string;
|
|
16
16
|
createdAt: Date;
|
|
17
17
|
updatedAt: Date;
|
|
18
18
|
}, {
|
|
19
|
-
rating: number;
|
|
20
19
|
_id: string;
|
|
21
20
|
reviewerPic: string;
|
|
22
21
|
reviewerUsername: string;
|
|
22
|
+
rating: number;
|
|
23
23
|
comment: string;
|
|
24
24
|
createdAt: Date;
|
|
25
25
|
updatedAt: Date;
|
|
26
26
|
}>;
|
|
27
|
+
export type reviewTargetType = 'opportunity' | 'package' | 'host' | 'user' | 'blog' | 'portfolio';
|
|
27
28
|
export type Review = z.infer<typeof ReviewSchema>;
|
|
28
29
|
export declare const reviewBasicSchema: z.ZodObject<{
|
|
29
30
|
rating: z.ZodNumber;
|
|
@@ -1 +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"}
|
|
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,gBAAgB,GAAG,aAAa,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW,CAAC;AAElG,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"}
|