@myrjfa/state 2.1.9 → 2.2.0
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/hooks/usePersistentDraftState.d.ts +20 -0
- package/dist/hooks/usePersistentDraftState.d.ts.map +1 -0
- package/dist/hooks/usePersistentDraftState.js +47 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/lib/actions/actions.d.ts +17 -19
- package/dist/lib/actions/actions.d.ts.map +1 -1
- package/dist/lib/actions/actions.js +24 -7
- package/dist/lib/actions/auth.d.ts +2 -2
- package/dist/lib/actions/auth.d.ts.map +1 -1
- package/dist/lib/actions/auth.js +9 -0
- package/dist/lib/actions/booking.js +2 -2
- package/dist/lib/actions/fetcher.js +2 -1
- package/dist/lib/actions.d.ts +556 -0
- package/dist/lib/actions.d.ts.map +1 -0
- package/dist/lib/actions.js +1327 -0
- package/dist/lib/adminDashboardActions.d.ts +61 -0
- package/dist/lib/adminDashboardActions.d.ts.map +1 -0
- package/dist/lib/adminDashboardActions.js +89 -0
- package/dist/lib/adventureActions.d.ts +102 -0
- package/dist/lib/adventureActions.d.ts.map +1 -0
- package/dist/lib/adventureActions.js +202 -0
- package/dist/lib/adventureDummyData.d.ts +3 -0
- package/dist/lib/adventureDummyData.d.ts.map +1 -0
- package/dist/lib/adventureDummyData.js +138 -0
- package/dist/lib/adventureFormPage.d.ts +39 -0
- package/dist/lib/adventureFormPage.d.ts.map +1 -0
- package/dist/lib/adventureFormPage.js +70 -0
- package/dist/lib/brandActions.d.ts +83 -0
- package/dist/lib/brandActions.d.ts.map +1 -0
- package/dist/lib/brandActions.js +28 -0
- package/dist/lib/companionActions.d.ts +174 -0
- package/dist/lib/companionActions.d.ts.map +1 -0
- package/dist/lib/companionActions.js +276 -0
- package/dist/lib/companionDummyData.d.ts +99 -0
- package/dist/lib/companionDummyData.d.ts.map +1 -0
- package/dist/lib/companionDummyData.js +203 -0
- package/dist/lib/destinations.d.ts +14 -0
- package/dist/lib/destinations.d.ts.map +1 -0
- package/dist/lib/destinations.js +203 -0
- package/dist/lib/entitySubmission.d.ts +21 -0
- package/dist/lib/entitySubmission.d.ts.map +1 -0
- package/dist/lib/entitySubmission.js +10 -0
- package/dist/lib/eventActions.d.ts +176 -0
- package/dist/lib/eventActions.d.ts.map +1 -0
- package/dist/lib/eventActions.js +222 -0
- package/dist/lib/eventFormPage.d.ts +49 -0
- package/dist/lib/eventFormPage.d.ts.map +1 -0
- package/dist/lib/eventFormPage.js +84 -0
- package/dist/lib/eventsDummyData.d.ts +54 -0
- package/dist/lib/eventsDummyData.d.ts.map +1 -0
- package/dist/lib/eventsDummyData.js +586 -0
- package/dist/lib/guideActions.d.ts +53 -0
- package/dist/lib/guideActions.d.ts.map +1 -0
- package/dist/lib/guideActions.js +127 -0
- package/dist/lib/guideDummyData.d.ts +3 -0
- package/dist/lib/guideDummyData.d.ts.map +1 -0
- package/dist/lib/guideDummyData.js +66 -0
- package/dist/lib/hooks/use-mobile.js +0 -1
- package/dist/lib/hooks/useChatSocket.js +0 -1
- package/dist/lib/hooks/useHostCalendarSelection.d.ts +51 -0
- package/dist/lib/hooks/useHostCalendarSelection.d.ts.map +1 -0
- package/dist/lib/hooks/useHostCalendarSelection.js +200 -0
- package/dist/lib/hostDashboardActions.d.ts +189 -0
- package/dist/lib/hostDashboardActions.d.ts.map +1 -0
- package/dist/lib/hostDashboardActions.js +400 -0
- package/dist/lib/imageUpload.d.ts +4 -0
- package/dist/lib/imageUpload.d.ts.map +1 -0
- package/dist/lib/imageUpload.js +36 -0
- package/dist/lib/locationActions.d.ts +141 -0
- package/dist/lib/locationActions.d.ts.map +1 -0
- package/dist/lib/locationActions.js +113 -0
- package/dist/lib/models/adventure.d.ts +26 -9
- package/dist/lib/models/adventure.d.ts.map +1 -1
- package/dist/lib/models/blog.d.ts +2 -2
- package/dist/lib/models/discount.d.ts +160 -0
- package/dist/lib/models/discount.d.ts.map +1 -0
- package/dist/lib/models/discount.js +106 -0
- package/dist/lib/models/enquiry.d.ts +34 -0
- package/dist/lib/models/enquiry.d.ts.map +1 -0
- package/dist/lib/models/enquiry.js +140 -0
- package/dist/lib/models/guide.d.ts +4 -3
- package/dist/lib/models/guide.d.ts.map +1 -1
- package/dist/lib/models/notifications.d.ts +12 -12
- package/dist/lib/models/opportunities/freelance.d.ts +76 -76
- package/dist/lib/models/opportunities/internship.d.ts +76 -76
- package/dist/lib/models/opportunities/job.d.ts +78 -78
- package/dist/lib/models/opportunities/opportunity.d.ts +76 -76
- package/dist/lib/models/opportunities/volunteerJob.d.ts +76 -76
- package/dist/lib/models/package.d.ts +380 -86
- package/dist/lib/models/package.d.ts.map +1 -1
- package/dist/lib/models/package.js +9 -8
- package/dist/lib/models/pricing.d.ts +255 -0
- package/dist/lib/models/pricing.d.ts.map +1 -0
- package/dist/lib/models/pricing.js +145 -0
- package/dist/lib/models/rental.d.ts +12 -7
- package/dist/lib/models/rental.d.ts.map +1 -1
- package/dist/lib/models/review.d.ts +5 -2
- package/dist/lib/models/review.d.ts.map +1 -1
- package/dist/lib/models/stay.d.ts +11 -8
- package/dist/lib/models/stay.d.ts.map +1 -1
- package/dist/lib/models/stay.js +1 -0
- package/dist/lib/models/tile.d.ts +11 -7
- package/dist/lib/models/tile.d.ts.map +1 -1
- package/dist/lib/models/travelPackage.d.ts +943 -0
- package/dist/lib/models/travelPackage.d.ts.map +1 -0
- package/dist/lib/models/travelPackage.js +326 -0
- package/dist/lib/multistepDraft.d.ts +4 -0
- package/dist/lib/multistepDraft.d.ts.map +1 -0
- package/dist/lib/multistepDraft.js +18 -0
- package/dist/lib/opportunityFormData.d.ts +13 -0
- package/dist/lib/opportunityFormData.d.ts.map +1 -0
- package/dist/lib/opportunityFormData.js +62 -0
- package/dist/lib/opportunityFormPage.d.ts +38 -0
- package/dist/lib/opportunityFormPage.d.ts.map +1 -0
- package/dist/lib/opportunityFormPage.js +33 -0
- package/dist/lib/packageActions.d.ts +86 -0
- package/dist/lib/packageActions.d.ts.map +1 -0
- package/dist/lib/packageActions.js +168 -0
- package/dist/lib/packageDummyData.d.ts +3 -0
- package/dist/lib/packageDummyData.d.ts.map +1 -0
- package/dist/lib/packageDummyData.js +57 -0
- package/dist/lib/placeActions.d.ts +192 -0
- package/dist/lib/placeActions.d.ts.map +1 -0
- package/dist/lib/placeActions.js +57 -0
- package/dist/lib/propertyActions.d.ts +17 -0
- package/dist/lib/propertyActions.d.ts.map +1 -0
- package/dist/lib/propertyActions.js +16 -0
- package/dist/lib/rentalActions.d.ts +86 -0
- package/dist/lib/rentalActions.d.ts.map +1 -0
- package/dist/lib/rentalActions.js +235 -0
- package/dist/lib/rentalDummyData.d.ts +3 -0
- package/dist/lib/rentalDummyData.d.ts.map +1 -0
- package/dist/lib/rentalDummyData.js +402 -0
- package/dist/lib/rentalFormPage.d.ts +48 -0
- package/dist/lib/rentalFormPage.d.ts.map +1 -0
- package/dist/lib/rentalFormPage.js +97 -0
- package/dist/lib/roomActions.d.ts +39 -0
- package/dist/lib/roomActions.d.ts.map +1 -0
- package/dist/lib/roomActions.js +74 -0
- package/dist/lib/stayActions.d.ts +97 -0
- package/dist/lib/stayActions.d.ts.map +1 -0
- package/dist/lib/stayActions.js +138 -0
- package/dist/lib/staysDummyData.d.ts +72 -0
- package/dist/lib/staysDummyData.d.ts.map +1 -0
- package/dist/lib/staysDummyData.js +694 -0
- package/dist/lib/storeDummyData.d.ts +33 -0
- package/dist/lib/storeDummyData.d.ts.map +1 -0
- package/dist/lib/storeDummyData.js +336 -0
- package/dist/lib/travelPackageActions.d.ts +102 -0
- package/dist/lib/travelPackageActions.d.ts.map +1 -0
- package/dist/lib/travelPackageActions.js +487 -0
- package/dist/lib/travelPackageFormData.d.ts +20 -0
- package/dist/lib/travelPackageFormData.d.ts.map +1 -0
- package/dist/lib/travelPackageFormData.js +54 -0
- package/dist/lib/travelPackageFormPage.d.ts +32 -0
- package/dist/lib/travelPackageFormPage.d.ts.map +1 -0
- package/dist/lib/travelPackageFormPage.js +43 -0
- package/dist/lib/userAtom.d.ts +32 -32
- package/dist/lib/userAtom.d.ts.map +1 -1
- package/dist/lib/userAtom.js +17 -1
- package/dist/lib/util.d.ts +11 -0
- package/dist/lib/util.d.ts.map +1 -0
- package/dist/lib/util.js +82 -0
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +1 -0
- package/dist/lib/vehicleData.d.ts +2 -0
- package/dist/lib/vehicleData.d.ts.map +1 -0
- package/dist/lib/vehicleData.js +181 -0
- package/dist/lib/vehicleModels.d.ts +2 -0
- package/dist/lib/vehicleModels.d.ts.map +1 -0
- package/dist/lib/vehicleModels.js +128 -0
- package/package.json +6 -5
|
@@ -244,21 +244,21 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
244
244
|
pinCode: z.ZodOptional<z.ZodString>;
|
|
245
245
|
registrationNumber: z.ZodOptional<z.ZodString>;
|
|
246
246
|
}, "strip", z.ZodTypeAny, {
|
|
247
|
+
country: string;
|
|
247
248
|
type: string;
|
|
249
|
+
name: string;
|
|
250
|
+
address: string;
|
|
248
251
|
city: string;
|
|
249
252
|
state: string;
|
|
250
|
-
country: string;
|
|
251
|
-
address: string;
|
|
252
|
-
name: string;
|
|
253
253
|
pinCode?: string | undefined;
|
|
254
254
|
registrationNumber?: string | undefined;
|
|
255
255
|
}, {
|
|
256
|
+
country: string;
|
|
256
257
|
type: string;
|
|
258
|
+
name: string;
|
|
259
|
+
address: string;
|
|
257
260
|
city: string;
|
|
258
261
|
state: string;
|
|
259
|
-
country: string;
|
|
260
|
-
address: string;
|
|
261
|
-
name: string;
|
|
262
262
|
pinCode?: string | undefined;
|
|
263
263
|
registrationNumber?: string | undefined;
|
|
264
264
|
}>, "many">>;
|
|
@@ -268,10 +268,6 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
268
268
|
businessApiVerificationStatus: z.ZodOptional<z.ZodEnum<["pending", "verified", "failed"]>>;
|
|
269
269
|
businessVerificationDenialReason: z.ZodOptional<z.ZodString>;
|
|
270
270
|
}, "strict", z.ZodTypeAny, {
|
|
271
|
-
country: string;
|
|
272
|
-
rating: number;
|
|
273
|
-
ratingCount: number;
|
|
274
|
-
reviewCount: number;
|
|
275
271
|
username: string;
|
|
276
272
|
firstName: string;
|
|
277
273
|
lastName: string;
|
|
@@ -279,17 +275,17 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
279
275
|
password: string;
|
|
280
276
|
phoneNumber: string;
|
|
281
277
|
countryCode: string;
|
|
278
|
+
country: string;
|
|
282
279
|
gender: "male" | "female" | "other";
|
|
280
|
+
rating: number;
|
|
281
|
+
ratingCount: number;
|
|
282
|
+
reviewCount: number;
|
|
283
283
|
joinedDate: Date;
|
|
284
284
|
isActive: boolean;
|
|
285
285
|
lastActive: Date;
|
|
286
286
|
verifiedEmail: boolean;
|
|
287
287
|
verifiedMobile: boolean;
|
|
288
288
|
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
289
|
-
skills?: {
|
|
290
|
-
skill: string;
|
|
291
|
-
skillExpertise: number;
|
|
292
|
-
}[] | undefined;
|
|
293
289
|
location?: string | undefined;
|
|
294
290
|
pinCode?: string | undefined;
|
|
295
291
|
dob?: Date | undefined;
|
|
@@ -303,6 +299,10 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
303
299
|
verifiedIdCard?: boolean | undefined;
|
|
304
300
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
305
301
|
userResume?: string | undefined;
|
|
302
|
+
skills?: {
|
|
303
|
+
skill: string;
|
|
304
|
+
skillExpertise: number;
|
|
305
|
+
}[] | undefined;
|
|
306
306
|
wishlist?: string[] | undefined;
|
|
307
307
|
favBlogs?: string[] | undefined;
|
|
308
308
|
favPackages?: string[] | undefined;
|
|
@@ -315,12 +315,12 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
315
315
|
panCard?: string | undefined;
|
|
316
316
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
317
317
|
properties?: {
|
|
318
|
+
country: string;
|
|
318
319
|
type: string;
|
|
320
|
+
name: string;
|
|
321
|
+
address: string;
|
|
319
322
|
city: string;
|
|
320
323
|
state: string;
|
|
321
|
-
country: string;
|
|
322
|
-
address: string;
|
|
323
|
-
name: string;
|
|
324
324
|
pinCode?: string | undefined;
|
|
325
325
|
registrationNumber?: string | undefined;
|
|
326
326
|
}[] | undefined;
|
|
@@ -330,10 +330,6 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
330
330
|
businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
|
|
331
331
|
businessVerificationDenialReason?: string | undefined;
|
|
332
332
|
}, {
|
|
333
|
-
country: string;
|
|
334
|
-
rating: number;
|
|
335
|
-
ratingCount: number;
|
|
336
|
-
reviewCount: number;
|
|
337
333
|
username: string;
|
|
338
334
|
firstName: string;
|
|
339
335
|
lastName: string;
|
|
@@ -341,17 +337,17 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
341
337
|
password: string;
|
|
342
338
|
phoneNumber: string;
|
|
343
339
|
countryCode: string;
|
|
340
|
+
country: string;
|
|
344
341
|
gender: "male" | "female" | "other";
|
|
342
|
+
rating: number;
|
|
343
|
+
ratingCount: number;
|
|
344
|
+
reviewCount: number;
|
|
345
345
|
joinedDate: Date;
|
|
346
346
|
isActive: boolean;
|
|
347
347
|
lastActive: Date;
|
|
348
348
|
verifiedEmail: boolean;
|
|
349
349
|
verifiedMobile: boolean;
|
|
350
350
|
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
351
|
-
skills?: {
|
|
352
|
-
skill: string;
|
|
353
|
-
skillExpertise: number;
|
|
354
|
-
}[] | undefined;
|
|
355
351
|
location?: string | undefined;
|
|
356
352
|
pinCode?: string | undefined;
|
|
357
353
|
dob?: Date | undefined;
|
|
@@ -365,6 +361,10 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
365
361
|
verifiedIdCard?: boolean | undefined;
|
|
366
362
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
367
363
|
userResume?: string | undefined;
|
|
364
|
+
skills?: {
|
|
365
|
+
skill: string;
|
|
366
|
+
skillExpertise: number;
|
|
367
|
+
}[] | undefined;
|
|
368
368
|
wishlist?: string[] | undefined;
|
|
369
369
|
favBlogs?: string[] | undefined;
|
|
370
370
|
favPackages?: string[] | undefined;
|
|
@@ -377,12 +377,12 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
377
377
|
panCard?: string | undefined;
|
|
378
378
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
379
379
|
properties?: {
|
|
380
|
+
country: string;
|
|
380
381
|
type: string;
|
|
382
|
+
name: string;
|
|
383
|
+
address: string;
|
|
381
384
|
city: string;
|
|
382
385
|
state: string;
|
|
383
|
-
country: string;
|
|
384
|
-
address: string;
|
|
385
|
-
name: string;
|
|
386
386
|
pinCode?: string | undefined;
|
|
387
387
|
registrationNumber?: string | undefined;
|
|
388
388
|
}[] | undefined;
|
|
@@ -416,16 +416,19 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
416
416
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
417
417
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
418
418
|
}, "strict", z.ZodTypeAny, {
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
419
|
+
country: string;
|
|
420
|
+
status: "pending" | "denied" | "draft" | "archived" | "open" | "closed" | "deleted";
|
|
421
|
+
rating: number;
|
|
422
|
+
ratingCount: number;
|
|
423
|
+
reviewCount: number;
|
|
423
424
|
skills: string[];
|
|
424
|
-
description: string;
|
|
425
|
-
images: string[];
|
|
426
425
|
city: string;
|
|
427
426
|
state: string;
|
|
428
|
-
|
|
427
|
+
title: string;
|
|
428
|
+
description: string;
|
|
429
|
+
images: string[];
|
|
430
|
+
slug: string;
|
|
431
|
+
opportunityType: "volunteer" | "internship" | "freelance" | "job" | "contentCreator";
|
|
429
432
|
availableFrom: Date;
|
|
430
433
|
minDuration: number;
|
|
431
434
|
maxDuration: number;
|
|
@@ -440,14 +443,7 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
440
443
|
applicationCount: number;
|
|
441
444
|
views: number;
|
|
442
445
|
shares: number;
|
|
443
|
-
rating: number;
|
|
444
|
-
ratingCount: number;
|
|
445
|
-
reviewCount: number;
|
|
446
446
|
hostId: {
|
|
447
|
-
country: string;
|
|
448
|
-
rating: number;
|
|
449
|
-
ratingCount: number;
|
|
450
|
-
reviewCount: number;
|
|
451
447
|
username: string;
|
|
452
448
|
firstName: string;
|
|
453
449
|
lastName: string;
|
|
@@ -455,17 +451,17 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
455
451
|
password: string;
|
|
456
452
|
phoneNumber: string;
|
|
457
453
|
countryCode: string;
|
|
454
|
+
country: string;
|
|
458
455
|
gender: "male" | "female" | "other";
|
|
456
|
+
rating: number;
|
|
457
|
+
ratingCount: number;
|
|
458
|
+
reviewCount: number;
|
|
459
459
|
joinedDate: Date;
|
|
460
460
|
isActive: boolean;
|
|
461
461
|
lastActive: Date;
|
|
462
462
|
verifiedEmail: boolean;
|
|
463
463
|
verifiedMobile: boolean;
|
|
464
464
|
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
465
|
-
skills?: {
|
|
466
|
-
skill: string;
|
|
467
|
-
skillExpertise: number;
|
|
468
|
-
}[] | undefined;
|
|
469
465
|
location?: string | undefined;
|
|
470
466
|
pinCode?: string | undefined;
|
|
471
467
|
dob?: Date | undefined;
|
|
@@ -479,6 +475,10 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
479
475
|
verifiedIdCard?: boolean | undefined;
|
|
480
476
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
481
477
|
userResume?: string | undefined;
|
|
478
|
+
skills?: {
|
|
479
|
+
skill: string;
|
|
480
|
+
skillExpertise: number;
|
|
481
|
+
}[] | undefined;
|
|
482
482
|
wishlist?: string[] | undefined;
|
|
483
483
|
favBlogs?: string[] | undefined;
|
|
484
484
|
favPackages?: string[] | undefined;
|
|
@@ -491,12 +491,12 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
491
491
|
panCard?: string | undefined;
|
|
492
492
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
493
493
|
properties?: {
|
|
494
|
+
country: string;
|
|
494
495
|
type: string;
|
|
496
|
+
name: string;
|
|
497
|
+
address: string;
|
|
495
498
|
city: string;
|
|
496
499
|
state: string;
|
|
497
|
-
country: string;
|
|
498
|
-
address: string;
|
|
499
|
-
name: string;
|
|
500
500
|
pinCode?: string | undefined;
|
|
501
501
|
registrationNumber?: string | undefined;
|
|
502
502
|
}[] | undefined;
|
|
@@ -507,8 +507,10 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
507
507
|
businessVerificationDenialReason?: string | undefined;
|
|
508
508
|
};
|
|
509
509
|
adminApproval: boolean;
|
|
510
|
-
categoryId?: string | undefined;
|
|
511
510
|
address?: string | undefined;
|
|
511
|
+
createdAt?: Date | undefined;
|
|
512
|
+
updatedAt?: Date | undefined;
|
|
513
|
+
categoryId?: string | undefined;
|
|
512
514
|
workMode?: "onsite" | "remote" | "hybrid" | undefined;
|
|
513
515
|
compensation?: {
|
|
514
516
|
type: "free" | "stipend" | "salary" | "project-based";
|
|
@@ -532,19 +534,20 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
532
534
|
countryCode: string;
|
|
533
535
|
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
534
536
|
}[] | undefined;
|
|
535
|
-
createdAt?: Date | undefined;
|
|
536
|
-
updatedAt?: Date | undefined;
|
|
537
537
|
}, {
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
538
|
+
country: string;
|
|
539
|
+
status: "pending" | "denied" | "draft" | "archived" | "open" | "closed" | "deleted";
|
|
540
|
+
rating: number;
|
|
541
|
+
ratingCount: number;
|
|
542
|
+
reviewCount: number;
|
|
542
543
|
skills: string[];
|
|
543
|
-
description: string;
|
|
544
|
-
images: string[];
|
|
545
544
|
city: string;
|
|
546
545
|
state: string;
|
|
547
|
-
|
|
546
|
+
title: string;
|
|
547
|
+
description: string;
|
|
548
|
+
images: string[];
|
|
549
|
+
slug: string;
|
|
550
|
+
opportunityType: "volunteer" | "internship" | "freelance" | "job" | "contentCreator";
|
|
548
551
|
availableFrom: Date;
|
|
549
552
|
minDuration: number;
|
|
550
553
|
maxDuration: number;
|
|
@@ -559,14 +562,7 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
559
562
|
applicationCount: number;
|
|
560
563
|
views: number;
|
|
561
564
|
shares: number;
|
|
562
|
-
rating: number;
|
|
563
|
-
ratingCount: number;
|
|
564
|
-
reviewCount: number;
|
|
565
565
|
hostId: {
|
|
566
|
-
country: string;
|
|
567
|
-
rating: number;
|
|
568
|
-
ratingCount: number;
|
|
569
|
-
reviewCount: number;
|
|
570
566
|
username: string;
|
|
571
567
|
firstName: string;
|
|
572
568
|
lastName: string;
|
|
@@ -574,17 +570,17 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
574
570
|
password: string;
|
|
575
571
|
phoneNumber: string;
|
|
576
572
|
countryCode: string;
|
|
573
|
+
country: string;
|
|
577
574
|
gender: "male" | "female" | "other";
|
|
575
|
+
rating: number;
|
|
576
|
+
ratingCount: number;
|
|
577
|
+
reviewCount: number;
|
|
578
578
|
joinedDate: Date;
|
|
579
579
|
isActive: boolean;
|
|
580
580
|
lastActive: Date;
|
|
581
581
|
verifiedEmail: boolean;
|
|
582
582
|
verifiedMobile: boolean;
|
|
583
583
|
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
584
|
-
skills?: {
|
|
585
|
-
skill: string;
|
|
586
|
-
skillExpertise: number;
|
|
587
|
-
}[] | undefined;
|
|
588
584
|
location?: string | undefined;
|
|
589
585
|
pinCode?: string | undefined;
|
|
590
586
|
dob?: Date | undefined;
|
|
@@ -598,6 +594,10 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
598
594
|
verifiedIdCard?: boolean | undefined;
|
|
599
595
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
600
596
|
userResume?: string | undefined;
|
|
597
|
+
skills?: {
|
|
598
|
+
skill: string;
|
|
599
|
+
skillExpertise: number;
|
|
600
|
+
}[] | undefined;
|
|
601
601
|
wishlist?: string[] | undefined;
|
|
602
602
|
favBlogs?: string[] | undefined;
|
|
603
603
|
favPackages?: string[] | undefined;
|
|
@@ -610,12 +610,12 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
610
610
|
panCard?: string | undefined;
|
|
611
611
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
612
612
|
properties?: {
|
|
613
|
+
country: string;
|
|
613
614
|
type: string;
|
|
615
|
+
name: string;
|
|
616
|
+
address: string;
|
|
614
617
|
city: string;
|
|
615
618
|
state: string;
|
|
616
|
-
country: string;
|
|
617
|
-
address: string;
|
|
618
|
-
name: string;
|
|
619
619
|
pinCode?: string | undefined;
|
|
620
620
|
registrationNumber?: string | undefined;
|
|
621
621
|
}[] | undefined;
|
|
@@ -626,8 +626,10 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
626
626
|
businessVerificationDenialReason?: string | undefined;
|
|
627
627
|
};
|
|
628
628
|
adminApproval: boolean;
|
|
629
|
-
categoryId?: string | undefined;
|
|
630
629
|
address?: string | undefined;
|
|
630
|
+
createdAt?: Date | undefined;
|
|
631
|
+
updatedAt?: Date | undefined;
|
|
632
|
+
categoryId?: string | undefined;
|
|
631
633
|
workMode?: "onsite" | "remote" | "hybrid" | undefined;
|
|
632
634
|
compensation?: {
|
|
633
635
|
type: "free" | "stipend" | "salary" | "project-based";
|
|
@@ -651,8 +653,6 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
651
653
|
countryCode: string;
|
|
652
654
|
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
653
655
|
}[] | undefined;
|
|
654
|
-
createdAt?: Date | undefined;
|
|
655
|
-
updatedAt?: Date | undefined;
|
|
656
656
|
}>;
|
|
657
657
|
export type Opportunity = z.infer<typeof OpportunitySchema>;
|
|
658
658
|
export type OppMetaData = {
|