@myrjfa/state 2.0.0 → 2.1.1
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/LICENSE +201 -201
- package/README.md +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/lib/actions/actions.d.ts +20 -1
- package/dist/lib/actions/actions.d.ts.map +1 -1
- package/dist/lib/actions/actions.js +50 -10
- package/dist/lib/actions/auth.d.ts +12 -2
- package/dist/lib/actions/auth.d.ts.map +1 -1
- package/dist/lib/actions/booking.d.ts +15 -0
- package/dist/lib/actions/booking.d.ts.map +1 -1
- package/dist/lib/actions/booking.js +15 -1
- package/dist/lib/actions/fetcher.d.ts +0 -3
- package/dist/lib/actions/fetcher.d.ts.map +1 -1
- package/dist/lib/actions/fetcher.js +65 -8
- package/dist/lib/actions/{severActions.d.ts → serverActions.d.ts} +1 -1
- package/dist/lib/actions/serverActions.d.ts.map +1 -0
- package/dist/lib/actions/{severActions.js → serverActions.js} +3 -0
- package/dist/lib/authSessionManager.d.ts.map +1 -1
- package/dist/lib/authSessionManager.js +14 -7
- package/dist/lib/context/ChatContext.d.ts +1 -1
- package/dist/lib/context/ChatContext.d.ts.map +1 -1
- package/dist/lib/hooks/use-mobile.js +1 -0
- package/dist/lib/hooks/useChatSocket.js +1 -0
- package/dist/lib/models/blog.d.ts +3 -2
- package/dist/lib/models/blog.d.ts.map +1 -1
- package/dist/lib/models/{notfications.d.ts → notifications.d.ts} +1 -1
- package/dist/lib/models/notifications.d.ts.map +1 -0
- package/dist/lib/models/opportunities/freelance.d.ts +48 -20
- package/dist/lib/models/opportunities/freelance.d.ts.map +1 -1
- package/dist/lib/models/opportunities/internship.d.ts +48 -20
- package/dist/lib/models/opportunities/internship.d.ts.map +1 -1
- package/dist/lib/models/opportunities/job.d.ts +58 -30
- package/dist/lib/models/opportunities/job.d.ts.map +1 -1
- package/dist/lib/models/opportunities/opportunity.d.ts +61 -33
- package/dist/lib/models/opportunities/opportunity.d.ts.map +1 -1
- package/dist/lib/models/opportunities/opportunity.js +1 -0
- package/dist/lib/models/opportunities/volunteerJob.d.ts +48 -20
- package/dist/lib/models/opportunities/volunteerJob.d.ts.map +1 -1
- package/dist/lib/models/package.d.ts +2 -2
- package/dist/lib/models/props.d.ts +21 -0
- package/dist/lib/models/props.d.ts.map +1 -1
- package/dist/lib/models/rental.d.ts +7 -0
- package/dist/lib/models/rental.d.ts.map +1 -1
- package/dist/lib/models/stay.d.ts +2 -2
- package/dist/lib/models/user.d.ts +19 -4
- package/dist/lib/models/user.d.ts.map +1 -1
- package/dist/lib/models/user.js +5 -0
- package/dist/lib/userAtom.d.ts +24 -4
- package/dist/lib/userAtom.d.ts.map +1 -1
- package/dist/lib/userAtom.js +13 -11
- package/dist/lib/utils/socialMediaUrl.d.ts +25 -0
- package/dist/lib/utils/socialMediaUrl.d.ts.map +1 -0
- package/dist/lib/utils/socialMediaUrl.js +97 -0
- package/dist/lib/utils.js +4 -4
- package/package.json +2 -1
- package/dist/lib/actions/severActions.d.ts.map +0 -1
- package/dist/lib/models/notfications.d.ts.map +0 -1
- /package/dist/lib/models/{notfications.js → notifications.js} +0 -0
|
@@ -28,8 +28,8 @@ export declare const workModeOptions: readonly [{
|
|
|
28
28
|
readonly value: "hybrid";
|
|
29
29
|
readonly label: "Hybrid";
|
|
30
30
|
}];
|
|
31
|
-
export declare const OpportunityTypeEnum: z.ZodEnum<[
|
|
32
|
-
export declare const WorkModeEnum: z.ZodEnum<[
|
|
31
|
+
export declare const OpportunityTypeEnum: z.ZodEnum<["volunteer" | "internship" | "freelance" | "job", ...("volunteer" | "internship" | "freelance" | "job")[]]>;
|
|
32
|
+
export declare const WorkModeEnum: z.ZodEnum<["onsite" | "remote" | "hybrid", ...("onsite" | "remote" | "hybrid")[]]>;
|
|
33
33
|
export declare const OpportunityStatusEnum: z.ZodEnum<["draft", "archived", "pending", "open", "closed", "denied", "deleted"]>;
|
|
34
34
|
export declare const compensationTypeOptions: readonly [{
|
|
35
35
|
readonly value: "free";
|
|
@@ -65,23 +65,23 @@ export type WorkMode = typeof workModeOptions[number]['value'];
|
|
|
65
65
|
export type CompensationType = typeof compensationTypeOptions[number]['value'];
|
|
66
66
|
export type PayFrequency = typeof payFrequencyOptions[number]['value'];
|
|
67
67
|
export declare const getCompensationTypeForOpportunity: (oppType: OpportunityType) => CompensationType;
|
|
68
|
-
export declare const CompensationTypeEnum: z.ZodEnum<[
|
|
69
|
-
export declare const PayFrequencyEnum: z.ZodEnum<[
|
|
68
|
+
export declare const CompensationTypeEnum: z.ZodEnum<["free" | "stipend" | "salary" | "project-based", ...("free" | "stipend" | "salary" | "project-based")[]]>;
|
|
69
|
+
export declare const PayFrequencyEnum: z.ZodEnum<["daily" | "weekly" | "monthly" | "yearly" | "one-time", ...("daily" | "weekly" | "monthly" | "yearly" | "one-time")[]]>;
|
|
70
70
|
export declare const CompensationSchema: z.ZodObject<{
|
|
71
|
-
type: z.ZodEnum<[
|
|
71
|
+
type: z.ZodEnum<["free" | "stipend" | "salary" | "project-based", ...("free" | "stipend" | "salary" | "project-based")[]]>;
|
|
72
72
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
73
73
|
currency: z.ZodEnum<[string, ...string[]]>;
|
|
74
|
-
frequency: z.ZodOptional<z.ZodEnum<[
|
|
74
|
+
frequency: z.ZodOptional<z.ZodEnum<["daily" | "weekly" | "monthly" | "yearly" | "one-time", ...("daily" | "weekly" | "monthly" | "yearly" | "one-time")[]]>>;
|
|
75
75
|
}, "strip", z.ZodTypeAny, {
|
|
76
|
-
type:
|
|
76
|
+
type: "free" | "stipend" | "salary" | "project-based";
|
|
77
77
|
currency: string;
|
|
78
78
|
amount?: number | undefined;
|
|
79
|
-
frequency?:
|
|
79
|
+
frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
|
|
80
80
|
}, {
|
|
81
|
-
type:
|
|
81
|
+
type: "free" | "stipend" | "salary" | "project-based";
|
|
82
82
|
currency: string;
|
|
83
83
|
amount?: number | undefined;
|
|
84
|
-
frequency?:
|
|
84
|
+
frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
|
|
85
85
|
}>;
|
|
86
86
|
export type Compensation = z.infer<typeof CompensationSchema>;
|
|
87
87
|
export declare const BondPlanSchema: z.ZodObject<{
|
|
@@ -106,7 +106,7 @@ export declare const BondPlanSchema: z.ZodObject<{
|
|
|
106
106
|
export type BondPlan = z.infer<typeof BondPlanSchema>;
|
|
107
107
|
export declare const OpportunitySchema: z.ZodObject<{
|
|
108
108
|
slug: z.ZodString;
|
|
109
|
-
opportunityType: z.ZodEnum<[
|
|
109
|
+
opportunityType: z.ZodEnum<["volunteer" | "internship" | "freelance" | "job", ...("volunteer" | "internship" | "freelance" | "job")[]]>;
|
|
110
110
|
title: z.ZodString;
|
|
111
111
|
skills: z.ZodArray<z.ZodString, "many">;
|
|
112
112
|
description: z.ZodString;
|
|
@@ -116,22 +116,22 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
116
116
|
state: z.ZodString;
|
|
117
117
|
country: z.ZodString;
|
|
118
118
|
address: z.ZodOptional<z.ZodString>;
|
|
119
|
-
workMode: z.ZodOptional<z.ZodEnum<[
|
|
119
|
+
workMode: z.ZodOptional<z.ZodEnum<["onsite" | "remote" | "hybrid", ...("onsite" | "remote" | "hybrid")[]]>>;
|
|
120
120
|
compensation: z.ZodOptional<z.ZodObject<{
|
|
121
|
-
type: z.ZodEnum<[
|
|
121
|
+
type: z.ZodEnum<["free" | "stipend" | "salary" | "project-based", ...("free" | "stipend" | "salary" | "project-based")[]]>;
|
|
122
122
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
123
123
|
currency: z.ZodEnum<[string, ...string[]]>;
|
|
124
|
-
frequency: z.ZodOptional<z.ZodEnum<[
|
|
124
|
+
frequency: z.ZodOptional<z.ZodEnum<["daily" | "weekly" | "monthly" | "yearly" | "one-time", ...("daily" | "weekly" | "monthly" | "yearly" | "one-time")[]]>>;
|
|
125
125
|
}, "strip", z.ZodTypeAny, {
|
|
126
|
-
type:
|
|
126
|
+
type: "free" | "stipend" | "salary" | "project-based";
|
|
127
127
|
currency: string;
|
|
128
128
|
amount?: number | undefined;
|
|
129
|
-
frequency?:
|
|
129
|
+
frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
|
|
130
130
|
}, {
|
|
131
|
-
type:
|
|
131
|
+
type: "free" | "stipend" | "salary" | "project-based";
|
|
132
132
|
currency: string;
|
|
133
133
|
amount?: number | undefined;
|
|
134
|
-
frequency?:
|
|
134
|
+
frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
|
|
135
135
|
}>>;
|
|
136
136
|
bondPlan: z.ZodOptional<z.ZodObject<{
|
|
137
137
|
enabled: z.ZodBoolean;
|
|
@@ -170,6 +170,7 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
170
170
|
answer: string;
|
|
171
171
|
}>, "many">;
|
|
172
172
|
applicationCount: z.ZodNumber;
|
|
173
|
+
pendingApplicationCount: z.ZodOptional<z.ZodNumber>;
|
|
173
174
|
views: z.ZodNumber;
|
|
174
175
|
shares: z.ZodNumber;
|
|
175
176
|
rating: z.ZodNumber;
|
|
@@ -206,7 +207,7 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
206
207
|
verifiedMobile: z.ZodBoolean;
|
|
207
208
|
verifiedIdCard: z.ZodOptional<z.ZodBoolean>;
|
|
208
209
|
role: z.ZodEnum<["host", "user", "admin", "hr", "sales"]>;
|
|
209
|
-
socialLinks: z.ZodOptional<z.ZodRecord<z.ZodEnum<[
|
|
210
|
+
socialLinks: z.ZodOptional<z.ZodRecord<z.ZodEnum<["instagram", "linkedin", "youtube", "googleBusiness"]>, z.ZodString>>;
|
|
210
211
|
userResume: z.ZodOptional<z.ZodString>;
|
|
211
212
|
skills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
212
213
|
skill: z.ZodString;
|
|
@@ -257,6 +258,11 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
257
258
|
pinCode?: string | undefined;
|
|
258
259
|
registrationNumber?: string | undefined;
|
|
259
260
|
}>, "many">>;
|
|
261
|
+
businessDocument: z.ZodOptional<z.ZodString>;
|
|
262
|
+
businessIdType: z.ZodOptional<z.ZodEnum<["PAN", "GST", "Udyam", "PersonalPAN"]>>;
|
|
263
|
+
businessIdNumber: z.ZodOptional<z.ZodString>;
|
|
264
|
+
businessApiVerificationStatus: z.ZodOptional<z.ZodEnum<["pending", "verified", "failed"]>>;
|
|
265
|
+
businessVerificationDenialReason: z.ZodOptional<z.ZodString>;
|
|
260
266
|
}, "strict", z.ZodTypeAny, {
|
|
261
267
|
username: string;
|
|
262
268
|
firstName: string;
|
|
@@ -287,7 +293,7 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
287
293
|
accessToken?: string | undefined;
|
|
288
294
|
refreshToken?: string | undefined;
|
|
289
295
|
verifiedIdCard?: boolean | undefined;
|
|
290
|
-
socialLinks?: Record<
|
|
296
|
+
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
291
297
|
userResume?: string | undefined;
|
|
292
298
|
skills?: {
|
|
293
299
|
skill: string;
|
|
@@ -314,6 +320,11 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
314
320
|
pinCode?: string | undefined;
|
|
315
321
|
registrationNumber?: string | undefined;
|
|
316
322
|
}[] | undefined;
|
|
323
|
+
businessDocument?: string | undefined;
|
|
324
|
+
businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
|
|
325
|
+
businessIdNumber?: string | undefined;
|
|
326
|
+
businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
|
|
327
|
+
businessVerificationDenialReason?: string | undefined;
|
|
317
328
|
}, {
|
|
318
329
|
username: string;
|
|
319
330
|
firstName: string;
|
|
@@ -344,7 +355,7 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
344
355
|
accessToken?: string | undefined;
|
|
345
356
|
refreshToken?: string | undefined;
|
|
346
357
|
verifiedIdCard?: boolean | undefined;
|
|
347
|
-
socialLinks?: Record<
|
|
358
|
+
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
348
359
|
userResume?: string | undefined;
|
|
349
360
|
skills?: {
|
|
350
361
|
skill: string;
|
|
@@ -371,6 +382,11 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
371
382
|
pinCode?: string | undefined;
|
|
372
383
|
registrationNumber?: string | undefined;
|
|
373
384
|
}[] | undefined;
|
|
385
|
+
businessDocument?: string | undefined;
|
|
386
|
+
businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
|
|
387
|
+
businessIdNumber?: string | undefined;
|
|
388
|
+
businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
|
|
389
|
+
businessVerificationDenialReason?: string | undefined;
|
|
374
390
|
}>>;
|
|
375
391
|
applicationObservers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
376
392
|
username: z.ZodString;
|
|
@@ -397,7 +413,7 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
397
413
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
398
414
|
}, "strict", z.ZodTypeAny, {
|
|
399
415
|
country: string;
|
|
400
|
-
status: "
|
|
416
|
+
status: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | "deleted";
|
|
401
417
|
rating: number;
|
|
402
418
|
ratingCount: number;
|
|
403
419
|
reviewCount: number;
|
|
@@ -407,7 +423,7 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
407
423
|
title: string;
|
|
408
424
|
description: string;
|
|
409
425
|
slug: string;
|
|
410
|
-
opportunityType:
|
|
426
|
+
opportunityType: "volunteer" | "internship" | "freelance" | "job";
|
|
411
427
|
images: string[];
|
|
412
428
|
availableFrom: Date;
|
|
413
429
|
minDuration: number;
|
|
@@ -453,7 +469,7 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
453
469
|
accessToken?: string | undefined;
|
|
454
470
|
refreshToken?: string | undefined;
|
|
455
471
|
verifiedIdCard?: boolean | undefined;
|
|
456
|
-
socialLinks?: Record<
|
|
472
|
+
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
457
473
|
userResume?: string | undefined;
|
|
458
474
|
skills?: {
|
|
459
475
|
skill: string;
|
|
@@ -480,18 +496,23 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
480
496
|
pinCode?: string | undefined;
|
|
481
497
|
registrationNumber?: string | undefined;
|
|
482
498
|
}[] | undefined;
|
|
499
|
+
businessDocument?: string | undefined;
|
|
500
|
+
businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
|
|
501
|
+
businessIdNumber?: string | undefined;
|
|
502
|
+
businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
|
|
503
|
+
businessVerificationDenialReason?: string | undefined;
|
|
483
504
|
};
|
|
484
505
|
adminApproval: boolean;
|
|
485
506
|
address?: string | undefined;
|
|
486
507
|
createdAt?: Date | undefined;
|
|
487
508
|
updatedAt?: Date | undefined;
|
|
488
509
|
categoryId?: string | undefined;
|
|
489
|
-
workMode?:
|
|
510
|
+
workMode?: "onsite" | "remote" | "hybrid" | undefined;
|
|
490
511
|
compensation?: {
|
|
491
|
-
type:
|
|
512
|
+
type: "free" | "stipend" | "salary" | "project-based";
|
|
492
513
|
currency: string;
|
|
493
514
|
amount?: number | undefined;
|
|
494
|
-
frequency?:
|
|
515
|
+
frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
|
|
495
516
|
} | undefined;
|
|
496
517
|
bondPlan?: {
|
|
497
518
|
enabled: boolean;
|
|
@@ -500,6 +521,7 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
500
521
|
hostFee?: number | undefined;
|
|
501
522
|
securityDeposit?: number | undefined;
|
|
502
523
|
} | undefined;
|
|
524
|
+
pendingApplicationCount?: number | undefined;
|
|
503
525
|
hostingType?: string | undefined;
|
|
504
526
|
applicationObservers?: {
|
|
505
527
|
username: string;
|
|
@@ -510,7 +532,7 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
510
532
|
}[] | undefined;
|
|
511
533
|
}, {
|
|
512
534
|
country: string;
|
|
513
|
-
status: "
|
|
535
|
+
status: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | "deleted";
|
|
514
536
|
rating: number;
|
|
515
537
|
ratingCount: number;
|
|
516
538
|
reviewCount: number;
|
|
@@ -520,7 +542,7 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
520
542
|
title: string;
|
|
521
543
|
description: string;
|
|
522
544
|
slug: string;
|
|
523
|
-
opportunityType:
|
|
545
|
+
opportunityType: "volunteer" | "internship" | "freelance" | "job";
|
|
524
546
|
images: string[];
|
|
525
547
|
availableFrom: Date;
|
|
526
548
|
minDuration: number;
|
|
@@ -566,7 +588,7 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
566
588
|
accessToken?: string | undefined;
|
|
567
589
|
refreshToken?: string | undefined;
|
|
568
590
|
verifiedIdCard?: boolean | undefined;
|
|
569
|
-
socialLinks?: Record<
|
|
591
|
+
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
570
592
|
userResume?: string | undefined;
|
|
571
593
|
skills?: {
|
|
572
594
|
skill: string;
|
|
@@ -593,18 +615,23 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
593
615
|
pinCode?: string | undefined;
|
|
594
616
|
registrationNumber?: string | undefined;
|
|
595
617
|
}[] | undefined;
|
|
618
|
+
businessDocument?: string | undefined;
|
|
619
|
+
businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
|
|
620
|
+
businessIdNumber?: string | undefined;
|
|
621
|
+
businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
|
|
622
|
+
businessVerificationDenialReason?: string | undefined;
|
|
596
623
|
};
|
|
597
624
|
adminApproval: boolean;
|
|
598
625
|
address?: string | undefined;
|
|
599
626
|
createdAt?: Date | undefined;
|
|
600
627
|
updatedAt?: Date | undefined;
|
|
601
628
|
categoryId?: string | undefined;
|
|
602
|
-
workMode?:
|
|
629
|
+
workMode?: "onsite" | "remote" | "hybrid" | undefined;
|
|
603
630
|
compensation?: {
|
|
604
|
-
type:
|
|
631
|
+
type: "free" | "stipend" | "salary" | "project-based";
|
|
605
632
|
currency: string;
|
|
606
633
|
amount?: number | undefined;
|
|
607
|
-
frequency?:
|
|
634
|
+
frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
|
|
608
635
|
} | undefined;
|
|
609
636
|
bondPlan?: {
|
|
610
637
|
enabled: boolean;
|
|
@@ -613,6 +640,7 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
613
640
|
securityDeposit?: number | undefined;
|
|
614
641
|
commissionRate?: number | undefined;
|
|
615
642
|
} | undefined;
|
|
643
|
+
pendingApplicationCount?: number | undefined;
|
|
616
644
|
hostingType?: string | undefined;
|
|
617
645
|
applicationObservers?: {
|
|
618
646
|
username: string;
|
|
@@ -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;;;;;;;;;;;;;;;;EAKzB,CAAC;AAEX,eAAO,MAAM,eAAe;;;;;;;;;EAIlB,CAAC;AACX,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"opportunity.d.ts","sourceRoot":"","sources":["../../../../src/lib/models/opportunities/opportunity.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B,eAAO,MAAM,4BAA4B,EA2BpC,WAAW,EAAE,CAAC"}
|
|
@@ -90,6 +90,7 @@ export const OpportunitySchema = z.object({
|
|
|
90
90
|
responsibilities: z.array(z.string()),
|
|
91
91
|
questions: z.array(QuestionSchema),
|
|
92
92
|
applicationCount: z.number(),
|
|
93
|
+
pendingApplicationCount: z.number().optional(),
|
|
93
94
|
views: z.number(),
|
|
94
95
|
shares: z.number(),
|
|
95
96
|
rating: z.number(),
|
|
@@ -10,22 +10,22 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
10
10
|
state: z.ZodString;
|
|
11
11
|
country: z.ZodString;
|
|
12
12
|
address: z.ZodOptional<z.ZodString>;
|
|
13
|
-
workMode: z.ZodOptional<z.ZodEnum<[
|
|
13
|
+
workMode: z.ZodOptional<z.ZodEnum<["onsite" | "remote" | "hybrid", ...("onsite" | "remote" | "hybrid")[]]>>;
|
|
14
14
|
compensation: z.ZodOptional<z.ZodObject<{
|
|
15
|
-
type: z.ZodEnum<[
|
|
15
|
+
type: z.ZodEnum<["free" | "stipend" | "salary" | "project-based", ...("free" | "stipend" | "salary" | "project-based")[]]>;
|
|
16
16
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
17
17
|
currency: z.ZodEnum<[string, ...string[]]>;
|
|
18
|
-
frequency: z.ZodOptional<z.ZodEnum<[
|
|
18
|
+
frequency: z.ZodOptional<z.ZodEnum<["daily" | "weekly" | "monthly" | "yearly" | "one-time", ...("daily" | "weekly" | "monthly" | "yearly" | "one-time")[]]>>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
type:
|
|
20
|
+
type: "free" | "stipend" | "salary" | "project-based";
|
|
21
21
|
currency: string;
|
|
22
22
|
amount?: number | undefined;
|
|
23
|
-
frequency?:
|
|
23
|
+
frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
|
|
24
24
|
}, {
|
|
25
|
-
type:
|
|
25
|
+
type: "free" | "stipend" | "salary" | "project-based";
|
|
26
26
|
currency: string;
|
|
27
27
|
amount?: number | undefined;
|
|
28
|
-
frequency?:
|
|
28
|
+
frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
|
|
29
29
|
}>>;
|
|
30
30
|
bondPlan: z.ZodOptional<z.ZodObject<{
|
|
31
31
|
enabled: z.ZodBoolean;
|
|
@@ -64,6 +64,7 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
64
64
|
answer: string;
|
|
65
65
|
}>, "many">;
|
|
66
66
|
applicationCount: z.ZodNumber;
|
|
67
|
+
pendingApplicationCount: z.ZodOptional<z.ZodNumber>;
|
|
67
68
|
views: z.ZodNumber;
|
|
68
69
|
shares: z.ZodNumber;
|
|
69
70
|
rating: z.ZodNumber;
|
|
@@ -100,7 +101,7 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
100
101
|
verifiedMobile: z.ZodBoolean;
|
|
101
102
|
verifiedIdCard: z.ZodOptional<z.ZodBoolean>;
|
|
102
103
|
role: z.ZodEnum<["host", "user", "admin", "hr", "sales"]>;
|
|
103
|
-
socialLinks: z.ZodOptional<z.ZodRecord<z.ZodEnum<[
|
|
104
|
+
socialLinks: z.ZodOptional<z.ZodRecord<z.ZodEnum<["instagram", "linkedin", "youtube", "googleBusiness"]>, z.ZodString>>;
|
|
104
105
|
userResume: z.ZodOptional<z.ZodString>;
|
|
105
106
|
skills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
106
107
|
skill: z.ZodString;
|
|
@@ -151,6 +152,11 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
151
152
|
pinCode?: string | undefined;
|
|
152
153
|
registrationNumber?: string | undefined;
|
|
153
154
|
}>, "many">>;
|
|
155
|
+
businessDocument: z.ZodOptional<z.ZodString>;
|
|
156
|
+
businessIdType: z.ZodOptional<z.ZodEnum<["PAN", "GST", "Udyam", "PersonalPAN"]>>;
|
|
157
|
+
businessIdNumber: z.ZodOptional<z.ZodString>;
|
|
158
|
+
businessApiVerificationStatus: z.ZodOptional<z.ZodEnum<["pending", "verified", "failed"]>>;
|
|
159
|
+
businessVerificationDenialReason: z.ZodOptional<z.ZodString>;
|
|
154
160
|
}, "strict", z.ZodTypeAny, {
|
|
155
161
|
username: string;
|
|
156
162
|
firstName: string;
|
|
@@ -181,7 +187,7 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
181
187
|
accessToken?: string | undefined;
|
|
182
188
|
refreshToken?: string | undefined;
|
|
183
189
|
verifiedIdCard?: boolean | undefined;
|
|
184
|
-
socialLinks?: Record<
|
|
190
|
+
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
185
191
|
userResume?: string | undefined;
|
|
186
192
|
skills?: {
|
|
187
193
|
skill: string;
|
|
@@ -208,6 +214,11 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
208
214
|
pinCode?: string | undefined;
|
|
209
215
|
registrationNumber?: string | undefined;
|
|
210
216
|
}[] | undefined;
|
|
217
|
+
businessDocument?: string | undefined;
|
|
218
|
+
businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
|
|
219
|
+
businessIdNumber?: string | undefined;
|
|
220
|
+
businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
|
|
221
|
+
businessVerificationDenialReason?: string | undefined;
|
|
211
222
|
}, {
|
|
212
223
|
username: string;
|
|
213
224
|
firstName: string;
|
|
@@ -238,7 +249,7 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
238
249
|
accessToken?: string | undefined;
|
|
239
250
|
refreshToken?: string | undefined;
|
|
240
251
|
verifiedIdCard?: boolean | undefined;
|
|
241
|
-
socialLinks?: Record<
|
|
252
|
+
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
242
253
|
userResume?: string | undefined;
|
|
243
254
|
skills?: {
|
|
244
255
|
skill: string;
|
|
@@ -265,6 +276,11 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
265
276
|
pinCode?: string | undefined;
|
|
266
277
|
registrationNumber?: string | undefined;
|
|
267
278
|
}[] | undefined;
|
|
279
|
+
businessDocument?: string | undefined;
|
|
280
|
+
businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
|
|
281
|
+
businessIdNumber?: string | undefined;
|
|
282
|
+
businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
|
|
283
|
+
businessVerificationDenialReason?: string | undefined;
|
|
268
284
|
}>>;
|
|
269
285
|
applicationObservers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
270
286
|
username: z.ZodString;
|
|
@@ -293,7 +309,7 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
293
309
|
opportunityType: z.ZodLiteral<"volunteer">;
|
|
294
310
|
}, "strict", z.ZodTypeAny, {
|
|
295
311
|
country: string;
|
|
296
|
-
status: "
|
|
312
|
+
status: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | "deleted";
|
|
297
313
|
rating: number;
|
|
298
314
|
ratingCount: number;
|
|
299
315
|
reviewCount: number;
|
|
@@ -349,7 +365,7 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
349
365
|
accessToken?: string | undefined;
|
|
350
366
|
refreshToken?: string | undefined;
|
|
351
367
|
verifiedIdCard?: boolean | undefined;
|
|
352
|
-
socialLinks?: Record<
|
|
368
|
+
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
353
369
|
userResume?: string | undefined;
|
|
354
370
|
skills?: {
|
|
355
371
|
skill: string;
|
|
@@ -376,18 +392,23 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
376
392
|
pinCode?: string | undefined;
|
|
377
393
|
registrationNumber?: string | undefined;
|
|
378
394
|
}[] | undefined;
|
|
395
|
+
businessDocument?: string | undefined;
|
|
396
|
+
businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
|
|
397
|
+
businessIdNumber?: string | undefined;
|
|
398
|
+
businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
|
|
399
|
+
businessVerificationDenialReason?: string | undefined;
|
|
379
400
|
};
|
|
380
401
|
adminApproval: boolean;
|
|
381
402
|
address?: string | undefined;
|
|
382
403
|
createdAt?: Date | undefined;
|
|
383
404
|
updatedAt?: Date | undefined;
|
|
384
405
|
categoryId?: string | undefined;
|
|
385
|
-
workMode?:
|
|
406
|
+
workMode?: "onsite" | "remote" | "hybrid" | undefined;
|
|
386
407
|
compensation?: {
|
|
387
|
-
type:
|
|
408
|
+
type: "free" | "stipend" | "salary" | "project-based";
|
|
388
409
|
currency: string;
|
|
389
410
|
amount?: number | undefined;
|
|
390
|
-
frequency?:
|
|
411
|
+
frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
|
|
391
412
|
} | undefined;
|
|
392
413
|
bondPlan?: {
|
|
393
414
|
enabled: boolean;
|
|
@@ -396,6 +417,7 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
396
417
|
hostFee?: number | undefined;
|
|
397
418
|
securityDeposit?: number | undefined;
|
|
398
419
|
} | undefined;
|
|
420
|
+
pendingApplicationCount?: number | undefined;
|
|
399
421
|
hostingType?: string | undefined;
|
|
400
422
|
applicationObservers?: {
|
|
401
423
|
username: string;
|
|
@@ -406,7 +428,7 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
406
428
|
}[] | undefined;
|
|
407
429
|
}, {
|
|
408
430
|
country: string;
|
|
409
|
-
status: "
|
|
431
|
+
status: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | "deleted";
|
|
410
432
|
rating: number;
|
|
411
433
|
ratingCount: number;
|
|
412
434
|
reviewCount: number;
|
|
@@ -462,7 +484,7 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
462
484
|
accessToken?: string | undefined;
|
|
463
485
|
refreshToken?: string | undefined;
|
|
464
486
|
verifiedIdCard?: boolean | undefined;
|
|
465
|
-
socialLinks?: Record<
|
|
487
|
+
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
466
488
|
userResume?: string | undefined;
|
|
467
489
|
skills?: {
|
|
468
490
|
skill: string;
|
|
@@ -489,18 +511,23 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
489
511
|
pinCode?: string | undefined;
|
|
490
512
|
registrationNumber?: string | undefined;
|
|
491
513
|
}[] | undefined;
|
|
514
|
+
businessDocument?: string | undefined;
|
|
515
|
+
businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
|
|
516
|
+
businessIdNumber?: string | undefined;
|
|
517
|
+
businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
|
|
518
|
+
businessVerificationDenialReason?: string | undefined;
|
|
492
519
|
};
|
|
493
520
|
adminApproval: boolean;
|
|
494
521
|
address?: string | undefined;
|
|
495
522
|
createdAt?: Date | undefined;
|
|
496
523
|
updatedAt?: Date | undefined;
|
|
497
524
|
categoryId?: string | undefined;
|
|
498
|
-
workMode?:
|
|
525
|
+
workMode?: "onsite" | "remote" | "hybrid" | undefined;
|
|
499
526
|
compensation?: {
|
|
500
|
-
type:
|
|
527
|
+
type: "free" | "stipend" | "salary" | "project-based";
|
|
501
528
|
currency: string;
|
|
502
529
|
amount?: number | undefined;
|
|
503
|
-
frequency?:
|
|
530
|
+
frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
|
|
504
531
|
} | undefined;
|
|
505
532
|
bondPlan?: {
|
|
506
533
|
enabled: boolean;
|
|
@@ -509,6 +536,7 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
509
536
|
securityDeposit?: number | undefined;
|
|
510
537
|
commissionRate?: number | undefined;
|
|
511
538
|
} | undefined;
|
|
539
|
+
pendingApplicationCount?: number | undefined;
|
|
512
540
|
hostingType?: string | undefined;
|
|
513
541
|
applicationObservers?: {
|
|
514
542
|
username: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volunteerJob.d.ts","sourceRoot":"","sources":["../../../../src/lib/models/opportunities/volunteerJob.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"volunteerJob.d.ts","sourceRoot":"","sources":["../../../../src/lib/models/opportunities/volunteerJob.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAErC,CAAC"}
|
|
@@ -136,7 +136,7 @@ export declare const TravelPackageSchema: z.ZodObject<{
|
|
|
136
136
|
}>>;
|
|
137
137
|
}, "strip", z.ZodTypeAny, {
|
|
138
138
|
country: string;
|
|
139
|
-
status: "
|
|
139
|
+
status: "pending" | "draft" | "archived" | "denied" | "open" | "closed";
|
|
140
140
|
rating: number;
|
|
141
141
|
ratingCount: number;
|
|
142
142
|
reviewCount: number;
|
|
@@ -207,7 +207,7 @@ export declare const TravelPackageSchema: z.ZodObject<{
|
|
|
207
207
|
image?: string | undefined;
|
|
208
208
|
} | undefined;
|
|
209
209
|
country?: string | undefined;
|
|
210
|
-
status?: "
|
|
210
|
+
status?: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | undefined;
|
|
211
211
|
rating?: number | undefined;
|
|
212
212
|
ratingCount?: number | undefined;
|
|
213
213
|
reviewCount?: number | undefined;
|
|
@@ -17,6 +17,27 @@ export interface CardType {
|
|
|
17
17
|
desc?: string;
|
|
18
18
|
}
|
|
19
19
|
export type UserRole = 'user' | 'host' | 'admin';
|
|
20
|
+
export interface DisplayItem {
|
|
21
|
+
icon: string;
|
|
22
|
+
title: string;
|
|
23
|
+
}
|
|
24
|
+
export interface Interest {
|
|
25
|
+
type: 'opportunity' | 'package';
|
|
26
|
+
description: string;
|
|
27
|
+
preferredLocation?: string;
|
|
28
|
+
skillCategory?: string;
|
|
29
|
+
preferredDuration?: number;
|
|
30
|
+
opportunityType?: string;
|
|
31
|
+
preferredSkills?: string[];
|
|
32
|
+
preferredHostingType?: string;
|
|
33
|
+
availableFrom?: Date;
|
|
34
|
+
packageType?: string;
|
|
35
|
+
travelDates?: Date;
|
|
36
|
+
groupSize?: number;
|
|
37
|
+
preferredDifficulty?: string;
|
|
38
|
+
preferredActivities?: string[];
|
|
39
|
+
budget?: string;
|
|
40
|
+
}
|
|
20
41
|
export declare const skillsData: {
|
|
21
42
|
icon: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
22
43
|
title: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/lib/models/props.ts"],"names":[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MAAM,CAAC;CACjB;AAED,MAAM,WAAW,QAAQ;IACrB,IAAI,EAAE,aAAa,GAAG,SAAS,CAAC;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,aAAa,CAAC,EAAE,IAAI,CAAC;IAErB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAE/B,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,UAAU;;;GA8BtB,CAAC;AAEF,eAAO,MAAM,aAAa;;GA+FzB,CAAC;AAEF,eAAO,MAAM,aAAa;;GAmCzB,CAAC;AAEF,MAAM,WAAW,WAAW;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,YAAY,qCAAqC,CAAA"}
|
|
@@ -24,6 +24,8 @@ export interface Rental {
|
|
|
24
24
|
images: string[];
|
|
25
25
|
city: string;
|
|
26
26
|
state: string;
|
|
27
|
+
address?: string;
|
|
28
|
+
mapLink?: string;
|
|
27
29
|
country?: string;
|
|
28
30
|
pickupAddress?: string;
|
|
29
31
|
dropAddress?: string;
|
|
@@ -33,6 +35,11 @@ export interface Rental {
|
|
|
33
35
|
lat?: number;
|
|
34
36
|
lng?: number;
|
|
35
37
|
}[];
|
|
38
|
+
location?: {
|
|
39
|
+
type: string;
|
|
40
|
+
coordinates: [number, number];
|
|
41
|
+
};
|
|
42
|
+
inventoryCount?: number;
|
|
36
43
|
homeDeliveryAvailable?: boolean;
|
|
37
44
|
homeDeliveryPrice?: number;
|
|
38
45
|
cancellationPolicy?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rental.d.ts","sourceRoot":"","sources":["../../../src/lib/models/rental.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,eAAe,GAAG,cAAc,GAAG,iBAAiB,GAAG,OAAO,CAAC;AACvI,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;AAC3F,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,KAAK,GAAG,QAAQ,CAAC;AAC3E,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,cAAc,GAAG,UAAU,CAAC;AACtE,MAAM,MAAM,YAAY,GAAG,YAAY,GAAG,aAAa,GAAG,MAAM,CAAC;AACjE,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,WAAW,CAAC;AAEtD,MAAM,WAAW,MAAM;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IAGpB,WAAW,EAAE,WAAW,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,YAAY,CAAC,EAAE,gBAAgB,CAAC;IA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CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,MAAM,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;IAEF,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,CAAC,EAAE,IAAI,CAAC;CACpB;AAED,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,WAAW,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -346,7 +346,7 @@ export declare const StaySchema: z.ZodObject<{
|
|
|
346
346
|
state: string;
|
|
347
347
|
title: string;
|
|
348
348
|
propertyType: string;
|
|
349
|
-
status?: "
|
|
349
|
+
status?: "pending" | "draft" | "archived" | "open" | "closed" | "active" | "inactive" | undefined;
|
|
350
350
|
rating?: number | undefined;
|
|
351
351
|
ratingCount?: number | undefined;
|
|
352
352
|
reviewCount?: number | undefined;
|
|
@@ -401,7 +401,7 @@ export declare const StaySchema: z.ZodObject<{
|
|
|
401
401
|
title: string;
|
|
402
402
|
propertyType: string;
|
|
403
403
|
country?: string | undefined;
|
|
404
|
-
status?: "
|
|
404
|
+
status?: "pending" | "draft" | "archived" | "open" | "closed" | "active" | "inactive" | undefined;
|
|
405
405
|
rating?: number | undefined;
|
|
406
406
|
ratingCount?: number | undefined;
|
|
407
407
|
reviewCount?: number | undefined;
|