@myrjfa/state 2.0.1 → 2.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 (58) hide show
  1. package/LICENSE +201 -201
  2. package/README.md +3 -3
  3. package/dist/index.d.ts +2 -2
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +2 -2
  6. package/dist/lib/actions/actions.d.ts +20 -1
  7. package/dist/lib/actions/actions.d.ts.map +1 -1
  8. package/dist/lib/actions/actions.js +50 -10
  9. package/dist/lib/actions/auth.d.ts +12 -2
  10. package/dist/lib/actions/auth.d.ts.map +1 -1
  11. package/dist/lib/actions/booking.d.ts +15 -0
  12. package/dist/lib/actions/booking.d.ts.map +1 -1
  13. package/dist/lib/actions/booking.js +15 -1
  14. package/dist/lib/actions/fetcher.d.ts +0 -3
  15. package/dist/lib/actions/fetcher.d.ts.map +1 -1
  16. package/dist/lib/actions/fetcher.js +65 -8
  17. package/dist/lib/actions/{severActions.d.ts → serverActions.d.ts} +1 -1
  18. package/dist/lib/actions/serverActions.d.ts.map +1 -0
  19. package/dist/lib/actions/{severActions.js → serverActions.js} +3 -0
  20. package/dist/lib/authSessionManager.d.ts.map +1 -1
  21. package/dist/lib/authSessionManager.js +14 -7
  22. package/dist/lib/context/ChatContext.d.ts +1 -1
  23. package/dist/lib/context/ChatContext.d.ts.map +1 -1
  24. package/dist/lib/hooks/use-mobile.js +1 -0
  25. package/dist/lib/hooks/useChatSocket.js +1 -0
  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/{notfications.d.ts → notifications.d.ts} +1 -1
  29. package/dist/lib/models/notifications.d.ts.map +1 -0
  30. package/dist/lib/models/opportunities/freelance.d.ts +48 -20
  31. package/dist/lib/models/opportunities/freelance.d.ts.map +1 -1
  32. package/dist/lib/models/opportunities/internship.d.ts +48 -20
  33. package/dist/lib/models/opportunities/internship.d.ts.map +1 -1
  34. package/dist/lib/models/opportunities/job.d.ts +58 -30
  35. package/dist/lib/models/opportunities/job.d.ts.map +1 -1
  36. package/dist/lib/models/opportunities/opportunity.d.ts +61 -33
  37. package/dist/lib/models/opportunities/opportunity.d.ts.map +1 -1
  38. package/dist/lib/models/opportunities/opportunity.js +1 -0
  39. package/dist/lib/models/opportunities/volunteerJob.d.ts +48 -20
  40. package/dist/lib/models/opportunities/volunteerJob.d.ts.map +1 -1
  41. package/dist/lib/models/package.d.ts +2 -2
  42. package/dist/lib/models/props.d.ts +21 -0
  43. package/dist/lib/models/props.d.ts.map +1 -1
  44. package/dist/lib/models/stay.d.ts +2 -2
  45. package/dist/lib/models/user.d.ts +19 -4
  46. package/dist/lib/models/user.d.ts.map +1 -1
  47. package/dist/lib/models/user.js +5 -0
  48. package/dist/lib/userAtom.d.ts +24 -4
  49. package/dist/lib/userAtom.d.ts.map +1 -1
  50. package/dist/lib/userAtom.js +13 -11
  51. package/dist/lib/utils/socialMediaUrl.d.ts +25 -0
  52. package/dist/lib/utils/socialMediaUrl.d.ts.map +1 -0
  53. package/dist/lib/utils/socialMediaUrl.js +97 -0
  54. package/dist/lib/utils.js +4 -4
  55. package/package.json +2 -1
  56. package/dist/lib/actions/severActions.d.ts.map +0 -1
  57. package/dist/lib/models/notfications.d.ts.map +0 -1
  58. /package/dist/lib/models/{notfications.js → notifications.js} +0 -0
@@ -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;
@@ -135,6 +136,11 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
135
136
  pinCode?: string | undefined;
136
137
  registrationNumber?: string | undefined;
137
138
  }>, "many">>;
