@myrjfa/state 1.1.0 → 1.1.2

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.
Files changed (82) hide show
  1. package/dist/index.d.ts +3 -2
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +3 -2
  4. package/dist/lib/actions/actions.d.ts +56 -7
  5. package/dist/lib/actions/actions.d.ts.map +1 -1
  6. package/dist/lib/actions/actions.js +50 -10
  7. package/dist/lib/actions/auth.d.ts +12 -2
  8. package/dist/lib/actions/auth.d.ts.map +1 -1
  9. package/dist/lib/actions/chat.d.ts +80 -11
  10. package/dist/lib/actions/chat.d.ts.map +1 -1
  11. package/dist/lib/actions/chat.js +81 -20
  12. package/dist/lib/actions/fetcher.d.ts +0 -3
  13. package/dist/lib/actions/fetcher.d.ts.map +1 -1
  14. package/dist/lib/actions/fetcher.js +44 -6
  15. package/dist/lib/{severActions.d.ts → actions/serverActions.d.ts} +1 -1
  16. package/dist/lib/actions/serverActions.d.ts.map +1 -0
  17. package/dist/lib/actions/{severActions.js → serverActions.js} +3 -0
  18. package/dist/lib/actions/user.d.ts +23 -0
  19. package/dist/lib/actions/user.d.ts.map +1 -0
  20. package/dist/lib/actions/user.js +55 -0
  21. package/dist/lib/authSessionManager.d.ts.map +1 -1
  22. package/dist/lib/authSessionManager.js +14 -7
  23. package/dist/lib/context/ChatContext.d.ts +7 -0
  24. package/dist/lib/context/ChatContext.d.ts.map +1 -1
  25. package/dist/lib/context/ChatContext.js +121 -11
  26. package/dist/lib/models/blog.d.ts +3 -2
  27. package/dist/lib/models/blog.d.ts.map +1 -1
  28. package/dist/lib/models/chat.d.ts +32 -7
  29. package/dist/lib/models/chat.d.ts.map +1 -1
  30. package/dist/lib/models/notifications.d.ts +94 -0
  31. package/dist/lib/models/notifications.d.ts.map +1 -0
  32. package/dist/lib/models/notifications.js +60 -0
  33. package/dist/lib/models/opportunities/freelance.d.ts +48 -20
  34. package/dist/lib/models/opportunities/freelance.d.ts.map +1 -1
  35. package/dist/lib/models/opportunities/internship.d.ts +48 -20
  36. package/dist/lib/models/opportunities/internship.d.ts.map +1 -1
  37. package/dist/lib/models/opportunities/job.d.ts +58 -30
  38. package/dist/lib/models/opportunities/job.d.ts.map +1 -1
  39. package/dist/lib/models/opportunities/opportunity.d.ts +61 -33
  40. package/dist/lib/models/opportunities/opportunity.d.ts.map +1 -1
  41. package/dist/lib/models/opportunities/opportunity.js +1 -0
  42. package/dist/lib/models/opportunities/volunteerJob.d.ts +48 -20
  43. package/dist/lib/models/opportunities/volunteerJob.d.ts.map +1 -1
  44. package/dist/lib/models/portfolio.d.ts +2 -2
  45. package/dist/lib/models/props.d.ts +21 -4
  46. package/dist/lib/models/props.d.ts.map +1 -1
  47. package/dist/lib/models/user.d.ts +19 -4
  48. package/dist/lib/models/user.d.ts.map +1 -1
  49. package/dist/lib/models/user.js +5 -0
  50. package/dist/lib/userAtom.d.ts +24 -4
  51. package/dist/lib/userAtom.d.ts.map +1 -1
  52. package/dist/lib/userAtom.js +13 -11
  53. package/dist/lib/utils/fileCompression.d.ts +16 -0
  54. package/dist/lib/utils/fileCompression.d.ts.map +1 -0
  55. package/dist/lib/utils/fileCompression.js +56 -0
  56. package/dist/lib/utils/socialMediaUrl.d.ts +25 -0
  57. package/dist/lib/utils/socialMediaUrl.d.ts.map +1 -0
  58. package/dist/lib/utils/socialMediaUrl.js +97 -0
  59. package/dist/lib/utils.js +4 -4
  60. package/package.json +3 -1
  61. package/dist/lib/actions/severActions.d.ts +0 -3
  62. package/dist/lib/actions/severActions.d.ts.map +0 -1
  63. package/dist/lib/actions.d.ts +0 -141
  64. package/dist/lib/actions.d.ts.map +0 -1
  65. package/dist/lib/actions.js +0 -307
  66. package/dist/lib/auth.d.ts +0 -150
  67. package/dist/lib/auth.d.ts.map +0 -1
  68. package/dist/lib/auth.js +0 -125
  69. package/dist/lib/fetcher.d.ts +0 -9
  70. package/dist/lib/fetcher.d.ts.map +0 -1
  71. package/dist/lib/fetcher.js +0 -84
  72. package/dist/lib/models/notfications.d.ts +0 -26
  73. package/dist/lib/models/notfications.d.ts.map +0 -1
  74. package/dist/lib/models/notfications.js +0 -46
  75. package/dist/lib/models/volunteerJob.d.ts +0 -398
  76. package/dist/lib/models/volunteerJob.d.ts.map +0 -1
  77. package/dist/lib/models/volunteerJob.js +0 -152
  78. package/dist/lib/severActions.d.ts.map +0 -1
  79. package/dist/lib/severActions.js +0 -19
  80. package/dist/lib/socket.d.ts +0 -7
  81. package/dist/lib/socket.d.ts.map +0 -1
  82. package/dist/lib/socket.js +0 -22
