@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
|
@@ -72,7 +72,9 @@ export declare function getRatingById(id: string[], type: reviewTargetType): Pro
|
|
|
72
72
|
reviewCount: number;
|
|
73
73
|
}[];
|
|
74
74
|
}>;
|
|
75
|
-
export declare function addReview(id: string, type: reviewTargetType, formData: reviewType
|
|
75
|
+
export declare function addReview(id: string, type: reviewTargetType, formData: reviewType & {
|
|
76
|
+
images?: File[];
|
|
77
|
+
}): Promise<{
|
|
76
78
|
success: boolean;
|
|
77
79
|
review: Review | null;
|
|
78
80
|
message?: string;
|
|
@@ -93,18 +95,17 @@ export declare function getAllNotifications(): Promise<{
|
|
|
93
95
|
success: boolean;
|
|
94
96
|
message: string;
|
|
95
97
|
notifs: {
|
|
96
|
-
message: string;
|
|
97
98
|
_id: string;
|
|
99
|
+
message: string;
|
|
98
100
|
read: boolean;
|
|
99
101
|
type?: "new_message" | "milestone_completed" | "expense_added" | "group_invite" | "mention" | "application_received" | "application_status" | "application_shortlisted" | "id_verification_request" | "id_verified" | "id_rejected" | "package_enquiry" | "package_approval" | "package_denial" | "package_rating" | "package_review" | "opportunity_assigned" | "opportunity_approval" | "opportunity_denial" | "opportunity_rating" | "opportunity_review" | "blog_like" | "blog_comment" | "blog_posted" | "blog_approval" | "blog_denial" | "booking_confirmed" | "system" | "general" | undefined;
|
|
100
102
|
userId?: string | undefined;
|
|
101
103
|
timestamp?: any;
|
|
102
104
|
link?: string | undefined;
|
|
103
|
-
category?: "
|
|
105
|
+
category?: "opportunity" | "package" | "blog" | "system" | "general" | "chat" | "application" | "account" | "booking" | undefined;
|
|
104
106
|
metadata?: {
|
|
105
|
-
title?: string | undefined;
|
|
106
|
-
status?: string | undefined;
|
|
107
107
|
rating?: number | undefined;
|
|
108
|
+
status?: string | undefined;
|
|
108
109
|
conversationId?: string | undefined;
|
|
109
110
|
messageId?: string | undefined;
|
|
110
111
|
senderId?: string | undefined;
|
|
@@ -114,6 +115,7 @@ export declare function getAllNotifications(): Promise<{
|
|
|
114
115
|
expenseId?: string | undefined;
|
|
115
116
|
referenceId?: string | undefined;
|
|
116
117
|
referenceType?: string | undefined;
|
|
118
|
+
title?: string | undefined;
|
|
117
119
|
} | undefined;
|
|
118
120
|
}[];
|
|
119
121
|
unreadCount: number;
|
|
@@ -129,18 +131,17 @@ export declare function getNotifications(limit: number): Promise<{
|
|
|
129
131
|
success: boolean;
|
|
130
132
|
message: string;
|
|
131
133
|
notifs: {
|
|
132
|
-
message: string;
|
|
133
134
|
_id: string;
|
|
135
|
+
message: string;
|
|
134
136
|
read: boolean;
|
|
135
137
|
type?: "new_message" | "milestone_completed" | "expense_added" | "group_invite" | "mention" | "application_received" | "application_status" | "application_shortlisted" | "id_verification_request" | "id_verified" | "id_rejected" | "package_enquiry" | "package_approval" | "package_denial" | "package_rating" | "package_review" | "opportunity_assigned" | "opportunity_approval" | "opportunity_denial" | "opportunity_rating" | "opportunity_review" | "blog_like" | "blog_comment" | "blog_posted" | "blog_approval" | "blog_denial" | "booking_confirmed" | "system" | "general" | undefined;
|
|
136
138
|
userId?: string | undefined;
|
|
137
139
|
timestamp?: any;
|
|
138
140
|
link?: string | undefined;
|
|
139
|
-
category?: "
|
|
141
|
+
category?: "opportunity" | "package" | "blog" | "system" | "general" | "chat" | "application" | "account" | "booking" | undefined;
|
|
140
142
|
metadata?: {
|
|
141
|
-
title?: string | undefined;
|
|
142
|
-
status?: string | undefined;
|
|
143
143
|
rating?: number | undefined;
|
|
144
|
+
status?: string | undefined;
|
|
144
145
|
conversationId?: string | undefined;
|
|
145
146
|
messageId?: string | undefined;
|
|
146
147
|
senderId?: string | undefined;
|
|
@@ -150,6 +151,7 @@ export declare function getNotifications(limit: number): Promise<{
|
|
|
150
151
|
expenseId?: string | undefined;
|
|
151
152
|
referenceId?: string | undefined;
|
|
152
153
|
referenceType?: string | undefined;
|
|
154
|
+
title?: string | undefined;
|
|
153
155
|
} | undefined;
|
|
154
156
|
}[];
|
|
155
157
|
unreadCount: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/lib/actions/actions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAKrD,wBAAsB,cAAc,IAAI,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAe3D;AAED,wBAAsB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,IAAI,E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GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAe9G;AAGD,wBAAsB,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmBxC;AAED,wBAAsB,gBAAgB,CAAC,KAAK,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmBnD;AAED,wBAAsB,kBAAkB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO;;;;;;;;GAejE;AAED,wBAAsB,qBAAqB,CAAC,IAAI,EAAE,OAAO;;;;;;;;GAexD;AAGD,wBAAsB,SAAS,CAAC,OAAO,EAAE;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,QAAQ,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,GAAG,OAAO,CAAC,IAAI,CAAC,CAMhB;AAGD,wBAAsB,qBAAqB,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAgBzG"}
|
|
@@ -196,7 +196,26 @@ export async function getRatingById(id, type) {
|
|
|
196
196
|
export async function addReview(id, type, formData) {
|
|
197
197
|
try {
|
|
198
198
|
const endpoint = `/reviews/`;
|
|
199
|
-
|
|
199
|
+
let body;
|
|
200
|
+
if (formData.images && formData.images.length > 0) {
|
|
201
|
+
body = new FormData();
|
|
202
|
+
body.append('reviewee', id);
|
|
203
|
+
body.append('revieweeType', type);
|
|
204
|
+
body.append('rating', formData.rating.toString());
|
|
205
|
+
body.append('comment', formData.comment || '');
|
|
206
|
+
formData.images.forEach((image) => {
|
|
207
|
+
body.append('images', image);
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
else {
|
|
211
|
+
body = {
|
|
212
|
+
reviewee: id,
|
|
213
|
+
revieweeType: type,
|
|
214
|
+
rating: formData.rating,
|
|
215
|
+
comment: formData.comment,
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
const data = await post(endpoint, body);
|
|
200
219
|
return {
|
|
201
220
|
success: true,
|
|
202
221
|
review: data.data,
|
|
@@ -204,7 +223,7 @@ export async function addReview(id, type, formData) {
|
|
|
204
223
|
};
|
|
205
224
|
}
|
|
206
225
|
catch (error) {
|
|
207
|
-
console.error('Failed to
|
|
226
|
+
console.error('Failed to post review: ', error);
|
|
208
227
|
return {
|
|
209
228
|
success: false,
|
|
210
229
|
review: null,
|
|
@@ -10,7 +10,7 @@ export interface Application {
|
|
|
10
10
|
hostId?: string;
|
|
11
11
|
opportunityId: string;
|
|
12
12
|
opportunityTitle: string;
|
|
13
|
-
opportunityType?: 'volunteer' | 'job' | 'internship' | 'freelance';
|
|
13
|
+
opportunityType?: 'volunteer' | 'job' | 'internship' | 'freelance' | 'contentCreator';
|
|
14
14
|
location: string;
|
|
15
15
|
status: ApplicationStatus;
|
|
16
16
|
skills: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../src/lib/models/application.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,eAAe,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,CAAC;AAElG,MAAM,WAAW,WAAW;IACxB,GAAG,EAAE,MAAM,CAAC;IAEZ,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,WAAW,GAAG,KAAK,GAAG,YAAY,GAAG,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../src/lib/models/application.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,eAAe,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,CAAC;AAElG,MAAM,WAAW,WAAW;IACxB,GAAG,EAAE,MAAM,CAAC;IAEZ,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,WAAW,GAAG,KAAK,GAAG,YAAY,GAAG,WAAW,GAAG,gBAAgB,CAAC;IACtF,QAAQ,EAAE,MAAM,CAAC;IAEjB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,gBAAgB,EAAE,WAAW,EAiIzC,CAAC"}
|
|
@@ -2,7 +2,15 @@ export type BookingStatus = "pending" | "confirmed" | "cancelled" | "completed"
|
|
|
2
2
|
export type PaymentStatus = "pending" | "paid" | "failed" | "refunded";
|
|
3
3
|
export interface Booking {
|
|
4
4
|
_id: string;
|
|
5
|
-
userId: string
|
|
5
|
+
userId: string | {
|
|
6
|
+
_id?: string;
|
|
7
|
+
username?: string;
|
|
8
|
+
firstName?: string;
|
|
9
|
+
lastName?: string;
|
|
10
|
+
email?: string;
|
|
11
|
+
profilePic?: string;
|
|
12
|
+
phoneNumber?: string;
|
|
13
|
+
} | null;
|
|
6
14
|
entityId: any;
|
|
7
15
|
entityType: "Rental" | "Adventure" | "Event" | "Stay" | "TravelPackage";
|
|
8
16
|
roomId?: string;
|
|
@@ -13,6 +21,11 @@ export interface Booking {
|
|
|
13
21
|
startTime?: string;
|
|
14
22
|
pickupTime?: string;
|
|
15
23
|
returnTime?: string;
|
|
24
|
+
pickupPointIndex?: number;
|
|
25
|
+
pickupPointName?: string;
|
|
26
|
+
pickupPointAddress?: string;
|
|
27
|
+
homeDeliverySelected?: boolean;
|
|
28
|
+
homeDeliveryCharge?: number;
|
|
16
29
|
numberOfPeople: number;
|
|
17
30
|
totalPrice: number;
|
|
18
31
|
currency: string;
|
|
@@ -48,6 +61,8 @@ export interface CreateBookingRequest {
|
|
|
48
61
|
startTime?: string;
|
|
49
62
|
pickupTime?: string;
|
|
50
63
|
returnTime?: string;
|
|
64
|
+
pickupPointIndex?: number;
|
|
65
|
+
homeDeliverySelected?: boolean;
|
|
51
66
|
numberOfPeople: number;
|
|
52
67
|
totalPrice: number;
|
|
53
68
|
currency: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"booking.d.ts","sourceRoot":"","sources":["../../../src/lib/models/booking.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,UAAU,CAAC;AAC7F,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEvE,MAAM,WAAW,OAAO;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,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B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kBAAkB,CAAC,EAAE,KAAK,CAAC;QAAE,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,eAAe,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC9G,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -119,20 +119,20 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
119
119
|
registrationNumber: z.ZodOptional<z.ZodString>;
|
|
120
120
|
}, "strip", z.ZodTypeAny, {
|
|
121
121
|
type: string;
|
|
122
|
-
name: string;
|
|
123
122
|
city: string;
|
|
124
123
|
state: string;
|
|
125
124
|
country: string;
|
|
126
125
|
address: string;
|
|
126
|
+
name: string;
|
|
127
127
|
pinCode?: string | undefined;
|
|
128
128
|
registrationNumber?: string | undefined;
|
|
129
129
|
}, {
|
|
130
130
|
type: string;
|
|
131
|
-
name: string;
|
|
132
131
|
city: string;
|
|
133
132
|
state: string;
|
|
134
133
|
country: string;
|
|
135
134
|
address: string;
|
|
135
|
+
name: string;
|
|
136
136
|
pinCode?: string | undefined;
|
|
137
137
|
registrationNumber?: string | undefined;
|
|
138
138
|
}>, "many">>;
|
|
@@ -142,7 +142,6 @@ export declare const FreelanceOpportunitySchema: 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
145
|
country: string;
|
|
147
146
|
rating: number;
|
|
148
147
|
ratingCount: number;
|
|
@@ -160,7 +159,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
160
159
|
lastActive: Date;
|
|
161
160
|
verifiedEmail: boolean;
|
|
162
161
|
verifiedMobile: boolean;
|
|
163
|
-
|
|
162
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
164
163
|
skills?: {
|
|
165
164
|
skill: string;
|
|
166
165
|
skillExpertise: number;
|
|
@@ -181,6 +180,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
181
180
|
wishlist?: string[] | undefined;
|
|
182
181
|
favBlogs?: string[] | undefined;
|
|
183
182
|
favPackages?: string[] | undefined;
|
|
183
|
+
id?: string | undefined;
|
|
184
184
|
selfie?: string | undefined;
|
|
185
185
|
selfieAction?: string | undefined;
|
|
186
186
|
jobCount?: number | undefined;
|
|
@@ -190,11 +190,11 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
190
190
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
191
191
|
properties?: {
|
|
192
192
|
type: string;
|
|
193
|
-
name: string;
|
|
194
193
|
city: string;
|
|
195
194
|
state: string;
|
|
196
195
|
country: string;
|
|
197
196
|
address: string;
|
|
197
|
+
name: string;
|
|
198
198
|
pinCode?: string | undefined;
|
|
199
199
|
registrationNumber?: string | undefined;
|
|
200
200
|
}[] | undefined;
|
|
@@ -204,7 +204,6 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
204
204
|
businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
|
|
205
205
|
businessVerificationDenialReason?: string | undefined;
|
|
206
206
|
}, {
|
|
207
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
208
207
|
country: string;
|
|
209
208
|
rating: number;
|
|
210
209
|
ratingCount: number;
|
|
@@ -222,7 +221,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
222
221
|
lastActive: Date;
|
|
223
222
|
verifiedEmail: boolean;
|
|
224
223
|
verifiedMobile: boolean;
|
|
225
|
-
|
|
224
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
226
225
|
skills?: {
|
|
227
226
|
skill: string;
|
|
228
227
|
skillExpertise: number;
|
|
@@ -243,6 +242,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
243
242
|
wishlist?: string[] | undefined;
|
|
244
243
|
favBlogs?: string[] | undefined;
|
|
245
244
|
favPackages?: string[] | undefined;
|
|
245
|
+
id?: string | undefined;
|
|
246
246
|
selfie?: string | undefined;
|
|
247
247
|
selfieAction?: string | undefined;
|
|
248
248
|
jobCount?: number | undefined;
|
|
@@ -252,11 +252,11 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
252
252
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
253
253
|
properties?: {
|
|
254
254
|
type: string;
|
|
255
|
-
name: string;
|
|
256
255
|
city: string;
|
|
257
256
|
state: string;
|
|
258
257
|
country: string;
|
|
259
258
|
address: string;
|
|
259
|
+
name: string;
|
|
260
260
|
pinCode?: string | undefined;
|
|
261
261
|
registrationNumber?: string | undefined;
|
|
262
262
|
}[] | undefined;
|
|
@@ -273,17 +273,17 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
273
273
|
phoneNumber: z.ZodString;
|
|
274
274
|
email: z.ZodString;
|
|
275
275
|
}, "strip", z.ZodTypeAny, {
|
|
276
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
277
276
|
username: string;
|
|
278
277
|
email: string;
|
|
279
278
|
phoneNumber: string;
|
|
280
279
|
countryCode: string;
|
|
281
|
-
}, {
|
|
282
280
|
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
281
|
+
}, {
|
|
283
282
|
username: string;
|
|
284
283
|
email: string;
|
|
285
284
|
phoneNumber: string;
|
|
286
285
|
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;
|
|
@@ -368,7 +368,6 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
368
368
|
ratingCount: number;
|
|
369
369
|
reviewCount: number;
|
|
370
370
|
hostId: {
|
|
371
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
372
371
|
country: string;
|
|
373
372
|
rating: number;
|
|
374
373
|
ratingCount: number;
|
|
@@ -386,7 +385,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
386
385
|
lastActive: Date;
|
|
387
386
|
verifiedEmail: boolean;
|
|
388
387
|
verifiedMobile: boolean;
|
|
389
|
-
|
|
388
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
390
389
|
skills?: {
|
|
391
390
|
skill: string;
|
|
392
391
|
skillExpertise: number;
|
|
@@ -407,6 +406,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
407
406
|
wishlist?: string[] | undefined;
|
|
408
407
|
favBlogs?: string[] | undefined;
|
|
409
408
|
favPackages?: string[] | undefined;
|
|
409
|
+
id?: string | undefined;
|
|
410
410
|
selfie?: string | undefined;
|
|
411
411
|
selfieAction?: string | undefined;
|
|
412
412
|
jobCount?: number | undefined;
|
|
@@ -416,11 +416,11 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
416
416
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
417
417
|
properties?: {
|
|
418
418
|
type: string;
|
|
419
|
-
name: string;
|
|
420
419
|
city: string;
|
|
421
420
|
state: string;
|
|
422
421
|
country: string;
|
|
423
422
|
address: string;
|
|
423
|
+
name: string;
|
|
424
424
|
pinCode?: string | undefined;
|
|
425
425
|
registrationNumber?: string | undefined;
|
|
426
426
|
}[] | undefined;
|
|
@@ -454,11 +454,11 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
454
454
|
pendingApplicationCount?: number | undefined;
|
|
455
455
|
hostingType?: string | undefined;
|
|
456
456
|
applicationObservers?: {
|
|
457
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
458
457
|
username: string;
|
|
459
458
|
email: string;
|
|
460
459
|
phoneNumber: string;
|
|
461
460
|
countryCode: string;
|
|
461
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
462
462
|
}[] | undefined;
|
|
463
463
|
createdAt?: Date | undefined;
|
|
464
464
|
updatedAt?: Date | undefined;
|
|
@@ -497,7 +497,6 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
497
497
|
ratingCount: number;
|
|
498
498
|
reviewCount: number;
|
|
499
499
|
hostId: {
|
|
500
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
501
500
|
country: string;
|
|
502
501
|
rating: number;
|
|
503
502
|
ratingCount: number;
|
|
@@ -515,7 +514,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
515
514
|
lastActive: Date;
|
|
516
515
|
verifiedEmail: boolean;
|
|
517
516
|
verifiedMobile: boolean;
|
|
518
|
-
|
|
517
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
519
518
|
skills?: {
|
|
520
519
|
skill: string;
|
|
521
520
|
skillExpertise: number;
|
|
@@ -536,6 +535,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
536
535
|
wishlist?: string[] | undefined;
|
|
537
536
|
favBlogs?: string[] | undefined;
|
|
538
537
|
favPackages?: string[] | undefined;
|
|
538
|
+
id?: string | undefined;
|
|
539
539
|
selfie?: string | undefined;
|
|
540
540
|
selfieAction?: string | undefined;
|
|
541
541
|
jobCount?: number | undefined;
|
|
@@ -545,11 +545,11 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
545
545
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
546
546
|
properties?: {
|
|
547
547
|
type: string;
|
|
548
|
-
name: string;
|
|
549
548
|
city: string;
|
|
550
549
|
state: string;
|
|
551
550
|
country: string;
|
|
552
551
|
address: string;
|
|
552
|
+
name: string;
|
|
553
553
|
pinCode?: string | undefined;
|
|
554
554
|
registrationNumber?: string | undefined;
|
|
555
555
|
}[] | undefined;
|
|
@@ -583,11 +583,11 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
583
583
|
pendingApplicationCount?: number | undefined;
|
|
584
584
|
hostingType?: string | undefined;
|
|
585
585
|
applicationObservers?: {
|
|
586
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
587
586
|
username: string;
|
|
588
587
|
email: string;
|
|
589
588
|
phoneNumber: string;
|
|
590
589
|
countryCode: string;
|
|
590
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
591
591
|
}[] | undefined;
|
|
592
592
|
createdAt?: Date | undefined;
|
|
593
593
|
updatedAt?: Date | undefined;
|
|
@@ -119,20 +119,20 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
119
119
|
registrationNumber: z.ZodOptional<z.ZodString>;
|
|
120
120
|
}, "strip", z.ZodTypeAny, {
|
|
121
121
|
type: string;
|
|
122
|
-
name: string;
|
|
123
122
|
city: string;
|
|
124
123
|
state: string;
|
|
125
124
|
country: string;
|
|
126
125
|
address: string;
|
|
126
|
+
name: string;
|
|
127
127
|
pinCode?: string | undefined;
|
|
128
128
|
registrationNumber?: string | undefined;
|
|
129
129
|
}, {
|
|
130
130
|
type: string;
|
|
131
|
-
name: string;
|
|
132
131
|
city: string;
|
|
133
132
|
state: string;
|
|
134
133
|
country: string;
|
|
135
134
|
address: string;
|
|
135
|
+
name: string;
|
|
136
136
|
pinCode?: string | undefined;
|
|
137
137
|
registrationNumber?: string | undefined;
|
|
138
138
|
}>, "many">>;
|
|
@@ -142,7 +142,6 @@ 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
145
|
country: string;
|
|
147
146
|
rating: number;
|
|
148
147
|
ratingCount: number;
|
|
@@ -160,7 +159,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
160
159
|
lastActive: Date;
|
|
161
160
|
verifiedEmail: boolean;
|
|
162
161
|
verifiedMobile: boolean;
|
|
163
|
-
|
|
162
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
164
163
|
skills?: {
|
|
165
164
|
skill: string;
|
|
166
165
|
skillExpertise: number;
|
|
@@ -181,6 +180,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
181
180
|
wishlist?: string[] | undefined;
|
|
182
181
|
favBlogs?: string[] | undefined;
|
|
183
182
|
favPackages?: string[] | undefined;
|
|
183
|
+
id?: string | undefined;
|
|
184
184
|
selfie?: string | undefined;
|
|
185
185
|
selfieAction?: string | undefined;
|
|
186
186
|
jobCount?: number | undefined;
|
|
@@ -190,11 +190,11 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
190
190
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
191
191
|
properties?: {
|
|
192
192
|
type: string;
|
|
193
|
-
name: string;
|
|
194
193
|
city: string;
|
|
195
194
|
state: string;
|
|
196
195
|
country: string;
|
|
197
196
|
address: string;
|
|
197
|
+
name: string;
|
|
198
198
|
pinCode?: string | undefined;
|
|
199
199
|
registrationNumber?: string | undefined;
|
|
200
200
|
}[] | undefined;
|
|
@@ -204,7 +204,6 @@ 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
207
|
country: string;
|
|
209
208
|
rating: number;
|
|
210
209
|
ratingCount: number;
|
|
@@ -222,7 +221,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
222
221
|
lastActive: Date;
|
|
223
222
|
verifiedEmail: boolean;
|
|
224
223
|
verifiedMobile: boolean;
|
|
225
|
-
|
|
224
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
226
225
|
skills?: {
|
|
227
226
|
skill: string;
|
|
228
227
|
skillExpertise: number;
|
|
@@ -243,6 +242,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
243
242
|
wishlist?: string[] | undefined;
|
|
244
243
|
favBlogs?: string[] | undefined;
|
|
245
244
|
favPackages?: string[] | undefined;
|
|
245
|
+
id?: string | undefined;
|
|
246
246
|
selfie?: string | undefined;
|
|
247
247
|
selfieAction?: string | undefined;
|
|
248
248
|
jobCount?: number | undefined;
|
|
@@ -252,11 +252,11 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
252
252
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
253
253
|
properties?: {
|
|
254
254
|
type: string;
|
|
255
|
-
name: string;
|
|
256
255
|
city: string;
|
|
257
256
|
state: string;
|
|
258
257
|
country: string;
|
|
259
258
|
address: string;
|
|
259
|
+
name: 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";
|
|
277
276
|
username: string;
|
|
278
277
|
email: string;
|
|
279
278
|
phoneNumber: string;
|
|
280
279
|
countryCode: string;
|
|
281
|
-
}, {
|
|
282
280
|
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
281
|
+
}, {
|
|
283
282
|
username: string;
|
|
284
283
|
email: string;
|
|
285
284
|
phoneNumber: string;
|
|
286
285
|
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;
|
|
@@ -355,7 +355,6 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
355
355
|
ratingCount: number;
|
|
356
356
|
reviewCount: number;
|
|
357
357
|
hostId: {
|
|
358
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
359
358
|
country: string;
|
|
360
359
|
rating: number;
|
|
361
360
|
ratingCount: number;
|
|
@@ -373,7 +372,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
373
372
|
lastActive: Date;
|
|
374
373
|
verifiedEmail: boolean;
|
|
375
374
|
verifiedMobile: boolean;
|
|
376
|
-
|
|
375
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
377
376
|
skills?: {
|
|
378
377
|
skill: string;
|
|
379
378
|
skillExpertise: number;
|
|
@@ -394,6 +393,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
394
393
|
wishlist?: string[] | undefined;
|
|
395
394
|
favBlogs?: string[] | undefined;
|
|
396
395
|
favPackages?: string[] | undefined;
|
|
396
|
+
id?: string | undefined;
|
|
397
397
|
selfie?: string | undefined;
|
|
398
398
|
selfieAction?: string | undefined;
|
|
399
399
|
jobCount?: number | undefined;
|
|
@@ -403,11 +403,11 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
403
403
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
404
404
|
properties?: {
|
|
405
405
|
type: string;
|
|
406
|
-
name: string;
|
|
407
406
|
city: string;
|
|
408
407
|
state: string;
|
|
409
408
|
country: string;
|
|
410
409
|
address: string;
|
|
410
|
+
name: string;
|
|
411
411
|
pinCode?: string | undefined;
|
|
412
412
|
registrationNumber?: string | undefined;
|
|
413
413
|
}[] | undefined;
|
|
@@ -436,11 +436,11 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
436
436
|
pendingApplicationCount?: number | undefined;
|
|
437
437
|
hostingType?: string | undefined;
|
|
438
438
|
applicationObservers?: {
|
|
439
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
440
439
|
username: string;
|
|
441
440
|
email: string;
|
|
442
441
|
phoneNumber: string;
|
|
443
442
|
countryCode: string;
|
|
443
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
444
444
|
}[] | undefined;
|
|
445
445
|
createdAt?: Date | undefined;
|
|
446
446
|
updatedAt?: Date | undefined;
|
|
@@ -479,7 +479,6 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
479
479
|
ratingCount: number;
|
|
480
480
|
reviewCount: number;
|
|
481
481
|
hostId: {
|
|
482
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
483
482
|
country: string;
|
|
484
483
|
rating: number;
|
|
485
484
|
ratingCount: number;
|
|
@@ -497,7 +496,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
497
496
|
lastActive: Date;
|
|
498
497
|
verifiedEmail: boolean;
|
|
499
498
|
verifiedMobile: boolean;
|
|
500
|
-
|
|
499
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
501
500
|
skills?: {
|
|
502
501
|
skill: string;
|
|
503
502
|
skillExpertise: number;
|
|
@@ -518,6 +517,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
518
517
|
wishlist?: string[] | undefined;
|
|
519
518
|
favBlogs?: string[] | undefined;
|
|
520
519
|
favPackages?: string[] | undefined;
|
|
520
|
+
id?: string | undefined;
|
|
521
521
|
selfie?: string | undefined;
|
|
522
522
|
selfieAction?: string | undefined;
|
|
523
523
|
jobCount?: number | undefined;
|
|
@@ -527,11 +527,11 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
527
527
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
528
528
|
properties?: {
|
|
529
529
|
type: string;
|
|
530
|
-
name: string;
|
|
531
530
|
city: string;
|
|
532
531
|
state: string;
|
|
533
532
|
country: string;
|
|
534
533
|
address: string;
|
|
534
|
+
name: string;
|
|
535
535
|
pinCode?: string | undefined;
|
|
536
536
|
registrationNumber?: string | undefined;
|
|
537
537
|
}[] | undefined;
|
|
@@ -560,11 +560,11 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
|
|
|
560
560
|
pendingApplicationCount?: number | undefined;
|
|
561
561
|
hostingType?: string | undefined;
|
|
562
562
|
applicationObservers?: {
|
|
563
|
-
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
564
563
|
username: string;
|
|
565
564
|
email: string;
|
|
566
565
|
phoneNumber: string;
|
|
567
566
|
countryCode: string;
|
|
567
|
+
role: "host" | "user" | "admin" | "hr" | "sales";
|
|
568
568
|
}[] | undefined;
|
|
569
569
|
createdAt?: Date | undefined;
|
|
570
570
|
updatedAt?: Date | undefined;
|