139
+ businessDocument: z.ZodOptional<z.ZodString>;
140
+ businessIdType: z.ZodOptional<z.ZodEnum<["PAN", "GST", "Udyam", "PersonalPAN"]>>;
141
+ businessIdNumber: z.ZodOptional<z.ZodString>;
142
+ businessApiVerificationStatus: z.ZodOptional<z.ZodEnum<["pending", "verified", "failed"]>>;
143
+ businessVerificationDenialReason: z.ZodOptional<z.ZodString>;
138
144
  }, "strict", z.ZodTypeAny, {
139
145
  username: string;
140
146
  firstName: string;
@@ -165,7 +171,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
165
171
  accessToken?: string | undefined;
166
172
  refreshToken?: string | undefined;
167
173
  verifiedIdCard?: boolean | undefined;
168
- socialLinks?: Record<string, string> | undefined;
174
+ socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
169
175
  userResume?: string | undefined;
170
176
  skills?: {
171
177
  skill: string;
@@ -192,6 +198,11 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
192
198
  pinCode?: string | undefined;
193
199
  registrationNumber?: string | undefined;
194
200
  }[] | undefined;
201
+ businessDocument?: string | undefined;
202
+ businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
203
+ businessIdNumber?: string | undefined;
204
+ businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
205
+ businessVerificationDenialReason?: string | undefined;
195
206
  }, {
196
207
  username: string;
197
208
  firstName: string;
@@ -222,7 +233,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
222
233
  accessToken?: string | undefined;
223
234
  refreshToken?: string | undefined;
224
235
  verifiedIdCard?: boolean | undefined;
225
- socialLinks?: Record<string, string> | undefined;
236
+ socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
226
237
  userResume?: string | undefined;
227
238
  skills?: {
228
239
  skill: string;
@@ -249,6 +260,11 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
249
260
  pinCode?: string | undefined;
250
261
  registrationNumber?: string | undefined;
251
262
  }[] | undefined;
263
+ businessDocument?: string | undefined;
264
+ businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
265
+ businessIdNumber?: string | undefined;
266
+ businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
267
+ businessVerificationDenialReason?: string | undefined;
252
268
  }>>;
253
269
  applicationObservers: z.ZodOptional<z.ZodArray<z.ZodObject<{
254
270
  username: z.ZodString;
@@ -276,20 +292,20 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
276
292
  } & {
277
293
  opportunityType: z.ZodLiteral<"internship">;
278
294
  compensation: z.ZodObject<{
279
- type: z.ZodEnum<[string, ...string[]]>;
295
+ type: z.ZodEnum<["free" | "stipend" | "salary" | "project-based", ...("free" | "stipend" | "salary" | "project-based")[]]>;
280
296
  amount: z.ZodOptional<z.ZodNumber>;
281
297
  currency: z.ZodEnum<[string, ...string[]]>;
282
- frequency: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
298
+ frequency: z.ZodOptional<z.ZodEnum<["daily" | "weekly" | "monthly" | "yearly" | "one-time", ...("daily" | "weekly" | "monthly" | "yearly" | "one-time")[]]>>;
283
299
  }, "strip", z.ZodTypeAny, {
284
- type: string;
300
+ type: "free" | "stipend" | "salary" | "project-based";
285
301
  currency: string;
286
302
  amount?: number | undefined;
287
- frequency?: string | undefined;
303
+ frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
288
304
  }, {
289
- type: string;
305
+ type: "free" | "stipend" | "salary" | "project-based";
290
306
  currency: string;
291
307
  amount?: number | undefined;
292
- frequency?: string | undefined;
308
+ frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
293
309
  }>;
294
310
  platformFees: z.ZodObject<{
295
311
  commissionPercent: z.ZodNumber;
@@ -306,7 +322,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
306
322
  }>;
307
323
  }, "strict", z.ZodTypeAny, {
308
324
  country: string;
309
- status: "draft" | "archived" | "pending" | "denied" | "open" | "closed" | "deleted";
325
+ status: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | "deleted";
310
326
  rating: number;
311
327
  ratingCount: number;
312
328
  reviewCount: number;
@@ -319,10 +335,10 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
319
335
  opportunityType: "internship";
320
336
  images: string[];
321
337
  compensation: {
322
- type: string;
338
+ type: "free" | "stipend" | "salary" | "project-based";
323
339
  currency: string;
324
340
  amount?: number | undefined;
325
- frequency?: string | undefined;
341
+ frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
326
342
  };
327
343
  availableFrom: Date;
328
344
  minDuration: number;
@@ -368,7 +384,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
368
384
  accessToken?: string | undefined;
369
385
  refreshToken?: string | undefined;
370
386
  verifiedIdCard?: boolean | undefined;
371
- socialLinks?: Record<string, string> | undefined;
387
+ socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
372
388
  userResume?: string | undefined;
373
389
  skills?: {
374
390
  skill: string;
@@ -395,6 +411,11 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
395
411
  pinCode?: string | undefined;
396
412
  registrationNumber?: string | undefined;
397
413
  }[] | undefined;
414
+ businessDocument?: string | undefined;
415
+ businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
416
+ businessIdNumber?: string | undefined;
417
+ businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
418
+ businessVerificationDenialReason?: string | undefined;
398
419
  };
