@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
|
@@ -164,20 +164,20 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
164
164
|
registrationNumber: z.ZodOptional<z.ZodString>;
|
|
165
165
|
}, "strip", z.ZodTypeAny, {
|
|
166
166
|
type: string;
|
|
167
|
-
name: string;
|
|
168
167
|
city: string;
|
|
169
168
|
state: string;
|
|
170
169
|
country: string;
|
|
171
170
|
address: string;
|
|
171
|
+
name: string;
|
|
172
172
|
pinCode?: string | undefined;
|
|
173
173
|
registrationNumber?: string | undefined;
|
|
174
174
|
}, {
|
|
175
175
|
type: string;
|
|
176
|
-
name: string;
|
|
177
176
|
city: string;
|
|
178
177
|
state: string;
|
|
179
178
|
country: string;
|
|
180
179
|
address: string;
|
|
180
|
+
name: string;
|
|
181
181
|
pinCode?: string | undefined;
|
|
182
182
|
registrationNumber?: string | undefined;
|
|
183
183
|
}>, "many">>;
|
|
@@ -187,7 +187,6 @@ 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
190
|
country: string;
|
|
192
191
|
rating: number;
|
|
193
192
|
ratingCount: number;
|
|
@@ -205,7 +204,7 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
205
204
|
lastActive: Date;
|
|
206
205
|
verifiedEmail: boolean;
|
|
207
206
|
verifiedMobile: boolean;
|
|
208
|
-
|
|
207
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
209
208
|
skills?: {
|
|
210
209
|
skill: string;
|
|
211
210
|
skillExpertise: number;
|
|
@@ -226,6 +225,7 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
226
225
|
wishlist?: string[] | undefined;
|
|
227
226
|
favBlogs?: string[] | undefined;
|
|
228
227
|
favPackages?: string[] | undefined;
|
|
228
|
+
id?: string | undefined;
|
|
229
229
|
selfie?: string | undefined;
|
|
230
230
|
selfieAction?: string | undefined;
|
|
231
231
|
jobCount?: number | undefined;
|
|
@@ -235,11 +235,11 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
235
235
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
236
236
|
properties?: {
|
|
237
237
|
type: string;
|
|
238
|
-
name: string;
|
|
239
238
|
city: string;
|
|
240
239
|
state: string;
|
|
241
240
|
country: string;
|
|
242
241
|
address: string;
|
|
242
|
+
name: string;
|
|
243
243
|
pinCode?: string | undefined;
|
|
244
244
|
registrationNumber?: string | undefined;
|
|
245
245
|
}[] | undefined;
|
|
@@ -249,7 +249,6 @@ 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
252
|
country: string;
|
|
254
253
|
rating: number;
|
|
255
254
|
ratingCount: number;
|
|
@@ -267,7 +266,7 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
267
266
|
lastActive: Date;
|
|
268
267
|
verifiedEmail: boolean;
|
|
269
268
|
verifiedMobile: boolean;
|
|
270
|
-
|
|
269
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
271
270
|
skills?: {
|
|
272
271
|
skill: string;
|
|
273
272
|
skillExpertise: number;
|
|
@@ -288,6 +287,7 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
288
287
|
wishlist?: string[] | undefined;
|
|
289
288
|
favBlogs?: string[] | undefined;
|
|
290
289
|
favPackages?: string[] | undefined;
|
|
290
|
+
id?: string | undefined;
|
|
291
291
|
selfie?: string | undefined;
|
|
292
292
|
selfieAction?: string | undefined;
|
|
293
293
|
jobCount?: number | undefined;
|
|
@@ -297,11 +297,11 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
297
297
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
298
298
|
properties?: {
|
|
299
299
|
type: string;
|
|
300
|
-
name: string;
|
|
301
300
|
city: string;
|
|
302
301
|
state: string;
|
|
303
302
|
country: string;
|
|
304
303
|
address: string;
|
|
304
|
+
name: 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";
|
|
322
321
|
username: string;
|
|
323
322
|
email: string;
|
|
324
323
|
phoneNumber: string;
|
|
325
324
|
countryCode: string;
|
|
326
|
-
}, {
|
|
327
325
|
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
326
|
+
}, {
|
|
328
327
|
username: string;
|
|
329
328
|
email: string;
|
|
330
329
|
phoneNumber: string;
|
|
331
330
|
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,13 +411,13 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
411
411
|
securityPaidToHost: boolean;
|
|
412
412
|
}>;
|
|
413
413
|
}, "strict", z.ZodTypeAny, {
|
|
414
|
-
status: "draft" | "archived" | "pending" | "open" | "closed" | "denied" | "deleted";
|
|
415
414
|
salary: {
|
|
416
415
|
type: "free" | "stipend" | "salary" | "project-based";
|
|
417
416
|
currency: string;
|
|
418
417
|
amount?: number | undefined;
|
|
419
418
|
frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
|
|
420
419
|
};
|
|
420
|
+
status: "draft" | "archived" | "pending" | "open" | "closed" | "denied" | "deleted";
|
|
421
421
|
slug: string;
|
|
422
422
|
opportunityType: "job";
|
|
423
423
|
title: string;
|
|
@@ -445,7 +445,6 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
445
445
|
ratingCount: number;
|
|
446
446
|
reviewCount: number;
|
|
447
447
|
hostId: {
|
|
448
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
449
448
|
country: string;
|
|
450
449
|
rating: number;
|
|
451
450
|
ratingCount: number;
|
|
@@ -463,7 +462,7 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
463
462
|
lastActive: Date;
|
|
464
463
|
verifiedEmail: boolean;
|
|
465
464
|
verifiedMobile: boolean;
|
|
466
|
-
|
|
465
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
467
466
|
skills?: {
|
|
468
467
|
skill: string;
|
|
469
468
|
skillExpertise: number;
|
|
@@ -484,6 +483,7 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
484
483
|
wishlist?: string[] | undefined;
|
|
485
484
|
favBlogs?: string[] | undefined;
|
|
486
485
|
favPackages?: string[] | undefined;
|
|
486
|
+
id?: string | undefined;
|
|
487
487
|
selfie?: string | undefined;
|
|
488
488
|
selfieAction?: string | undefined;
|
|
489
489
|
jobCount?: number | undefined;
|
|
@@ -493,11 +493,11 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
493
493
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
494
494
|
properties?: {
|
|
495
495
|
type: string;
|
|
496
|
-
name: string;
|
|
497
496
|
city: string;
|
|
498
497
|
state: string;
|
|
499
498
|
country: string;
|
|
500
499
|
address: string;
|
|
500
|
+
name: string;
|
|
501
501
|
pinCode?: string | undefined;
|
|
502
502
|
registrationNumber?: string | undefined;
|
|
503
503
|
}[] | undefined;
|
|
@@ -549,22 +549,22 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
549
549
|
pendingApplicationCount?: number | undefined;
|
|
550
550
|
hostingType?: string | undefined;
|
|
551
551
|
applicationObservers?: {
|
|
552
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
553
552
|
username: string;
|
|
554
553
|
email: string;
|
|
555
554
|
phoneNumber: string;
|
|
556
555
|
countryCode: string;
|
|
556
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
557
557
|
}[] | undefined;
|
|
558
558
|
createdAt?: Date | undefined;
|
|
559
559
|
updatedAt?: Date | undefined;
|
|
560
560
|
}, {
|
|
561
|
-
status: "draft" | "archived" | "pending" | "open" | "closed" | "denied" | "deleted";
|
|
562
561
|
salary: {
|
|
563
562
|
type: "free" | "stipend" | "salary" | "project-based";
|
|
564
563
|
currency: string;
|
|
565
564
|
amount?: number | undefined;
|
|
566
565
|
frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
|
|
567
566
|
};
|
|
567
|
+
status: "draft" | "archived" | "pending" | "open" | "closed" | "denied" | "deleted";
|
|
568
568
|
slug: string;
|
|
569
569
|
opportunityType: "job";
|
|
570
570
|
title: string;
|
|
@@ -592,7 +592,6 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
592
592
|
ratingCount: number;
|
|
593
593
|
reviewCount: number;
|
|
594
594
|
hostId: {
|
|
595
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
596
595
|
country: string;
|
|
597
596
|
rating: number;
|
|
598
597
|
ratingCount: number;
|
|
@@ -610,7 +609,7 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
610
609
|
lastActive: Date;
|
|
611
610
|
verifiedEmail: boolean;
|
|
612
611
|
verifiedMobile: boolean;
|
|
613
|
-
|
|
612
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
614
613
|
skills?: {
|
|
615
614
|
skill: string;
|
|
616
615
|
skillExpertise: number;
|
|
@@ -631,6 +630,7 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
631
630
|
wishlist?: string[] | undefined;
|
|
632
631
|
favBlogs?: string[] | undefined;
|
|
633
632
|
favPackages?: string[] | undefined;
|
|
633
|
+
id?: string | undefined;
|
|
634
634
|
selfie?: string | undefined;
|
|
635
635
|
selfieAction?: string | undefined;
|
|
636
636
|
jobCount?: number | undefined;
|
|
@@ -640,11 +640,11 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
640
640
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
641
641
|
properties?: {
|
|
642
642
|
type: string;
|
|
643
|
-
name: string;
|
|
644
643
|
city: string;
|
|
645
644
|
state: string;
|
|
646
645
|
country: string;
|
|
647
646
|
address: string;
|
|
647
|
+
name: string;
|
|
648
648
|
pinCode?: string | undefined;
|
|
649
649
|
registrationNumber?: string | undefined;
|
|
650
650
|
}[] | undefined;
|
|
@@ -696,11 +696,11 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
696
696
|
pendingApplicationCount?: number | undefined;
|
|
697
697
|
hostingType?: string | undefined;
|
|
698
698
|
applicationObservers?: {
|
|
699
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
700
699
|
username: string;
|
|
701
700
|
email: string;
|
|
702
701
|
phoneNumber: string;
|
|
703
702
|
countryCode: string;
|
|
703
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
704
704
|
}[] | undefined;
|
|
705
705
|
createdAt?: Date | undefined;
|
|
706
706
|
updatedAt?: Date | undefined;
|
|
@@ -17,6 +17,10 @@ export declare const opportunityTypeOptions: readonly [{
|
|
|
17
17
|
readonly value: "job";
|
|
18
18
|
readonly label: "Job";
|
|
19
19
|
readonly description: "Full-time or part-time employment";
|
|
20
|
+
}, {
|
|
21
|
+
readonly value: "contentCreator";
|
|
22
|
+
readonly label: "Content Creator";
|
|
23
|
+
readonly description: "Create travel, hospitality, or brand content";
|
|
20
24
|
}];
|
|
21
25
|
export declare const workModeOptions: readonly [{
|
|
22
26
|
readonly value: "onsite";
|
|
@@ -28,7 +32,7 @@ export declare const workModeOptions: readonly [{
|
|
|
28
32
|
readonly value: "hybrid";
|
|
29
33
|
readonly label: "Hybrid";
|
|
30
34
|
}];
|
|
31
|
-
export declare const OpportunityTypeEnum: z.ZodEnum<["volunteer" | "internship" | "freelance" | "job", ...("volunteer" | "internship" | "freelance" | "job")[]]>;
|
|
35
|
+
export declare const OpportunityTypeEnum: z.ZodEnum<["volunteer" | "internship" | "freelance" | "job" | "contentCreator", ...("volunteer" | "internship" | "freelance" | "job" | "contentCreator")[]]>;
|
|
32
36
|
export declare const WorkModeEnum: z.ZodEnum<["onsite" | "remote" | "hybrid", ...("onsite" | "remote" | "hybrid")[]]>;
|
|
33
37
|
export declare const OpportunityStatusEnum: z.ZodEnum<["draft", "archived", "pending", "open", "closed", "denied", "deleted"]>;
|
|
34
38
|
export declare const compensationTypeOptions: readonly [{
|
|
@@ -106,7 +110,7 @@ export declare const BondPlanSchema: z.ZodObject<{
|
|
|
106
110
|
export type BondPlan = z.infer<typeof BondPlanSchema>;
|
|
107
111
|
export declare const OpportunitySchema: z.ZodObject<{
|
|
108
112
|
slug: z.ZodString;
|
|
109
|
-
opportunityType: z.ZodEnum<["volunteer" | "internship" | "freelance" | "job", ...("volunteer" | "internship" | "freelance" | "job")[]]>;
|
|
113
|
+
opportunityType: z.ZodEnum<["volunteer" | "internship" | "freelance" | "job" | "contentCreator", ...("volunteer" | "internship" | "freelance" | "job" | "contentCreator")[]]>;
|
|
110
114
|
title: z.ZodString;
|
|
111
115
|
skills: z.ZodArray<z.ZodString, "many">;
|
|
112
116
|
description: z.ZodString;
|
|
@@ -241,20 +245,20 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
241
245
|
registrationNumber: z.ZodOptional<z.ZodString>;
|
|
242
246
|
}, "strip", z.ZodTypeAny, {
|
|
243
247
|
type: string;
|
|
244
|
-
name: string;
|
|
245
248
|
city: string;
|
|
246
249
|
state: string;
|
|
247
250
|
country: string;
|
|
248
251
|
address: string;
|
|
252
|
+
name: string;
|
|
249
253
|
pinCode?: string | undefined;
|
|
250
254
|
registrationNumber?: string | undefined;
|
|
251
255
|
}, {
|
|
252
256
|
type: string;
|
|
253
|
-
name: string;
|
|
254
257
|
city: string;
|
|
255
258
|
state: string;
|
|
256
259
|
country: string;
|
|
257
260
|
address: string;
|
|
261
|
+
name: string;
|
|
258
262
|
pinCode?: string | undefined;
|
|
259
263
|
registrationNumber?: string | undefined;
|
|
260
264
|
}>, "many">>;
|
|
@@ -264,7 +268,6 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
264
268
|
businessApiVerificationStatus: z.ZodOptional<z.ZodEnum<["pending", "verified", "failed"]>>;
|
|
265
269
|
businessVerificationDenialReason: z.ZodOptional<z.ZodString>;
|
|
266
270
|
}, "strict", z.ZodTypeAny, {
|
|
267
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
268
271
|
country: string;
|
|
269
272
|
rating: number;
|
|
270
273
|
ratingCount: number;
|
|
@@ -282,7 +285,7 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
282
285
|
lastActive: Date;
|
|
283
286
|
verifiedEmail: boolean;
|
|
284
287
|
verifiedMobile: boolean;
|
|
285
|
-
|
|
288
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
286
289
|
skills?: {
|
|
287
290
|
skill: string;
|
|
288
291
|
skillExpertise: number;
|
|
@@ -303,6 +306,7 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
303
306
|
wishlist?: string[] | undefined;
|
|
304
307
|
favBlogs?: string[] | undefined;
|
|
305
308
|
favPackages?: string[] | undefined;
|
|
309
|
+
id?: string | undefined;
|
|
306
310
|
selfie?: string | undefined;
|
|
307
311
|
selfieAction?: string | undefined;
|
|
308
312
|
jobCount?: number | undefined;
|
|
@@ -312,11 +316,11 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
312
316
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
313
317
|
properties?: {
|
|
314
318
|
type: string;
|
|
315
|
-
name: string;
|
|
316
319
|
city: string;
|
|
317
320
|
state: string;
|
|
318
321
|
country: string;
|
|
319
322
|
address: string;
|
|
323
|
+
name: string;
|
|
320
324
|
pinCode?: string | undefined;
|
|
321
325
|
registrationNumber?: string | undefined;
|
|
322
326
|
}[] | undefined;
|
|
@@ -326,7 +330,6 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
326
330
|
businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
|
|
327
331
|
businessVerificationDenialReason?: string | undefined;
|
|
328
332
|
}, {
|
|
329
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
330
333
|
country: string;
|
|
331
334
|
rating: number;
|
|
332
335
|
ratingCount: number;
|
|
@@ -344,7 +347,7 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
344
347
|
lastActive: Date;
|
|
345
348
|
verifiedEmail: boolean;
|
|
346
349
|
verifiedMobile: boolean;
|
|
347
|
-
|
|
350
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
348
351
|
skills?: {
|
|
349
352
|
skill: string;
|
|
350
353
|
skillExpertise: number;
|
|
@@ -365,6 +368,7 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
365
368
|
wishlist?: string[] | undefined;
|
|
366
369
|
favBlogs?: string[] | undefined;
|
|
367
370
|
favPackages?: string[] | undefined;
|
|
371
|
+
id?: string | undefined;
|
|
368
372
|
selfie?: string | undefined;
|
|
369
373
|
selfieAction?: string | undefined;
|
|
370
374
|
jobCount?: number | undefined;
|
|
@@ -374,11 +378,11 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
374
378
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
375
379
|
properties?: {
|
|
376
380
|
type: string;
|
|
377
|
-
name: string;
|
|
378
381
|
city: string;
|
|
379
382
|
state: string;
|
|
380
383
|
country: string;
|
|
381
384
|
address: string;
|
|
385
|
+
name: string;
|
|
382
386
|
pinCode?: string | undefined;
|
|
383
387
|
registrationNumber?: string | undefined;
|
|
384
388
|
}[] | undefined;
|
|
@@ -395,17 +399,17 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
395
399
|
phoneNumber: z.ZodString;
|
|
396
400
|
email: z.ZodString;
|
|
397
401
|
}, "strip", z.ZodTypeAny, {
|
|
398
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
399
402
|
username: string;
|
|
400
403
|
email: string;
|
|
401
404
|
phoneNumber: string;
|
|
402
405
|
countryCode: string;
|
|
403
|
-
}, {
|
|
404
406
|
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
407
|
+
}, {
|
|
405
408
|
username: string;
|
|
406
409
|
email: string;
|
|
407
410
|
phoneNumber: string;
|
|
408
411
|
countryCode: string;
|
|
412
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
409
413
|
}>, "many">>;
|
|
410
414
|
status: z.ZodEnum<["draft", "archived", "pending", "open", "closed", "denied", "deleted"]>;
|
|
411
415
|
adminApproval: z.ZodBoolean;
|
|
@@ -414,7 +418,7 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
414
418
|
}, "strict", z.ZodTypeAny, {
|
|
415
419
|
status: "draft" | "archived" | "pending" | "open" | "closed" | "denied" | "deleted";
|
|
416
420
|
slug: string;
|
|
417
|
-
opportunityType: "volunteer" | "internship" | "freelance" | "job";
|
|
421
|
+
opportunityType: "volunteer" | "internship" | "freelance" | "job" | "contentCreator";
|
|
418
422
|
title: string;
|
|
419
423
|
skills: string[];
|
|
420
424
|
description: string;
|
|
@@ -440,7 +444,6 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
440
444
|
ratingCount: number;
|
|
441
445
|
reviewCount: number;
|
|
442
446
|
hostId: {
|
|
443
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
444
447
|
country: string;
|
|
445
448
|
rating: number;
|
|
446
449
|
ratingCount: number;
|
|
@@ -458,7 +461,7 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
458
461
|
lastActive: Date;
|
|
459
462
|
verifiedEmail: boolean;
|
|
460
463
|
verifiedMobile: boolean;
|
|
461
|
-
|
|
464
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
462
465
|
skills?: {
|
|
463
466
|
skill: string;
|
|
464
467
|
skillExpertise: number;
|
|
@@ -479,6 +482,7 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
479
482
|
wishlist?: string[] | undefined;
|
|
480
483
|
favBlogs?: string[] | undefined;
|
|
481
484
|
favPackages?: string[] | undefined;
|
|
485
|
+
id?: string | undefined;
|
|
482
486
|
selfie?: string | undefined;
|
|
483
487
|
selfieAction?: string | undefined;
|
|
484
488
|
jobCount?: number | undefined;
|
|
@@ -488,11 +492,11 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
488
492
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
489
493
|
properties?: {
|
|
490
494
|
type: string;
|
|
491
|
-
name: string;
|
|
492
495
|
city: string;
|
|
493
496
|
state: string;
|
|
494
497
|
country: string;
|
|
495
498
|
address: string;
|
|
499
|
+
name: string;
|
|
496
500
|
pinCode?: string | undefined;
|
|
497
501
|
registrationNumber?: string | undefined;
|
|
498
502
|
}[] | undefined;
|
|
@@ -522,18 +526,18 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
522
526
|
pendingApplicationCount?: number | undefined;
|
|
523
527
|
hostingType?: string | undefined;
|
|
524
528
|
applicationObservers?: {
|
|
525
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
526
529
|
username: string;
|
|
527
530
|
email: string;
|
|
528
531
|
phoneNumber: string;
|
|
529
532
|
countryCode: string;
|
|
533
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
530
534
|
}[] | undefined;
|
|
531
535
|
createdAt?: Date | undefined;
|
|
532
536
|
updatedAt?: Date | undefined;
|
|
533
537
|
}, {
|
|
534
538
|
status: "draft" | "archived" | "pending" | "open" | "closed" | "denied" | "deleted";
|
|
535
539
|
slug: string;
|
|
536
|
-
opportunityType: "volunteer" | "internship" | "freelance" | "job";
|
|
540
|
+
opportunityType: "volunteer" | "internship" | "freelance" | "job" | "contentCreator";
|
|
537
541
|
title: string;
|
|
538
542
|
skills: string[];
|
|
539
543
|
description: string;
|
|
@@ -559,7 +563,6 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
559
563
|
ratingCount: number;
|
|
560
564
|
reviewCount: number;
|
|
561
565
|
hostId: {
|
|
562
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
563
566
|
country: string;
|
|
564
567
|
rating: number;
|
|
565
568
|
ratingCount: number;
|
|
@@ -577,7 +580,7 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
577
580
|
lastActive: Date;
|
|
578
581
|
verifiedEmail: boolean;
|
|
579
582
|
verifiedMobile: boolean;
|
|
580
|
-
|
|
583
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
581
584
|
skills?: {
|
|
582
585
|
skill: string;
|
|
583
586
|
skillExpertise: number;
|
|
@@ -598,6 +601,7 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
598
601
|
wishlist?: string[] | undefined;
|
|
599
602
|
favBlogs?: string[] | undefined;
|
|
600
603
|
favPackages?: string[] | undefined;
|
|
604
|
+
id?: string | undefined;
|
|
601
605
|
selfie?: string | undefined;
|
|
602
606
|
selfieAction?: string | undefined;
|
|
603
607
|
jobCount?: number | undefined;
|
|
@@ -607,11 +611,11 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
607
611
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
608
612
|
properties?: {
|
|
609
613
|
type: string;
|
|
610
|
-
name: string;
|
|
611
614
|
city: string;
|
|
612
615
|
state: string;
|
|
613
616
|
country: string;
|
|
614
617
|
address: string;
|
|
618
|
+
name: string;
|
|
615
619
|
pinCode?: string | undefined;
|
|
616
620
|
registrationNumber?: string | undefined;
|
|
617
621
|
}[] | undefined;
|
|
@@ -641,11 +645,11 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
641
645
|
pendingApplicationCount?: number | undefined;
|
|
642
646
|
hostingType?: string | undefined;
|
|
643
647
|
applicationObservers?: {
|
|
644
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
645
648
|
username: string;
|
|
646
649
|
email: string;
|
|
647
650
|
phoneNumber: string;
|
|
648
651
|
countryCode: string;
|
|
652
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
649
653
|
}[] | undefined;
|
|
650
654
|
createdAt?: Date | undefined;
|
|
651
655
|
updatedAt?: Date | undefined;
|
|
@@ -657,6 +661,7 @@ export type OppMetaData = {
|
|
|
657
661
|
location: string;
|
|
658
662
|
skills: string[];
|
|
659
663
|
hostingType: string;
|
|
664
|
+
opportunityType?: OpportunityType;
|
|
660
665
|
};
|
|
661
666
|
export declare const PlatformFeeSchema: z.ZodObject<{
|
|
662
667
|
commissionPercent: z.ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opportunity.d.ts","sourceRoot":"","sources":["../../../../src/lib/models/opportunities/opportunity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,WAAW,EAAkB,MAAM,UAAU,CAAC;AAGvD,eAAO,MAAM,YAAY,kCAAmD,CAAC;AAI7E,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"opportunity.d.ts","sourceRoot":"","sources":["../../../../src/lib/models/opportunities/opportunity.ts"],"names":[],"mappings":"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"}
|
|
@@ -9,6 +9,7 @@ export const opportunityTypeOptions = [
|
|
|
9
9
|
{ value: 'internship', label: 'Internship', description: 'Skill-building with optional stipend' },
|
|
10
10
|
{ value: 'freelance', label: 'Freelance', description: 'Project-based work' },
|
|
11
11
|
{ value: 'job', label: 'Job', description: 'Full-time or part-time employment' },
|
|
12
|
+
{ value: 'contentCreator', label: 'Content Creator', description: 'Create travel, hospitality, or brand content' },
|
|
12
13
|
];
|
|
13
14
|
export const workModeOptions = [
|
|
14
15
|
{ value: 'onsite', label: 'On-site' },
|
|
@@ -45,6 +46,7 @@ export const getCompensationTypeForOpportunity = (oppType) => {
|
|
|
45
46
|
switch (oppType) {
|
|
46
47
|
case 'internship': return 'stipend';
|
|
47
48
|
case 'freelance': return 'project-based';
|
|
49
|
+
case 'contentCreator': return 'project-based';
|
|
48
50
|
case 'job': return 'salary';
|
|
49
51
|
default: return 'free';
|
|
50
52
|
}
|