@myrjfa/state 1.0.0 → 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 +12 -1
- 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/user.d.ts +147 -147
- package/dist/lib/models/volunteerJob.d.ts +15 -12
- 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
package/dist/lib/actions.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Review, reviewType } from "./models/review";
|
|
1
|
+
import { Review, reviewTargetType, reviewType } from "./models/review";
|
|
2
2
|
import { tileType } from "./models/tile";
|
|
3
3
|
import { User } from "./models/user";
|
|
4
4
|
export declare function getCurrentUser(): Promise<User | null>;
|
|
@@ -46,13 +46,13 @@ export declare function getUserContact(username: string, role: string): Promise<
|
|
|
46
46
|
phoneNumber: string;
|
|
47
47
|
} | null;
|
|
48
48
|
}>;
|
|
49
|
-
export declare function getReviewsById(id: string, type:
|
|
49
|
+
export declare function getReviewsById(id: string, type: reviewTargetType): Promise<{
|
|
50
50
|
success: boolean;
|
|
51
51
|
reviews: Review[];
|
|
52
52
|
message?: string;
|
|
53
53
|
error?: string;
|
|
54
54
|
}>;
|
|
55
|
-
export declare function getRatingById(id: string[], type:
|
|
55
|
+
export declare function getRatingById(id: string[], type: reviewTargetType): Promise<{
|
|
56
56
|
success: boolean;
|
|
57
57
|
message?: string;
|
|
58
58
|
error?: string;
|
|
@@ -63,7 +63,7 @@ export declare function getRatingById(id: string[], type: 'opportunity' | 'packa
|
|
|
63
63
|
reviewCount: number;
|
|
64
64
|
}[];
|
|
65
65
|
}>;
|
|
66
|
-
export declare function addReview(id: string, type:
|
|
66
|
+
export declare function addReview(id: string, type: reviewTargetType, formData: reviewType): Promise<{
|
|
67
67
|
success: boolean;
|
|
68
68
|
review: Review | null;
|
|
69
69
|
message?: string;
|
|
@@ -84,8 +84,8 @@ export declare function getAllNotifications(): Promise<{
|
|
|
84
84
|
success: boolean;
|
|
85
85
|
message: string;
|
|
86
86
|
notifs: {
|
|
87
|
-
message: string;
|
|
88
87
|
_id: string;
|
|
88
|
+
message: string;
|
|
89
89
|
userId: string;
|
|
90
90
|
timestamp: Date;
|
|
91
91
|
read: boolean;
|
|
@@ -104,8 +104,8 @@ export declare function getNotifications(limit: number): Promise<{
|
|
|
104
104
|
success: boolean;
|
|
105
105
|
message: string;
|
|
106
106
|
notifs: {
|
|
107
|
-
message: string;
|
|
108
107
|
_id: string;
|
|
108
|
+
message: string;
|
|
109
109
|
userId: string;
|
|
110
110
|
timestamp: Date;
|
|
111
111
|
read: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/lib/actions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/lib/actions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAKrC,wBAAsB,cAAc,IAAI,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAU3D;AAED,wBAAsB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAcxL;AAED,wBAAsB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAY1H;AAED,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,CAa9J;AAGD,wBAAsB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAY3H;AAED,wBAAsB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAY9J;AAGD,wBAAsB,cAAc,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAA;CAAE,CAAC,CAcnI;AAED,wBAAsB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;CAAE,CAAC,CAiB1M;AAGD,wBAAsB,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAkB3J;AAED,wBAAsB,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,gBAAgB,GACpE,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAAE,CAAC,CA2BzJ;AAED,wBAAsB,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,QAAQ,EAAE,UAAU,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAiBhL;AAED,wBAAsB,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAiBzJ;AAED,wBAAsB,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAe9G;AAGD,wBAAsB,mBAAmB;;;;;;;;;;;;;;;;;;;GAmBxC;AAED,wBAAsB,gBAAgB,CAAC,KAAK,EAAE,MAAM;;;;;;;;;;;;;;;;;;;GAmBnD;AAED,wBAAsB,kBAAkB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO;;;;;;;;GAejE;AAED,wBAAsB,qBAAqB,CAAC,IAAI,EAAE,OAAO;;;;;;;;GAexD"}
|
|
@@ -1,63 +1,65 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const BlogStatusSchema: z.ZodEnum<["draft", "posted", "archived", "pending", "denied"]>;
|
|
3
|
-
export type BlogStatus = z.infer<typeof BlogStatusSchema>;
|
|
4
|
-
export declare const BlogSchema: z.ZodObject<{
|
|
5
|
-
slug: z.ZodString;
|
|
6
|
-
title: z.ZodString;
|
|
7
|
-
overview: z.ZodString;
|
|
8
|
-
hashtags: z.ZodOptional<z.ZodString>;
|
|
9
|
-
content: z.ZodString;
|
|
10
|
-
blogImages: z.ZodArray<z.ZodString, "many">;
|
|
11
|
-
status: z.ZodEnum<["draft", "posted", "archived", "pending", "denied"]>;
|
|
12
|
-
views: z.ZodNumber;
|
|
13
|
-
likes: z.ZodNumber;
|
|
14
|
-
comments: z.ZodNumber;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
status: "draft" | "posted" | "archived" | "pending" | "denied";
|
|
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
|
-
export declare const
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const BlogStatusSchema: z.ZodEnum<["draft", "posted", "archived", "pending", "denied"]>;
|
|
3
|
+
export type BlogStatus = z.infer<typeof BlogStatusSchema>;
|
|
4
|
+
export declare const BlogSchema: z.ZodObject<{
|
|
5
|
+
slug: z.ZodString;
|
|
6
|
+
title: z.ZodString;
|
|
7
|
+
overview: z.ZodString;
|
|
8
|
+
hashtags: z.ZodOptional<z.ZodString>;
|
|
9
|
+
content: z.ZodString;
|
|
10
|
+
blogImages: z.ZodArray<z.ZodString, "many">;
|
|
11
|
+
status: z.ZodEnum<["draft", "posted", "archived", "pending", "denied"]>;
|
|
12
|
+
views: z.ZodNumber;
|
|
13
|
+
likes: z.ZodNumber;
|
|
14
|
+
comments: z.ZodNumber;
|
|
15
|
+
shares: z.ZodNumber;
|
|
16
|
+
createdAt: z.ZodDate;
|
|
17
|
+
updatedAt: z.ZodDate;
|
|
18
|
+
author: z.ZodString;
|
|
19
|
+
authorImage: z.ZodString;
|
|
20
|
+
authorRole: z.ZodEnum<["host", "admin", "user"]>;
|
|
21
|
+
}, "strict", z.ZodTypeAny, {
|
|
22
|
+
status: "draft" | "posted" | "archived" | "pending" | "denied";
|
|
23
|
+
title: string;
|
|
24
|
+
createdAt: Date;
|
|
25
|
+
updatedAt: Date;
|
|
26
|
+
slug: string;
|
|
27
|
+
overview: string;
|
|
28
|
+
content: string;
|
|
29
|
+
blogImages: string[];
|
|
30
|
+
views: number;
|
|
31
|
+
likes: number;
|
|
32
|
+
comments: number;
|
|
33
|
+
shares: number;
|
|
34
|
+
author: string;
|
|
35
|
+
authorImage: string;
|
|
36
|
+
authorRole: "host" | "user" | "admin";
|
|
37
|
+
hashtags?: string | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
status: "draft" | "posted" | "archived" | "pending" | "denied";
|
|
40
|
+
title: string;
|
|
41
|
+
createdAt: Date;
|
|
42
|
+
updatedAt: Date;
|
|
43
|
+
slug: string;
|
|
44
|
+
overview: string;
|
|
45
|
+
content: string;
|
|
46
|
+
blogImages: string[];
|
|
47
|
+
views: number;
|
|
48
|
+
likes: number;
|
|
49
|
+
comments: number;
|
|
50
|
+
shares: number;
|
|
51
|
+
author: string;
|
|
52
|
+
authorImage: string;
|
|
53
|
+
authorRole: "host" | "user" | "admin";
|
|
54
|
+
hashtags?: string | undefined;
|
|
55
|
+
}>;
|
|
56
|
+
export type Blog = z.infer<typeof BlogSchema>;
|
|
57
|
+
export type BlogMetaData = {
|
|
58
|
+
image: string;
|
|
59
|
+
title: string;
|
|
60
|
+
overview: string;
|
|
61
|
+
};
|
|
62
|
+
export declare const hashTagOptions: {
|
|
63
|
+
title: string;
|
|
64
|
+
}[];
|
|
63
65
|
//# sourceMappingURL=blog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blog.d.ts","sourceRoot":"","sources":["../../../src/lib/models/blog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,gBAAgB,iEAA+D,CAAC;AAC7F,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAG1D,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"blog.d.ts","sourceRoot":"","sources":["../../../src/lib/models/blog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,gBAAgB,iEAA+D,CAAC;AAC7F,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAG1D,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBZ,CAAC;AAEZ,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAE9C,MAAM,MAAM,YAAY,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,cAAc;;GAyB1B,CAAA"}
|
package/dist/lib/models/blog.js
CHANGED
|
@@ -13,6 +13,7 @@ export const BlogSchema = z.object({
|
|
|
13
13
|
views: z.number(),
|
|
14
14
|
likes: z.number(),
|
|
15
15
|
comments: z.number(),
|
|
16
|
+
shares: z.number(),
|
|
16
17
|
createdAt: z.date(),
|
|
17
18
|
updatedAt: z.date(),
|
|
18
19
|
author: z.string(),
|
|
@@ -45,146 +46,136 @@ export const hashTagOptions = [
|
|
|
45
46
|
{ title: "Forest" },
|
|
46
47
|
{ title: "Wildlife" },
|
|
47
48
|
];
|
|
48
|
-
export const sampleBlog = [{
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
views: 558,
|
|
182
|
-
likes: 47,
|
|
183
|
-
comments: 17,
|
|
184
|
-
createdAt: new Date('2025-05-01T12:00:00.000Z'),
|
|
185
|
-
updatedAt: new Date('2025-05-01T12:00:00.000Z'),
|
|
186
|
-
author: "trippeaze",
|
|
187
|
-
authorImage: "/images/logoicon.webp",
|
|
188
|
-
authorRole: 'host'
|
|
189
|
-
}
|
|
190
|
-
];
|
|
49
|
+
// export const sampleBlog: Blog[] = [{
|
|
50
|
+
// slug: 'giving-back-to-my-india-through-volunteering',
|
|
51
|
+
// title: 'Giving Back to My India Through Volunteering',
|
|
52
|
+
// overview: "A heartfelt reflection on reconnecting with India's roots through meaningful volunteer experiences across the country.",
|
|
53
|
+
// content: `
|
|
54
|
+
// <h3>A Personal Connection to India</h3>
|
|
55
|
+
// <p>Growing up in India, I’ve been shaped by its vibrant chaos—its festivals, languages, and countless stories. Volunteering across our diverse nation is my way of giving back to the land that raised me. It’s more than just helping; it’s about strengthening the roots that connect us all, from bustling cities to quiet villages.</p>
|
|
56
|
+
// <h3>My First Volunteer Journey</h3>
|
|
57
|
+
// <p>My first volunteering experience was in a small village in Rajasthan, where I helped set up a community library. The days were long, filled with sorting books and painting walls under the desert sun. But when I saw children eagerly reading their first stories, their smiles made every effort worthwhile. That moment ignited my passion for creating opportunities for our people.</p>
|
|
58
|
+
// <h3>Why I Keep Volunteering</h3>
|
|
59
|
+
// <p>Volunteering in India allows me to discover new corners of my country, from the hills of Uttarakhand to the shores of Goa. It’s a chance to connect with communities I might never have known and learn from their resilience. I’m excited to bring my energy and dedication to more projects, contributing to India’s growth while celebrating its spirit.</p>
|
|
60
|
+
// `,
|
|
61
|
+
// blogImages: [
|
|
62
|
+
// 'https://trippeaze-uploads.s3.ap-south-1.amazonaws.com/blog-1.1.jpeg',
|
|
63
|
+
// 'https://trippeaze-uploads.s3.ap-south-1.amazonaws.com/blog-1.2.jpeg',
|
|
64
|
+
// 'https://trippeaze-uploads.s3.ap-south-1.amazonaws.com/blog-1.3.jpeg'
|
|
65
|
+
// ],
|
|
66
|
+
// status: 'posted',
|
|
67
|
+
// views: 786,
|
|
68
|
+
// likes: 54,
|
|
69
|
+
// comments: 18,
|
|
70
|
+
// createdAt: new Date('2025-05-01T10:00:00.000Z'),
|
|
71
|
+
// updatedAt: new Date('2025-05-01T10:00:00.000Z'),
|
|
72
|
+
// author: "trippeaze",
|
|
73
|
+
// authorImage: "/images/logoicon.webp",
|
|
74
|
+
// authorRole: 'host',
|
|
75
|
+
// }, {
|
|
76
|
+
// slug: 'celebrating-indias-diversity-through-volunteering',
|
|
77
|
+
// title: 'Celebrating India’s Diversity Through Volunteering',
|
|
78
|
+
// overview: "A journey across India that highlights the beauty of cultural exchange and community building through volunteer work.",
|
|
79
|
+
// content: `
|
|
80
|
+
// <h3>The Beauty of Our Differences</h3>
|
|
81
|
+
// <p>India’s diversity—its languages, cuisines, and traditions—is what makes it so special. As an Indian volunteer, I’m privileged to experience this richness firsthand. Volunteering in different states feels like a journey of rediscovery, where I learn as much about my country as I contribute to it.</p>
|
|
82
|
+
// <h3>A Memorable Exchange</h3>
|
|
83
|
+
// <p>In Tamil Nadu, I volunteered at a women’s cooperative, teaching digital skills to help artisans sell their crafts online. After sessions, we’d sit together, sharing idlis and stories. They taught me about their traditional weaving, and I shared tips from my urban life. Those moments felt like a true bridge between different Indias—rural and city, tradition and modernity.</p>
|
|
84
|
+
// <h3>Building Bonds Across India</h3>
|
|
85
|
+
// <p>Volunteering lets me celebrate the India I love while giving back. Whether I’m learning Assamese folk songs or savoring Gujarati theplas with new friends, every experience deepens my pride in our nation. I’m eager to keep exploring and serving, forging connections with more communities across our incredible country.</p>
|
|
86
|
+
// `,
|
|
87
|
+
// blogImages: [
|
|
88
|
+
// 'https://trippeaze-uploads.s3.ap-south-1.amazonaws.com/blog-2.1.jpeg',
|
|
89
|
+
// 'https://trippeaze-uploads.s3.ap-south-1.amazonaws.com/blog-2.2.jpeg',
|
|
90
|
+
// 'https://trippeaze-uploads.s3.ap-south-1.amazonaws.com/blog-2.3.jpeg'
|
|
91
|
+
// ],
|
|
92
|
+
// status: 'posted',
|
|
93
|
+
// views: 612,
|
|
94
|
+
// likes: 41,
|
|
95
|
+
// comments: 15,
|
|
96
|
+
// createdAt: new Date('2025-05-01T12:00:00.000Z'),
|
|
97
|
+
// updatedAt: new Date('2025-05-01T12:00:00.000Z'),
|
|
98
|
+
// author: "trippeaze",
|
|
99
|
+
// authorImage: "/images/logoicon.webp",
|
|
100
|
+
// authorRole: 'host'
|
|
101
|
+
// }, {
|
|
102
|
+
// slug: 'overcoming-challenges-as-an-indian-volunteer',
|
|
103
|
+
// title: 'Overcoming Challenges as an Indian Volunteer',
|
|
104
|
+
// overview: 'Volunteering within India brings its own unique set of challenges, from cultural differences to language barriers—but overcoming them builds resilience and deeper connections.',
|
|
105
|
+
// content: `
|
|
106
|
+
// <h3>Facing the Unexpected</h3>
|
|
107
|
+
// <p>Even as an Indian, volunteering in my own country brings challenges—language barriers, remote locations, or cultural differences between regions. These hurdles test my resilience but also make the journey deeply rewarding, pushing me to grow as I serve.</p>
|
|
108
|
+
// <h3>A Lesson in Adaptability</h3>
|
|
109
|
+
// <p>In a remote village in Jharkhand, I worked on a water conservation project. The local tribal dialect was unfamiliar, and the lack of amenities was daunting. At first, I struggled to connect, but I learned a few phrases, shared meals, and worked alongside the community. Slowly, we built trust, turning challenges into opportunities for collaboration.</p>
|
|
110
|
+
// <h3>Growing Through Challenges</h3>
|
|
111
|
+
// <p>These experiences have taught me patience and the value of listening. They’ve also shown me how diverse India is, even within our borders. Overcoming these obstacles has made me a stronger volunteer, ready to tackle new projects and bring people together for a shared purpose.</p>
|
|
112
|
+
// `,
|
|
113
|
+
// blogImages: [
|
|
114
|
+
// 'https://trippeaze-uploads.s3.ap-south-1.amazonaws.com/blog-3.1.jpeg',
|
|
115
|
+
// 'https://trippeaze-uploads.s3.ap-south-1.amazonaws.com/blog-3.2.jpeg',
|
|
116
|
+
// 'https://trippeaze-uploads.s3.ap-south-1.amazonaws.com/blog-3.3.jpeg'
|
|
117
|
+
// ],
|
|
118
|
+
// status: 'posted',
|
|
119
|
+
// views: 505,
|
|
120
|
+
// likes: 34,
|
|
121
|
+
// comments: 10,
|
|
122
|
+
// createdAt: new Date('2025-05-01T12:00:00.000Z'),
|
|
123
|
+
// updatedAt: new Date('2025-05-01T12:00:00.000Z'),
|
|
124
|
+
// author: "trippeaze",
|
|
125
|
+
// authorImage: "/images/logoicon.webp",
|
|
126
|
+
// authorRole: 'host'
|
|
127
|
+
// }, {
|
|
128
|
+
// slug: 'making-a-difference-in-rural-india',
|
|
129
|
+
// title: 'Making a Difference in Rural India',
|
|
130
|
+
// overview: 'Volunteering in rural India allows for meaningful impact, especially through education and connection with communities that form the soul of the nation.',
|
|
131
|
+
// content: `
|
|
132
|
+
// <h3>The Heart of Our Nation</h3>
|
|
133
|
+
// <p>Rural India, with its simplicity and strength, feels like the heartbeat of our country. As an Indian, I’m drawn to volunteering in these areas, where small efforts can spark big changes. It’s about contributing to the communities that form the backbone of our nation.</p>
|
|
134
|
+
// <h3>Empowering Through Education</h3>
|
|
135
|
+
// <p>In a school in Madhya Pradesh, I volunteered to teach basic math to children, many of whom were first-generation learners. Their curiosity was infectious. We spent mornings solving problems and afternoons playing kabbadi, blending learning with joy. By the end, their confidence in numbers—and themselves—had grown, and I felt proud to be part of their progress.</p>
|
|
136
|
+
// <h3>A Commitment to Rural Growth</h3>
|
|
137
|
+
// <p>Rural India teaches me resilience and hope. As a volunteer, I feel a responsibility to uplift these communities, using my skills to create opportunities. I’m committed to more projects, from education to sustainability, helping build a brighter future for our villages.</p>
|
|
138
|
+
// `,
|
|
139
|
+
// blogImages: [
|
|
140
|
+
// 'https://trippeaze-uploads.s3.ap-south-1.amazonaws.com/blog-4.1.jpeg',
|
|
141
|
+
// 'https://trippeaze-uploads.s3.ap-south-1.amazonaws.com/blog-4.2.jpeg',
|
|
142
|
+
// 'https://trippeaze-uploads.s3.ap-south-1.amazonaws.com/blog-4.3.jpeg'
|
|
143
|
+
// ],
|
|
144
|
+
// status: 'posted',
|
|
145
|
+
// views: 480,
|
|
146
|
+
// likes: 38,
|
|
147
|
+
// comments: 12,
|
|
148
|
+
// createdAt: new Date('2025-05-01T12:00:00.000Z'),
|
|
149
|
+
// updatedAt: new Date('2025-05-01T12:00:00.000Z'),
|
|
150
|
+
// author: "trippeaze",
|
|
151
|
+
// authorImage: "/images/logoicon.webp",
|
|
152
|
+
// authorRole: 'host'
|
|
153
|
+
// },
|
|
154
|
+
// {
|
|
155
|
+
// slug: 'lessons-of-gratitude-from-volunteering-in-india',
|
|
156
|
+
// title: 'Lessons of Gratitude from Volunteering in India',
|
|
157
|
+
// overview: 'Through simple acts of kindness and connection, volunteering in India has taught deep lessons of humility, gratitude, and shared humanity.',
|
|
158
|
+
// content: `
|
|
159
|
+
// <h3>Finding Joy in Simplicity</h3>
|
|
160
|
+
// <p>India has a way of teaching gratitude through its people. As an Indian volunteer, I’ve seen how our communities share so much—be it a meal, a smile, or a story—even in tough times. These moments fuel my passion for giving back to my country.</p>
|
|
161
|
+
// <h3>A Moment That Stayed</h3>
|
|
162
|
+
// <p>In a Mumbai slum, I worked on a health awareness campaign. Resources were scarce, but the families’ warmth was boundless. One evening, a mother invited me for tea in her small home. The simple cup of kadak chai, offered with such pride, touched me deeply. It reminded me how much we can share, no matter our circumstances.</p>
|
|
163
|
+
// <h3>Carrying Gratitude Forward</h3>
|
|
164
|
+
// <p>Volunteering across India—from urban slums to rural fields—has shown me the strength of our people. It’s humbling to contribute to my country while learning from its spirit. I’m excited to keep volunteering, carrying these lessons of gratitude and unity to every community I serve.</p>
|
|
165
|
+
// `,
|
|
166
|
+
// blogImages: [
|
|
167
|
+
// 'https://trippeaze-uploads.s3.ap-south-1.amazonaws.com/blog-5.1.jpeg',
|
|
168
|
+
// 'https://trippeaze-uploads.s3.ap-south-1.amazonaws.com/blog-5.2.jpeg',
|
|
169
|
+
// 'https://trippeaze-uploads.s3.ap-south-1.amazonaws.com/blog-5.3.jpeg'
|
|
170
|
+
// ],
|
|
171
|
+
// status: 'posted',
|
|
172
|
+
// views: 558,
|
|
173
|
+
// likes: 47,
|
|
174
|
+
// comments: 17,
|
|
175
|
+
// createdAt: new Date('2025-05-01T12:00:00.000Z'),
|
|
176
|
+
// updatedAt: new Date('2025-05-01T12:00:00.000Z'),
|
|
177
|
+
// author: "trippeaze",
|
|
178
|
+
// authorImage: "/images/logoicon.webp",
|
|
179
|
+
// authorRole: 'host'
|
|
180
|
+
// }
|
|
181
|
+
// ];
|
|
@@ -6,6 +6,10 @@ export declare const PortfolioItemSchema: z.ZodObject<{
|
|
|
6
6
|
url: z.ZodString;
|
|
7
7
|
mainUrl: z.ZodOptional<z.ZodString>;
|
|
8
8
|
caption: z.ZodString;
|
|
9
|
+
views: z.ZodNumber;
|
|
10
|
+
likes: z.ZodNumber;
|
|
11
|
+
comments: z.ZodNumber;
|
|
12
|
+
shares: z.ZodNumber;
|
|
9
13
|
createdAt: z.ZodDate;
|
|
10
14
|
updatedAt: z.ZodDate;
|
|
11
15
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -14,6 +18,10 @@ export declare const PortfolioItemSchema: z.ZodObject<{
|
|
|
14
18
|
_id: string;
|
|
15
19
|
createdAt: Date;
|
|
16
20
|
updatedAt: Date;
|
|
21
|
+
views: number;
|
|
22
|
+
likes: number;
|
|
23
|
+
comments: number;
|
|
24
|
+
shares: number;
|
|
17
25
|
mediaType: "image" | "video";
|
|
18
26
|
caption: string;
|
|
19
27
|
mainUrl?: string | undefined;
|
|
@@ -23,10 +31,13 @@ export declare const PortfolioItemSchema: z.ZodObject<{
|
|
|
23
31
|
_id: string;
|
|
24
32
|
createdAt: Date;
|
|
25
33
|
updatedAt: Date;
|
|
34
|
+
views: number;
|
|
35
|
+
likes: number;
|
|
36
|
+
comments: number;
|
|
37
|
+
shares: number;
|
|
26
38
|
mediaType: "image" | "video";
|
|
27
39
|
caption: string;
|
|
28
40
|
mainUrl?: string | undefined;
|
|
29
41
|
}>;
|
|
30
42
|
export type PortfolioItem = z.infer<typeof PortfolioItemSchema>;
|
|
31
|
-
export declare const samplePortfolio: PortfolioItem[];
|
|
32
43
|
//# sourceMappingURL=portfolio.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portfolio.d.ts","sourceRoot":"","sources":["../../../src/lib/models/portfolio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"portfolio.d.ts","sourceRoot":"","sources":["../../../src/lib/models/portfolio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAarB,CAAC;AAEZ,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -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"}
|
|
@@ -1,148 +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
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
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;
|
|
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
|
+
username: string;
|
|
57
|
+
firstName: string;
|
|
58
|
+
lastName: string;
|
|
59
|
+
email: string;
|
|
60
|
+
password: string;
|
|
61
|
+
phoneNumber: string;
|
|
62
|
+
gender: "male" | "female" | "other";
|
|
63
|
+
rating: number;
|
|
64
|
+
ratingCount: number;
|
|
65
|
+
reviewCount: number;
|
|
66
|
+
joinedDate: Date;
|
|
67
|
+
isActive: boolean;
|
|
68
|
+
lastActive: Date;
|
|
69
|
+
verifiedEmail: boolean;
|
|
70
|
+
verifiedMobile: boolean;
|
|
71
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
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
|
+
username: string;
|
|
102
|
+
firstName: string;
|
|
103
|
+
lastName: string;
|
|
104
|
+
email: string;
|
|
105
|
+
password: string;
|
|
106
|
+
phoneNumber: string;
|
|
107
|
+
gender: "male" | "female" | "other";
|
|
108
|
+
rating: number;
|
|
109
|
+
ratingCount: number;
|
|
110
|
+
reviewCount: number;
|
|
111
|
+
joinedDate: Date;
|
|
112
|
+
isActive: boolean;
|
|
113
|
+
lastActive: Date;
|
|
114
|
+
verifiedEmail: boolean;
|
|
115
|
+
verifiedMobile: boolean;
|
|
116
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
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
148
|
//# sourceMappingURL=user.d.ts.map
|
|
@@ -83,7 +83,6 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
83
83
|
panCard: z.ZodOptional<z.ZodString>;
|
|
84
84
|
verifiedBusiness: z.ZodOptional<z.ZodEnum<["true", "false", "inProgress"]>>;
|
|
85
85
|
}, "strict", z.ZodTypeAny, {
|
|
86
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
87
86
|
username: string;
|
|
88
87
|
firstName: string;
|
|
89
88
|
lastName: string;
|
|
@@ -99,6 +98,7 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
99
98
|
lastActive: Date;
|
|
100
99
|
verifiedEmail: boolean;
|
|
101
100
|
verifiedMobile: boolean;
|
|
101
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
102
102
|
location?: string | undefined;
|
|
103
103
|
pinCode?: string | undefined;
|
|
104
104
|
dob?: Date | undefined;
|
|
@@ -128,7 +128,6 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
128
128
|
panCard?: string | undefined;
|
|
129
129
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
130
130
|
}, {
|
|
131
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
132
131
|
username: string;
|
|
133
132
|
firstName: string;
|
|
134
133
|
lastName: string;
|
|
@@ -144,6 +143,7 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
144
143
|
lastActive: Date;
|
|
145
144
|
verifiedEmail: boolean;
|
|
146
145
|
verifiedMobile: boolean;
|
|
146
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
147
147
|
location?: string | undefined;
|
|
148
148
|
pinCode?: string | undefined;
|
|
149
149
|
dob?: Date | undefined;
|
|
@@ -179,32 +179,34 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
179
179
|
phoneNumber: z.ZodString;
|
|
180
180
|
email: z.ZodString;
|
|
181
181
|
}, "strip", z.ZodTypeAny, {
|
|
182
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
183
182
|
username: string;
|
|
184
183
|
email: string;
|
|
185
184
|
phoneNumber: string;
|
|
186
|
-
}, {
|
|
187
185
|
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
186
|
+
}, {
|
|
188
187
|
username: string;
|
|
189
188
|
email: string;
|
|
190
189
|
phoneNumber: string;
|
|
190
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
191
191
|
}>, "many">>;
|
|
192
192
|
hostingType: z.ZodOptional<z.ZodString>;
|
|
193
193
|
views: z.ZodNumber;
|
|
194
|
+
shares: z.ZodNumber;
|
|
194
195
|
status: z.ZodEnum<["draft", "archived", "pending", "open", "closed", "denied", "deleted"]>;
|
|
195
196
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
196
197
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
197
198
|
adminApproval: z.ZodBoolean;
|
|
198
199
|
}, "strict", z.ZodTypeAny, {
|
|
199
|
-
title: string;
|
|
200
|
-
description: string;
|
|
201
200
|
status: "draft" | "archived" | "pending" | "denied" | "open" | "closed" | "deleted";
|
|
202
201
|
rating: number;
|
|
203
202
|
ratingCount: number;
|
|
204
203
|
reviewCount: number;
|
|
205
204
|
skills: string[];
|
|
205
|
+
title: string;
|
|
206
|
+
description: string;
|
|
206
207
|
slug: string;
|
|
207
208
|
views: number;
|
|
209
|
+
shares: number;
|
|
208
210
|
images: string[];
|
|
209
211
|
city: string;
|
|
210
212
|
state: string;
|
|
@@ -221,7 +223,6 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
221
223
|
answer: string;
|
|
222
224
|
}[];
|
|
223
225
|
hostId: {
|
|
224
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
225
226
|
username: string;
|
|
226
227
|
firstName: string;
|
|
227
228
|
lastName: string;
|
|
@@ -237,6 +238,7 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
237
238
|
lastActive: Date;
|
|
238
239
|
verifiedEmail: boolean;
|
|
239
240
|
verifiedMobile: boolean;
|
|
241
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
240
242
|
location?: string | undefined;
|
|
241
243
|
pinCode?: string | undefined;
|
|
242
244
|
dob?: Date | undefined;
|
|
@@ -272,22 +274,23 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
272
274
|
categoryId?: string | undefined;
|
|
273
275
|
address?: string | undefined;
|
|
274
276
|
applicationObservers?: {
|
|
275
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
276
277
|
username: string;
|
|
277
278
|
email: string;
|
|
278
279
|
phoneNumber: string;
|
|
280
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
279
281
|
}[] | undefined;
|
|
280
282
|
hostingType?: string | undefined;
|
|
281
283
|
}, {
|
|
282
|
-
title: string;
|
|
283
|
-
description: string;
|
|
284
284
|
status: "draft" | "archived" | "pending" | "denied" | "open" | "closed" | "deleted";
|
|
285
285
|
rating: number;
|
|
286
286
|
ratingCount: number;
|
|
287
287
|
reviewCount: number;
|
|
288
288
|
skills: string[];
|
|
289
|
+
title: string;
|
|
290
|
+
description: string;
|
|
289
291
|
slug: string;
|
|
290
292
|
views: number;
|
|
293
|
+
shares: number;
|
|
291
294
|
images: string[];
|
|
292
295
|
city: string;
|
|
293
296
|
state: string;
|
|
@@ -304,7 +307,6 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
304
307
|
answer: string;
|
|
305
308
|
}[];
|
|
306
309
|
hostId: {
|
|
307
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
308
310
|
username: string;
|
|
309
311
|
firstName: string;
|
|
310
312
|
lastName: string;
|
|
@@ -320,6 +322,7 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
320
322
|
lastActive: Date;
|
|
321
323
|
verifiedEmail: boolean;
|
|
322
324
|
verifiedMobile: boolean;
|
|
325
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
323
326
|
location?: string | undefined;
|
|
324
327
|
pinCode?: string | undefined;
|
|
325
328
|
dob?: Date | undefined;
|
|
@@ -355,10 +358,10 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
355
358
|
categoryId?: string | undefined;
|
|
356
359
|
address?: string | undefined;
|
|
357
360
|
applicationObservers?: {
|
|
358
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
359
361
|
username: string;
|
|
360
362
|
email: string;
|
|
361
363
|
phoneNumber: string;
|
|
364
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
362
365
|
}[] | undefined;
|
|
363
366
|
hostingType?: string | undefined;
|
|
364
367
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volunteerJob.d.ts","sourceRoot":"","sources":["../../../src/lib/models/volunteerJob.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,WAAW,EAAkB,MAAM,SAAS,CAAC;AAEtD,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"volunteerJob.d.ts","sourceRoot":"","sources":["../../../src/lib/models/volunteerJob.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,WAAW,EAAkB,MAAM,SAAS,CAAC;AAEtD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCnB,CAAC;AAEZ,MAAM,MAAM,WAAW,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAG5D,eAAO,MAAM,iBAAiB,EAuBzB,WAAW,EAAE,CAAC;AAEnB,eAAO,MAAM,sBAAsB,EAqC9B,WAAW,EAAE,CAAC;AAGnB,eAAO,MAAM,uBAAuB,EAiB/B,WAAW,EAAE,CAAC;AAEnB,eAAO,MAAM,4BAA4B,EA2BpC,WAAW,EAAE,CAAC"}
|
|
@@ -32,6 +32,7 @@ export const OpportunitySchema = z.object({
|
|
|
32
32
|
})).optional(),
|
|
33
33
|
hostingType: z.string().optional(),
|
|
34
34
|
views: z.number(),
|
|
35
|
+
shares: z.number(),
|
|
35
36
|
status: z.enum(['draft', 'archived', 'pending', 'open', 'closed', 'denied', 'deleted']),
|
|
36
37
|
createdAt: z.date().optional(),
|
|
37
38
|
updatedAt: z.date().optional(),
|
package/dist/lib/userAtom.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export declare const storageInitializedAtom: import("jotai").PrimitiveAtom<boole
|
|
|
2
2
|
init: boolean;
|
|
3
3
|
};
|
|
4
4
|
export declare const userAtom: import("jotai").WritableAtom<{
|
|
5
|
+
rating: number;
|
|
5
6
|
username: string;
|
|
6
7
|
firstName: string;
|
|
7
8
|
lastName: string;
|
|
@@ -9,7 +10,6 @@ export declare const userAtom: import("jotai").WritableAtom<{
|
|
|
9
10
|
password: string;
|
|
10
11
|
phoneNumber: string;
|
|
11
12
|
gender: "male" | "female" | "other";
|
|
12
|
-
rating: number;
|
|
13
13
|
ratingCount: number;
|
|
14
14
|
reviewCount: number;
|
|
15
15
|
joinedDate: Date;
|
|
@@ -47,6 +47,7 @@ export declare const userAtom: import("jotai").WritableAtom<{
|
|
|
47
47
|
panCard?: string | undefined;
|
|
48
48
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
49
49
|
} | null, [{
|
|
50
|
+
rating: number;
|
|
50
51
|
username: string;
|
|
51
52
|
firstName: string;
|
|
52
53
|
lastName: string;
|
|
@@ -54,7 +55,6 @@ export declare const userAtom: import("jotai").WritableAtom<{
|
|
|
54
55
|
password: string;
|
|
55
56
|
phoneNumber: string;
|
|
56
57
|
gender: "male" | "female" | "other";
|
|
57
|
-
rating: number;
|
|
58
58
|
ratingCount: number;
|
|
59
59
|
reviewCount: number;
|
|
60
60
|
joinedDate: Date;
|
|
@@ -92,6 +92,7 @@ export declare const userAtom: import("jotai").WritableAtom<{
|
|
|
92
92
|
panCard?: string | undefined;
|
|
93
93
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
94
94
|
} | typeof import("jotai/utils").RESET | ((prev: {
|
|
95
|
+
rating: number;
|
|
95
96
|
username: string;
|
|
96
97
|
firstName: string;
|
|
97
98
|
lastName: string;
|
|
@@ -99,7 +100,6 @@ export declare const userAtom: import("jotai").WritableAtom<{
|
|
|
99
100
|
password: string;
|
|
100
101
|
phoneNumber: string;
|
|
101
102
|
gender: "male" | "female" | "other";
|
|
102
|
-
rating: number;
|
|
103
103
|
ratingCount: number;
|
|
104
104
|
reviewCount: number;
|
|
105
105
|
joinedDate: Date;
|
|
@@ -137,6 +137,7 @@ export declare const userAtom: import("jotai").WritableAtom<{
|
|
|
137
137
|
panCard?: string | undefined;
|
|
138
138
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
139
139
|
} | null) => {
|
|
140
|
+
rating: number;
|
|
140
141
|
username: string;
|
|
141
142
|
firstName: string;
|
|
142
143
|
lastName: string;
|
|
@@ -144,7 +145,6 @@ export declare const userAtom: import("jotai").WritableAtom<{
|
|
|
144
145
|
password: string;
|
|
145
146
|
phoneNumber: string;
|
|
146
147
|
gender: "male" | "female" | "other";
|
|
147
|
-
rating: number;
|
|
148
148
|
ratingCount: number;
|
|
149
149
|
reviewCount: number;
|
|
150
150
|
joinedDate: Date;
|