@myrjfa/state 2.1.8 → 2.1.9
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/actions.d.ts +11 -9
- package/dist/lib/actions/actions.d.ts.map +1 -1
- package/dist/lib/actions/actions.js +21 -2
- package/dist/lib/models/application.d.ts +1 -1
- package/dist/lib/models/application.d.ts.map +1 -1
- package/dist/lib/models/booking.d.ts +16 -1
- package/dist/lib/models/booking.d.ts.map +1 -1
- package/dist/lib/models/opportunities/freelance.d.ts +18 -18
- package/dist/lib/models/opportunities/internship.d.ts +18 -18
- package/dist/lib/models/opportunities/job.d.ts +20 -20
- package/dist/lib/models/opportunities/opportunity.d.ts +27 -22
- package/dist/lib/models/opportunities/opportunity.d.ts.map +1 -1
- package/dist/lib/models/opportunities/opportunity.js +2 -0
- package/dist/lib/models/opportunities/volunteerJob.d.ts +18 -18
- package/dist/lib/models/review.d.ts +6 -0
- package/dist/lib/models/review.d.ts.map +1 -1
- package/dist/lib/models/review.js +2 -0
- package/dist/lib/userAtom.d.ts +32 -32
- package/package.json +1 -1
|
@@ -135,20 +135,20 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
135
135
|
registrationNumber: z.ZodOptional<z.ZodString>;
|
|
136
136
|
}, "strip", z.ZodTypeAny, {
|
|
137
137
|
type: string;
|
|
138
|
-
name: string;
|
|
139
138
|
city: string;
|
|
140
139
|
state: string;
|
|
141
140
|
country: string;
|
|
142
141
|
address: string;
|
|
142
|
+
name: string;
|
|
143
143
|
pinCode?: string | undefined;
|
|
144
144
|
registrationNumber?: string | undefined;
|
|
145
145
|
}, {
|
|
146
146
|
type: string;
|
|
147
|
-
name: string;
|
|
148
147
|
city: string;
|
|
149
148
|
state: string;
|
|
150
149
|
country: string;
|
|
151
150
|
address: string;
|
|
151
|
+
name: string;
|
|
152
152
|
pinCode?: string | undefined;
|
|
153
153
|
registrationNumber?: string | undefined;
|
|
154
154
|
}>, "many">>;
|
|
@@ -158,7 +158,6 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
158
158
|
businessApiVerificationStatus: z.ZodOptional<z.ZodEnum<["pending", "verified", "failed"]>>;
|
|
159
159
|
businessVerificationDenialReason: z.ZodOptional<z.ZodString>;
|
|
160
160
|
}, "strict", z.ZodTypeAny, {
|
|
161
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
162
161
|
country: string;
|
|
163
162
|
rating: number;
|
|
164
163
|
ratingCount: number;
|
|
@@ -176,7 +175,7 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
176
175
|
lastActive: Date;
|
|
177
176
|
verifiedEmail: boolean;
|
|
178
177
|
verifiedMobile: boolean;
|
|
179
|
-
|
|
178
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
180
179
|
skills?: {
|
|
181
180
|
skill: string;
|
|
182
181
|
skillExpertise: number;
|
|
@@ -197,6 +196,7 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
197
196
|
wishlist?: string[] | undefined;
|
|
198
197
|
favBlogs?: string[] | undefined;
|
|
199
198
|
favPackages?: string[] | undefined;
|
|
199
|
+
id?: string | undefined;
|
|
200
200
|
selfie?: string | undefined;
|
|
201
201
|
selfieAction?: string | undefined;
|
|
202
202
|
jobCount?: number | undefined;
|
|
@@ -206,11 +206,11 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
206
206
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
207
207
|
properties?: {
|
|
208
208
|
type: string;
|
|
209
|
-
name: string;
|
|
210
209
|
city: string;
|
|
211
210
|
state: string;
|
|
212
211
|
country: string;
|
|
213
212
|
address: string;
|
|
213
|
+
name: string;
|
|
214
214
|
pinCode?: string | undefined;
|
|
215
215
|
registrationNumber?: string | undefined;
|
|
216
216
|
}[] | undefined;
|
|
@@ -220,7 +220,6 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
220
220
|
businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
|
|
221
221
|
businessVerificationDenialReason?: string | undefined;
|
|
222
222
|
}, {
|
|
223
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
224
223
|
country: string;
|
|
225
224
|
rating: number;
|
|
226
225
|
ratingCount: number;
|
|
@@ -238,7 +237,7 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
238
237
|
lastActive: Date;
|
|
239
238
|
verifiedEmail: boolean;
|
|
240
239
|
verifiedMobile: boolean;
|
|
241
|
-
|
|
240
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
242
241
|
skills?: {
|
|
243
242
|
skill: string;
|
|
244
243
|
skillExpertise: number;
|
|
@@ -259,6 +258,7 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
259
258
|
wishlist?: string[] | undefined;
|
|
260
259
|
favBlogs?: string[] | undefined;
|
|
261
260
|
favPackages?: string[] | undefined;
|
|
261
|
+
id?: string | undefined;
|
|
262
262
|
selfie?: string | undefined;
|
|
263
263
|
selfieAction?: string | undefined;
|
|
264
264
|
jobCount?: number | undefined;
|
|
@@ -268,11 +268,11 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
268
268
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
269
269
|
properties?: {
|
|
270
270
|
type: string;
|
|
271
|
-
name: string;
|
|
272
271
|
city: string;
|
|
273
272
|
state: string;
|
|
274
273
|
country: string;
|
|
275
274
|
address: string;
|
|
275
|
+
name: string;
|
|
276
276
|
pinCode?: string | undefined;
|
|
277
277
|
registrationNumber?: string | undefined;
|
|
278
278
|
}[] | undefined;
|
|
@@ -289,17 +289,17 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
289
289
|
phoneNumber: z.ZodString;
|
|
290
290
|
email: z.ZodString;
|
|
291
291
|
}, "strip", z.ZodTypeAny, {
|
|
292
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
293
292
|
username: string;
|
|
294
293
|
email: string;
|
|
295
294
|
phoneNumber: string;
|
|
296
295
|
countryCode: string;
|
|
297
|
-
}, {
|
|
298
296
|
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
297
|
+
}, {
|
|
299
298
|
username: string;
|
|
300
299
|
email: string;
|
|
301
300
|
phoneNumber: string;
|
|
302
301
|
countryCode: string;
|
|
302
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
303
303
|
}>, "many">>;
|
|
304
304
|
status: z.ZodEnum<["draft", "archived", "pending", "open", "closed", "denied", "deleted"]>;
|
|
305
305
|
adminApproval: z.ZodBoolean;
|
|
@@ -336,7 +336,6 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
336
336
|
ratingCount: number;
|
|
337
337
|
reviewCount: number;
|
|
338
338
|
hostId: {
|
|
339
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
340
339
|
country: string;
|
|
341
340
|
rating: number;
|
|
342
341
|
ratingCount: number;
|
|
@@ -354,7 +353,7 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
354
353
|
lastActive: Date;
|
|
355
354
|
verifiedEmail: boolean;
|
|
356
355
|
verifiedMobile: boolean;
|
|
357
|
-
|
|
356
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
358
357
|
skills?: {
|
|
359
358
|
skill: string;
|
|
360
359
|
skillExpertise: number;
|
|
@@ -375,6 +374,7 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
375
374
|
wishlist?: string[] | undefined;
|
|
376
375
|
favBlogs?: string[] | undefined;
|
|
377
376
|
favPackages?: string[] | undefined;
|
|
377
|
+
id?: string | undefined;
|
|
378
378
|
selfie?: string | undefined;
|
|
379
379
|
selfieAction?: string | undefined;
|
|
380
380
|
jobCount?: number | undefined;
|
|
@@ -384,11 +384,11 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
384
384
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
385
385
|
properties?: {
|
|
386
386
|
type: string;
|
|
387
|
-
name: string;
|
|
388
387
|
city: string;
|
|
389
388
|
state: string;
|
|
390
389
|
country: string;
|
|
391
390
|
address: string;
|
|
391
|
+
name: string;
|
|
392
392
|
pinCode?: string | undefined;
|
|
393
393
|
registrationNumber?: string | undefined;
|
|
394
394
|
}[] | undefined;
|
|
@@ -418,11 +418,11 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
418
418
|
pendingApplicationCount?: number | undefined;
|
|
419
419
|
hostingType?: string | undefined;
|
|
420
420
|
applicationObservers?: {
|
|
421
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
422
421
|
username: string;
|
|
423
422
|
email: string;
|
|
424
423
|
phoneNumber: string;
|
|
425
424
|
countryCode: string;
|
|
425
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
426
426
|
}[] | undefined;
|
|
427
427
|
createdAt?: Date | undefined;
|
|
428
428
|
updatedAt?: Date | undefined;
|
|
@@ -455,7 +455,6 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
455
455
|
ratingCount: number;
|
|
456
456
|
reviewCount: number;
|
|
457
457
|
hostId: {
|
|
458
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
459
458
|
country: string;
|
|
460
459
|
rating: number;
|
|
461
460
|
ratingCount: number;
|
|
@@ -473,7 +472,7 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
473
472
|
lastActive: Date;
|
|
474
473
|
verifiedEmail: boolean;
|
|
475
474
|
verifiedMobile: boolean;
|
|
476
|
-
|
|
475
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
477
476
|
skills?: {
|
|
478
477
|
skill: string;
|
|
479
478
|
skillExpertise: number;
|
|
@@ -494,6 +493,7 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
494
493
|
wishlist?: string[] | undefined;
|
|
495
494
|
favBlogs?: string[] | undefined;
|
|
496
495
|
favPackages?: string[] | undefined;
|
|
496
|
+
id?: string | undefined;
|
|
497
497
|
selfie?: string | undefined;
|
|
498
498
|
selfieAction?: string | undefined;
|
|
499
499
|
jobCount?: number | undefined;
|
|
@@ -503,11 +503,11 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
503
503
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
504
504
|
properties?: {
|
|
505
505
|
type: string;
|
|
506
|
-
name: string;
|
|
507
506
|
city: string;
|
|
508
507
|
state: string;
|
|
509
508
|
country: string;
|
|
510
509
|
address: string;
|
|
510
|
+
name: string;
|
|
511
511
|
pinCode?: string | undefined;
|
|
512
512
|
registrationNumber?: string | undefined;
|
|
513
513
|
}[] | undefined;
|
|
@@ -537,11 +537,11 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
537
537
|
pendingApplicationCount?: number | undefined;
|
|
538
538
|
hostingType?: string | undefined;
|
|
539
539
|
applicationObservers?: {
|
|
540
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
541
540
|
username: string;
|
|
542
541
|
email: string;
|
|
543
542
|
phoneNumber: string;
|
|
544
543
|
countryCode: string;
|
|
544
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
545
545
|
}[] | undefined;
|
|
546
546
|
createdAt?: Date | undefined;
|
|
547
547
|
updatedAt?: Date | undefined;
|
|
@@ -5,6 +5,7 @@ export declare const ReviewSchema: z.ZodObject<{
|
|
|
5
5
|
reviewerUsername: z.ZodString;
|
|
6
6
|
rating: z.ZodNumber;
|
|
7
7
|
comment: z.ZodString;
|
|
8
|
+
images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
8
9
|
createdAt: z.ZodDate;
|
|
9
10
|
updatedAt: z.ZodDate;
|
|
10
11
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -15,6 +16,7 @@ export declare const ReviewSchema: z.ZodObject<{
|
|
|
15
16
|
comment: string;
|
|
16
17
|
createdAt: Date;
|
|
17
18
|
updatedAt: Date;
|
|
19
|
+
images?: string[] | undefined;
|
|
18
20
|
}, {
|
|
19
21
|
_id: string;
|
|
20
22
|
reviewerPic: string;
|
|
@@ -23,18 +25,22 @@ export declare const ReviewSchema: z.ZodObject<{
|
|
|
23
25
|
comment: string;
|
|
24
26
|
createdAt: Date;
|
|
25
27
|
updatedAt: Date;
|
|
28
|
+
images?: string[] | undefined;
|
|
26
29
|
}>;
|
|
27
30
|
export type reviewTargetType = 'opportunity' | 'package' | 'host' | 'user' | 'blog' | 'portfolio' | 'rental' | 'adventure' | 'guide' | 'stay' | 'event';
|
|
28
31
|
export type Review = z.infer<typeof ReviewSchema>;
|
|
29
32
|
export declare const reviewBasicSchema: z.ZodObject<{
|
|
30
33
|
rating: z.ZodNumber;
|
|
31
34
|
comment: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
|
|
35
|
+
images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
32
36
|
}, "strip", z.ZodTypeAny, {
|
|
33
37
|
rating: number;
|
|
34
38
|
comment?: string | undefined;
|
|
39
|
+
images?: string[] | undefined;
|
|
35
40
|
}, {
|
|
36
41
|
rating: number;
|
|
37
42
|
comment?: string | undefined;
|
|
43
|
+
images?: string[] | undefined;
|
|
38
44
|
}>;
|
|
39
45
|
export type reviewType = z.infer<typeof reviewBasicSchema>;
|
|
40
46
|
export declare const sampleReviews: Review[];
|
|
@@ -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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;EASd,CAAC;AAEZ,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;AAExJ,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;EAS5B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE3D,eAAO,MAAM,aAAa,EAAE,MAAM,EAuDjC,CAAA"}
|
|
@@ -5,6 +5,7 @@ export const ReviewSchema = z.object({
|
|
|
5
5
|
reviewerUsername: z.string(),
|
|
6
6
|
rating: z.number(),
|
|
7
7
|
comment: z.string(),
|
|
8
|
+
images: z.array(z.string()).optional(),
|
|
8
9
|
createdAt: z.date(),
|
|
9
10
|
updatedAt: z.date(),
|
|
10
11
|
}).strict();
|
|
@@ -13,6 +14,7 @@ export const reviewBasicSchema = z.object({
|
|
|
13
14
|
message: "Please select a rating",
|
|
14
15
|
}),
|
|
15
16
|
comment: z.string().optional().refine((val) => !val || val.trim()?.length >= 5, { message: 'Review must be at least 5 characters' }),
|
|
17
|
+
images: z.array(z.string()).optional(),
|
|
16
18
|
});
|
|
17
19
|
export const sampleReviews = [
|
|
18
20
|
{
|
package/dist/lib/userAtom.d.ts
CHANGED
|
@@ -2,10 +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
|
-
country: string;
|
|
6
5
|
rating: number;
|
|
7
|
-
ratingCount: number;
|
|
8
|
-
reviewCount: number;
|
|
9
6
|
username: string;
|
|
10
7
|
firstName: string;
|
|
11
8
|
lastName: string;
|
|
@@ -13,17 +10,20 @@ export declare const userAtom: import("jotai").WritableAtom<{
|
|
|
13
10
|
password: string;
|
|
14
11
|
phoneNumber: string;
|
|
15
12
|
countryCode: string;
|
|
13
|
+
country: string;
|
|
16
14
|
gender: "male" | "female" | "other";
|
|
15
|
+
ratingCount: number;
|
|
16
|
+
reviewCount: number;
|
|
17
17
|
joinedDate: Date;
|
|
18
18
|
isActive: boolean;
|
|
19
19
|
lastActive: Date;
|
|
20
20
|
verifiedEmail: boolean;
|
|
21
21
|
verifiedMobile: boolean;
|
|
22
|
-
role: "
|
|
23
|
-
profilePic?: string | undefined;
|
|
22
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
24
23
|
location?: string | undefined;
|
|
25
24
|
pinCode?: string | undefined;
|
|
26
25
|
dob?: Date | undefined;
|
|
26
|
+
profilePic?: string | undefined;
|
|
27
27
|
blogsCount?: number | undefined;
|
|
28
28
|
userBio?: string | undefined;
|
|
29
29
|
userIdCard?: string | undefined;
|
|
@@ -50,24 +50,21 @@ export declare const userAtom: import("jotai").WritableAtom<{
|
|
|
50
50
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
51
51
|
properties?: {
|
|
52
52
|
type: string;
|
|
53
|
-
city: string;
|
|
54
|
-
state: string;
|
|
55
53
|
country: string;
|
|
56
54
|
name: string;
|
|
57
55
|
address: string;
|
|
56
|
+
city: string;
|
|
57
|
+
state: string;
|
|
58
58
|
pinCode?: string | undefined;
|
|
59
59
|
registrationNumber?: string | undefined;
|
|
60
60
|
}[] | undefined;
|
|
61
61
|
businessDocument?: string | undefined;
|
|
62
62
|
businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
|
|
63
63
|
businessIdNumber?: string | undefined;
|
|
64
|
-
businessApiVerificationStatus?: "pending" | "
|
|
64
|
+
businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
|
|
65
65
|
businessVerificationDenialReason?: string | undefined;
|
|
66
66
|
} | null, [{
|
|
67
|
-
country: string;
|
|
68
67
|
rating: number;
|
|
69
|
-
ratingCount: number;
|
|
70
|
-
reviewCount: number;
|
|
71
68
|
username: string;
|
|
72
69
|
firstName: string;
|
|
73
70
|
lastName: string;
|
|
@@ -75,17 +72,20 @@ export declare const userAtom: import("jotai").WritableAtom<{
|
|
|
75
72
|
password: string;
|
|
76
73
|
phoneNumber: string;
|
|
77
74
|
countryCode: string;
|
|
75
|
+
country: string;
|
|
78
76
|
gender: "male" | "female" | "other";
|
|
77
|
+
ratingCount: number;
|
|
78
|
+
reviewCount: number;
|
|
79
79
|
joinedDate: Date;
|
|
80
80
|
isActive: boolean;
|
|
81
81
|
lastActive: Date;
|
|
82
82
|
verifiedEmail: boolean;
|
|
83
83
|
verifiedMobile: boolean;
|
|
84
|
-
role: "
|
|
85
|
-
profilePic?: string | undefined;
|
|
84
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
86
85
|
location?: string | undefined;
|
|
87
86
|
pinCode?: string | undefined;
|
|
88
87
|
dob?: Date | undefined;
|
|
88
|
+
profilePic?: string | undefined;
|
|
89
89
|
blogsCount?: number | undefined;
|
|
90
90
|
userBio?: string | undefined;
|
|
91
91
|
userIdCard?: string | undefined;
|
|
@@ -112,24 +112,21 @@ export declare const userAtom: import("jotai").WritableAtom<{
|
|
|
112
112
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
113
113
|
properties?: {
|
|
114
114
|
type: string;
|
|
115
|
-
city: string;
|
|
116
|
-
state: string;
|
|
117
115
|
country: string;
|
|
118
116
|
name: string;
|
|
119
117
|
address: string;
|
|
118
|
+
city: string;
|
|
119
|
+
state: string;
|
|
120
120
|
pinCode?: string | undefined;
|
|
121
121
|
registrationNumber?: string | undefined;
|
|
122
122
|
}[] | undefined;
|
|
123
123
|
businessDocument?: string | undefined;
|
|
124
124
|
businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
|
|
125
125
|
businessIdNumber?: string | undefined;
|
|
126
|
-
businessApiVerificationStatus?: "pending" | "
|
|
126
|
+
businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
|
|
127
127
|
businessVerificationDenialReason?: string | undefined;
|
|
128
128
|
} | typeof import("jotai/utils").RESET | ((prev: {
|
|
129
|
-
country: string;
|
|
130
129
|
rating: number;
|
|
131
|
-
ratingCount: number;
|
|
132
|
-
reviewCount: number;
|
|
133
130
|
username: string;
|
|
134
131
|
firstName: string;
|
|
135
132
|
lastName: string;
|
|
@@ -137,17 +134,20 @@ export declare const userAtom: import("jotai").WritableAtom<{
|
|
|
137
134
|
password: string;
|
|
138
135
|
phoneNumber: string;
|
|
139
136
|
countryCode: string;
|
|
137
|
+
country: string;
|
|
140
138
|
gender: "male" | "female" | "other";
|
|
139
|
+
ratingCount: number;
|
|
140
|
+
reviewCount: number;
|
|
141
141
|
joinedDate: Date;
|
|
142
142
|
isActive: boolean;
|
|
143
143
|
lastActive: Date;
|
|
144
144
|
verifiedEmail: boolean;
|
|
145
145
|
verifiedMobile: boolean;
|
|
146
|
-
role: "
|
|
147
|
-
profilePic?: string | undefined;
|
|
146
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
148
147
|
location?: string | undefined;
|
|
149
148
|
pinCode?: string | undefined;
|
|
150
149
|
dob?: Date | undefined;
|
|
150
|
+
profilePic?: string | undefined;
|
|
151
151
|
blogsCount?: number | undefined;
|
|
152
152
|
userBio?: string | undefined;
|
|
153
153
|
userIdCard?: string | undefined;
|
|
@@ -174,24 +174,21 @@ export declare const userAtom: import("jotai").WritableAtom<{
|
|
|
174
174
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
175
175
|
properties?: {
|
|
176
176
|
type: string;
|
|
177
|
-
city: string;
|
|
178
|
-
state: string;
|
|
179
177
|
country: string;
|
|
180
178
|
name: string;
|
|
181
179
|
address: string;
|
|
180
|
+
city: string;
|
|
181
|
+
state: string;
|
|
182
182
|
pinCode?: string | undefined;
|
|
183
183
|
registrationNumber?: string | undefined;
|
|
184
184
|
}[] | undefined;
|
|
185
185
|
businessDocument?: string | undefined;
|
|
186
186
|
businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
|
|
187
187
|
businessIdNumber?: string | undefined;
|
|
188
|
-
businessApiVerificationStatus?: "pending" | "
|
|
188
|
+
businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
|
|
189
189
|
businessVerificationDenialReason?: string | undefined;
|
|
190
190
|
} | null) => {
|
|
191
|
-
country: string;
|
|
192
191
|
rating: number;
|
|
193
|
-
ratingCount: number;
|
|
194
|
-
reviewCount: number;
|
|
195
192
|
username: string;
|
|
196
193
|
firstName: string;
|
|
197
194
|
lastName: string;
|
|
@@ -199,17 +196,20 @@ export declare const userAtom: import("jotai").WritableAtom<{
|
|
|
199
196
|
password: string;
|
|
200
197
|
phoneNumber: string;
|
|
201
198
|
countryCode: string;
|
|
199
|
+
country: string;
|
|
202
200
|
gender: "male" | "female" | "other";
|
|
201
|
+
ratingCount: number;
|
|
202
|
+
reviewCount: number;
|
|
203
203
|
joinedDate: Date;
|
|
204
204
|
isActive: boolean;
|
|
205
205
|
lastActive: Date;
|
|
206
206
|
verifiedEmail: boolean;
|
|
207
207
|
verifiedMobile: boolean;
|
|
208
|
-
role: "
|
|
209
|
-
profilePic?: string | undefined;
|
|
208
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
210
209
|
location?: string | undefined;
|
|
211
210
|
pinCode?: string | undefined;
|
|
212
211
|
dob?: Date | undefined;
|
|
212
|
+
profilePic?: string | undefined;
|
|
213
213
|
blogsCount?: number | undefined;
|
|
214
214
|
userBio?: string | undefined;
|
|
215
215
|
userIdCard?: string | undefined;
|
|
@@ -236,18 +236,18 @@ export declare const userAtom: import("jotai").WritableAtom<{
|
|
|
236
236
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
237
237
|
properties?: {
|
|
238
238
|
type: string;
|
|
239
|
-
city: string;
|
|
240
|
-
state: string;
|
|
241
239
|
country: string;
|
|
242
240
|
name: string;
|
|
243
241
|
address: string;
|
|
242
|
+
city: string;
|
|
243
|
+
state: string;
|
|
244
244
|
pinCode?: string | undefined;
|
|
245
245
|
registrationNumber?: string | undefined;
|
|
246
246
|
}[] | undefined;
|
|
247
247
|
businessDocument?: string | undefined;
|
|
248
248
|
businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
|
|
249
249
|
businessIdNumber?: string | undefined;
|
|
250
|
-
businessApiVerificationStatus?: "pending" | "
|
|
250
|
+
businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
|
|
251
251
|
businessVerificationDenialReason?: string | undefined;
|
|
252
252
|
} | typeof import("jotai/utils").RESET | null) | null], void>;
|
|
253
253
|
export declare const isLoggedInAtom: import("jotai").WritableAtom<boolean, [boolean | typeof import("jotai/utils").RESET | ((prev: boolean) => boolean | typeof import("jotai/utils").RESET)], void>;
|