399
420
  adminApproval: boolean;
400
421
  platformFees: {
@@ -406,7 +427,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
406
427
  createdAt?: Date | undefined;
407
428
  updatedAt?: Date | undefined;
408
429
  categoryId?: string | undefined;
409
- workMode?: string | undefined;
430
+ workMode?: "onsite" | "remote" | "hybrid" | undefined;
410
431
  bondPlan?: {
411
432
  enabled: boolean;
412
433
  commissionRate: number;
@@ -414,6 +435,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
414
435
  hostFee?: number | undefined;
415
436
  securityDeposit?: number | undefined;
416
437
  } | undefined;
438
+ pendingApplicationCount?: number | undefined;
417
439
  hostingType?: string | undefined;
418
440
  applicationObservers?: {
419
441
  username: string;
@@ -424,7 +446,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
424
446
  }[] | undefined;
425
447
  }, {
426
448
  country: string;
427
- status: "draft" | "archived" | "pending" | "denied" | "open" | "closed" | "deleted";
449
+ status: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | "deleted";
428
450
  rating: number;
429
451
  ratingCount: number;
430
452
  reviewCount: number;
@@ -437,10 +459,10 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
437
459
  opportunityType: "internship";
438
460
  images: string[];
439
461
  compensation: {
440
- type: string;
462
+ type: "free" | "stipend" | "salary" | "project-based";
441
463
  currency: string;
442
464
  amount?: number | undefined;
443
- frequency?: string | undefined;
465
+ frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
444
466
  };
445
467
  availableFrom: Date;
446
468
  minDuration: number;
@@ -486,7 +508,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
486
508
  accessToken?: string | undefined;
487
509
  refreshToken?: string | undefined;
488
510
  verifiedIdCard?: boolean | undefined;
489
- socialLinks?: Record<string, string> | undefined;
511
+ socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
490
512
  userResume?: string | undefined;
491
513
  skills?: {
492
514
  skill: string;
@@ -513,6 +535,11 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
513
535
  pinCode?: string | undefined;
514
536
  registrationNumber?: string | undefined;
515
537
  }[] | undefined;
538
+ businessDocument?: string | undefined;
539
+ businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
540
+ businessIdNumber?: string | undefined;
541
+ businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
542
+ businessVerificationDenialReason?: string | undefined;
516
543
  };
517
544
  adminApproval: boolean;
