@myrjfa/state 1.0.6 → 1.0.8

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 (67) hide show
  1. package/dist/index.d.ts +9 -4
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +9 -4
  4. package/dist/lib/QueryProvider.d.ts +1 -1
  5. package/dist/lib/QueryProvider.d.ts.map +1 -1
  6. package/dist/lib/actions/actions.d.ts +141 -0
  7. package/dist/lib/actions/actions.d.ts.map +1 -0
  8. package/dist/lib/actions/actions.js +307 -0
  9. package/dist/lib/actions/auth.d.ts +150 -0
  10. package/dist/lib/actions/auth.d.ts.map +1 -0
  11. package/dist/lib/actions/auth.js +125 -0
  12. package/dist/lib/actions/chat.d.ts +48 -0
  13. package/dist/lib/actions/chat.d.ts.map +1 -0
  14. package/dist/lib/actions/chat.js +303 -0
  15. package/dist/lib/actions/fetcher.d.ts +9 -0
  16. package/dist/lib/actions/fetcher.d.ts.map +1 -0
  17. package/dist/lib/actions/fetcher.js +84 -0
  18. package/dist/lib/actions/severActions.d.ts +3 -0
  19. package/dist/lib/actions/severActions.d.ts.map +1 -0
  20. package/dist/lib/actions/severActions.js +19 -0
  21. package/dist/lib/actions/socket.d.ts +7 -0
  22. package/dist/lib/actions/socket.d.ts.map +1 -0
  23. package/dist/lib/actions/socket.js +22 -0
  24. package/dist/lib/actions.d.ts +3 -3
  25. package/dist/lib/actions.d.ts.map +1 -1
  26. package/dist/lib/actions.js +2 -2
  27. package/dist/lib/authSessionManager.js +1 -1
  28. package/dist/lib/context/ChatContext.d.ts +25 -0
  29. package/dist/lib/context/ChatContext.d.ts.map +1 -0
  30. package/dist/lib/context/ChatContext.js +229 -0
  31. package/dist/lib/data/countryStates.d.ts +8 -0
  32. package/dist/lib/data/countryStates.d.ts.map +1 -1
  33. package/dist/lib/data/countryStates.js +24 -0
  34. package/dist/lib/hooks/useChatSocket.d.ts +6 -0
  35. package/dist/lib/hooks/useChatSocket.d.ts.map +1 -0
  36. package/dist/lib/hooks/useChatSocket.js +35 -0
  37. package/dist/lib/models/application.d.ts +1 -0
  38. package/dist/lib/models/application.d.ts.map +1 -1
  39. package/dist/lib/models/blog.d.ts +4 -4
  40. package/dist/lib/models/chat.d.ts +122 -0
  41. package/dist/lib/models/chat.d.ts.map +1 -0
  42. package/dist/lib/models/chat.js +1 -0
  43. package/dist/lib/models/opportunities/freelance.d.ts +499 -0
  44. package/dist/lib/models/opportunities/freelance.d.ts.map +1 -0
  45. package/dist/lib/models/opportunities/freelance.js +12 -0
  46. package/dist/lib/models/opportunities/internship.d.ts +476 -0
  47. package/dist/lib/models/opportunities/internship.d.ts.map +1 -0
  48. package/dist/lib/models/opportunities/internship.js +7 -0
  49. package/dist/lib/models/opportunities/job.d.ts +612 -0
  50. package/dist/lib/models/opportunities/job.d.ts.map +1 -0
  51. package/dist/lib/models/opportunities/job.js +26 -0
  52. package/dist/lib/models/opportunities/opportunity.d.ts +582 -0
  53. package/dist/lib/models/opportunities/opportunity.d.ts.map +1 -0
  54. package/dist/lib/models/opportunities/opportunity.js +227 -0
  55. package/dist/lib/models/opportunities/volunteerJob.d.ts +453 -0
  56. package/dist/lib/models/opportunities/volunteerJob.d.ts.map +1 -0
  57. package/dist/lib/models/opportunities/volunteerJob.js +5 -0
  58. package/dist/lib/models/portfolio.d.ts +2 -2
  59. package/dist/lib/models/props.d.ts.map +1 -1
  60. package/dist/lib/models/props.js +1 -0
  61. package/dist/lib/models/tile.d.ts +3 -0
  62. package/dist/lib/models/tile.d.ts.map +1 -1
  63. package/dist/lib/socket.d.ts +7 -0
  64. package/dist/lib/socket.d.ts.map +1 -0
  65. package/dist/lib/socket.js +22 -0
  66. package/dist/lib/userAtom.js +2 -2
  67. package/package.json +4 -2