@@ -0,0 +1,94 @@
1
+ import { z } from "zod";
2
+ export declare const NotifSchema: z.ZodObject<{
3
+ _id: z.ZodString;
4
+ userId: z.ZodOptional<z.ZodString>;
5
+ message: z.ZodString;
6
+ timestamp: z.ZodAny;
7
+ read: z.ZodBoolean;
8
+ link: z.ZodOptional<z.ZodString>;
9
+ type: z.ZodOptional<z.ZodEnum<["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", "system", "general"]>>;
10
+ category: z.ZodOptional<z.ZodEnum<["chat", "application", "opportunity", "package", "blog", "account", "system", "general"]>>;
11
+ metadata: z.ZodOptional<z.ZodObject<{
12
+ conversationId: z.ZodOptional<z.ZodString>;
13
+ messageId: z.ZodOptional<z.ZodString>;
14
+ senderId: z.ZodOptional<z.ZodString>;
15
+ senderName: z.ZodOptional<z.ZodString>;
16
+ conversationName: z.ZodOptional<z.ZodString>;
17
+ milestoneId: z.ZodOptional<z.ZodString>;
18
+ expenseId: z.ZodOptional<z.ZodString>;
19
+ referenceId: z.ZodOptional<z.ZodString>;
20
+ referenceType: z.ZodOptional<z.ZodString>;
21
+ status: z.ZodOptional<z.ZodString>;
22
+ title: z.ZodOptional<z.ZodString>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ status?: string | undefined;
25
+ title?: string | undefined;
26
+ conversationId?: string | undefined;
27
+ messageId?: string | undefined;
28
+ senderId?: string | undefined;
29
+ senderName?: string | undefined;
30
+ conversationName?: string | undefined;
31
+ milestoneId?: string | undefined;
32
+ expenseId?: string | undefined;
33
+ referenceId?: string | undefined;
34
+ referenceType?: string | undefined;
35
+ }, {
36
+ status?: string | undefined;
37
+ title?: string | undefined;
38
+ conversationId?: string | undefined;
39
+ messageId?: string | undefined;
40
+ senderId?: string | undefined;
41
+ senderName?: string | undefined;
42
+ conversationName?: string | undefined;
43
+ milestoneId?: string | undefined;
44
+ expenseId?: string | undefined;
45
+ referenceId?: string | undefined;
46
+ referenceType?: string | undefined;
47
+ }>>;
48
+ }, "strip", z.ZodTypeAny, {
49
+ message: string;
50
+ _id: string;
51
+ read: boolean;
52
+ 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" | "system" | "general" | undefined;
53
+ userId?: string | undefined;
54
+ timestamp?: any;
55
+ link?: string | undefined;
56
+ category?: "system" | "general" | "chat" | "application" | "opportunity" | "package" | "blog" | "account" | undefined;
57
+ metadata?: {
58
+ status?: string | undefined;
59
+ title?: string | undefined;
60
+ conversationId?: string | undefined;
61
+ messageId?: string | undefined;
62
+ senderId?: string | undefined;
63
+ senderName?: string | undefined;
64
+ conversationName?: string | undefined;
65
+ milestoneId?: string | undefined;
66
+ expenseId?: string | undefined;
67
+ referenceId?: string | undefined;
68
+ referenceType?: string | undefined;
69
+ } | undefined;
70
+ }, {
71
+ message: string;
72
+ _id: string;
73
+ read: boolean;
74
+ 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" | "system" | "general" | undefined;
75
+ userId?: string | undefined;
76
+ timestamp?: any;
77
+ link?: string | undefined;
78
+ category?: "system" | "general" | "chat" | "application" | "opportunity" | "package" | "blog" | "account" | undefined;
79
+ metadata?: {
80
+ status?: string | undefined;
81
+ title?: string | undefined;
82
+ conversationId?: string | undefined;
83
+ messageId?: string | undefined;
84
+ senderId?: string | undefined;
85
+ senderName?: string | undefined;
86
+ conversationName?: string | undefined;
87
+ milestoneId?: string | undefined;
88
+ expenseId?: string | undefined;
89
+ referenceId?: string | undefined;
90
+ referenceType?: string | undefined;
91
+ } | undefined;
92
+ }>;
93
+ export type Notif = z.infer<typeof NotifSchema>;
94
+ //# sourceMappingURL=notifications.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../../src/lib/models/notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0DtB,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
@@ -0,0 +1,60 @@
1
+ import { z } from "zod";
2
+ export const NotifSchema = z.object({
3
+ _id: z.string(),
4
+ userId: z.string().optional(),
5
+ message: z.string(),
6
+ timestamp: z.any(), // Can be Date or string from API
7
+ read: z.boolean(),
8
+ link: z.string().optional(),
9
+ type: z.enum([
10
+ // Chat types
11
+ "new_message",
12
+ "milestone_completed",
13
+ "expense_added",
14
+ "group_invite",
15
+ "mention",
16
+ // Application types
17
+ "application_received",
18
+ "application_status",
19
+ "application_shortlisted",
20
+ // Account types
21
+ "id_verification_request",
22
+ "id_verified",
23
+ "id_rejected",
24
+ // Package
25
+ "package_enquiry",
26
+ "package_approval",
27
+ "package_denial",
28
+ "package_rating",
29
+ "package_review",
30
+ // Opportunity
31
+ "opportunity_assigned",
32
+ "opportunity_approval",
33
+ "opportunity_denial",
34
+ "opportunity_rating",
35
+ "opportunity_review",
36
+ // blogs
37
+ "blog_like",
38
+ "blog_comment",
39
+ "blog_posted",
40
+ "blog_approval",
41
+ "blog_denial",
42
+ // Generic
43
+ "system",
44
+ "general"
45
+ ]).optional(),
46
+ category: z.enum(["chat", "application", "opportunity", "package", "blog", "account", "system", "general"]).optional(),
47
+ metadata: z.object({
48
+ conversationId: z.string().optional(),
49
+ messageId: z.string().optional(),
50
+ senderId: z.string().optional(),
51
+ senderName: z.string().optional(),
52
+ conversationName: z.string().optional(),
53
+ milestoneId: z.string().optional(),
54
+ expenseId: z.string().optional(),
55
+ referenceId: z.string().optional(),
56
+ referenceType: z.string().optional(),
57
+ status: z.string().optional(),
58
+ title: z.string().optional(),
59
+ }).optional(),
60
+ });
@@ -10,7 +10,7 @@ export declare const FreelanceOpportunitySchema: 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<[string, ...string[]]>>;
13
+ workMode: z.ZodOptional<z.ZodEnum<["onsite" | "remote" | "hybrid", ...("onsite" | "remote" | "hybrid")[]]>>;
14
14
  bondPlan: z.ZodOptional<z.ZodObject<{
15
15
  enabled: z.ZodBoolean;
16
16
  durationMonths: z.ZodOptional<z.ZodNumber>;
@@ -48,6 +48,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
48
48
  answer: string;
49
49
  }>, "many">;
