@myrjfa/state 1.1.1 → 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 (73) hide show
  1. package/dist/index.d.ts +18 -18
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +18 -18
  4. package/dist/lib/actions/actions.d.ts +189 -170
  5. package/dist/lib/actions/actions.d.ts.map +1 -1
  6. package/dist/lib/actions/actions.js +347 -307
  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/fetcher.d.ts +0 -3
  10. package/dist/lib/actions/fetcher.d.ts.map +1 -1
  11. package/dist/lib/actions/fetcher.js +122 -84
  12. package/dist/lib/actions/{severActions.d.ts → serverActions.d.ts} +1 -1
  13. package/dist/lib/actions/serverActions.d.ts.map +1 -0
  14. package/dist/lib/actions/{severActions.js → serverActions.js} +3 -0
  15. package/dist/lib/authSessionManager.d.ts.map +1 -1
  16. package/dist/lib/authSessionManager.js +41 -34
  17. package/dist/lib/context/ChatContext.d.ts +1 -1
  18. package/dist/lib/context/ChatContext.d.ts.map +1 -1
  19. package/dist/lib/context/ChatContext.js +338 -338
  20. package/dist/lib/models/blog.d.ts +3 -2
  21. package/dist/lib/models/blog.d.ts.map +1 -1
  22. package/dist/lib/models/{notfications.d.ts → notifications.d.ts} +94 -94
  23. package/dist/lib/models/notifications.d.ts.map +1 -0
  24. package/dist/lib/models/opportunities/freelance.d.ts +48 -20
  25. package/dist/lib/models/opportunities/freelance.d.ts.map +1 -1
  26. package/dist/lib/models/opportunities/internship.d.ts +48 -20
  27. package/dist/lib/models/opportunities/internship.d.ts.map +1 -1
  28. package/dist/lib/models/opportunities/job.d.ts +58 -30
  29. package/dist/lib/models/opportunities/job.d.ts.map +1 -1
  30. package/dist/lib/models/opportunities/opportunity.d.ts +61 -33
  31. package/dist/lib/models/opportunities/opportunity.d.ts.map +1 -1
  32. package/dist/lib/models/opportunities/opportunity.js +1 -0
  33. package/dist/lib/models/opportunities/volunteerJob.d.ts +48 -20
  34. package/dist/lib/models/opportunities/volunteerJob.d.ts.map +1 -1
  35. package/dist/lib/models/portfolio.d.ts +42 -42
  36. package/dist/lib/models/props.d.ts +21 -4
  37. package/dist/lib/models/props.d.ts.map +1 -1
  38. package/dist/lib/models/tile.d.ts +28 -28
  39. package/dist/lib/models/user.d.ts +19 -4
  40. package/dist/lib/models/user.d.ts.map +1 -1
  41. package/dist/lib/models/user.js +5 -0
  42. package/dist/lib/userAtom.d.ts +218 -198
  43. package/dist/lib/userAtom.d.ts.map +1 -1
  44. package/dist/lib/userAtom.js +129 -127
  45. package/dist/lib/utils.js +4 -4
  46. package/package.json +3 -1
  47. package/dist/lib/actions/property.d.ts +0 -77
  48. package/dist/lib/actions/property.d.ts.map +0 -1
  49. package/dist/lib/actions/property.js +0 -133
  50. package/dist/lib/actions/severActions.d.ts.map +0 -1
  51. package/dist/lib/actions.d.ts +0 -141
  52. package/dist/lib/actions.d.ts.map +0 -1
  53. package/dist/lib/actions.js +0 -307
  54. package/dist/lib/auth.d.ts +0 -150
  55. package/dist/lib/auth.d.ts.map +0 -1
  56. package/dist/lib/auth.js +0 -125
  57. package/dist/lib/fetcher.d.ts +0 -9
  58. package/dist/lib/fetcher.d.ts.map +0 -1
  59. package/dist/lib/fetcher.js +0 -84
  60. package/dist/lib/models/notfications.d.ts.map +0 -1
  61. package/dist/lib/models/property.d.ts +0 -79
  62. package/dist/lib/models/property.d.ts.map +0 -1
  63. package/dist/lib/models/property.js +0 -134
  64. package/dist/lib/models/volunteerJob.d.ts +0 -398
  65. package/dist/lib/models/volunteerJob.d.ts.map +0 -1
  66. package/dist/lib/models/volunteerJob.js +0 -152
  67. package/dist/lib/severActions.d.ts +0 -3
  68. package/dist/lib/severActions.d.ts.map +0 -1
  69. package/dist/lib/severActions.js +0 -19
  70. package/dist/lib/socket.d.ts +0 -7
  71. package/dist/lib/socket.d.ts.map +0 -1
  72. package/dist/lib/socket.js +0 -22
  73. /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;