@@ -0,0 +1,582 @@
1
+ import { z } from "zod";
2
+ import { DisplayItem } from "../props";
3
+ export declare const CurrencyEnum: z.ZodEnum<[string, ...string[]]>;
4
+ export declare const opportunityTypeOptions: readonly [{
5
+ readonly value: "volunteer";
6
+ readonly label: "Volunteer";
7
+ readonly description: "Work exchange for accommodation/meals";
8
+ }, {
9
+ readonly value: "internship";
10
+ readonly label: "Internship";
11
+ readonly description: "Skill-building with optional stipend";
12
+ }, {
13
+ readonly value: "freelance";
14
+ readonly label: "Freelance";
15
+ readonly description: "Project-based work";
16
+ }, {
17
+ readonly value: "job";
18
+ readonly label: "Job";
19
+ readonly description: "Full-time or part-time employment";
20
+ }];
21
+ export declare const workModeOptions: readonly [{
22
+ readonly value: "onsite";
23
+ readonly label: "On-site";
24
+ }, {
25
+ readonly value: "remote";
26
+ readonly label: "Remote";
27
+ }, {
28
+ readonly value: "hybrid";
29
+ readonly label: "Hybrid";
30
+ }];
31
+ export declare const OpportunityTypeEnum: z.ZodEnum<[string, ...string[]]>;
32
+ export declare const WorkModeEnum: z.ZodEnum<[string, ...string[]]>;
33
+ export declare const OpportunityStatusEnum: z.ZodEnum<["draft", "archived", "pending", "open", "closed", "denied", "deleted"]>;
34
+ export declare const compensationTypeOptions: readonly [{
35
+ readonly value: "free";
36
+ readonly label: "No Pay (Volunteer)";
37
+ }, {
38
+ readonly value: "stipend";
39
+ readonly label: "Stipend";
40
+ }, {
41
+ readonly value: "salary";
42
+ readonly label: "Salary";
43
+ }, {
44
+ readonly value: "project-based";
45
+ readonly label: "Project-based";
46
+ }];
47
+ export declare const payFrequencyOptions: readonly [{
48
+ readonly value: "daily";
49
+ readonly label: "Daily";
50
+ }, {
51
+ readonly value: "weekly";
52
+ readonly label: "Weekly";
53
+ }, {
54
+ readonly value: "monthly";
55
+ readonly label: "Monthly";
56
+ }, {
57
+ readonly value: "yearly";
58
+ readonly label: "Yearly";
59
+ }, {
60
+ readonly value: "one-time";
61
+ readonly label: "One-time";
62
+ }];
63
+ export type OpportunityType = typeof opportunityTypeOptions[number]['value'];
64
+ export type WorkMode = typeof workModeOptions[number]['value'];
65
+ export type CompensationType = typeof compensationTypeOptions[number]['value'];
66
+ export type PayFrequency = typeof payFrequencyOptions[number]['value'];
67
+ export declare const getCompensationTypeForOpportunity: (oppType: OpportunityType) => CompensationType;
68
+ export declare const CompensationTypeEnum: z.ZodEnum<[string, ...string[]]>;
69
+ export declare const PayFrequencyEnum: z.ZodEnum<[string, ...string[]]>;
70
+ export declare const CompensationSchema: z.ZodObject<{
71
+ type: z.ZodEnum<[string, ...string[]]>;
72
+ amount: z.ZodOptional<z.ZodNumber>;
73
+ currency: z.ZodEnum<[string, ...string[]]>;
74
+ frequency: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
75
+ }, "strip", z.ZodTypeAny, {
76
+ type: string;
77
+ currency: string;
78
+ amount?: number | undefined;
79
+ frequency?: string | undefined;
80
+ }, {
81
+ type: string;
82
+ currency: string;
83
+ amount?: number | undefined;
84
+ frequency?: string | undefined;
85
+ }>;
86
+ export type Compensation = z.infer<typeof CompensationSchema>;
87
+ export declare const BondPlanSchema: z.ZodObject<{
88
+ enabled: z.ZodBoolean;
89
+ durationMonths: z.ZodOptional<z.ZodNumber>;
90
+ hostFee: z.ZodOptional<z.ZodNumber>;
91
+ securityDeposit: z.ZodOptional<z.ZodNumber>;
92
+ commissionRate: z.ZodDefault<z.ZodNumber>;
93
+ }, "strip", z.ZodTypeAny, {
94
+ enabled: boolean;
95
+ commissionRate: number;
96
+ durationMonths?: number | undefined;
97
+ hostFee?: number | undefined;
98
+ securityDeposit?: number | undefined;
99
+ }, {
100
+ enabled: boolean;
101
+ durationMonths?: number | undefined;
102
+ hostFee?: number | undefined;
103
+ securityDeposit?: number | undefined;
104
+ commissionRate?: number | undefined;
105
+ }>;
106
+ export type BondPlan = z.infer<typeof BondPlanSchema>;
107
+ export declare const OpportunitySchema: z.ZodObject<{
108
+ slug: z.ZodString;
109
+ opportunityType: z.ZodEnum<[string, ...string[]]>;
110
+ title: z.ZodString;
111
+ skills: z.ZodArray<z.ZodString, "many">;
112
+ description: z.ZodString;
113
+ images: z.ZodArray<z.ZodString, "many">;
114
+ categoryId: z.ZodOptional<z.ZodString>;
115
+ city: z.ZodString;
116
+ state: z.ZodString;
117
+ country: z.ZodString;
118
+ address: z.ZodOptional<z.ZodString>;
119
+ workMode: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
120
+ compensation: z.ZodOptional<z.ZodObject<{
121
+ type: z.ZodEnum<[string, ...string[]]>;
122
+ amount: z.ZodOptional<z.ZodNumber>;
123
+ currency: z.ZodEnum<[string, ...string[]]>;
124
+ frequency: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
125
+ }, "strip", z.ZodTypeAny, {
126
+ type: string;
127
+ currency: string;
128
+ amount?: number | undefined;
129
+ frequency?: string | undefined;
130
+ }, {
131
+ type: string;
132
+ currency: string;
133
+ amount?: number | undefined;
134
+ frequency?: string | undefined;
135
+ }>>;
136
+ bondPlan: z.ZodOptional<z.ZodObject<{
137
+ enabled: z.ZodBoolean;
138
+ durationMonths: z.ZodOptional<z.ZodNumber>;
139
+ hostFee: z.ZodOptional<z.ZodNumber>;
140
+ securityDeposit: z.ZodOptional<z.ZodNumber>;
141
+ commissionRate: z.ZodDefault<z.ZodNumber>;
142
+ }, "strip", z.ZodTypeAny, {
143
+ enabled: boolean;
144
+ commissionRate: number;
145
+ durationMonths?: number | undefined;
146
+ hostFee?: number | undefined;
147
+ securityDeposit?: number | undefined;
148
+ }, {
149
+ enabled: boolean;
150
+ durationMonths?: number | undefined;
151
+ hostFee?: number | undefined;
152
+ securityDeposit?: number | undefined;
153
+ commissionRate?: number | undefined;
154
+ }>>;
155
+ availableFrom: z.ZodDate;
156
+ minDuration: z.ZodNumber;
157
+ maxDuration: z.ZodNumber;
158
+ urgent: z.ZodBoolean;
159
+ peopleRequired: z.ZodNumber;
160
+ facilities: z.ZodArray<z.ZodString, "many">;
161
+ responsibilities: z.ZodArray<z.ZodString, "many">;
162
+ questions: z.ZodArray<z.ZodObject<{
163
+ question: z.ZodString;
164
+ answer: z.ZodString;
165
+ }, "strict", z.ZodTypeAny, {
166
+ question: string;
167
+ answer: string;
168
+ }, {
169
+ question: string;
170
+ answer: string;
171
+ }>, "many">;
172
+ applicationCount: z.ZodNumber;
173
+ views: z.ZodNumber;
174
+ shares: z.ZodNumber;
175
+ rating: z.ZodNumber;
176
+ ratingCount: z.ZodNumber;
177
+ reviewCount: z.ZodNumber;
178
+ hostingType: z.ZodOptional<z.ZodString>;
179
+ hostId: z.ZodLazy<z.ZodObject<{
180
+ username: z.ZodString;
181
+ firstName: z.ZodString;
182
+ lastName: z.ZodString;
183
+ email: z.ZodString;
184
+ password: z.ZodString;
185
+ phoneNumber: z.ZodString;
186
+ countryCode: z.ZodString;
187
+ country: z.ZodString;
188
+ location: z.ZodOptional<z.ZodString>;
189
+ pinCode: z.ZodOptional<z.ZodString>;
190
+ dob: z.ZodOptional<z.ZodDate>;
191
+ gender: z.ZodEnum<["male", "female", "other"]>;
192
+ profilePic: z.ZodOptional<z.ZodString>;
193
+ rating: z.ZodNumber;
194
+ ratingCount: z.ZodNumber;
195
+ reviewCount: z.ZodNumber;
196
+ blogsCount: z.ZodOptional<z.ZodNumber>;
197
+ joinedDate: z.ZodDate;
198
+ isActive: z.ZodBoolean;
199
+ lastActive: z.ZodDate;
200
+ userBio: z.ZodOptional<z.ZodString>;
201
+ userIdCard: z.ZodOptional<z.ZodString>;
202
+ watchHistory: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
203
+ accessToken: z.ZodOptional<z.ZodString>;
204
+ refreshToken: z.ZodOptional<z.ZodString>;
205
+ verifiedEmail: z.ZodBoolean;
206
+ verifiedMobile: z.ZodBoolean;
207
+ verifiedIdCard: z.ZodOptional<z.ZodBoolean>;
208
+ role: z.ZodEnum<["host", "user", "admin", "hr", "sales"]>;
209
+ socialLinks: z.ZodOptional<z.ZodRecord<z.ZodEnum<[string, ...string[]]>, z.ZodString>>;
210
+ userResume: z.ZodOptional<z.ZodString>;
211
+ skills: z.ZodOptional<z.ZodArray<z.ZodObject<{
212
+ skill: z.ZodString;
213
+ skillExpertise: z.ZodNumber;
214
+ }, "strip", z.ZodTypeAny, {
215
+ skill: string;
216
+ skillExpertise: number;
217
+ }, {
218
+ skill: string;
219
+ skillExpertise: number;
220
+ }>, "many">>;
221
+ wishlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
222
+ favBlogs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
223
+ favPackages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
224
+ id: z.ZodOptional<z.ZodString>;
225
+ selfie: z.ZodOptional<z.ZodString>;
226
+ selfieAction: z.ZodOptional<z.ZodString>;
227
+ jobCount: z.ZodOptional<z.ZodNumber>;
228
+ travelPackageCount: z.ZodOptional<z.ZodNumber>;
229
+ gstNumber: z.ZodOptional<z.ZodString>;
230
+ panCard: z.ZodOptional<z.ZodString>;
231
+ verifiedBusiness: z.ZodOptional<z.ZodEnum<["true", "false", "inProgress"]>>;
232
+ }, "strict", z.ZodTypeAny, {
233
+ username: string;
234
+ firstName: string;
235
+ lastName: string;
236
+ email: string;
237
+ password: string;
238
+ phoneNumber: string;
239
+ countryCode: string;
240
+ country: string;
241
+ gender: "male" | "female" | "other";
242
+ rating: number;
243
+ ratingCount: number;
244
+ reviewCount: number;
245
+ joinedDate: Date;
246
+ isActive: boolean;
247
+ lastActive: Date;
248
+ verifiedEmail: boolean;
249
+ verifiedMobile: boolean;
250
+ role: "host" | "user" | "admin" | "hr" | "sales";
251
+ location?: string | undefined;
252
+ pinCode?: string | undefined;
253
+ dob?: Date | undefined;
254
+ profilePic?: string | undefined;
255
+ blogsCount?: number | undefined;
256
+ userBio?: string | undefined;
257
+ userIdCard?: string | undefined;
258
+ watchHistory?: string[] | undefined;
259
+ accessToken?: string | undefined;
260
+ refreshToken?: string | undefined;
261
+ verifiedIdCard?: boolean | undefined;
262
+ socialLinks?: Record<string, string> | undefined;
263
+ userResume?: string | undefined;
264
+ skills?: {
265
+ skill: string;
266
+ skillExpertise: number;
267
+ }[] | undefined;
268
+ wishlist?: string[] | undefined;
269
+ favBlogs?: string[] | undefined;
270
+ favPackages?: string[] | undefined;
271
+ id?: string | undefined;
272
+ selfie?: string | undefined;
273
+ selfieAction?: string | undefined;
274
+ jobCount?: number | undefined;
275
+ travelPackageCount?: number | undefined;
276
+ gstNumber?: string | undefined;
277
+ panCard?: string | undefined;
278
+ verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
279
+ }, {
280
+ username: string;
281
+ firstName: string;
282
+ lastName: string;
283
+ email: string;
284
+ password: string;
285
+ phoneNumber: string;
286
+ countryCode: string;
287
+ country: string;
288
+ gender: "male" | "female" | "other";
289
+ rating: number;
290
+ ratingCount: number;
291
+ reviewCount: number;
292
+ joinedDate: Date;
293
+ isActive: boolean;
294
+ lastActive: Date;
295
+ verifiedEmail: boolean;
296
+ verifiedMobile: boolean;
297
+ role: "host" | "user" | "admin" | "hr" | "sales";
298
+ location?: string | undefined;
299
+ pinCode?: string | undefined;
300
+ dob?: Date | undefined;
301
+ profilePic?: string | undefined;
302
+ blogsCount?: number | undefined;
303
+ userBio?: string | undefined;
304
+ userIdCard?: string | undefined;
305
+ watchHistory?: string[] | undefined;
306
+ accessToken?: string | undefined;
307
+ refreshToken?: string | undefined;
308
+ verifiedIdCard?: boolean | undefined;
309
+ socialLinks?: Record<string, string> | undefined;
310
+ userResume?: string | undefined;
311
+ skills?: {
312
+ skill: string;
313
+ skillExpertise: number;
314
+ }[] | undefined;
315
+ wishlist?: string[] | undefined;
316
+ favBlogs?: string[] | undefined;
317
+ favPackages?: string[] | undefined;
318
+ id?: string | undefined;
319
+ selfie?: string | undefined;
320
+ selfieAction?: string | undefined;
321
+ jobCount?: number | undefined;
322
+ travelPackageCount?: number | undefined;
323
+ gstNumber?: string | undefined;
324
+ panCard?: string | undefined;
325
+ verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
326
+ }>>;
327
+ applicationObservers: z.ZodOptional<z.ZodArray<z.ZodObject<{
328
+ username: z.ZodString;
329
+ role: z.ZodEnum<["host", "user", "admin", "hr", "sales"]>;
330
+ countryCode: z.ZodString;
331
+ phoneNumber: z.ZodString;
332
+ email: z.ZodString;
333
+ }, "strip", z.ZodTypeAny, {
334
+ username: string;
335
+ email: string;
336
+ phoneNumber: string;
337
+ countryCode: string;
338
+ role: "host" | "user" | "admin" | "hr" | "sales";
339
+ }, {
340
+ username: string;
341
+ email: string;
342
+ phoneNumber: string;
343
+ countryCode: string;
344
+ role: "host" | "user" | "admin" | "hr" | "sales";
345
+ }>, "many">>;
346
+ status: z.ZodEnum<["draft", "archived", "pending", "open", "closed", "denied", "deleted"]>;
347
+ adminApproval: z.ZodBoolean;
348
+ createdAt: z.ZodOptional<z.ZodDate>;
349
+ updatedAt: z.ZodOptional<z.ZodDate>;
350
+ }, "strict", z.ZodTypeAny, {
351
+ country: string;
352
+ status: "draft" | "archived" | "pending" | "denied" | "open" | "closed" | "deleted";
353
+ rating: number;
354
+ ratingCount: number;
355
+ reviewCount: number;
356
+ skills: string[];
357
+ title: string;
358
+ description: string;
359
+ slug: string;
360
+ opportunityType: string;
361
+ images: string[];
362
+ city: string;
363
+ state: string;
364
+ availableFrom: Date;
365
+ minDuration: number;
366
+ maxDuration: number;
367
+ urgent: boolean;
368
+ peopleRequired: number;
369
+ facilities: string[];
370
+ responsibilities: string[];
371
+ questions: {
372
+ question: string;
373
+ answer: string;
374
+ }[];
375
+ applicationCount: number;
376
+ views: number;
377
+ shares: number;
378
+ hostId: {
379
+ username: string;
380
+ firstName: string;
381
+ lastName: string;
382
+ email: string;
383
+ password: string;
384
+ phoneNumber: string;
385
+ countryCode: string;
386
+ country: string;
387
+ gender: "male" | "female" | "other";
388
+ rating: number;
389
+ ratingCount: number;
390
+ reviewCount: number;
391
+ joinedDate: Date;
392
+ isActive: boolean;
393
+ lastActive: Date;
394
+ verifiedEmail: boolean;
395
+ verifiedMobile: boolean;
396
+ role: "host" | "user" | "admin" | "hr" | "sales";
397
+ location?: string | undefined;
398
+ pinCode?: string | undefined;
399
+ dob?: Date | undefined;
400
+ profilePic?: string | undefined;
401
+ blogsCount?: number | undefined;
402
+ userBio?: string | undefined;
403
+ userIdCard?: string | undefined;
404
+ watchHistory?: string[] | undefined;
405
+ accessToken?: string | undefined;
406
+ refreshToken?: string | undefined;
407
+ verifiedIdCard?: boolean | undefined;
408
+ socialLinks?: Record<string, string> | undefined;
409
+ userResume?: string | undefined;
410
+ skills?: {
411
+ skill: string;
412
+ skillExpertise: number;
413
+ }[] | undefined;
414
+ wishlist?: string[] | undefined;
415
+ favBlogs?: string[] | undefined;
416
+ favPackages?: string[] | undefined;
417
+ id?: string | undefined;
418
+ selfie?: string | undefined;
419
+ selfieAction?: string | undefined;
420
+ jobCount?: number | undefined;
421
+ travelPackageCount?: number | undefined;
422
+ gstNumber?: string | undefined;
423
+ panCard?: string | undefined;
424
+ verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
425
+ };
426
+ adminApproval: boolean;
427
+ createdAt?: Date | undefined;
428
+ updatedAt?: Date | undefined;
429
+ categoryId?: string | undefined;
430
+ address?: string | undefined;
431
+ workMode?: string | undefined;
432
+ compensation?: {
433
+ type: string;
434
+ currency: string;
435
+ amount?: number | undefined;
436
+ frequency?: string | undefined;
437
+ } | undefined;
438
+ bondPlan?: {
439
+ enabled: boolean;
440
+ commissionRate: number;
441
+ durationMonths?: number | undefined;
442
+ hostFee?: number | undefined;
443
+ securityDeposit?: number | undefined;
444
+ } | undefined;
445
+ hostingType?: string | undefined;
446
+ applicationObservers?: {
447
+ username: string;
448
+ email: string;
449
+ phoneNumber: string;
450
+ countryCode: string;
451
+ role: "host" | "user" | "admin" | "hr" | "sales";
452
+ }[] | undefined;
453
+ }, {
454
+ country: string;
455
+ status: "draft" | "archived" | "pending" | "denied" | "open" | "closed" | "deleted";
456
+ rating: number;
457
+ ratingCount: number;
458
+ reviewCount: number;
459
+ skills: string[];
460
+ title: string;
461
+ description: string;
462
+ slug: string;
463
+ opportunityType: string;
464
+ images: string[];
465
+ city: string;
466
+ state: string;
467
+ availableFrom: Date;
468
+ minDuration: number;
469
+ maxDuration: number;
470
+ urgent: boolean;
471
+ peopleRequired: number;
472
+ facilities: string[];
473
+ responsibilities: string[];
474
+ questions: {
475
+ question: string;
476
+ answer: string;
477
+ }[];
478
+ applicationCount: number;
479
+ views: number;
480
+ shares: number;
481
+ hostId: {
482
+ username: string;
483
+ firstName: string;
484
+ lastName: string;
485
+ email: string;
486
+ password: string;
487
+ phoneNumber: string;
488
+ countryCode: string;
489
+ country: string;
490
+ gender: "male" | "female" | "other";
491
+ rating: number;
492
+ ratingCount: number;
493
+ reviewCount: number;
494
+ joinedDate: Date;
495
+ isActive: boolean;
496
+ lastActive: Date;
497
+ verifiedEmail: boolean;
498
+ verifiedMobile: boolean;
499
+ role: "host" | "user" | "admin" | "hr" | "sales";
500
+ location?: string | undefined;
501
+ pinCode?: string | undefined;
502
+ dob?: Date | undefined;
503
+ profilePic?: string | undefined;
504
+ blogsCount?: number | undefined;
505
+ userBio?: string | undefined;
506
+ userIdCard?: string | undefined;
507
+ watchHistory?: string[] | undefined;
508
+ accessToken?: string | undefined;
509
+ refreshToken?: string | undefined;
510
+ verifiedIdCard?: boolean | undefined;
511
+ socialLinks?: Record<string, string> | undefined;
512
+ userResume?: string | undefined;
513
+ skills?: {
514
+ skill: string;
515
+ skillExpertise: number;
516
+ }[] | undefined;
517
+ wishlist?: string[] | undefined;
518
+ favBlogs?: string[] | undefined;
519
+ favPackages?: string[] | undefined;
520
+ id?: string | undefined;
521
+ selfie?: string | undefined;
522
+ selfieAction?: string | undefined;
523
+ jobCount?: number | undefined;
524
+ travelPackageCount?: number | undefined;
525
+ gstNumber?: string | undefined;
526
+ panCard?: string | undefined;
527
+ verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
528
+ };
529
+ adminApproval: boolean;
530
+ createdAt?: Date | undefined;
531
+ updatedAt?: Date | undefined;
532
+ categoryId?: string | undefined;
533
+ address?: string | undefined;
534
+ workMode?: string | undefined;
535
+ compensation?: {
536
+ type: string;
537
+ currency: string;
538
+ amount?: number | undefined;
539
+ frequency?: string | undefined;
540
+ } | undefined;
541
+ bondPlan?: {
542
+ enabled: boolean;
543
+ durationMonths?: number | undefined;
544
+ hostFee?: number | undefined;
545
+ securityDeposit?: number | undefined;
546
+ commissionRate?: number | undefined;
547
+ } | undefined;
548
+ hostingType?: string | undefined;
549
+ applicationObservers?: {
550
+ username: string;
551
+ email: string;
552
+ phoneNumber: string;
553
+ countryCode: string;
554
+ role: "host" | "user" | "admin" | "hr" | "sales";
555
+ }[] | undefined;
556
+ }>;
557
+ export type Opportunity = z.infer<typeof OpportunitySchema>;
558
+ export type OppMetaData = {
559
+ image: string;
560
+ title: string;
561
+ location: string;
562
+ skills: string[];
563
+ hostingType: string;
564
+ };
565
+ export declare const PlatformFeeSchema: z.ZodObject<{
566
+ commissionPercent: z.ZodNumber;
567
+ commissionAmount: z.ZodNumber;
568
+ payoutToHost: z.ZodNumber;
569
+ }, "strip", z.ZodTypeAny, {
570
+ commissionPercent: number;
571
+ commissionAmount: number;
572
+ payoutToHost: number;
573
+ }, {
574
+ commissionPercent: number;
575
+ commissionAmount: number;
576
+ payoutToHost: number;
577
+ }>;
578
+ export declare const facilitiesOptions: DisplayItem[];
579
+ export declare const otherFacilitiesOptions: DisplayItem[];
580
+ export declare const responsibilitiesOptions: DisplayItem[];
581
+ export declare const otherResponsibilitiesOptions: DisplayItem[];
582
+ //# sourceMappingURL=opportunity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"opportunity.d.ts","sourceRoot":"","sources":["../../../../src/lib/models/opportunities/opportunity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,WAAW,EAAkB,MAAM,UAAU,CAAC;AAGvD,eAAO,MAAM,YAAY,kCAAmD,CAAC;AAI7E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;EAKzB,CAAC;AAEX,eAAO,MAAM,eAAe;;;;;;;;;EAIlB,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