@myrjfa/state 2.1.4 → 2.1.6
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 +12 -12
- package/dist/lib/actions/actions.d.ts.map +1 -1
- package/dist/lib/actions/actions.js +13 -5
- package/dist/lib/actions/fetcher.d.ts.map +1 -1
- package/dist/lib/actions/fetcher.js +31 -29
- package/dist/lib/authSessionManager.d.ts.map +1 -1
- package/dist/lib/authSessionManager.js +12 -18
- package/dist/lib/models/opportunities/freelance.d.ts +82 -82
- package/dist/lib/models/opportunities/internship.d.ts +82 -82
- package/dist/lib/models/opportunities/job.d.ts +82 -82
- package/dist/lib/models/opportunities/opportunity.d.ts +82 -82
- package/dist/lib/models/opportunities/volunteerJob.d.ts +82 -82
- package/dist/lib/models/props.d.ts +13 -2
- package/dist/lib/models/props.d.ts.map +1 -1
- package/dist/lib/models/props.js +20 -0
- package/dist/lib/userAtom.d.ts +44 -44
- package/package.json +1 -1
|
@@ -163,21 +163,21 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
163
163
|
pinCode: z.ZodOptional<z.ZodString>;
|
|
164
164
|
registrationNumber: z.ZodOptional<z.ZodString>;
|
|
165
165
|
}, "strip", z.ZodTypeAny, {
|
|
166
|
-
country: string;
|
|
167
166
|
type: string;
|
|
168
167
|
name: string;
|
|
169
|
-
address: string;
|
|
170
168
|
city: string;
|
|
171
169
|
state: string;
|
|
170
|
+
country: string;
|
|
171
|
+
address: string;
|
|
172
172
|
pinCode?: string | undefined;
|
|
173
173
|
registrationNumber?: string | undefined;
|
|
174
174
|
}, {
|
|
175
|
-
country: string;
|
|
176
175
|
type: string;
|
|
177
176
|
name: string;
|
|
178
|
-
address: string;
|
|
179
177
|
city: string;
|
|
180
178
|
state: string;
|
|
179
|
+
country: string;
|
|
180
|
+
address: string;
|
|
181
181
|
pinCode?: string | undefined;
|
|
182
182
|
registrationNumber?: string | undefined;
|
|
183
183
|
}>, "many">>;
|
|
@@ -187,6 +187,11 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
187
187
|
businessApiVerificationStatus: z.ZodOptional<z.ZodEnum<["pending", "verified", "failed"]>>;
|
|
188
188
|
businessVerificationDenialReason: z.ZodOptional<z.ZodString>;
|
|
189
189
|
}, "strict", z.ZodTypeAny, {
|
|
190
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
191
|
+
country: string;
|
|
192
|
+
rating: number;
|
|
193
|
+
ratingCount: number;
|
|
194
|
+
reviewCount: number;
|
|
190
195
|
username: string;
|
|
191
196
|
firstName: string;
|
|
192
197
|
lastName: string;
|
|
@@ -194,17 +199,17 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
194
199
|
password: string;
|
|
195
200
|
phoneNumber: string;
|
|
196
201
|
countryCode: string;
|
|
197
|
-
country: string;
|
|
198
202
|
gender: "male" | "female" | "other";
|
|
199
|
-
rating: number;
|
|
200
|
-
ratingCount: number;
|
|
201
|
-
reviewCount: number;
|
|
202
203
|
joinedDate: Date;
|
|
203
204
|
isActive: boolean;
|
|
204
205
|
lastActive: Date;
|
|
205
206
|
verifiedEmail: boolean;
|
|
206
207
|
verifiedMobile: boolean;
|
|
207
|
-
|
|
208
|
+
id?: string | undefined;
|
|
209
|
+
skills?: {
|
|
210
|
+
skill: string;
|
|
211
|
+
skillExpertise: number;
|
|
212
|
+
}[] | undefined;
|
|
208
213
|
location?: string | undefined;
|
|
209
214
|
pinCode?: string | undefined;
|
|
210
215
|
dob?: Date | undefined;
|
|
@@ -218,14 +223,9 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
218
223
|
verifiedIdCard?: boolean | undefined;
|
|
219
224
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
220
225
|
userResume?: string | undefined;
|
|
221
|
-
skills?: {
|
|
222
|
-
skill: string;
|
|
223
|
-
skillExpertise: number;
|
|
224
|
-
}[] | undefined;
|
|
225
226
|
wishlist?: string[] | undefined;
|
|
226
227
|
favBlogs?: string[] | undefined;
|
|
227
228
|
favPackages?: string[] | undefined;
|
|
228
|
-
id?: string | undefined;
|
|
229
229
|
selfie?: string | undefined;
|
|
230
230
|
selfieAction?: string | undefined;
|
|
231
231
|
jobCount?: number | undefined;
|
|
@@ -234,12 +234,12 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
234
234
|
panCard?: string | undefined;
|
|
235
235
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
236
236
|
properties?: {
|
|
237
|
-
country: string;
|
|
238
237
|
type: string;
|
|
239
238
|
name: string;
|
|
240
|
-
address: string;
|
|
241
239
|
city: string;
|
|
242
240
|
state: string;
|
|
241
|
+
country: string;
|
|
242
|
+
address: string;
|
|
243
243
|
pinCode?: string | undefined;
|
|
244
244
|
registrationNumber?: string | undefined;
|
|
245
245
|
}[] | undefined;
|
|
@@ -249,6 +249,11 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
249
249
|
businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
|
|
250
250
|
businessVerificationDenialReason?: string | undefined;
|
|
251
251
|
}, {
|
|
252
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
253
|
+
country: string;
|
|
254
|
+
rating: number;
|
|
255
|
+
ratingCount: number;
|
|
256
|
+
reviewCount: number;
|
|
252
257
|
username: string;
|
|
253
258
|
firstName: string;
|
|
254
259
|
lastName: string;
|
|
@@ -256,17 +261,17 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
256
261
|
password: string;
|
|
257
262
|
phoneNumber: string;
|
|
258
263
|
countryCode: string;
|
|
259
|
-
country: string;
|
|
260
264
|
gender: "male" | "female" | "other";
|
|
261
|
-
rating: number;
|
|
262
|
-
ratingCount: number;
|
|
263
|
-
reviewCount: number;
|
|
264
265
|
joinedDate: Date;
|
|
265
266
|
isActive: boolean;
|
|
266
267
|
lastActive: Date;
|
|
267
268
|
verifiedEmail: boolean;
|
|
268
269
|
verifiedMobile: boolean;
|
|
269
|
-
|
|
270
|
+
id?: string | undefined;
|
|
271
|
+
skills?: {
|
|
272
|
+
skill: string;
|
|
273
|
+
skillExpertise: number;
|
|
274
|
+
}[] | undefined;
|
|
270
275
|
location?: string | undefined;
|
|
271
276
|
pinCode?: string | undefined;
|
|
272
277
|
dob?: Date | undefined;
|
|
@@ -280,14 +285,9 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
280
285
|
verifiedIdCard?: boolean | undefined;
|
|
281
286
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
282
287
|
userResume?: string | undefined;
|
|
283
|
-
skills?: {
|
|
284
|
-
skill: string;
|
|
285
|
-
skillExpertise: number;
|
|
286
|
-
}[] | undefined;
|
|
287
288
|
wishlist?: string[] | undefined;
|
|
288
289
|
favBlogs?: string[] | undefined;
|
|
289
290
|
favPackages?: string[] | undefined;
|
|
290
|
-
id?: string | undefined;
|
|
291
291
|
selfie?: string | undefined;
|
|
292
292
|
selfieAction?: string | undefined;
|
|
293
293
|
jobCount?: number | undefined;
|
|
@@ -296,12 +296,12 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
296
296
|
panCard?: string | undefined;
|
|
297
297
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
298
298
|
properties?: {
|
|
299
|
-
country: string;
|
|
300
299
|
type: string;
|
|
301
300
|
name: string;
|
|
302
|
-
address: string;
|
|
303
301
|
city: string;
|
|
304
302
|
state: string;
|
|
303
|
+
country: string;
|
|
304
|
+
address: string;
|
|
305
305
|
pinCode?: string | undefined;
|
|
306
306
|
registrationNumber?: string | undefined;
|
|
307
307
|
}[] | undefined;
|
|
@@ -318,17 +318,17 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
318
318
|
phoneNumber: z.ZodString;
|
|
319
319
|
email: z.ZodString;
|
|
320
320
|
}, "strip", z.ZodTypeAny, {
|
|
321
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
321
322
|
username: string;
|
|
322
323
|
email: string;
|
|
323
324
|
phoneNumber: string;
|
|
324
325
|
countryCode: string;
|
|
325
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
326
326
|
}, {
|
|
327
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
327
328
|
username: string;
|
|
328
329
|
email: string;
|
|
329
330
|
phoneNumber: string;
|
|
330
331
|
countryCode: string;
|
|
331
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
332
332
|
}>, "many">>;
|
|
333
333
|
status: z.ZodEnum<["draft", "archived", "pending", "open", "closed", "denied", "deleted"]>;
|
|
334
334
|
adminApproval: z.ZodBoolean;
|
|
@@ -411,16 +411,7 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
411
411
|
securityPaidToHost: boolean;
|
|
412
412
|
}>;
|
|
413
413
|
}, "strict", z.ZodTypeAny, {
|
|
414
|
-
|
|
415
|
-
status: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | "deleted";
|
|
416
|
-
rating: number;
|
|
417
|
-
ratingCount: number;
|
|
418
|
-
reviewCount: number;
|
|
419
|
-
skills: string[];
|
|
420
|
-
city: string;
|
|
421
|
-
state: string;
|
|
422
|
-
title: string;
|
|
423
|
-
description: string;
|
|
414
|
+
status: "draft" | "archived" | "pending" | "open" | "closed" | "denied" | "deleted";
|
|
424
415
|
salary: {
|
|
425
416
|
type: "free" | "stipend" | "salary" | "project-based";
|
|
426
417
|
currency: string;
|
|
@@ -429,7 +420,13 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
429
420
|
};
|
|
430
421
|
slug: string;
|
|
431
422
|
opportunityType: "job";
|
|
423
|
+
title: string;
|
|
424
|
+
skills: string[];
|
|
425
|
+
description: string;
|
|
432
426
|
images: string[];
|
|
427
|
+
city: string;
|
|
428
|
+
state: string;
|
|
429
|
+
country: string;
|
|
433
430
|
availableFrom: Date;
|
|
434
431
|
minDuration: number;
|
|
435
432
|
maxDuration: number;
|
|
@@ -444,7 +441,15 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
444
441
|
applicationCount: number;
|
|
445
442
|
views: number;
|
|
446
443
|
shares: number;
|
|
444
|
+
rating: number;
|
|
445
|
+
ratingCount: number;
|
|
446
|
+
reviewCount: number;
|
|
447
447
|
hostId: {
|
|
448
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
449
|
+
country: string;
|
|
450
|
+
rating: number;
|
|
451
|
+
ratingCount: number;
|
|
452
|
+
reviewCount: number;
|
|
448
453
|
username: string;
|
|
449
454
|
firstName: string;
|
|
450
455
|
lastName: string;
|
|
@@ -452,17 +457,17 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
452
457
|
password: string;
|
|
453
458
|
phoneNumber: string;
|
|
454
459
|
countryCode: string;
|
|
455
|
-
country: string;
|
|
456
460
|
gender: "male" | "female" | "other";
|
|
457
|
-
rating: number;
|
|
458
|
-
ratingCount: number;
|
|
459
|
-
reviewCount: number;
|
|
460
461
|
joinedDate: Date;
|
|
461
462
|
isActive: boolean;
|
|
462
463
|
lastActive: Date;
|
|
463
464
|
verifiedEmail: boolean;
|
|
464
465
|
verifiedMobile: boolean;
|
|
465
|
-
|
|
466
|
+
id?: string | undefined;
|
|
467
|
+
skills?: {
|
|
468
|
+
skill: string;
|
|
469
|
+
skillExpertise: number;
|
|
470
|
+
}[] | undefined;
|
|
466
471
|
location?: string | undefined;
|
|
467
472
|
pinCode?: string | undefined;
|
|
468
473
|
dob?: Date | undefined;
|
|
@@ -476,14 +481,9 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
476
481
|
verifiedIdCard?: boolean | undefined;
|
|
477
482
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
478
483
|
userResume?: string | undefined;
|
|
479
|
-
skills?: {
|
|
480
|
-
skill: string;
|
|
481
|
-
skillExpertise: number;
|
|
482
|
-
}[] | undefined;
|
|
483
484
|
wishlist?: string[] | undefined;
|
|
484
485
|
favBlogs?: string[] | undefined;
|
|
485
486
|
favPackages?: string[] | undefined;
|
|
486
|
-
id?: string | undefined;
|
|
487
487
|
selfie?: string | undefined;
|
|
488
488
|
selfieAction?: string | undefined;
|
|
489
489
|
jobCount?: number | undefined;
|
|
@@ -492,12 +492,12 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
492
492
|
panCard?: string | undefined;
|
|
493
493
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
494
494
|
properties?: {
|
|
495
|
-
country: string;
|
|
496
495
|
type: string;
|
|
497
496
|
name: string;
|
|
498
|
-
address: string;
|
|
499
497
|
city: string;
|
|
500
498
|
state: string;
|
|
499
|
+
country: string;
|
|
500
|
+
address: string;
|
|
501
501
|
pinCode?: string | undefined;
|
|
502
502
|
registrationNumber?: string | undefined;
|
|
503
503
|
}[] | undefined;
|
|
@@ -530,10 +530,8 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
530
530
|
employeeLeft: boolean;
|
|
531
531
|
securityPaidToHost: boolean;
|
|
532
532
|
};
|
|
533
|
-
address?: string | undefined;
|
|
534
|
-
createdAt?: Date | undefined;
|
|
535
|
-
updatedAt?: Date | undefined;
|
|
536
533
|
categoryId?: string | undefined;
|
|
534
|
+
address?: string | undefined;
|
|
537
535
|
workMode?: "onsite" | "remote" | "hybrid" | undefined;
|
|
538
536
|
compensation?: {
|
|
539
537
|
type: "free" | "stipend" | "salary" | "project-based";
|
|
@@ -551,23 +549,16 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
551
549
|
pendingApplicationCount?: number | undefined;
|
|
552
550
|
hostingType?: string | undefined;
|
|
553
551
|
applicationObservers?: {
|
|
552
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
554
553
|
username: string;
|
|
555
554
|
email: string;
|
|
556
555
|
phoneNumber: string;
|
|
557
556
|
countryCode: string;
|
|
558
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
559
557
|
}[] | undefined;
|
|
558
|
+
createdAt?: Date | undefined;
|
|
559
|
+
updatedAt?: Date | undefined;
|
|
560
560
|
}, {
|
|
561
|
-
|
|
562
|
-
status: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | "deleted";
|
|
563
|
-
rating: number;
|
|
564
|
-
ratingCount: number;
|
|
565
|
-
reviewCount: number;
|
|
566
|
-
skills: string[];
|
|
567
|
-
city: string;
|
|
568
|
-
state: string;
|
|
569
|
-
title: string;
|
|
570
|
-
description: string;
|
|
561
|
+
status: "draft" | "archived" | "pending" | "open" | "closed" | "denied" | "deleted";
|
|
571
562
|
salary: {
|
|
572
563
|
type: "free" | "stipend" | "salary" | "project-based";
|
|
573
564
|
currency: string;
|
|
@@ -576,7 +567,13 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
576
567
|
};
|
|
577
568
|
slug: string;
|
|
578
569
|
opportunityType: "job";
|
|
570
|
+
title: string;
|
|
571
|
+
skills: string[];
|
|
572
|
+
description: string;
|
|
579
573
|
images: string[];
|
|
574
|
+
city: string;
|
|
575
|
+
state: string;
|
|
576
|
+
country: string;
|
|
580
577
|
availableFrom: Date;
|
|
581
578
|
minDuration: number;
|
|
582
579
|
maxDuration: number;
|
|
@@ -591,7 +588,15 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
591
588
|
applicationCount: number;
|
|
592
589
|
views: number;
|
|
593
590
|
shares: number;
|
|
591
|
+
rating: number;
|
|
592
|
+
ratingCount: number;
|
|
593
|
+
reviewCount: number;
|
|
594
594
|
hostId: {
|
|
595
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
596
|
+
country: string;
|
|
597
|
+
rating: number;
|
|
598
|
+
ratingCount: number;
|
|
599
|
+
reviewCount: number;
|
|
595
600
|
username: string;
|
|
596
601
|
firstName: string;
|
|
597
602
|
lastName: string;
|
|
@@ -599,17 +604,17 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
599
604
|
password: string;
|
|
600
605
|
phoneNumber: string;
|
|
601
606
|
countryCode: string;
|
|
602
|
-
country: string;
|
|
603
607
|
gender: "male" | "female" | "other";
|
|
604
|
-
rating: number;
|
|
605
|
-
ratingCount: number;
|
|
606
|
-
reviewCount: number;
|
|
607
608
|
joinedDate: Date;
|
|
608
609
|
isActive: boolean;
|
|
609
610
|
lastActive: Date;
|
|
610
611
|
verifiedEmail: boolean;
|
|
611
612
|
verifiedMobile: boolean;
|
|
612
|
-
|
|
613
|
+
id?: string | undefined;
|
|
614
|
+
skills?: {
|
|
615
|
+
skill: string;
|
|
616
|
+
skillExpertise: number;
|
|
617
|
+
}[] | undefined;
|
|
613
618
|
location?: string | undefined;
|
|
614
619
|
pinCode?: string | undefined;
|
|
615
620
|
dob?: Date | undefined;
|
|
@@ -623,14 +628,9 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
623
628
|
verifiedIdCard?: boolean | undefined;
|
|
624
629
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
625
630
|
userResume?: string | undefined;
|
|
626
|
-
skills?: {
|
|
627
|
-
skill: string;
|
|
628
|
-
skillExpertise: number;
|
|
629
|
-
}[] | undefined;
|
|
630
631
|
wishlist?: string[] | undefined;
|
|
631
632
|
favBlogs?: string[] | undefined;
|
|
632
633
|
favPackages?: string[] | undefined;
|
|
633
|
-
id?: string | undefined;
|
|
634
634
|
selfie?: string | undefined;
|
|
635
635
|
selfieAction?: string | undefined;
|
|
636
636
|
jobCount?: number | undefined;
|
|
@@ -639,12 +639,12 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
639
639
|
panCard?: string | undefined;
|
|
640
640
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
641
641
|
properties?: {
|
|
642
|
-
country: string;
|
|
643
642
|
type: string;
|
|
644
643
|
name: string;
|
|
645
|
-
address: string;
|
|
646
644
|
city: string;
|
|
647
645
|
state: string;
|
|
646
|
+
country: string;
|
|
647
|
+
address: string;
|
|
648
648
|
pinCode?: string | undefined;
|
|
649
649
|
registrationNumber?: string | undefined;
|
|
650
650
|
}[] | undefined;
|
|
@@ -677,10 +677,8 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
677
677
|
employeeLeft: boolean;
|
|
678
678
|
securityPaidToHost: boolean;
|
|
679
679
|
};
|
|
680
|
-
address?: string | undefined;
|
|
681
|
-
createdAt?: Date | undefined;
|
|
682
|
-
updatedAt?: Date | undefined;
|
|
683
680
|
categoryId?: string | undefined;
|
|
681
|
+
address?: string | undefined;
|
|
684
682
|
workMode?: "onsite" | "remote" | "hybrid" | undefined;
|
|
685
683
|
compensation?: {
|
|
686
684
|
type: "free" | "stipend" | "salary" | "project-based";
|
|
@@ -698,11 +696,13 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
698
696
|
pendingApplicationCount?: number | undefined;
|
|
699
697
|
hostingType?: string | undefined;
|
|
700
698
|
applicationObservers?: {
|
|
699
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
701
700
|
username: string;
|
|
702
701
|
email: string;
|
|
703
702
|
phoneNumber: string;
|
|
704
703
|
countryCode: string;
|
|
705
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
706
704
|
}[] | undefined;
|
|
705
|
+
createdAt?: Date | undefined;
|
|
706
|
+
updatedAt?: Date | undefined;
|
|
707
707
|
}>;
|
|
708
708
|
//# sourceMappingURL=job.d.ts.map
|