@myrjfa/state 1.0.0 → 1.0.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.
@@ -18,8 +18,8 @@ export declare const BlogSchema: z.ZodObject<{
18
18
  authorImage: z.ZodString;
19
19
  authorRole: z.ZodEnum<["host", "admin", "user"]>;
20
20
  }, "strict", z.ZodTypeAny, {
21
- title: string;
22
21
  status: "draft" | "posted" | "archived" | "pending" | "denied";
22
+ title: string;
23
23
  createdAt: Date;
24
24
  updatedAt: Date;
25
25
  slug: string;
@@ -34,8 +34,8 @@ export declare const BlogSchema: z.ZodObject<{
34
34
  authorRole: "host" | "user" | "admin";
35
35
  hashtags?: string | undefined;
36
36
  }, {
37
- title: string;
38
37
  status: "draft" | "posted" | "archived" | "pending" | "denied";
38
+ title: string;
39
39
  createdAt: Date;
40
40
  updatedAt: Date;
41
41
  slug: string;
@@ -1,32 +1,32 @@
1
- import { z } from "zod";
2
- export declare const PortfolioItemSchema: z.ZodObject<{
3
- _id: z.ZodString;
4
- user: z.ZodString;
5
- mediaType: z.ZodEnum<["image", "video"]>;
6
- url: z.ZodString;
7
- mainUrl: z.ZodOptional<z.ZodString>;
8
- caption: z.ZodString;
9
- createdAt: z.ZodDate;
10
- updatedAt: z.ZodDate;
11
- }, "strict", z.ZodTypeAny, {
12
- user: string;
13
- url: string;
14
- _id: string;
15
- createdAt: Date;
16
- updatedAt: Date;
17
- mediaType: "image" | "video";
18
- caption: string;
19
- mainUrl?: string | undefined;
20
- }, {
21
- user: string;
22
- url: string;
23
- _id: string;
24
- createdAt: Date;
25
- updatedAt: Date;
26
- mediaType: "image" | "video";
27
- caption: string;
28
- mainUrl?: string | undefined;
29
- }>;
30
- export type PortfolioItem = z.infer<typeof PortfolioItemSchema>;
31
- export declare const samplePortfolio: PortfolioItem[];
1
+ import { z } from "zod";
2
+ export declare const PortfolioItemSchema: z.ZodObject<{
3
+ _id: z.ZodString;
4
+ user: z.ZodString;
5
+ mediaType: z.ZodEnum<["image", "video"]>;
6
+ url: z.ZodString;
7
+ mainUrl: z.ZodOptional<z.ZodString>;
8
+ caption: z.ZodString;
9
+ createdAt: z.ZodDate;
10
+ updatedAt: z.ZodDate;
11
+ }, "strict", z.ZodTypeAny, {
12
+ user: string;
13
+ url: string;
14
+ _id: string;
15
+ createdAt: Date;
16
+ updatedAt: Date;
17
+ mediaType: "image" | "video";
18
+ caption: string;
19
+ mainUrl?: string | undefined;
20
+ }, {
21
+ user: string;
22
+ url: string;
23
+ _id: string;
24
+ createdAt: Date;
25
+ updatedAt: Date;
26
+ mediaType: "image" | "video";
27
+ caption: string;
28
+ mainUrl?: string | undefined;
29
+ }>;
30
+ export type PortfolioItem = z.infer<typeof PortfolioItemSchema>;
31
+ export declare const samplePortfolio: PortfolioItem[];
32
32
  //# sourceMappingURL=portfolio.d.ts.map
@@ -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
- 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;
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
@@ -1,377 +1,377 @@
1
- import { z } from "zod";
2
- import { DisplayItem } from "./props";
3
- export declare const OpportunitySchema: z.ZodObject<{
4
- slug: z.ZodString;
5
- title: z.ZodString;
6
- skills: z.ZodArray<z.ZodString, "many">;
7
- description: z.ZodString;
8
- images: z.ZodArray<z.ZodString, "many">;
9
- categoryId: z.ZodOptional<z.ZodString>;
10
- city: z.ZodString;
11
- state: z.ZodString;
12
- address: z.ZodOptional<z.ZodString>;
13
- availableFrom: z.ZodDate;
14
- minDuration: z.ZodNumber;
15
- maxDuration: z.ZodNumber;
16
- urgent: z.ZodBoolean;
17
- applicationCount: z.ZodNumber;
18
- peopleRequired: z.ZodNumber;
19
- facilities: z.ZodArray<z.ZodString, "many">;
20
- responsibilities: z.ZodArray<z.ZodString, "many">;
21
- questions: z.ZodArray<z.ZodObject<{
22
- question: z.ZodString;
23
- answer: z.ZodString;
24
- }, "strict", z.ZodTypeAny, {
25
- question: string;
26
- answer: string;
27
- }, {
28
- question: string;
29
- answer: string;
30
- }>, "many">;
31
- rating: z.ZodNumber;
32
- ratingCount: z.ZodNumber;
33
- reviewCount: z.ZodNumber;
34
- hostId: z.ZodLazy<z.ZodObject<{
35
- username: z.ZodString;
36
- firstName: z.ZodString;
37
- lastName: z.ZodString;
38
- email: z.ZodString;
39
- password: z.ZodString;
40
- phoneNumber: z.ZodString;
41
- location: z.ZodOptional<z.ZodString>;
42
- pinCode: z.ZodOptional<z.ZodString>;
43
- dob: z.ZodOptional<z.ZodDate>;
44
- gender: z.ZodEnum<["male", "female", "other"]>;
45
- profilePic: z.ZodOptional<z.ZodString>;
46
- rating: z.ZodNumber;
47
- ratingCount: z.ZodNumber;
48
- reviewCount: z.ZodNumber;
49
- blogsCount: z.ZodOptional<z.ZodNumber>;
50
- joinedDate: z.ZodDate;
51
- isActive: z.ZodBoolean;
52
- lastActive: z.ZodDate;
53
- userBio: z.ZodOptional<z.ZodString>;
54
- userIdCard: z.ZodOptional<z.ZodString>;
55
- watchHistory: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
56
- accessToken: z.ZodOptional<z.ZodString>;
57
- refreshToken: z.ZodOptional<z.ZodString>;
58
- verifiedEmail: z.ZodBoolean;
59
- verifiedMobile: z.ZodBoolean;
60
- verifiedIdCard: z.ZodOptional<z.ZodBoolean>;
61
- role: z.ZodEnum<["host", "user", "admin", "hr", "sales"]>;
62
- socialLinks: z.ZodOptional<z.ZodRecord<z.ZodEnum<[string, ...string[]]>, z.ZodString>>;
63
- userResume: z.ZodOptional<z.ZodString>;
64
- skills: z.ZodOptional<z.ZodArray<z.ZodObject<{
65
- skill: z.ZodString;
66
- skillExpertise: z.ZodNumber;
67
- }, "strip", z.ZodTypeAny, {
68
- skill: string;
69
- skillExpertise: number;
70
- }, {
71
- skill: string;
72
- skillExpertise: number;
73
- }>, "many">>;
74
- wishlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
75
- favBlogs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
76
- favPackages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
77
- id: z.ZodOptional<z.ZodString>;
78
- selfie: z.ZodOptional<z.ZodString>;
79
- selfieAction: z.ZodOptional<z.ZodString>;
80
- jobCount: z.ZodOptional<z.ZodNumber>;
81
- travelPackageCount: z.ZodOptional<z.ZodNumber>;
82
- gstNumber: z.ZodOptional<z.ZodString>;
83
- panCard: z.ZodOptional<z.ZodString>;
84
- verifiedBusiness: z.ZodOptional<z.ZodEnum<["true", "false", "inProgress"]>>;
85
- }, "strict", z.ZodTypeAny, {
86
- role: "host" | "user" | "admin" | "hr" | "sales";
87
- username: string;
88
- firstName: string;
89
- lastName: string;
90
- email: string;
91
- password: string;
92
- phoneNumber: string;
93
- gender: "male" | "female" | "other";
94
- rating: number;
95
- ratingCount: number;
96
- reviewCount: number;
97
- joinedDate: Date;
98
- isActive: boolean;
99
- lastActive: Date;
100
- verifiedEmail: boolean;
101
- verifiedMobile: boolean;
102
- location?: string | undefined;
103
- pinCode?: string | undefined;
104
- dob?: Date | undefined;
105
- profilePic?: string | undefined;
106
- blogsCount?: number | undefined;
107
- userBio?: string | undefined;
108
- userIdCard?: string | undefined;
109
- watchHistory?: string[] | undefined;
110
- accessToken?: string | undefined;
111
- refreshToken?: string | undefined;
112
- verifiedIdCard?: boolean | undefined;
113
- socialLinks?: Record<string, string> | undefined;
114
- userResume?: string | undefined;
115
- skills?: {
116
- skill: string;
117
- skillExpertise: number;
118
- }[] | undefined;
119
- wishlist?: string[] | undefined;
120
- favBlogs?: string[] | undefined;
121
- favPackages?: string[] | undefined;
122
- id?: string | undefined;
123
- selfie?: string | undefined;
124
- selfieAction?: string | undefined;
125
- jobCount?: number | undefined;
126
- travelPackageCount?: number | undefined;
127
- gstNumber?: string | undefined;
128
- panCard?: string | undefined;
129
- verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
130
- }, {
131
- role: "host" | "user" | "admin" | "hr" | "sales";
132
- username: string;
133
- firstName: string;
134
- lastName: string;
135
- email: string;
136
- password: string;
137
- phoneNumber: string;
138
- gender: "male" | "female" | "other";
139
- rating: number;
140
- ratingCount: number;
141
- reviewCount: number;
142
- joinedDate: Date;
143
- isActive: boolean;
144
- lastActive: Date;
145
- verifiedEmail: boolean;
146
- verifiedMobile: boolean;
147
- location?: string | undefined;
148
- pinCode?: string | undefined;
149
- dob?: Date | undefined;
150
- profilePic?: string | undefined;
151
- blogsCount?: number | undefined;
152
- userBio?: string | undefined;
153
- userIdCard?: string | undefined;
154
- watchHistory?: string[] | undefined;
155
- accessToken?: string | undefined;
156
- refreshToken?: string | undefined;
157
- verifiedIdCard?: boolean | undefined;
158
- socialLinks?: Record<string, string> | undefined;
159
- userResume?: string | undefined;
160
- skills?: {
161
- skill: string;
162
- skillExpertise: number;
163
- }[] | undefined;
164
- wishlist?: string[] | undefined;
165
- favBlogs?: string[] | undefined;
166
- favPackages?: string[] | undefined;
167
- id?: string | undefined;
168
- selfie?: string | undefined;
169
- selfieAction?: string | undefined;
170
- jobCount?: number | undefined;
171
- travelPackageCount?: number | undefined;
172
- gstNumber?: string | undefined;
173
- panCard?: string | undefined;
174
- verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
175
- }>>;
176
- applicationObservers: z.ZodOptional<z.ZodArray<z.ZodObject<{
177
- username: z.ZodString;
178
- role: z.ZodEnum<["host", "user", "admin", "hr", "sales"]>;
179
- phoneNumber: z.ZodString;
180
- email: z.ZodString;
181
- }, "strip", z.ZodTypeAny, {
182
- role: "host" | "user" | "admin" | "hr" | "sales";
183
- username: string;
184
- email: string;
185
- phoneNumber: string;
186
- }, {
187
- role: "host" | "user" | "admin" | "hr" | "sales";
188
- username: string;
189
- email: string;
190
- phoneNumber: string;
191
- }>, "many">>;
192
- hostingType: z.ZodOptional<z.ZodString>;
193
- views: z.ZodNumber;
194
- status: z.ZodEnum<["draft", "archived", "pending", "open", "closed", "denied", "deleted"]>;
195
- createdAt: z.ZodOptional<z.ZodDate>;
196
- updatedAt: z.ZodOptional<z.ZodDate>;
197
- adminApproval: z.ZodBoolean;
198
- }, "strict", z.ZodTypeAny, {
199
- title: string;
200
- description: string;
201
- status: "draft" | "archived" | "pending" | "denied" | "open" | "closed" | "deleted";
202
- rating: number;
203
- ratingCount: number;
204
- reviewCount: number;
205
- skills: string[];
206
- slug: string;
207
- views: number;
208
- images: string[];
209
- city: string;
210
- state: string;
211
- availableFrom: Date;
212
- minDuration: number;
213
- maxDuration: number;
214
- urgent: boolean;
215
- applicationCount: number;
216
- peopleRequired: number;
217
- facilities: string[];
218
- responsibilities: string[];
219
- questions: {
220
- question: string;
221
- answer: string;
222
- }[];
223
- hostId: {
224
- role: "host" | "user" | "admin" | "hr" | "sales";
225
- username: string;
226
- firstName: string;
227
- lastName: string;
228
- email: string;
229
- password: string;
230
- phoneNumber: string;
231
- gender: "male" | "female" | "other";
232
- rating: number;
233
- ratingCount: number;
234
- reviewCount: number;
235
- joinedDate: Date;
236
- isActive: boolean;
237
- lastActive: Date;
238
- verifiedEmail: boolean;
239
- verifiedMobile: boolean;
240
- location?: string | undefined;
241
- pinCode?: string | undefined;
242
- dob?: Date | undefined;
243
- profilePic?: string | undefined;
244
- blogsCount?: number | undefined;
245
- userBio?: string | undefined;
246
- userIdCard?: string | undefined;
247
- watchHistory?: string[] | undefined;
248
- accessToken?: string | undefined;
249
- refreshToken?: string | undefined;
250
- verifiedIdCard?: boolean | undefined;
251
- socialLinks?: Record<string, string> | undefined;
252
- userResume?: string | undefined;
253
- skills?: {
254
- skill: string;
255
- skillExpertise: number;
256
- }[] | undefined;
257
- wishlist?: string[] | undefined;
258
- favBlogs?: string[] | undefined;
259
- favPackages?: string[] | undefined;
260
- id?: string | undefined;
261
- selfie?: string | undefined;
262
- selfieAction?: string | undefined;
263
- jobCount?: number | undefined;
264
- travelPackageCount?: number | undefined;
265
- gstNumber?: string | undefined;
266
- panCard?: string | undefined;
267
- verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
268
- };
269
- adminApproval: boolean;
270
- createdAt?: Date | undefined;
271
- updatedAt?: Date | undefined;
272
- categoryId?: string | undefined;
273
- address?: string | undefined;
274
- applicationObservers?: {
275
- role: "host" | "user" | "admin" | "hr" | "sales";
276
- username: string;
277
- email: string;
278
- phoneNumber: string;
279
- }[] | undefined;
280
- hostingType?: string | undefined;
281
- }, {
282
- title: string;
283
- description: string;
284
- status: "draft" | "archived" | "pending" | "denied" | "open" | "closed" | "deleted";
285
- rating: number;
286
- ratingCount: number;
287
- reviewCount: number;
288
- skills: string[];
289
- slug: string;
290
- views: number;
291
- images: string[];
292
- city: string;
293
- state: string;
294
- availableFrom: Date;
295
- minDuration: number;
296
- maxDuration: number;
297
- urgent: boolean;
298
- applicationCount: number;
299
- peopleRequired: number;
300
- facilities: string[];
301
- responsibilities: string[];
302
- questions: {
303
- question: string;
304
- answer: string;
305
- }[];
306
- hostId: {
307
- role: "host" | "user" | "admin" | "hr" | "sales";
308
- username: string;
309
- firstName: string;
310
- lastName: string;
311
- email: string;
312
- password: string;
313
- phoneNumber: string;
314
- gender: "male" | "female" | "other";
315
- rating: number;
316
- ratingCount: number;
317
- reviewCount: number;
318
- joinedDate: Date;
319
- isActive: boolean;
320
- lastActive: Date;
321
- verifiedEmail: boolean;
322
- verifiedMobile: boolean;
323
- location?: string | undefined;
324
- pinCode?: string | undefined;
325
- dob?: Date | undefined;
326
- profilePic?: string | undefined;
327
- blogsCount?: number | undefined;
328
- userBio?: string | undefined;
329
- userIdCard?: string | undefined;
330
- watchHistory?: string[] | undefined;
331
- accessToken?: string | undefined;
332
- refreshToken?: string | undefined;
333
- verifiedIdCard?: boolean | undefined;
334
- socialLinks?: Record<string, string> | undefined;
335
- userResume?: string | undefined;
336
- skills?: {
337
- skill: string;
338
- skillExpertise: number;
339
- }[] | undefined;
340
- wishlist?: string[] | undefined;
341
- favBlogs?: string[] | undefined;
342
- favPackages?: string[] | undefined;
343
- id?: string | undefined;
344
- selfie?: string | undefined;
345
- selfieAction?: string | undefined;
346
- jobCount?: number | undefined;
347
- travelPackageCount?: number | undefined;
348
- gstNumber?: string | undefined;
349
- panCard?: string | undefined;
350
- verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
351
- };
352
- adminApproval: boolean;
353
- createdAt?: Date | undefined;
354
- updatedAt?: Date | undefined;
355
- categoryId?: string | undefined;
356
- address?: string | undefined;
357
- applicationObservers?: {
358
- role: "host" | "user" | "admin" | "hr" | "sales";
359
- username: string;
360
- email: string;
361
- phoneNumber: string;
362
- }[] | undefined;
363
- hostingType?: string | undefined;
364
- }>;
365
- export type OppMetaData = {
366
- image: string;
367
- title: string;
368
- location: string;
369
- skills: string[];
370
- hostingType: string;
371
- };
372
- export type Opportunity = z.infer<typeof OpportunitySchema>;
373
- export declare const facilitiesOptions: DisplayItem[];
374
- export declare const otherFacilitiesOptions: DisplayItem[];
375
- export declare const responsibilitiesOptions: DisplayItem[];
376
- export declare const otherResponsibilitiesOptions: DisplayItem[];
1
+ import { z } from "zod";
2
+ import { DisplayItem } from "./props";
3
+ export declare const OpportunitySchema: z.ZodObject<{
4
+ slug: z.ZodString;
5
+ title: z.ZodString;
6
+ skills: z.ZodArray<z.ZodString, "many">;
7
+ description: z.ZodString;
8
+ images: z.ZodArray<z.ZodString, "many">;
9
+ categoryId: z.ZodOptional<z.ZodString>;
10
+ city: z.ZodString;
11
+ state: z.ZodString;
12
+ address: z.ZodOptional<z.ZodString>;
13
+ availableFrom: z.ZodDate;
14
+ minDuration: z.ZodNumber;
15
+ maxDuration: z.ZodNumber;
16
+ urgent: z.ZodBoolean;
17
+ applicationCount: z.ZodNumber;
18
+ peopleRequired: z.ZodNumber;
19
+ facilities: z.ZodArray<z.ZodString, "many">;
20
+ responsibilities: z.ZodArray<z.ZodString, "many">;
21
+ questions: z.ZodArray<z.ZodObject<{
22
+ question: z.ZodString;
23
+ answer: z.ZodString;
24
+ }, "strict", z.ZodTypeAny, {
25
+ question: string;
26
+ answer: string;
27
+ }, {
28
+ question: string;
29
+ answer: string;
30
+ }>, "many">;
31
+ rating: z.ZodNumber;
32
+ ratingCount: z.ZodNumber;
33
+ reviewCount: z.ZodNumber;
34
+ hostId: z.ZodLazy<z.ZodObject<{
35
+ username: z.ZodString;
36
+ firstName: z.ZodString;
37
+ lastName: z.ZodString;
38
+ email: z.ZodString;
39
+ password: z.ZodString;
40
+ phoneNumber: z.ZodString;
41
+ location: z.ZodOptional<z.ZodString>;
42
+ pinCode: z.ZodOptional<z.ZodString>;
43
+ dob: z.ZodOptional<z.ZodDate>;
44
+ gender: z.ZodEnum<["male", "female", "other"]>;
45
+ profilePic: z.ZodOptional<z.ZodString>;
46
+ rating: z.ZodNumber;
47
+ ratingCount: z.ZodNumber;
48
+ reviewCount: z.ZodNumber;
49
+ blogsCount: z.ZodOptional<z.ZodNumber>;
50
+ joinedDate: z.ZodDate;
51
+ isActive: z.ZodBoolean;
52
+ lastActive: z.ZodDate;
53
+ userBio: z.ZodOptional<z.ZodString>;
54
+ userIdCard: z.ZodOptional<z.ZodString>;
55
+ watchHistory: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
56
+ accessToken: z.ZodOptional<z.ZodString>;
57
+ refreshToken: z.ZodOptional<z.ZodString>;
58
+ verifiedEmail: z.ZodBoolean;
59
+ verifiedMobile: z.ZodBoolean;
60
+ verifiedIdCard: z.ZodOptional<z.ZodBoolean>;
61
+ role: z.ZodEnum<["host", "user", "admin", "hr", "sales"]>;
62
+ socialLinks: z.ZodOptional<z.ZodRecord<z.ZodEnum<[string, ...string[]]>, z.ZodString>>;
63
+ userResume: z.ZodOptional<z.ZodString>;
64
+ skills: z.ZodOptional<z.ZodArray<z.ZodObject<{
65
+ skill: z.ZodString;
66
+ skillExpertise: z.ZodNumber;
67
+ }, "strip", z.ZodTypeAny, {
68
+ skill: string;
69
+ skillExpertise: number;
70
+ }, {
71
+ skill: string;
72
+ skillExpertise: number;
73
+ }>, "many">>;
74
+ wishlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
75
+ favBlogs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
76
+ favPackages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
77
+ id: z.ZodOptional<z.ZodString>;
78
+ selfie: z.ZodOptional<z.ZodString>;
79
+ selfieAction: z.ZodOptional<z.ZodString>;
80
+ jobCount: z.ZodOptional<z.ZodNumber>;
81
+ travelPackageCount: z.ZodOptional<z.ZodNumber>;
82
+ gstNumber: z.ZodOptional<z.ZodString>;
83
+ panCard: z.ZodOptional<z.ZodString>;
84
+ verifiedBusiness: z.ZodOptional<z.ZodEnum<["true", "false", "inProgress"]>>;
85
+ }, "strict", z.ZodTypeAny, {
86
+ username: string;
87
+ firstName: string;
88
+ lastName: string;
89
+ email: string;
90
+ password: string;
91
+ phoneNumber: string;
92
+ gender: "male" | "female" | "other";
93
+ rating: number;
94
+ ratingCount: number;
95
+ reviewCount: number;
96
+ joinedDate: Date;
97
+ isActive: boolean;
98
+ lastActive: Date;
99
+ verifiedEmail: boolean;
100
+ verifiedMobile: boolean;
101
+ role: "host" | "user" | "admin" | "hr" | "sales";
102
+ location?: string | undefined;
103
+ pinCode?: string | undefined;
104
+ dob?: Date | undefined;
105
+ profilePic?: string | undefined;
106
+ blogsCount?: number | undefined;
107
+ userBio?: string | undefined;
108
+ userIdCard?: string | undefined;
109
+ watchHistory?: string[] | undefined;
110
+ accessToken?: string | undefined;
111
+ refreshToken?: string | undefined;
112
+ verifiedIdCard?: boolean | undefined;
113
+ socialLinks?: Record<string, string> | undefined;
114
+ userResume?: string | undefined;
115
+ skills?: {
116
+ skill: string;
117
+ skillExpertise: number;
118
+ }[] | undefined;
119
+ wishlist?: string[] | undefined;
120
+ favBlogs?: string[] | undefined;
121
+ favPackages?: string[] | undefined;
122
+ id?: string | undefined;
123
+ selfie?: string | undefined;
124
+ selfieAction?: string | undefined;
125
+ jobCount?: number | undefined;
126
+ travelPackageCount?: number | undefined;
127
+ gstNumber?: string | undefined;
128
+ panCard?: string | undefined;
129
+ verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
130
+ }, {
131
+ username: string;
132
+ firstName: string;
133
+ lastName: string;
134
+ email: string;
135
+ password: string;
136
+ phoneNumber: string;
137
+ gender: "male" | "female" | "other";
138
+ rating: number;
139
+ ratingCount: number;
140
+ reviewCount: number;
141
+ joinedDate: Date;
142
+ isActive: boolean;
143
+ lastActive: Date;
144
+ verifiedEmail: boolean;
145
+ verifiedMobile: boolean;
146
+ role: "host" | "user" | "admin" | "hr" | "sales";
147
+ location?: string | undefined;
148
+ pinCode?: string | undefined;
149
+ dob?: Date | undefined;
150
+ profilePic?: string | undefined;
151
+ blogsCount?: number | undefined;
152
+ userBio?: string | undefined;
153
+ userIdCard?: string | undefined;
154
+ watchHistory?: string[] | undefined;
155
+ accessToken?: string | undefined;
156
+ refreshToken?: string | undefined;
157
+ verifiedIdCard?: boolean | undefined;
158
+ socialLinks?: Record<string, string> | undefined;
159
+ userResume?: string | undefined;
160
+ skills?: {
161
+ skill: string;
162
+ skillExpertise: number;
163
+ }[] | undefined;
164
+ wishlist?: string[] | undefined;
165
+ favBlogs?: string[] | undefined;
166
+ favPackages?: string[] | undefined;
167
+ id?: string | undefined;
168
+ selfie?: string | undefined;
169
+ selfieAction?: string | undefined;
170
+ jobCount?: number | undefined;
171
+ travelPackageCount?: number | undefined;
172
+ gstNumber?: string | undefined;
173
+ panCard?: string | undefined;
174
+ verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
175
+ }>>;
176
+ applicationObservers: z.ZodOptional<z.ZodArray<z.ZodObject<{
177
+ username: z.ZodString;
178
+ role: z.ZodEnum<["host", "user", "admin", "hr", "sales"]>;
179
+ phoneNumber: z.ZodString;
180
+ email: z.ZodString;
181
+ }, "strip", z.ZodTypeAny, {
182
+ username: string;
183
+ email: string;
184
+ phoneNumber: string;
185
+ role: "host" | "user" | "admin" | "hr" | "sales";
186
+ }, {
187
+ username: string;
188
+ email: string;
189
+ phoneNumber: string;
190
+ role: "host" | "user" | "admin" | "hr" | "sales";
191
+ }>, "many">>;
192
+ hostingType: z.ZodOptional<z.ZodString>;
193
+ views: z.ZodNumber;
194
+ status: z.ZodEnum<["draft", "archived", "pending", "open", "closed", "denied", "deleted"]>;
195
+ createdAt: z.ZodOptional<z.ZodDate>;
196
+ updatedAt: z.ZodOptional<z.ZodDate>;
197
+ adminApproval: z.ZodBoolean;
198
+ }, "strict", z.ZodTypeAny, {
199
+ status: "draft" | "archived" | "pending" | "denied" | "open" | "closed" | "deleted";
200
+ rating: number;
201
+ ratingCount: number;
202
+ reviewCount: number;
203
+ skills: string[];
204
+ title: string;
205
+ description: string;
206
+ slug: string;
207
+ views: number;
208
+ images: string[];
209
+ city: string;
210
+ state: string;
211
+ availableFrom: Date;
212
+ minDuration: number;
213
+ maxDuration: number;
214
+ urgent: boolean;
215
+ applicationCount: number;
216
+ peopleRequired: number;
217
+ facilities: string[];
218
+ responsibilities: string[];
219
+ questions: {
220
+ question: string;
221
+ answer: string;
222
+ }[];
223
+ hostId: {
224
+ username: string;
225
+ firstName: string;
226
+ lastName: string;
227
+ email: string;
228
+ password: string;
229
+ phoneNumber: string;
230
+ gender: "male" | "female" | "other";
231
+ rating: number;
232
+ ratingCount: number;
233
+ reviewCount: number;
234
+ joinedDate: Date;
235
+ isActive: boolean;
236
+ lastActive: Date;
237
+ verifiedEmail: boolean;
238
+ verifiedMobile: boolean;
239
+ role: "host" | "user" | "admin" | "hr" | "sales";
240
+ location?: string | undefined;
241
+ pinCode?: string | undefined;
242
+ dob?: Date | undefined;
243
+ profilePic?: string | undefined;
244
+ blogsCount?: number | undefined;
245
+ userBio?: string | undefined;
246
+ userIdCard?: string | undefined;
247
+ watchHistory?: string[] | undefined;
248
+ accessToken?: string | undefined;
249
+ refreshToken?: string | undefined;
250
+ verifiedIdCard?: boolean | undefined;
251
+ socialLinks?: Record<string, string> | undefined;
252
+ userResume?: string | undefined;
253
+ skills?: {
254
+ skill: string;
255
+ skillExpertise: number;
256
+ }[] | undefined;
257
+ wishlist?: string[] | undefined;
258
+ favBlogs?: string[] | undefined;
259
+ favPackages?: string[] | undefined;
260
+ id?: string | undefined;
261
+ selfie?: string | undefined;
262
+ selfieAction?: string | undefined;
263
+ jobCount?: number | undefined;
264
+ travelPackageCount?: number | undefined;
265
+ gstNumber?: string | undefined;
266
+ panCard?: string | undefined;
267
+ verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
268
+ };
269
+ adminApproval: boolean;
270
+ createdAt?: Date | undefined;
271
+ updatedAt?: Date | undefined;
272
+ categoryId?: string | undefined;
273
+ address?: string | undefined;
274
+ applicationObservers?: {
275
+ username: string;
276
+ email: string;
277
+ phoneNumber: string;
278
+ role: "host" | "user" | "admin" | "hr" | "sales";
279
+ }[] | undefined;
280
+ hostingType?: string | undefined;
281
+ }, {
282
+ status: "draft" | "archived" | "pending" | "denied" | "open" | "closed" | "deleted";
283
+ rating: number;
284
+ ratingCount: number;
285
+ reviewCount: number;
286
+ skills: string[];
287
+ title: string;
288
+ description: string;
289
+ slug: string;
290
+ views: number;
291
+ images: string[];
292
+ city: string;
293
+ state: string;
294
+ availableFrom: Date;
295
+ minDuration: number;
296
+ maxDuration: number;
297
+ urgent: boolean;
298
+ applicationCount: number;
299
+ peopleRequired: number;
300
+ facilities: string[];
301
+ responsibilities: string[];
302
+ questions: {
303
+ question: string;
304
+ answer: string;
305
+ }[];
306
+ hostId: {
307
+ username: string;
308
+ firstName: string;
309
+ lastName: string;
310
+ email: string;
311
+ password: string;
312
+ phoneNumber: string;
313
+ gender: "male" | "female" | "other";
314
+ rating: number;
315
+ ratingCount: number;
316
+ reviewCount: number;
317
+ joinedDate: Date;
318
+ isActive: boolean;
319
+ lastActive: Date;
320
+ verifiedEmail: boolean;
321
+ verifiedMobile: boolean;
322
+ role: "host" | "user" | "admin" | "hr" | "sales";
323
+ location?: string | undefined;
324
+ pinCode?: string | undefined;
325
+ dob?: Date | undefined;
326
+ profilePic?: string | undefined;
327
+ blogsCount?: number | undefined;
328
+ userBio?: string | undefined;
329
+ userIdCard?: string | undefined;
330
+ watchHistory?: string[] | undefined;
331
+ accessToken?: string | undefined;
332
+ refreshToken?: string | undefined;
333
+ verifiedIdCard?: boolean | undefined;
334
+ socialLinks?: Record<string, string> | undefined;
335
+ userResume?: string | undefined;
336
+ skills?: {
337
+ skill: string;
338
+ skillExpertise: number;
339
+ }[] | undefined;
340
+ wishlist?: string[] | undefined;
341
+ favBlogs?: string[] | undefined;
342
+ favPackages?: string[] | undefined;
343
+ id?: string | undefined;
344
+ selfie?: string | undefined;
345
+ selfieAction?: string | undefined;
346
+ jobCount?: number | undefined;
347
+ travelPackageCount?: number | undefined;
348
+ gstNumber?: string | undefined;
349
+ panCard?: string | undefined;
350
+ verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
351
+ };
352
+ adminApproval: boolean;
353
+ createdAt?: Date | undefined;
354
+ updatedAt?: Date | undefined;
355
+ categoryId?: string | undefined;
356
+ address?: string | undefined;
357
+ applicationObservers?: {
358
+ username: string;
359
+ email: string;
360
+ phoneNumber: string;
361
+ role: "host" | "user" | "admin" | "hr" | "sales";
362
+ }[] | undefined;
363
+ hostingType?: string | undefined;
364
+ }>;
365
+ export type OppMetaData = {
366
+ image: string;
367
+ title: string;
368
+ location: string;
369
+ skills: string[];
370
+ hostingType: string;
371
+ };
372
+ export type Opportunity = z.infer<typeof OpportunitySchema>;
373
+ export declare const facilitiesOptions: DisplayItem[];
374
+ export declare const otherFacilitiesOptions: DisplayItem[];
375
+ export declare const responsibilitiesOptions: DisplayItem[];
376
+ export declare const otherResponsibilitiesOptions: DisplayItem[];
377
377
  //# sourceMappingURL=volunteerJob.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myrjfa/state",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Shared state management for myrjfa apps",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",