@myrjfa/state 2.1.4 → 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 +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
|
@@ -118,21 +118,21 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
118
118
|
pinCode: z.ZodOptional<z.ZodString>;
|
|
119
119
|
registrationNumber: z.ZodOptional<z.ZodString>;
|
|
120
120
|
}, "strip", z.ZodTypeAny, {
|
|
121
|
-
country: string;
|
|
122
121
|
type: string;
|
|
123
122
|
name: string;
|
|
124
|
-
address: string;
|
|
125
123
|
city: string;
|
|
126
124
|
state: string;
|
|
125
|
+
country: string;
|
|
126
|
+
address: string;
|
|
127
127
|
pinCode?: string | undefined;
|
|
128
128
|
registrationNumber?: string | undefined;
|
|
129
129
|
}, {
|
|
130
|
-
country: string;
|
|
131
130
|
type: string;
|
|
132
131
|
name: string;
|
|
133
|
-
address: string;
|
|
134
132
|
city: string;
|
|
135
133
|
state: string;
|
|
134
|
+
country: string;
|
|
135
|
+
address: string;
|
|
136
136
|
pinCode?: string | undefined;
|
|
137
137
|
registrationNumber?: string | undefined;
|
|
138
138
|
}>, "many">>;
|
|
@@ -142,6 +142,11 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
142
142
|
businessApiVerificationStatus: z.ZodOptional<z.ZodEnum<["pending", "verified", "failed"]>>;
|
|
143
143
|
businessVerificationDenialReason: z.ZodOptional<z.ZodString>;
|
|
144
144
|
}, "strict", z.ZodTypeAny, {
|
|
145
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
146
|
+
country: string;
|
|
147
|
+
rating: number;
|
|
148
|
+
ratingCount: number;
|
|
149
|
+
reviewCount: number;
|
|
145
150
|
username: string;
|
|
146
151
|
firstName: string;
|
|
147
152
|
lastName: string;
|
|
@@ -149,17 +154,17 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
149
154
|
password: string;
|
|
150
155
|
phoneNumber: string;
|
|
151
156
|
countryCode: string;
|
|
152
|
-
country: string;
|
|
153
157
|
gender: "male" | "female" | "other";
|
|
154
|
-
rating: number;
|
|
155
|
-
ratingCount: number;
|
|
156
|
-
reviewCount: number;
|
|
157
158
|
joinedDate: Date;
|
|
158
159
|
isActive: boolean;
|
|
159
160
|
lastActive: Date;
|
|
160
161
|
verifiedEmail: boolean;
|
|
161
162
|
verifiedMobile: boolean;
|
|
162
|
-
|
|
163
|
+
id?: string | undefined;
|
|
164
|
+
skills?: {
|
|
165
|
+
skill: string;
|
|
166
|
+
skillExpertise: number;
|
|
167
|
+
}[] | undefined;
|
|
163
168
|
location?: string | undefined;
|
|
164
169
|
pinCode?: string | undefined;
|
|
165
170
|
dob?: Date | undefined;
|
|
@@ -173,14 +178,9 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
173
178
|
verifiedIdCard?: boolean | undefined;
|
|
174
179
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
175
180
|
userResume?: string | undefined;
|
|
176
|
-
skills?: {
|
|
177
|
-
skill: string;
|
|
178
|
-
skillExpertise: number;
|
|
179
|
-
}[] | undefined;
|
|
180
181
|
wishlist?: string[] | undefined;
|
|
181
182
|
favBlogs?: string[] | undefined;
|
|
182
183
|
favPackages?: string[] | undefined;
|
|
183
|
-
id?: string | undefined;
|
|
184
184
|
selfie?: string | undefined;
|
|
185
185
|
selfieAction?: string | undefined;
|
|
186
186
|
jobCount?: number | undefined;
|
|
@@ -189,12 +189,12 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
189
189
|
panCard?: string | undefined;
|
|
190
190
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
191
191
|
properties?: {
|
|
192
|
-
country: string;
|
|
193
192
|
type: string;
|
|
194
193
|
name: string;
|
|
195
|
-
address: string;
|
|
196
194
|
city: string;
|
|
197
195
|
state: string;
|
|
196
|
+
country: string;
|
|
197
|
+
address: string;
|
|
198
198
|
pinCode?: string | undefined;
|
|
199
199
|
registrationNumber?: string | undefined;
|
|
200
200
|
}[] | undefined;
|
|
@@ -204,6 +204,11 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
204
204
|
businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
|
|
205
205
|
businessVerificationDenialReason?: string | undefined;
|
|
206
206
|
}, {
|
|
207
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
208
|
+
country: string;
|
|
209
|
+
rating: number;
|
|
210
|
+
ratingCount: number;
|
|
211
|
+
reviewCount: number;
|
|
207
212
|
username: string;
|
|
208
213
|
firstName: string;
|
|
209
214
|
lastName: string;
|
|
@@ -211,17 +216,17 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
211
216
|
password: string;
|
|
212
217
|
phoneNumber: string;
|
|
213
218
|
countryCode: string;
|
|
214
|
-
country: string;
|
|
215
219
|
gender: "male" | "female" | "other";
|
|
216
|
-
rating: number;
|
|
217
|
-
ratingCount: number;
|
|
218
|
-
reviewCount: number;
|
|
219
220
|
joinedDate: Date;
|
|
220
221
|
isActive: boolean;
|
|
221
222
|
lastActive: Date;
|
|
222
223
|
verifiedEmail: boolean;
|
|
223
224
|
verifiedMobile: boolean;
|
|
224
|
-
|
|
225
|
+
id?: string | undefined;
|
|
226
|
+
skills?: {
|
|
227
|
+
skill: string;
|
|
228
|
+
skillExpertise: number;
|
|
229
|
+
}[] | undefined;
|
|
225
230
|
location?: string | undefined;
|
|
226
231
|
pinCode?: string | undefined;
|
|
227
232
|
dob?: Date | undefined;
|
|
@@ -235,14 +240,9 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
235
240
|
verifiedIdCard?: boolean | undefined;
|
|
236
241
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
237
242
|
userResume?: string | undefined;
|
|
238
|
-
skills?: {
|
|
239
|
-
skill: string;
|
|
240
|
-
skillExpertise: number;
|
|
241
|
-
}[] | undefined;
|
|
242
243
|
wishlist?: string[] | undefined;
|
|
243
244
|
favBlogs?: string[] | undefined;
|
|
244
245
|
favPackages?: string[] | undefined;
|
|
245
|
-
id?: string | undefined;
|
|
246
246
|
selfie?: string | undefined;
|
|
247
247
|
selfieAction?: string | undefined;
|
|
248
248
|
jobCount?: number | undefined;
|
|
@@ -251,12 +251,12 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
251
251
|
panCard?: string | undefined;
|
|
252
252
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
253
253
|
properties?: {
|
|
254
|
-
country: string;
|
|
255
254
|
type: string;
|
|
256
255
|
name: string;
|
|
257
|
-
address: string;
|
|
258
256
|
city: string;
|
|
259
257
|
state: string;
|
|
258
|
+
country: string;
|
|
259
|
+
address: string;
|
|
260
260
|
pinCode?: string | undefined;
|
|
261
261
|
registrationNumber?: string | undefined;
|
|
262
262
|
}[] | undefined;
|
|
@@ -273,17 +273,17 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
273
273
|
phoneNumber: z.ZodString;
|
|
274
274
|
email: z.ZodString;
|
|
275
275
|
}, "strip", z.ZodTypeAny, {
|
|
276
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
276
277
|
username: string;
|
|
277
278
|
email: string;
|
|
278
279
|
phoneNumber: string;
|
|
279
280
|
countryCode: string;
|
|
280
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
281
281
|
}, {
|
|
282
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
282
283
|
username: string;
|
|
283
284
|
email: string;
|
|
284
285
|
phoneNumber: string;
|
|
285
286
|
countryCode: string;
|
|
286
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
287
287
|
}>, "many">>;
|
|
288
288
|
status: z.ZodEnum<["draft", "archived", "pending", "open", "closed", "denied", "deleted"]>;
|
|
289
289
|
adminApproval: z.ZodBoolean;
|
|
@@ -321,19 +321,16 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
321
321
|
payoutToHost: number;
|
|
322
322
|
}>;
|
|
323
323
|
}, "strict", z.ZodTypeAny, {
|
|
324
|
-
|
|
325
|
-
status: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | "deleted";
|
|
326
|
-
rating: number;
|
|
327
|
-
ratingCount: number;
|
|
328
|
-
reviewCount: number;
|
|
329
|
-
skills: string[];
|
|
330
|
-
city: string;
|
|
331
|
-
state: string;
|
|
332
|
-
title: string;
|
|
333
|
-
description: string;
|
|
324
|
+
status: "draft" | "archived" | "pending" | "open" | "closed" | "denied" | "deleted";
|
|
334
325
|
slug: string;
|
|
335
326
|
opportunityType: "internship";
|
|
327
|
+
title: string;
|
|
328
|
+
skills: string[];
|
|
329
|
+
description: string;
|
|
336
330
|
images: string[];
|
|
331
|
+
city: string;
|
|
332
|
+
state: string;
|
|
333
|
+
country: string;
|
|
337
334
|
compensation: {
|
|
338
335
|
type: "free" | "stipend" | "salary" | "project-based";
|
|
339
336
|
currency: string;
|
|
@@ -354,7 +351,15 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
354
351
|
applicationCount: number;
|
|
355
352
|
views: number;
|
|
356
353
|
shares: number;
|
|
354
|
+
rating: number;
|
|
355
|
+
ratingCount: number;
|
|
356
|
+
reviewCount: number;
|
|
357
357
|
hostId: {
|
|
358
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
359
|
+
country: string;
|
|
360
|
+
rating: number;
|
|
361
|
+
ratingCount: number;
|
|
362
|
+
reviewCount: number;
|
|
358
363
|
username: string;
|
|
359
364
|
firstName: string;
|
|
360
365
|
lastName: string;
|
|
@@ -362,17 +367,17 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
362
367
|
password: string;
|
|
363
368
|
phoneNumber: string;
|
|
364
369
|
countryCode: string;
|
|
365
|
-
country: string;
|
|
366
370
|
gender: "male" | "female" | "other";
|
|
367
|
-
rating: number;
|
|
368
|
-
ratingCount: number;
|
|
369
|
-
reviewCount: number;
|
|
370
371
|
joinedDate: Date;
|
|
371
372
|
isActive: boolean;
|
|
372
373
|
lastActive: Date;
|
|
373
374
|
verifiedEmail: boolean;
|
|
374
375
|
verifiedMobile: boolean;
|
|
375
|
-
|
|
376
|
+
id?: string | undefined;
|
|
377
|
+
skills?: {
|
|
378
|
+
skill: string;
|
|
379
|
+
skillExpertise: number;
|
|
380
|
+
}[] | undefined;
|
|
376
381
|
location?: string | undefined;
|
|
377
382
|
pinCode?: string | undefined;
|
|
378
383
|
dob?: Date | undefined;
|
|
@@ -386,14 +391,9 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
386
391
|
verifiedIdCard?: boolean | undefined;
|
|
387
392
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
388
393
|
userResume?: string | undefined;
|
|
389
|
-
skills?: {
|
|
390
|
-
skill: string;
|
|
391
|
-
skillExpertise: number;
|
|
392
|
-
}[] | undefined;
|
|
393
394
|
wishlist?: string[] | undefined;
|
|
394
395
|
favBlogs?: string[] | undefined;
|
|
395
396
|
favPackages?: string[] | undefined;
|
|
396
|
-
id?: string | undefined;
|
|
397
397
|
selfie?: string | undefined;
|
|
398
398
|
selfieAction?: string | undefined;
|
|
399
399
|
jobCount?: number | undefined;
|
|
@@ -402,12 +402,12 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
402
402
|
panCard?: string | undefined;
|
|
403
403
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
404
404
|
properties?: {
|
|
405
|
-
country: string;
|
|
406
405
|
type: string;
|
|
407
406
|
name: string;
|
|
408
|
-
address: string;
|
|
409
407
|
city: string;
|
|
410
408
|
state: string;
|
|
409
|
+
country: string;
|
|
410
|
+
address: string;
|
|
411
411
|
pinCode?: string | undefined;
|
|
412
412
|
registrationNumber?: string | undefined;
|
|
413
413
|
}[] | undefined;
|
|
@@ -423,10 +423,8 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
423
423
|
commissionAmount: number;
|
|
424
424
|
payoutToHost: number;
|
|
425
425
|
};
|
|
426
|
-
address?: string | undefined;
|
|
427
|
-
createdAt?: Date | undefined;
|
|
428
|
-
updatedAt?: Date | undefined;
|
|
429
426
|
categoryId?: string | undefined;
|
|
427
|
+
address?: string | undefined;
|
|
430
428
|
workMode?: "onsite" | "remote" | "hybrid" | undefined;
|
|
431
429
|
bondPlan?: {
|
|
432
430
|
enabled: boolean;
|
|
@@ -438,26 +436,25 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
438
436
|
pendingApplicationCount?: number | undefined;
|
|
439
437
|
hostingType?: string | undefined;
|
|
440
438
|
applicationObservers?: {
|
|
439
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
441
440
|
username: string;
|
|
442
441
|
email: string;
|
|
443
442
|
phoneNumber: string;
|
|
444
443
|
countryCode: string;
|
|
445
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
446
444
|
}[] | undefined;
|
|
445
|
+
createdAt?: Date | undefined;
|
|
446
|
+
updatedAt?: Date | undefined;
|
|
447
447
|
}, {
|
|
448
|
-
|
|
449
|
-
status: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | "deleted";
|
|
450
|
-
rating: number;
|
|
451
|
-
ratingCount: number;
|
|
452
|
-
reviewCount: number;
|
|
453
|
-
skills: string[];
|
|
454
|
-
city: string;
|
|
455
|
-
state: string;
|
|
456
|
-
title: string;
|
|
457
|
-
description: string;
|
|
448
|
+
status: "draft" | "archived" | "pending" | "open" | "closed" | "denied" | "deleted";
|
|
458
449
|
slug: string;
|
|
459
450
|
opportunityType: "internship";
|
|
451
|
+
title: string;
|
|
452
|
+
skills: string[];
|
|
453
|
+
description: string;
|
|
460
454
|
images: string[];
|
|
455
|
+
city: string;
|
|
456
|
+
state: string;
|
|
457
|
+
country: string;
|
|
461
458
|
compensation: {
|
|
462
459
|
type: "free" | "stipend" | "salary" | "project-based";
|
|
463
460
|
currency: string;
|
|
@@ -478,7 +475,15 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
478
475
|
applicationCount: number;
|
|
479
476
|
views: number;
|
|
480
477
|
shares: number;
|
|
478
|
+
rating: number;
|
|
479
|
+
ratingCount: number;
|
|
480
|
+
reviewCount: number;
|
|
481
481
|
hostId: {
|
|
482
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
483
|
+
country: string;
|
|
484
|
+
rating: number;
|
|
485
|
+
ratingCount: number;
|
|
486
|
+
reviewCount: number;
|
|
482
487
|
username: string;
|
|
483
488
|
firstName: string;
|
|
484
489
|
lastName: string;
|
|
@@ -486,17 +491,17 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
486
491
|
password: string;
|
|
487
492
|
phoneNumber: string;
|
|
488
493
|
countryCode: string;
|
|
489
|
-
country: string;
|
|
490
494
|
gender: "male" | "female" | "other";
|
|
491
|
-
rating: number;
|
|
492
|
-
ratingCount: number;
|
|
493
|
-
reviewCount: number;
|
|
494
495
|
joinedDate: Date;
|
|
495
496
|
isActive: boolean;
|
|
496
497
|
lastActive: Date;
|
|
497
498
|
verifiedEmail: boolean;
|
|
498
499
|
verifiedMobile: boolean;
|
|
499
|
-
|
|
500
|
+
id?: string | undefined;
|
|
501
|
+
skills?: {
|
|
502
|
+
skill: string;
|
|
503
|
+
skillExpertise: number;
|
|
504
|
+
}[] | undefined;
|
|
500
505
|
location?: string | undefined;
|
|
501
506
|
pinCode?: string | undefined;
|
|
502
507
|
dob?: Date | undefined;
|
|
@@ -510,14 +515,9 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
510
515
|
verifiedIdCard?: boolean | undefined;
|
|
511
516
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
512
517
|
userResume?: string | undefined;
|
|
513
|
-
skills?: {
|
|
514
|
-
skill: string;
|
|
515
|
-
skillExpertise: number;
|
|
516
|
-
}[] | undefined;
|
|
517
518
|
wishlist?: string[] | undefined;
|
|
518
519
|
favBlogs?: string[] | undefined;
|
|
519
520
|
favPackages?: string[] | undefined;
|
|
520
|
-
id?: string | undefined;
|
|
521
521
|
selfie?: string | undefined;
|
|
522
522
|
selfieAction?: string | undefined;
|
|
523
523
|
jobCount?: number | undefined;
|
|
@@ -526,12 +526,12 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
526
526
|
panCard?: string | undefined;
|
|
527
527
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
528
528
|
properties?: {
|
|
529
|
-
country: string;
|
|
530
529
|
type: string;
|
|
531
530
|
name: string;
|
|
532
|
-
address: string;
|
|
533
531
|
city: string;
|
|
534
532
|
state: string;
|
|
533
|
+
country: string;
|
|
534
|
+
address: string;
|
|
535
535
|
pinCode?: string | undefined;
|
|
536
536
|
registrationNumber?: string | undefined;
|
|
537
537
|
}[] | undefined;
|
|
@@ -547,10 +547,8 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
547
547
|
commissionAmount: number;
|
|
548
548
|
payoutToHost: number;
|
|
549
549
|
};
|
|
550
|
-
address?: string | undefined;
|
|
551
|
-
createdAt?: Date | undefined;
|
|
552
|
-
updatedAt?: Date | undefined;
|
|
553
550
|
categoryId?: string | undefined;
|
|
551
|
+
address?: string | undefined;
|
|
554
552
|
workMode?: "onsite" | "remote" | "hybrid" | undefined;
|
|
555
553
|
bondPlan?: {
|
|
556
554
|
enabled: boolean;
|
|
@@ -562,11 +560,13 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
562
560
|
pendingApplicationCount?: number | undefined;
|
|
563
561
|
hostingType?: string | undefined;
|
|
564
562
|
applicationObservers?: {
|
|
563
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
565
564
|
username: string;
|
|
566
565
|
email: string;
|
|
567
566
|
phoneNumber: string;
|
|
568
567
|
countryCode: string;
|
|
569
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
570
568
|
}[] | undefined;
|
|
569
|
+
createdAt?: Date | undefined;
|
|
570
|
+
updatedAt?: Date | undefined;
|
|
571
571
|
}>;
|
|
572
572
|
//# sourceMappingURL=internship.d.ts.map
|