@myrjfa/state 2.1.3 → 2.1.5
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 +10 -8
- 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/notifications.d.ts +20 -15
- package/dist/lib/models/notifications.d.ts.map +1 -1
- package/dist/lib/models/notifications.js +4 -1
- 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 +48 -48
- package/package.json +1 -1
|
@@ -240,21 +240,21 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
240
240
|
pinCode: z.ZodOptional<z.ZodString>;
|
|
241
241
|
registrationNumber: z.ZodOptional<z.ZodString>;
|
|
242
242
|
}, "strip", z.ZodTypeAny, {
|
|
243
|
-
country: string;
|
|
244
243
|
type: string;
|
|
245
244
|
name: string;
|
|
246
|
-
address: string;
|
|
247
245
|
city: string;
|
|
248
246
|
state: string;
|
|
247
|
+
country: string;
|
|
248
|
+
address: string;
|
|
249
249
|
pinCode?: string | undefined;
|
|
250
250
|
registrationNumber?: string | undefined;
|
|
251
251
|
}, {
|
|
252
|
-
country: string;
|
|
253
252
|
type: string;
|
|
254
253
|
name: string;
|
|
255
|
-
address: string;
|
|
256
254
|
city: string;
|
|
257
255
|
state: string;
|
|
256
|
+
country: string;
|
|
257
|
+
address: string;
|
|
258
258
|
pinCode?: string | undefined;
|
|
259
259
|
registrationNumber?: string | undefined;
|
|
260
260
|
}>, "many">>;
|
|
@@ -264,6 +264,11 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
264
264
|
businessApiVerificationStatus: z.ZodOptional<z.ZodEnum<["pending", "verified", "failed"]>>;
|
|
265
265
|
businessVerificationDenialReason: z.ZodOptional<z.ZodString>;
|
|
266
266
|
}, "strict", z.ZodTypeAny, {
|
|
267
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
268
|
+
country: string;
|
|
269
|
+
rating: number;
|
|
270
|
+
ratingCount: number;
|
|
271
|
+
reviewCount: number;
|
|
267
272
|
username: string;
|
|
268
273
|
firstName: string;
|
|
269
274
|
lastName: string;
|
|
@@ -271,17 +276,17 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
271
276
|
password: string;
|
|
272
277
|
phoneNumber: string;
|
|
273
278
|
countryCode: string;
|
|
274
|
-
country: string;
|
|
275
279
|
gender: "male" | "female" | "other";
|
|
276
|
-
rating: number;
|
|
277
|
-
ratingCount: number;
|
|
278
|
-
reviewCount: number;
|
|
279
280
|
joinedDate: Date;
|
|
280
281
|
isActive: boolean;
|
|
281
282
|
lastActive: Date;
|
|
282
283
|
verifiedEmail: boolean;
|
|
283
284
|
verifiedMobile: boolean;
|
|
284
|
-
|
|
285
|
+
id?: string | undefined;
|
|
286
|
+
skills?: {
|
|
287
|
+
skill: string;
|
|
288
|
+
skillExpertise: number;
|
|
289
|
+
}[] | undefined;
|
|
285
290
|
location?: string | undefined;
|
|
286
291
|
pinCode?: string | undefined;
|
|
287
292
|
dob?: Date | undefined;
|
|
@@ -295,14 +300,9 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
295
300
|
verifiedIdCard?: boolean | undefined;
|
|
296
301
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
297
302
|
userResume?: string | undefined;
|
|
298
|
-
skills?: {
|
|
299
|
-
skill: string;
|
|
300
|
-
skillExpertise: number;
|
|
301
|
-
}[] | undefined;
|
|
302
303
|
wishlist?: string[] | undefined;
|
|
303
304
|
favBlogs?: string[] | undefined;
|
|
304
305
|
favPackages?: string[] | undefined;
|
|
305
|
-
id?: string | undefined;
|
|
306
306
|
selfie?: string | undefined;
|
|
307
307
|
selfieAction?: string | undefined;
|
|
308
308
|
jobCount?: number | undefined;
|
|
@@ -311,12 +311,12 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
311
311
|
panCard?: string | undefined;
|
|
312
312
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
313
313
|
properties?: {
|
|
314
|
-
country: string;
|
|
315
314
|
type: string;
|
|
316
315
|
name: string;
|
|
317
|
-
address: string;
|
|
318
316
|
city: string;
|
|
319
317
|
state: string;
|
|
318
|
+
country: string;
|
|
319
|
+
address: string;
|
|
320
320
|
pinCode?: string | undefined;
|
|
321
321
|
registrationNumber?: string | undefined;
|
|
322
322
|
}[] | undefined;
|
|
@@ -326,6 +326,11 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
326
326
|
businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
|
|
327
327
|
businessVerificationDenialReason?: string | undefined;
|
|
328
328
|
}, {
|
|
329
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
330
|
+
country: string;
|
|
331
|
+
rating: number;
|
|
332
|
+
ratingCount: number;
|
|
333
|
+
reviewCount: number;
|
|
329
334
|
username: string;
|
|
330
335
|
firstName: string;
|
|
331
336
|
lastName: string;
|
|
@@ -333,17 +338,17 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
333
338
|
password: string;
|
|
334
339
|
phoneNumber: string;
|
|
335
340
|
countryCode: string;
|
|
336
|
-
country: string;
|
|
337
341
|
gender: "male" | "female" | "other";
|
|
338
|
-
rating: number;
|
|
339
|
-
ratingCount: number;
|
|
340
|
-
reviewCount: number;
|
|
341
342
|
joinedDate: Date;
|
|
342
343
|
isActive: boolean;
|
|
343
344
|
lastActive: Date;
|
|
344
345
|
verifiedEmail: boolean;
|
|
345
346
|
verifiedMobile: boolean;
|
|
346
|
-
|
|
347
|
+
id?: string | undefined;
|
|
348
|
+
skills?: {
|
|
349
|
+
skill: string;
|
|
350
|
+
skillExpertise: number;
|
|
351
|
+
}[] | undefined;
|
|
347
352
|
location?: string | undefined;
|
|
348
353
|
pinCode?: string | undefined;
|
|
349
354
|
dob?: Date | undefined;
|
|
@@ -357,14 +362,9 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
357
362
|
verifiedIdCard?: boolean | undefined;
|
|
358
363
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
359
364
|
userResume?: string | undefined;
|
|
360
|
-
skills?: {
|
|
361
|
-
skill: string;
|
|
362
|
-
skillExpertise: number;
|
|
363
|
-
}[] | undefined;
|
|
364
365
|
wishlist?: string[] | undefined;
|
|
365
366
|
favBlogs?: string[] | undefined;
|
|
366
367
|
favPackages?: string[] | undefined;
|
|
367
|
-
id?: string | undefined;
|
|
368
368
|
selfie?: string | undefined;
|
|
369
369
|
selfieAction?: string | undefined;
|
|
370
370
|
jobCount?: number | undefined;
|
|
@@ -373,12 +373,12 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
373
373
|
panCard?: string | undefined;
|
|
374
374
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
375
375
|
properties?: {
|
|
376
|
-
country: string;
|
|
377
376
|
type: string;
|
|
378
377
|
name: string;
|
|
379
|
-
address: string;
|
|
380
378
|
city: string;
|
|
381
379
|
state: string;
|
|
380
|
+
country: string;
|
|
381
|
+
address: string;
|
|
382
382
|
pinCode?: string | undefined;
|
|
383
383
|
registrationNumber?: string | undefined;
|
|
384
384
|
}[] | undefined;
|
|
@@ -395,36 +395,33 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
395
395
|
phoneNumber: z.ZodString;
|
|
396
396
|
email: z.ZodString;
|
|
397
397
|
}, "strip", z.ZodTypeAny, {
|
|
398
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
398
399
|
username: string;
|
|
399
400
|
email: string;
|
|
400
401
|
phoneNumber: string;
|
|
401
402
|
countryCode: string;
|
|
402
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
403
403
|
}, {
|
|
404
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
404
405
|
username: string;
|
|
405
406
|
email: string;
|
|
406
407
|
phoneNumber: string;
|
|
407
408
|
countryCode: string;
|
|
408
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
409
409
|
}>, "many">>;
|
|
410
410
|
status: z.ZodEnum<["draft", "archived", "pending", "open", "closed", "denied", "deleted"]>;
|
|
411
411
|
adminApproval: z.ZodBoolean;
|
|
412
412
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
413
413
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
414
414
|
}, "strict", z.ZodTypeAny, {
|
|
415
|
-
|
|
416
|
-
status: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | "deleted";
|
|
417
|
-
rating: number;
|
|
418
|
-
ratingCount: number;
|
|
419
|
-
reviewCount: number;
|
|
420
|
-
skills: string[];
|
|
421
|
-
city: string;
|
|
422
|
-
state: string;
|
|
423
|
-
title: string;
|
|
424
|
-
description: string;
|
|
415
|
+
status: "draft" | "archived" | "pending" | "open" | "closed" | "denied" | "deleted";
|
|
425
416
|
slug: string;
|
|
426
417
|
opportunityType: "volunteer" | "internship" | "freelance" | "job";
|
|
418
|
+
title: string;
|
|
419
|
+
skills: string[];
|
|
420
|
+
description: string;
|
|
427
421
|
images: string[];
|
|
422
|
+
city: string;
|
|
423
|
+
state: string;
|
|
424
|
+
country: string;
|
|
428
425
|
availableFrom: Date;
|
|
429
426
|
minDuration: number;
|
|
430
427
|
maxDuration: number;
|
|
@@ -439,7 +436,15 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
439
436
|
applicationCount: number;
|
|
440
437
|
views: number;
|
|
441
438
|
shares: number;
|
|
439
|
+
rating: number;
|
|
440
|
+
ratingCount: number;
|
|
441
|
+
reviewCount: number;
|
|
442
442
|
hostId: {
|
|
443
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
444
|
+
country: string;
|
|
445
|
+
rating: number;
|
|
446
|
+
ratingCount: number;
|
|
447
|
+
reviewCount: number;
|
|
443
448
|
username: string;
|
|
444
449
|
firstName: string;
|
|
445
450
|
lastName: string;
|
|
@@ -447,17 +452,17 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
447
452
|
password: string;
|
|
448
453
|
phoneNumber: string;
|
|
449
454
|
countryCode: string;
|
|
450
|
-
country: string;
|
|
451
455
|
gender: "male" | "female" | "other";
|
|
452
|
-
rating: number;
|
|
453
|
-
ratingCount: number;
|
|
454
|
-
reviewCount: number;
|
|
455
456
|
joinedDate: Date;
|
|
456
457
|
isActive: boolean;
|
|
457
458
|
lastActive: Date;
|
|
458
459
|
verifiedEmail: boolean;
|
|
459
460
|
verifiedMobile: boolean;
|
|
460
|
-
|
|
461
|
+
id?: string | undefined;
|
|
462
|
+
skills?: {
|
|
463
|
+
skill: string;
|
|
464
|
+
skillExpertise: number;
|
|
465
|
+
}[] | undefined;
|
|
461
466
|
location?: string | undefined;
|
|
462
467
|
pinCode?: string | undefined;
|
|
463
468
|
dob?: Date | undefined;
|
|
@@ -471,14 +476,9 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
471
476
|
verifiedIdCard?: boolean | undefined;
|
|
472
477
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
473
478
|
userResume?: string | undefined;
|
|
474
|
-
skills?: {
|
|
475
|
-
skill: string;
|
|
476
|
-
skillExpertise: number;
|
|
477
|
-
}[] | undefined;
|
|
478
479
|
wishlist?: string[] | undefined;
|
|
479
480
|
favBlogs?: string[] | undefined;
|
|
480
481
|
favPackages?: string[] | undefined;
|
|
481
|
-
id?: string | undefined;
|
|
482
482
|
selfie?: string | undefined;
|
|
483
483
|
selfieAction?: string | undefined;
|
|
484
484
|
jobCount?: number | undefined;
|
|
@@ -487,12 +487,12 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
487
487
|
panCard?: string | undefined;
|
|
488
488
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
489
489
|
properties?: {
|
|
490
|
-
country: string;
|
|
491
490
|
type: string;
|
|
492
491
|
name: string;
|
|
493
|
-
address: string;
|
|
494
492
|
city: string;
|
|
495
493
|
state: string;
|
|
494
|
+
country: string;
|
|
495
|
+
address: string;
|
|
496
496
|
pinCode?: string | undefined;
|
|
497
497
|
registrationNumber?: string | undefined;
|
|
498
498
|
}[] | undefined;
|
|
@@ -503,10 +503,8 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
503
503
|
businessVerificationDenialReason?: string | undefined;
|
|
504
504
|
};
|
|
505
505
|
adminApproval: boolean;
|
|
506
|
-
address?: string | undefined;
|
|
507
|
-
createdAt?: Date | undefined;
|
|
508
|
-
updatedAt?: Date | undefined;
|
|
509
506
|
categoryId?: string | undefined;
|
|
507
|
+
address?: string | undefined;
|
|
510
508
|
workMode?: "onsite" | "remote" | "hybrid" | undefined;
|
|
511
509
|
compensation?: {
|
|
512
510
|
type: "free" | "stipend" | "salary" | "project-based";
|
|
@@ -524,26 +522,25 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
524
522
|
pendingApplicationCount?: number | undefined;
|
|
525
523
|
hostingType?: string | undefined;
|
|
526
524
|
applicationObservers?: {
|
|
525
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
527
526
|
username: string;
|
|
528
527
|
email: string;
|
|
529
528
|
phoneNumber: string;
|
|
530
529
|
countryCode: string;
|
|
531
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
532
530
|
}[] | undefined;
|
|
531
|
+
createdAt?: Date | undefined;
|
|
532
|
+
updatedAt?: Date | undefined;
|
|
533
533
|
}, {
|
|
534
|
-
|
|
535
|
-
status: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | "deleted";
|
|
536
|
-
rating: number;
|
|
537
|
-
ratingCount: number;
|
|
538
|
-
reviewCount: number;
|
|
539
|
-
skills: string[];
|
|
540
|
-
city: string;
|
|
541
|
-
state: string;
|
|
542
|
-
title: string;
|
|
543
|
-
description: string;
|
|
534
|
+
status: "draft" | "archived" | "pending" | "open" | "closed" | "denied" | "deleted";
|
|
544
535
|
slug: string;
|
|
545
536
|
opportunityType: "volunteer" | "internship" | "freelance" | "job";
|
|
537
|
+
title: string;
|
|
538
|
+
skills: string[];
|
|
539
|
+
description: string;
|
|
546
540
|
images: string[];
|
|
541
|
+
city: string;
|
|
542
|
+
state: string;
|
|
543
|
+
country: string;
|
|
547
544
|
availableFrom: Date;
|
|
548
545
|
minDuration: number;
|
|
549
546
|
maxDuration: number;
|
|
@@ -558,7 +555,15 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
558
555
|
applicationCount: number;
|
|
559
556
|
views: number;
|
|
560
557
|
shares: number;
|
|
558
|
+
rating: number;
|
|
559
|
+
ratingCount: number;
|
|
560
|
+
reviewCount: number;
|
|
561
561
|
hostId: {
|
|
562
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
563
|
+
country: string;
|
|
564
|
+
rating: number;
|
|
565
|
+
ratingCount: number;
|
|
566
|
+
reviewCount: number;
|
|
562
567
|
username: string;
|
|
563
568
|
firstName: string;
|
|
564
569
|
lastName: string;
|
|
@@ -566,17 +571,17 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
566
571
|
password: string;
|
|
567
572
|
phoneNumber: string;
|
|
568
573
|
countryCode: string;
|
|
569
|
-
country: string;
|
|
570
574
|
gender: "male" | "female" | "other";
|
|
571
|
-
rating: number;
|
|
572
|
-
ratingCount: number;
|
|
573
|
-
reviewCount: number;
|
|
574
575
|
joinedDate: Date;
|
|
575
576
|
isActive: boolean;
|
|
576
577
|
lastActive: Date;
|
|
577
578
|
verifiedEmail: boolean;
|
|
578
579
|
verifiedMobile: boolean;
|
|
579
|
-
|
|
580
|
+
id?: string | undefined;
|
|
581
|
+
skills?: {
|
|
582
|
+
skill: string;
|
|
583
|
+
skillExpertise: number;
|
|
584
|
+
}[] | undefined;
|
|
580
585
|
location?: string | undefined;
|
|
581
586
|
pinCode?: string | undefined;
|
|
582
587
|
dob?: Date | undefined;
|
|
@@ -590,14 +595,9 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
590
595
|
verifiedIdCard?: boolean | undefined;
|
|
591
596
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
592
597
|
userResume?: string | undefined;
|
|
593
|
-
skills?: {
|
|
594
|
-
skill: string;
|
|
595
|
-
skillExpertise: number;
|
|
596
|
-
}[] | undefined;
|
|
597
598
|
wishlist?: string[] | undefined;
|
|
598
599
|
favBlogs?: string[] | undefined;
|
|
599
600
|
favPackages?: string[] | undefined;
|
|
600
|
-
id?: string | undefined;
|
|
601
601
|
selfie?: string | undefined;
|
|
602
602
|
selfieAction?: string | undefined;
|
|
603
603
|
jobCount?: number | undefined;
|
|
@@ -606,12 +606,12 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
606
606
|
panCard?: string | undefined;
|
|
607
607
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
608
608
|
properties?: {
|
|
609
|
-
country: string;
|
|
610
609
|
type: string;
|
|
611
610
|
name: string;
|
|
612
|
-
address: string;
|
|
613
611
|
city: string;
|
|
614
612
|
state: string;
|
|
613
|
+
country: string;
|
|
614
|
+
address: string;
|
|
615
615
|
pinCode?: string | undefined;
|
|
616
616
|
registrationNumber?: string | undefined;
|
|
617
617
|
}[] | undefined;
|
|
@@ -622,10 +622,8 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
622
622
|
businessVerificationDenialReason?: string | undefined;
|
|
623
623
|
};
|
|
624
624
|
adminApproval: boolean;
|
|
625
|
-
address?: string | undefined;
|
|
626
|
-
createdAt?: Date | undefined;
|
|
627
|
-
updatedAt?: Date | undefined;
|
|
628
625
|
categoryId?: string | undefined;
|
|
626
|
+
address?: string | undefined;
|
|
629
627
|
workMode?: "onsite" | "remote" | "hybrid" | undefined;
|
|
630
628
|
compensation?: {
|
|
631
629
|
type: "free" | "stipend" | "salary" | "project-based";
|
|
@@ -643,12 +641,14 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
643
641
|
pendingApplicationCount?: number | undefined;
|
|
644
642
|
hostingType?: string | undefined;
|
|
645
643
|
applicationObservers?: {
|
|
644
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
646
645
|
username: string;
|
|
647
646
|
email: string;
|
|
648
647
|
phoneNumber: string;
|
|
649
648
|
countryCode: string;
|
|
650
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
651
649
|
}[] | undefined;
|
|
650
|
+
createdAt?: Date | undefined;
|
|
651
|
+
updatedAt?: Date | undefined;
|
|
652
652
|
}>;
|
|
653
653
|
export type Opportunity = z.infer<typeof OpportunitySchema>;
|
|
654
654
|
export type OppMetaData = {
|