518
545
  platformFees: {
@@ -524,7 +551,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
524
551
  createdAt?: Date | undefined;
525
552
  updatedAt?: Date | undefined;
526
553
  categoryId?: string | undefined;
527
- workMode?: string | undefined;
554
+ workMode?: "onsite" | "remote" | "hybrid" | undefined;
528
555
  bondPlan?: {
529
556
  enabled: boolean;
530
557
  durationMonths?: number | undefined;
@@ -532,6 +559,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
532
559
  securityDeposit?: number | undefined;
533
560
  commissionRate?: number | undefined;
534
561
  } | undefined;
562
+ pendingApplicationCount?: number | undefined;
535
563
  hostingType?: string | undefined;
536
564
  applicationObservers?: {
537
565
  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"}
@@ -39,22 +39,22 @@ export declare const JobOpportunitySchema: z.ZodObject<{
39
39
  state: z.ZodString;
40
40
  country: z.ZodString;
41
41
  address: z.ZodOptional<z.ZodString>;
42
- workMode: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
42
+ workMode: z.ZodOptional<z.ZodEnum<["onsite" | "remote" | "hybrid", ...("onsite" | "remote" | "hybrid")[]]>>;
43
43
  compensation: z.ZodOptional<z.ZodObject<{
44
- type: z.ZodEnum<[string, ...string[]]>;
44
+ type: z.ZodEnum<["free" | "stipend" | "salary" | "project-based", ...("free" | "stipend" | "salary" | "project-based")[]]>;
45
45
  amount: z.ZodOptional<z.ZodNumber>;
46
46
  currency: z.ZodEnum<[string, ...string[]]>;
47
- frequency: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
47
+ frequency: z.ZodOptional<z.ZodEnum<["daily" | "weekly" | "monthly" | "yearly" | "one-time", ...("daily" | "weekly" | "monthly" | "yearly" | "one-time")[]]>>;
48
48
  }, "strip", z.ZodTypeAny, {
49
- type: string;
49
+ type: "free" | "stipend" | "salary" | "project-based";
50
50
  currency: string;
51
51
  amount?: number | undefined;
52
- frequency?: string | undefined;
52
+ frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
53
53
  }, {
54
- type: string;
54
+ type: "free" | "stipend" | "salary" | "project-based";
55
55
  currency: string;
56
56
  amount?: number | undefined;
57
- frequency?: string | undefined;
57
+ frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
58
58
  }>>;
59
59
  bondPlan: z.ZodOptional<z.ZodObject<{
60
60
  enabled: z.ZodBoolean;
@@ -93,6 +93,7 @@ export declare const JobOpportunitySchema: z.ZodObject<{
93
93
  answer: string;
94
94
  }>, "many">;
95
95
  applicationCount: z.ZodNumber;
96
+ pendingApplicationCount: z.ZodOptional<z.ZodNumber>;
96
97
  views: z.ZodNumber;
97
98
  shares: z.ZodNumber;
98
99
  rating: z.ZodNumber;
@@ -129,7 +130,7 @@ export declare const JobOpportunitySchema: z.ZodObject<{
129
130
  verifiedMobile: z.ZodBoolean;
130
131
  verifiedIdCard: z.ZodOptional<z.ZodBoolean>;
131
132
  role: z.ZodEnum<["host", "user", "admin", "hr", "sales"]>;
132
- socialLinks: z.ZodOptional<z.ZodRecord<z.ZodEnum<[string, ...string[]]>, z.ZodString>>;
133
+ socialLinks: z.ZodOptional<z.ZodRecord<z.ZodEnum<["instagram", "linkedin", "youtube", "googleBusiness"]>, z.ZodString>>;
133
134
  userResume: z.ZodOptional<z.ZodString>;
134
135
  skills: z.ZodOptional<z.ZodArray<z.ZodObject<{
135
136
  skill: z.ZodString;
@@ -180,6 +181,11 @@ export declare const JobOpportunitySchema: z.ZodObject<{
180
181
  pinCode?: string | undefined;
181
182
  registrationNumber?: string | undefined;
182
183
  }>, "many">>;
184
+ businessDocument: z.ZodOptional<z.ZodString>;
185
+ businessIdType: z.ZodOptional<z.ZodEnum<["PAN", "GST", "Udyam", "PersonalPAN"]>>;
186
+ businessIdNumber: z.ZodOptional<z.ZodString>;
187
+ businessApiVerificationStatus: z.ZodOptional<z.ZodEnum<["pending", "verified", "failed"]>>;
188
+ businessVerificationDenialReason: z.ZodOptional<z.ZodString>;
183
189
  }, "strict", z.ZodTypeAny, {
184
190
  username: string;
185
191
  firstName: string;
@@ -210,7 +216,7 @@ export declare const JobOpportunitySchema: z.ZodObject<{
210
216
  accessToken?: string | undefined;
211
217
  refreshToken?: string | undefined;
212
218
  verifiedIdCard?: boolean | undefined;
213
- socialLinks?: Record<string, string> | undefined;
219
+ socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
214
220
  userResume?: string | undefined;
215
221
  skills?: {
216
222
  skill: string;
@@ -237,6 +243,11 @@ export declare const JobOpportunitySchema: z.ZodObject<{
237
243
  pinCode?: string | undefined;
238
244
  registrationNumber?: string | undefined;
239
245
  }[] | undefined;
246
+ businessDocument?: string | undefined;
247
+ businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
248
+ businessIdNumber?: string | undefined;
249
+ businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
250
+ businessVerificationDenialReason?: string | undefined;
240
251
  }, {
241
252
  username: string;
242
253
  firstName: string;
@@ -267,7 +278,7 @@ export declare const JobOpportunitySchema: z.ZodObject<{
267
278
  accessToken?: string | undefined;
268
279
  refreshToken?: string | undefined;
269
280
  verifiedIdCard?: boolean | undefined;
270
- socialLinks?: Record<string, string> | undefined;
281
+ socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
271
282
  userResume?: string | undefined;
272
283
  skills?: {
273
284
  skill: string;
@@ -294,6 +305,11 @@ export declare const JobOpportunitySchema: z.ZodObject<{
294
305
  pinCode?: string | undefined;
295
306
  registrationNumber?: string | undefined;
296
307
  }[] | undefined;
308
+ businessDocument?: string | undefined;
309
+ businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
310
+ businessIdNumber?: string | undefined;
311
+ businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
312
+ businessVerificationDenialReason?: string | undefined;
297
313
  }>>;
298
314
  applicationObservers: z.ZodOptional<z.ZodArray<z.ZodObject<{
299
315
  username: z.ZodString;
@@ -337,20 +353,20 @@ export declare const JobOpportunitySchema: z.ZodObject<{
337
353
  weeklyOffs: number;
338
354
  }>;
339
355
  salary: z.ZodObject<{
340
- type: z.ZodEnum<[string, ...string[]]>;
356
+ type: z.ZodEnum<["free" | "stipend" | "salary" | "project-based", ...("free" | "stipend" | "salary" | "project-based")[]]>;
341
357
  amount: z.ZodOptional<z.ZodNumber>;
342
358
  currency: z.ZodEnum<[string, ...string[]]>;
343
- frequency: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
359
+ frequency: z.ZodOptional<z.ZodEnum<["daily" | "weekly" | "monthly" | "yearly" | "one-time", ...("daily" | "weekly" | "monthly" | "yearly" | "one-time")[]]>>;
344
360
  }, "strip", z.ZodTypeAny, {
345
- type: string;
361
+ type: "free" | "stipend" | "salary" | "project-based";
346
362
  currency: string;
347
363
  amount?: number | undefined;
348
- frequency?: string | undefined;
364
+ frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
349
365
  }, {
350
- type: string;
366
+ type: "free" | "stipend" | "salary" | "project-based";
351
367
  currency: string;
352
368
  amount?: number | undefined;
353
- frequency?: string | undefined;
369
+ frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
354
370
  }>;
355
371
  bond: z.ZodObject<{
356
372
  bondStartDate: z.ZodDate;
@@ -396,7 +412,7 @@ export declare const JobOpportunitySchema: z.ZodObject<{
396
412
  }>;
397
413
  }, "strict", z.ZodTypeAny, {
398
414
  country: string;
399
- status: "draft" | "archived" | "pending" | "denied" | "open" | "closed" | "deleted";
415
+ status: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | "deleted";
400
416
  rating: number;
401
417
  ratingCount: number;
402
418
  reviewCount: number;
@@ -406,10 +422,10 @@ export declare const JobOpportunitySchema: z.ZodObject<{
406
422
  title: string;
407
423
  description: string;
408
424
  salary: {
409
- type: string;
425
+ type: "free" | "stipend" | "salary" | "project-based";
410
426
  currency: string;
411
427
  amount?: number | undefined;
412
- frequency?: string | undefined;
428
+ frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
413
429
  };
414
430
  slug: string;
415
431
  opportunityType: "job";
@@ -458,7 +474,7 @@ export declare const JobOpportunitySchema: z.ZodObject<{
458
474
  accessToken?: string | undefined;
459
475
  refreshToken?: string | undefined;
460
476
  verifiedIdCard?: boolean | undefined;
461
- socialLinks?: Record<string, string> | undefined;
477
+ socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
462
478
  userResume?: string | undefined;
463
479
  skills?: {
464
480
  skill: string;
@@ -485,6 +501,11 @@ export declare const JobOpportunitySchema: z.ZodObject<{
485
501
  pinCode?: string | undefined;
486
502
  registrationNumber?: string | undefined;
487
503
  }[] | undefined;
504
+ businessDocument?: string | undefined;
505
+ businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
506
+ businessIdNumber?: string | undefined;
507
+ businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
508
+ businessVerificationDenialReason?: string | undefined;
488
509
  };
489
510
  adminApproval: boolean;
490
511
  platformFees: {
@@ -513,12 +534,12 @@ export declare const JobOpportunitySchema: z.ZodObject<{
513
534
  createdAt?: Date | undefined;
514
535
  updatedAt?: Date | undefined;
515
536
  categoryId?: string | undefined;
516
- workMode?: string | undefined;
537
+ workMode?: "onsite" | "remote" | "hybrid" | undefined;
517
538
  compensation?: {
518
- type: string;
539
+ type: "free" | "stipend" | "salary" | "project-based";
519
540
  currency: string;
520
541
  amount?: number | undefined;
521
- frequency?: string | undefined;
542
+ frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
522
543
  } | undefined;
523
544
  bondPlan?: {
524
545
  enabled: boolean;
@@ -527,6 +548,7 @@ export declare const JobOpportunitySchema: z.ZodObject<{
527
548
  hostFee?: number | undefined;
528
549
  securityDeposit?: number | undefined;
529
550
  } | undefined;
551
+ pendingApplicationCount?: number | undefined;
530
552
  hostingType?: string | undefined;
531
553
  applicationObservers?: {
532
554
  username: string;
@@ -537,7 +559,7 @@ export declare const JobOpportunitySchema: z.ZodObject<{
537
559
  }[] | undefined;
538
560
  }, {
539
561
  country: string;
540
- status: "draft" | "archived" | "pending" | "denied" | "open" | "closed" | "deleted";
562
+ status: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | "deleted";
541
563
  rating: number;
542
564
  ratingCount: number;
543
565
  reviewCount: number;
@@ -547,10 +569,10 @@ export declare const JobOpportunitySchema: z.ZodObject<{
547
569
  title: string;
548
570
  description: string;
549
571
  salary: {
550
- type: string;
572
+ type: "free" | "stipend" | "salary" | "project-based";
551
573
  currency: string;
552
574
  amount?: number | undefined;
553
- frequency?: string | undefined;
575
+ frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
554
576
  };
555
577
  slug: string;
556
578
  opportunityType: "job";
@@ -599,7 +621,7 @@ export declare const JobOpportunitySchema: z.ZodObject<{
599
621
  accessToken?: string | undefined;
600
622
  refreshToken?: string | undefined;
601
623
  verifiedIdCard?: boolean | undefined;
602
- socialLinks?: Record<string, string> | undefined;
624
+ socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
603
625
  userResume?: string | undefined;
604
626
  skills?: {
605
627
  skill: string;
@@ -626,6 +648,11 @@ export declare const JobOpportunitySchema: z.ZodObject<{
626
648
  pinCode?: string | undefined;
627
649
  registrationNumber?: string | undefined;
628
650
  }[] | undefined;
651
+ businessDocument?: string | undefined;
652
+ businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
653
+ businessIdNumber?: string | undefined;
654
+ businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
655
+ businessVerificationDenialReason?: string | undefined;
629
656
  };
630
657
  adminApproval: boolean;
631
658
  platformFees: {
@@ -654,12 +681,12 @@ export declare const JobOpportunitySchema: z.ZodObject<{
654
681
  createdAt?: Date | undefined;
655
682
  updatedAt?: Date | undefined;
656
683
  categoryId?: string | undefined;
657
- workMode?: string | undefined;
684
+ workMode?: "onsite" | "remote" | "hybrid" | undefined;
658
685
  compensation?: {
659
- type: string;
686
+ type: "free" | "stipend" | "salary" | "project-based";
660
687
  currency: string;
661
688
  amount?: number | undefined;
662
- frequency?: string | undefined;
689
+ frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
663
690
  } | undefined;
664
691
  bondPlan?: {
665
692
  enabled: boolean;
@@ -668,6 +695,7 @@ export declare const JobOpportunitySchema: z.ZodObject<{
668
695
  securityDeposit?: number | undefined;
669
696
  commissionRate?: number | undefined;
670
697
  } | undefined;
698
+ pendingApplicationCount?: number | undefined;
671
699
  hostingType?: string | undefined;
672
700
  applicationObservers?: {
673
701
  username: string;
@@ -1 +1 @@
1
- {"version":3,"file":"job.d.ts","sourceRoot":"","sources":["../../../../src/lib/models/opportunities/job.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;EAKrB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAI7B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY/B,CAAC"}
1
+ {"version":3,"file":"job.d.ts","sourceRoot":"","sources":["../../../../src/lib/models/opportunities/job.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;EAKrB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAI7B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY/B,CAAC"}