50
50
  applicationCount: z.ZodNumber;
51
+ pendingApplicationCount: z.ZodOptional<z.ZodNumber>;
51
52
  views: z.ZodNumber;
52
53
  shares: z.ZodNumber;
53
54
  rating: z.ZodNumber;
@@ -84,7 +85,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
84
85
  verifiedMobile: z.ZodBoolean;
85
86
  verifiedIdCard: z.ZodOptional<z.ZodBoolean>;
86
87
  role: z.ZodEnum<["host", "user", "admin", "hr", "sales"]>;
87
- socialLinks: z.ZodOptional<z.ZodRecord<z.ZodEnum<[string, ...string[]]>, z.ZodString>>;
88
+ socialLinks: z.ZodOptional<z.ZodRecord<z.ZodEnum<["instagram", "linkedin", "youtube", "googleBusiness"]>, z.ZodString>>;
88
89
  userResume: z.ZodOptional<z.ZodString>;
89
90
  skills: z.ZodOptional<z.ZodArray<z.ZodObject<{
90
91
  skill: z.ZodString;
@@ -107,6 +108,11 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
107
108
  gstNumber: z.ZodOptional<z.ZodString>;
108
109
  panCard: z.ZodOptional<z.ZodString>;
109
110
  verifiedBusiness: z.ZodOptional<z.ZodEnum<["true", "false", "inProgress"]>>;
111
+ businessDocument: z.ZodOptional<z.ZodString>;
112
+ businessIdType: z.ZodOptional<z.ZodEnum<["PAN", "GST", "Udyam", "PersonalPAN"]>>;
113
+ businessIdNumber: z.ZodOptional<z.ZodString>;
114
+ businessApiVerificationStatus: z.ZodOptional<z.ZodEnum<["pending", "verified", "failed"]>>;
115
+ businessVerificationDenialReason: z.ZodOptional<z.ZodString>;
110
116
  }, "strict", z.ZodTypeAny, {
111
117
  username: string;
112
118
  firstName: string;
@@ -137,7 +143,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
137
143
  accessToken?: string | undefined;
138
144
  refreshToken?: string | undefined;
139
145
  verifiedIdCard?: boolean | undefined;
140
- socialLinks?: Record<string, string> | undefined;
146
+ socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
141
147
  userResume?: string | undefined;
142
148
  skills?: {
143
149
  skill: string;
@@ -154,6 +160,11 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
154
160
  gstNumber?: string | undefined;
155
161
  panCard?: string | undefined;
156
162
  verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
163
+ businessDocument?: string | undefined;
164
+ businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
165
+ businessIdNumber?: string | undefined;
166
+ businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
167
+ businessVerificationDenialReason?: string | undefined;
157
168
  }, {
158
169
  username: string;
159
170
  firstName: string;
@@ -184,7 +195,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
184
195
  accessToken?: string | undefined;
185
196
  refreshToken?: string | undefined;
186
197
  verifiedIdCard?: boolean | undefined;
187
- socialLinks?: Record<string, string> | undefined;
198
+ socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
188
199
  userResume?: string | undefined;
189
200
  skills?: {
190
201
  skill: string;
@@ -201,6 +212,11 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
201
212
  gstNumber?: string | undefined;
202
213
  panCard?: string | undefined;
203
214
  verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
215
+ businessDocument?: string | undefined;
216
+ businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
217
+ businessIdNumber?: string | undefined;
218
+ businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
219
+ businessVerificationDenialReason?: string | undefined;
204
220
  }>>;
205
221
  applicationObservers: z.ZodOptional<z.ZodArray<z.ZodObject<{
206
222
  username: z.ZodString;
@@ -228,20 +244,20 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
228
244
  } & {
229
245
  opportunityType: z.ZodLiteral<"freelance">;
230
246
  compensation: z.ZodObject<{
231
- type: z.ZodEnum<[string, ...string[]]>;
247
+ type: z.ZodEnum<["free" | "stipend" | "salary" | "project-based", ...("free" | "stipend" | "salary" | "project-based")[]]>;
232
248
  amount: z.ZodOptional<z.ZodNumber>;
233
249
  currency: z.ZodEnum<[string, ...string[]]>;
234
- frequency: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
250
+ frequency: z.ZodOptional<z.ZodEnum<["daily" | "weekly" | "monthly" | "yearly" | "one-time", ...("daily" | "weekly" | "monthly" | "yearly" | "one-time")[]]>>;
235
251
  }, "strip", z.ZodTypeAny, {
236
- type: string;
252
+ type: "free" | "stipend" | "salary" | "project-based";
237
253
  currency: string;
238
254
  amount?: number | undefined;
239
- frequency?: string | undefined;
255
+ frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
240
256
  }, {
241
- type: string;
257
+ type: "free" | "stipend" | "salary" | "project-based";
242
258
  currency: string;
243
259
  amount?: number | undefined;
244
- frequency?: string | undefined;
260
+ frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
245
261
  }>;
246
262
  platformFees: z.ZodObject<{
247
263
  commissionPercent: z.ZodNumber;
@@ -271,7 +287,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
271
287
  }>;
272
288
  }, "strict", z.ZodTypeAny, {
273
289
  country: string;
274
- status: "draft" | "archived" | "pending" | "denied" | "open" | "closed" | "deleted";
290
+ status: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | "deleted";
275
291
  rating: number;
276
292
  ratingCount: number;
277
293
  reviewCount: number;
@@ -284,10 +300,10 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
284
300
  city: string;
285
301
  state: string;
286
302
  compensation: {
287
- type: string;
303
+ type: "free" | "stipend" | "salary" | "project-based";
288
304
  currency: string;
289
305
  amount?: number | undefined;
290
- frequency?: string | undefined;
306
+ frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
291
307
  };
292
308
  availableFrom: Date;
293
309
  minDuration: number;
@@ -333,7 +349,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
333
349
  accessToken?: string | undefined;
334
350
  refreshToken?: string | undefined;
335
351
  verifiedIdCard?: boolean | undefined;
336
- socialLinks?: Record<string, string> | undefined;
352
+ socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
337
353
  userResume?: string | undefined;
338
354
  skills?: {
339
355
  skill: string;
@@ -350,6 +366,11 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
350
366
  gstNumber?: string | undefined;
351
367
  panCard?: string | undefined;
352
368
  verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
369
+ businessDocument?: string | undefined;
370
+ businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
371
+ businessIdNumber?: string | undefined;
372
+ businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
373
+ businessVerificationDenialReason?: string | undefined;
353
374
  };
354
375
  adminApproval: boolean;
355
376
  platformFees: {
@@ -366,7 +387,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
366
387
  updatedAt?: Date | undefined;
367
388
  categoryId?: string | undefined;
368
389
  address?: string | undefined;
369
- workMode?: string | undefined;
390
+ workMode?: "onsite" | "remote" | "hybrid" | undefined;
370
391
  bondPlan?: {
371
392
  enabled: boolean;
372
393
  commissionRate: number;
@@ -374,6 +395,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
374
395
  hostFee?: number | undefined;
375
396
  securityDeposit?: number | undefined;
376
397
  } | undefined;
398
+ pendingApplicationCount?: number | undefined;
377
399
  hostingType?: string | undefined;
378
400
  applicationObservers?: {
379
401
  username: string;
@@ -384,7 +406,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
384
406
  }[] | undefined;
385
407
  }, {
386
408
  country: string;
387
- status: "draft" | "archived" | "pending" | "denied" | "open" | "closed" | "deleted";
409
+ status: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | "deleted";
388
410
  rating: number;
389
411
  ratingCount: number;
390
412
  reviewCount: number;
@@ -397,10 +419,10 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
397
419
  city: string;
398
420
  state: string;
399
421
  compensation: {
400
- type: string;
422
+ type: "free" | "stipend" | "salary" | "project-based";
401
423
  currency: string;
402
424
  amount?: number | undefined;
403
- frequency?: string | undefined;
425
+ frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
404
426
  };
405
427
  availableFrom: Date;
406
428
  minDuration: number;
@@ -446,7 +468,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
446
468
  accessToken?: string | undefined;
447
469
  refreshToken?: string | undefined;
448
470
  verifiedIdCard?: boolean | undefined;
449
- socialLinks?: Record<string, string> | undefined;
471
+ socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
450
472
  userResume?: string | undefined;
451
473
  skills?: {
452
474
  skill: string;
@@ -463,6 +485,11 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
463
485
  gstNumber?: string | undefined;
464
486
  panCard?: string | undefined;
465
487
  verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
488
+ businessDocument?: string | undefined;
489
+ businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
490
+ businessIdNumber?: string | undefined;
491
+ businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
492
+ businessVerificationDenialReason?: string | undefined;
466
493
  };
467
494
  adminApproval: boolean;
468
495
  platformFees: {
@@ -479,7 +506,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
479
506
  updatedAt?: Date | undefined;
480
507
  categoryId?: string | undefined;
481
508
  address?: string | undefined;
482
- workMode?: string | undefined;
509
+ workMode?: "onsite" | "remote" | "hybrid" | undefined;
483
510
  bondPlan?: {
484
511
  enabled: boolean;
485
512
  durationMonths?: number | undefined;
@@ -487,6 +514,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
487
514
  securityDeposit?: number | undefined;
488
515
  commissionRate?: number | undefined;
489
516
  } | undefined;
517
+ pendingApplicationCount?: number | undefined;
490
518
  hostingType?: string | undefined;
491
519
  applicationObservers?: {
492
520
  username: string;
@@ -1 +1 @@
1
- {"version":3,"file":"freelance.d.ts","sourceRoot":"","sources":["../../../../src/lib/models/opportunities/freelance.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUrC,CAAC"}
1
+ {"version":3,"file":"freelance.d.ts","sourceRoot":"","sources":["../../../../src/lib/models/opportunities/freelance.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUrC,CAAC"}
@@ -10,7 +10,7 @@ export declare const InternshipOpportunitySchema: 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<[string, ...string[]]>>;
13
+ workMode: z.ZodOptional<z.ZodEnum<["onsite" | "remote" | "hybrid", ...("onsite" | "remote" | "hybrid")[]]>>;
14
14
  bondPlan: z.ZodOptional<z.ZodObject<{
15
15
  enabled: z.ZodBoolean;
16
16
  durationMonths: z.ZodOptional<z.ZodNumber>;
@@ -48,6 +48,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
48
48
  answer: string;
49
49
  }>, "many">;
50
50
  applicationCount: z.ZodNumber;
51
+ pendingApplicationCount: z.ZodOptional<z.ZodNumber>;
51
52
  views: z.ZodNumber;
52
53
  shares: z.ZodNumber;
53
54
  rating: z.ZodNumber;
@@ -84,7 +85,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
84
85
  verifiedMobile: z.ZodBoolean;
85
86
  verifiedIdCard: z.ZodOptional<z.ZodBoolean>;
86
87
  role: z.ZodEnum<["host", "user", "admin", "hr", "sales"]>;
87
- socialLinks: z.ZodOptional<z.ZodRecord<z.ZodEnum<[string, ...string[]]>, z.ZodString>>;
88
+ socialLinks: z.ZodOptional<z.ZodRecord<z.ZodEnum<["instagram", "linkedin", "youtube", "googleBusiness"]>, z.ZodString>>;
88
89
  userResume: z.ZodOptional<z.ZodString>;
89
90
  skills: z.ZodOptional<z.ZodArray<z.ZodObject<{
90
91
  skill: z.ZodString;
@@ -107,6 +108,11 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
107
108
  gstNumber: z.ZodOptional<z.ZodString>;
108
109
  panCard: z.ZodOptional<z.ZodString>;
109
110
  verifiedBusiness: z.ZodOptional<z.ZodEnum<["true", "false", "inProgress"]>>;
111
+ businessDocument: z.ZodOptional<z.ZodString>;
112
+ businessIdType: z.ZodOptional<z.ZodEnum<["PAN", "GST", "Udyam", "PersonalPAN"]>>;
113
+ businessIdNumber: z.ZodOptional<z.ZodString>;
114
+ businessApiVerificationStatus: z.ZodOptional<z.ZodEnum<["pending", "verified", "failed"]>>;
115
+ businessVerificationDenialReason: z.ZodOptional<z.ZodString>;
110
116
  }, "strict", z.ZodTypeAny, {
111
117
  username: string;
112
118
  firstName: string;
@@ -137,7 +143,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
137
143
  accessToken?: string | undefined;
138
144
  refreshToken?: string | undefined;
139
145
  verifiedIdCard?: boolean | undefined;
140
- socialLinks?: Record<string, string> | undefined;
146
+ socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
141
147
  userResume?: string | undefined;
142
148
  skills?: {
143
149
  skill: string;
@@ -154,6 +160,11 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
154
160
  gstNumber?: string | undefined;
155
161
  panCard?: string | undefined;
156
162
  verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
163
+ businessDocument?: string | undefined;
164
+ businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
165
+ businessIdNumber?: string | undefined;
166
+ businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
167
+ businessVerificationDenialReason?: string | undefined;
157
168
  }, {
158
169
  username: string;
159
170
  firstName: string;
@@ -184,7 +195,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
184
195
  accessToken?: string | undefined;
185
196
  refreshToken?: string | undefined;
186
197
  verifiedIdCard?: boolean | undefined;
187
- socialLinks?: Record<string, string> | undefined;
198
+ socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
188
199
  userResume?: string | undefined;
189
200
  skills?: {
190
201
  skill: string;
@@ -201,6 +212,11 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
201
212
  gstNumber?: string | undefined;
202
213
  panCard?: string | undefined;
203
214
  verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
215
+ businessDocument?: string | undefined;
216
+ businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
217
+ businessIdNumber?: string | undefined;
218
+ businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
219
+ businessVerificationDenialReason?: string | undefined;
204
220
  }>>;
205
221
  applicationObservers: z.ZodOptional<z.ZodArray<z.ZodObject<{
206
222
  username: z.ZodString;
@@ -228,20 +244,20 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
228
244
  } & {
229
245
  opportunityType: z.ZodLiteral<"internship">;
230
246
  compensation: z.ZodObject<{
231
- type: z.ZodEnum<[string, ...string[]]>;
247
+ type: z.ZodEnum<["free" | "stipend" | "salary" | "project-based", ...("free" | "stipend" | "salary" | "project-based")[]]>;
232
248
  amount: z.ZodOptional<z.ZodNumber>;
233
249
  currency: z.ZodEnum<[string, ...string[]]>;
234
- frequency: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
250
+ frequency: z.ZodOptional<z.ZodEnum<["daily" | "weekly" | "monthly" | "yearly" | "one-time", ...("daily" | "weekly" | "monthly" | "yearly" | "one-time")[]]>>;
235
251
  }, "strip", z.ZodTypeAny, {
236
- type: string;
252
+ type: "free" | "stipend" | "salary" | "project-based";
237
253
  currency: string;
238
254
  amount?: number | undefined;
239
- frequency?: string | undefined;
255
+ frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
240
256
  }, {
241
- type: string;
257
+ type: "free" | "stipend" | "salary" | "project-based";
242
258
  currency: string;
243
259
  amount?: number | undefined;
244
- frequency?: string | undefined;
260
+ frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
245
261
  }>;
246
262
  platformFees: z.ZodObject<{
247
263
  commissionPercent: z.ZodNumber;
@@ -258,7 +274,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
258
274
  }>;
259
275
  }, "strict", z.ZodTypeAny, {
260
276
  country: string;
261
- status: "draft" | "archived" | "pending" | "denied" | "open" | "closed" | "deleted";
277
+ status: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | "deleted";
262
278
  rating: number;
263
279
  ratingCount: number;
264
280
  reviewCount: number;
@@ -271,10 +287,10 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
271
287
  city: string;
272
288
  state: string;
273
289
  compensation: {
274
- type: string;
290
+ type: "free" | "stipend" | "salary" | "project-based";
275
291
  currency: string;
276
292
  amount?: number | undefined;
277
- frequency?: string | undefined;
293
+ frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
278
294
  };
279
295
  availableFrom: Date;
280
296
  minDuration: number;
@@ -320,7 +336,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
320
336
  accessToken?: string | undefined;
321
337
  refreshToken?: string | undefined;
322
338
  verifiedIdCard?: boolean | undefined;
323
- socialLinks?: Record<string, string> | undefined;
339
+ socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
324
340
  userResume?: string | undefined;
325
341
  skills?: {
326
342
  skill: string;
@@ -337,6 +353,11 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
337
353
  gstNumber?: string | undefined;
338
354
  panCard?: string | undefined;
339
355
  verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
356
+ businessDocument?: string | undefined;
357
+ businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
358
+ businessIdNumber?: string | undefined;
359
+ businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
360
+ businessVerificationDenialReason?: string | undefined;
340
361
  };
341
362
  adminApproval: boolean;
342
363
  platformFees: {
@@ -348,7 +369,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
348
369
  updatedAt?: Date | undefined;
349
370
  categoryId?: string | undefined;
350
371
  address?: string | undefined;
351
- workMode?: string | undefined;
372
+ workMode?: "onsite" | "remote" | "hybrid" | undefined;
352
373
  bondPlan?: {
353
374
  enabled: boolean;
354
375
  commissionRate: number;
@@ -356,6 +377,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
356
377
  hostFee?: number | undefined;
357
378
  securityDeposit?: number | undefined;
358
379
  } | undefined;
380
+ pendingApplicationCount?: number | undefined;
359
381
  hostingType?: string | undefined;
360
382
  applicationObservers?: {
361
383
  username: string;
@@ -366,7 +388,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
366
388
  }[] | undefined;
367
389
  }, {
368
390
  country: string;
369
- status: "draft" | "archived" | "pending" | "denied" | "open" | "closed" | "deleted";
391
+ status: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | "deleted";
370
392
  rating: number;
371
393
  ratingCount: number;
372
394
  reviewCount: number;
@@ -379,10 +401,10 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
379
401
  city: string;
380
402
  state: string;
381
403
  compensation: {
382
- type: string;
404
+ type: "free" | "stipend" | "salary" | "project-based";
383
405
  currency: string;
384
406
  amount?: number | undefined;
385
- frequency?: string | undefined;
407
+ frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
386
408
  };
387
409
  availableFrom: Date;
388
410
  minDuration: number;
@@ -428,7 +450,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
428
450
  accessToken?: string | undefined;
429
451
  refreshToken?: string | undefined;
430
452
  verifiedIdCard?: boolean | undefined;
431
- socialLinks?: Record<string, string> | undefined;
453
+ socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
432
454
  userResume?: string | undefined;
433
455
  skills?: {
434
456
  skill: string;
@@ -445,6 +467,11 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
445
467
  gstNumber?: string | undefined;
446
468
  panCard?: string | undefined;
447
469
  verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
470
+ businessDocument?: string | undefined;
471
+ businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
472
+ businessIdNumber?: string | undefined;
473
+ businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
474
+ businessVerificationDenialReason?: string | undefined;
448
475
  };
449
476
  adminApproval: boolean;
450
477
  platformFees: {
@@ -456,7 +483,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
456
483
  updatedAt?: Date | undefined;
457
484
  categoryId?: string | undefined;
458
485
  address?: string | undefined;
459
- workMode?: string | undefined;
486
+ workMode?: "onsite" | "remote" | "hybrid" | undefined;
460
487
  bondPlan?: {
461
488
  enabled: boolean;
462
489
  durationMonths?: number | undefined;
@@ -464,6 +491,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
464
491
  securityDeposit?: number | undefined;
465
492
  commissionRate?: number | undefined;
466
493
  } | undefined;
494
+ pendingApplicationCount?: number | undefined;
467
495
  hostingType?: string | undefined;
468
496
  applicationObservers?: {
469
497
  username: string;
@@ -1 +1 @@
1
- {"version":3,"file":"internship.d.ts","sourceRoot":"","sources":["../../../../src/lib/models/opportunities/internship.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAItC,CAAC"}
1
+ {"version":3,"file":"internship.d.ts","sourceRoot":"","sources":["../../../../src/lib/models/opportunities/internship.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAItC,CAAC"}