@@ -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"}
@@ -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;
@@ -152,6 +153,11 @@ export declare const JobOpportunitySchema: z.ZodObject<{
152
153
  gstNumber: z.ZodOptional<z.ZodString>;
153
154
  panCard: z.ZodOptional<z.ZodString>;
154
155
  verifiedBusiness: z.ZodOptional<z.ZodEnum<["true", "false", "inProgress"]>>;
156
+ businessDocument: z.ZodOptional<z.ZodString>;
157
+ businessIdType: z.ZodOptional<z.ZodEnum<["PAN", "GST", "Udyam", "PersonalPAN"]>>;
158
+ businessIdNumber: z.ZodOptional<z.ZodString>;
159
+ businessApiVerificationStatus: z.ZodOptional<z.ZodEnum<["pending", "verified", "failed"]>>;
160
+ businessVerificationDenialReason: z.ZodOptional<z.ZodString>;
155
161
  }, "strict", z.ZodTypeAny, {
156
162
  username: string;
157
163
  firstName: string;
@@ -182,7 +188,7 @@ export declare const JobOpportunitySchema: z.ZodObject<{
182
188
  accessToken?: string | undefined;
183
189
  refreshToken?: string | undefined;
184
190
  verifiedIdCard?: boolean | undefined;
185
- socialLinks?: Record<string, string> | undefined;
191
+ socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
186
192
  userResume?: string | undefined;
187
193
  skills?: {
188
194
  skill: string;
@@ -199,6 +205,11 @@ export declare const JobOpportunitySchema: z.ZodObject<{
199
205
  gstNumber?: string | undefined;
200
206
  panCard?: string | undefined;
201
207
  verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
208
+ businessDocument?: string | undefined;
209
+ businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
210
+ businessIdNumber?: string | undefined;
211
+ businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
212
+ businessVerificationDenialReason?: string | undefined;
202
213
  }, {
203
214
  username: string;
204
215
  firstName: string;
@@ -229,7 +240,7 @@ export declare const JobOpportunitySchema: z.ZodObject<{
229
240
  accessToken?: string | undefined;
230
241
  refreshToken?: string | undefined;
231
242
  verifiedIdCard?: boolean | undefined;
232
- socialLinks?: Record<string, string> | undefined;
243
+ socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
233
244
  userResume?: string | undefined;
234
245
  skills?: {
235
246
  skill: string;
@@ -246,6 +257,11 @@ export declare const JobOpportunitySchema: z.ZodObject<{
246
257
  gstNumber?: string | undefined;
247
258
  panCard?: string | undefined;
248
259
  verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
260
+ businessDocument?: string | undefined;
261
+ businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
262
+ businessIdNumber?: string | undefined;
263
+ businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
264
+ businessVerificationDenialReason?: string | undefined;
249
265
  }>>;
250
266
  applicationObservers: z.ZodOptional<z.ZodArray<z.ZodObject<{
251
267
  username: z.ZodString;
@@ -289,20 +305,20 @@ export declare const JobOpportunitySchema: z.ZodObject<{
289
305
  weeklyOffs: number;
290
306
  }>;
291
307
  salary: z.ZodObject<{
292
- type: z.ZodEnum<[string, ...string[]]>;
308
+ type: z.ZodEnum<["free" | "stipend" | "salary" | "project-based", ...("free" | "stipend" | "salary" | "project-based")[]]>;
293
309
  amount: z.ZodOptional<z.ZodNumber>;
294
310
  currency: z.ZodEnum<[string, ...string[]]>;
295
- frequency: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
311
+ frequency: z.ZodOptional<z.ZodEnum<["daily" | "weekly" | "monthly" | "yearly" | "one-time", ...("daily" | "weekly" | "monthly" | "yearly" | "one-time")[]]>>;
296
312
  }, "strip", z.ZodTypeAny, {
297
- type: string;
313
+ type: "free" | "stipend" | "salary" | "project-based";
298
314
  currency: string;
299
315
  amount?: number | undefined;
300
- frequency?: string | undefined;
316
+ frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
301
317
  }, {
302
- type: string;
318
+ type: "free" | "stipend" | "salary" | "project-based";
303
319
  currency: string;
304
320
  amount?: number | undefined;
305
- frequency?: string | undefined;
321
+ frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
306
322
  }>;
307
323
  bond: z.ZodObject<{
308
324
  bondStartDate: z.ZodDate;
@@ -348,7 +364,7 @@ export declare const JobOpportunitySchema: z.ZodObject<{
348
364
  }>;
349
365
  }, "strict", z.ZodTypeAny, {
350
366
  country: string;
351
- status: "draft" | "archived" | "pending" | "denied" | "open" | "closed" | "deleted";
367
+ status: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | "deleted";
352
368
  rating: number;
353
369
  ratingCount: number;
354
370
  reviewCount: number;
@@ -356,10 +372,10 @@ export declare const JobOpportunitySchema: z.ZodObject<{
356
372
  title: string;
357
373
  description: string;
358
374
  salary: {
359
- type: string;
375
+ type: "free" | "stipend" | "salary" | "project-based";
360
376
  currency: string;
361
377
  amount?: number | undefined;
362
- frequency?: string | undefined;
378
+ frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
363
379
  };
364
380
  slug: string;
365
381
  opportunityType: "job";
@@ -410,7 +426,7 @@ export declare const JobOpportunitySchema: z.ZodObject<{
410
426
  accessToken?: string | undefined;
411
427
  refreshToken?: string | undefined;
412
428
  verifiedIdCard?: boolean | undefined;
413
- socialLinks?: Record<string, string> | undefined;
429
+ socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
414
430
  userResume?: string | undefined;
415
431
  skills?: {
416
432
  skill: string;
@@ -427,6 +443,11 @@ export declare const JobOpportunitySchema: z.ZodObject<{
427
443
  gstNumber?: string | undefined;
428
444
  panCard?: string | undefined;
429
445
  verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
446
+ businessDocument?: string | undefined;
447
+ businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
448
+ businessIdNumber?: string | undefined;
449
+ businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
450
+ businessVerificationDenialReason?: string | undefined;
430
451
  };
431
452
  adminApproval: boolean;
432
453
  platformFees: {
@@ -455,12 +476,12 @@ export declare const JobOpportunitySchema: z.ZodObject<{
455
476
  updatedAt?: Date | undefined;
456
477
  categoryId?: string | undefined;
457
478
  address?: string | undefined;
458
- workMode?: string | undefined;
479
+ workMode?: "onsite" | "remote" | "hybrid" | undefined;
459
480
  compensation?: {
460
- type: string;
481
+ type: "free" | "stipend" | "salary" | "project-based";
461
482
  currency: string;
462
483
  amount?: number | undefined;
463
- frequency?: string | undefined;
484
+ frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
464
485
  } | undefined;
465
486
  bondPlan?: {
466
487
  enabled: boolean;
@@ -469,6 +490,7 @@ export declare const JobOpportunitySchema: z.ZodObject<{
469
490
  hostFee?: number | undefined;
470
491
  securityDeposit?: number | undefined;
471
492
  } | undefined;
493
+ pendingApplicationCount?: number | undefined;
472
494
  hostingType?: string | undefined;
473
495
  applicationObservers?: {
474
496
  username: string;
@@ -479,7 +501,7 @@ export declare const JobOpportunitySchema: z.ZodObject<{
479
501
  }[] | undefined;
480
502
  }, {
481
503
  country: string;
482
- status: "draft" | "archived" | "pending" | "denied" | "open" | "closed" | "deleted";
504
+ status: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | "deleted";
483
505
  rating: number;
484
506
  ratingCount: number;
485
507
  reviewCount: number;
@@ -487,10 +509,10 @@ export declare const JobOpportunitySchema: z.ZodObject<{
487
509
  title: string;
488
510
  description: string;
489
511
  salary: {
490
- type: string;
512
+ type: "free" | "stipend" | "salary" | "project-based";
491
513
  currency: string;
492
514
  amount?: number | undefined;
493
- frequency?: string | undefined;
515
+ frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
494
516
  };
495
517
  slug: string;
496
518
  opportunityType: "job";
@@ -541,7 +563,7 @@ export declare const JobOpportunitySchema: z.ZodObject<{
541
563
  accessToken?: string | undefined;
542
564
  refreshToken?: string | undefined;
543
565
  verifiedIdCard?: boolean | undefined;
544
- socialLinks?: Record<string, string> | undefined;
566
+ socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
545
567
  userResume?: string | undefined;
546
568
  skills?: {
547
569
  skill: string;
@@ -558,6 +580,11 @@ export declare const JobOpportunitySchema: z.ZodObject<{
558
580
  gstNumber?: string | undefined;
559
581
  panCard?: string | undefined;
560
582
  verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
583
+ businessDocument?: string | undefined;
584
+ businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
585
+ businessIdNumber?: string | undefined;
586
+ businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
587
+ businessVerificationDenialReason?: string | undefined;
561
588
  };
562
589
  adminApproval: boolean;
563
590
  platformFees: {
@@ -586,12 +613,12 @@ export declare const JobOpportunitySchema: z.ZodObject<{
586
613
  updatedAt?: Date | undefined;
587
614
  categoryId?: string | undefined;
588
615
  address?: string | undefined;
589
- workMode?: string | undefined;
616
+ workMode?: "onsite" | "remote" | "hybrid" | undefined;
590
617
  compensation?: {
591
- type: string;
618
+ type: "free" | "stipend" | "salary" | "project-based";
592
619
  currency: string;
593
620
  amount?: number | undefined;
594
- frequency?: string | undefined;
621
+ frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
595
622
  } | undefined;
596
623
  bondPlan?: {
597
624
  enabled: boolean;
@@ -600,6 +627,7 @@ export declare const JobOpportunitySchema: z.ZodObject<{
600
627
  securityDeposit?: number | undefined;
601
628
  commissionRate?: number | undefined;
602
629
  } | undefined;
630
+ pendingApplicationCount?: number | undefined;
603
631
  hostingType?: string | undefined;
604
632
  applicationObservers?: {
605
633
  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"}