@myrjfa/state 2.2.0 → 2.3.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 (117) hide show
  1. package/LICENSE +201 -201
  2. package/README.md +20 -3
  3. package/dist/index.d.ts +8 -0
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +8 -0
  6. package/dist/lib/actions/actions.d.ts +13 -13
  7. package/dist/lib/actions/actions.d.ts.map +1 -1
  8. package/dist/lib/actions/actions.js +5 -4
  9. package/dist/lib/actions/auth.d.ts +116 -7
  10. package/dist/lib/actions/auth.d.ts.map +1 -1
  11. package/dist/lib/actions/auth.js +59 -10
  12. package/dist/lib/actions/chat.d.ts +261 -24
  13. package/dist/lib/actions/chat.d.ts.map +1 -1
  14. package/dist/lib/actions/chat.js +525 -41
  15. package/dist/lib/actions/fetcher.d.ts.map +1 -1
  16. package/dist/lib/actions/fetcher.js +26 -9
  17. package/dist/lib/actions/serverActions.d.ts +1 -0
  18. package/dist/lib/actions/serverActions.d.ts.map +1 -1
  19. package/dist/lib/actions/serverActions.js +15 -0
  20. package/dist/lib/actions/socket.d.ts.map +1 -1
  21. package/dist/lib/actions/socket.js +5 -1
  22. package/dist/lib/actions.d.ts +26 -26
  23. package/dist/lib/actions.d.ts.map +1 -1
  24. package/dist/lib/actions.js +17 -12
  25. package/dist/lib/adminDashboardActions.d.ts +15 -3
  26. package/dist/lib/adminDashboardActions.d.ts.map +1 -1
  27. package/dist/lib/adminDashboardActions.js +16 -7
  28. package/dist/lib/authSessionManager.d.ts.map +1 -1
  29. package/dist/lib/authSessionManager.js +77 -12
  30. package/dist/lib/authSessionPolicy.d.ts +44 -0
  31. package/dist/lib/authSessionPolicy.d.ts.map +1 -0
  32. package/dist/lib/authSessionPolicy.js +61 -0
  33. package/dist/lib/authorizationActions.d.ts +77 -0
  34. package/dist/lib/authorizationActions.d.ts.map +1 -0
  35. package/dist/lib/authorizationActions.js +61 -0
  36. package/dist/lib/context/ChatContext.d.ts +25 -6
  37. package/dist/lib/context/ChatContext.d.ts.map +1 -1
  38. package/dist/lib/context/ChatContext.js +356 -245
  39. package/dist/lib/discountActions.d.ts +43 -0
  40. package/dist/lib/discountActions.d.ts.map +1 -0
  41. package/dist/lib/discountActions.js +69 -0
  42. package/dist/lib/loyaltyActions.d.ts +32 -0
  43. package/dist/lib/loyaltyActions.d.ts.map +1 -0
  44. package/dist/lib/loyaltyActions.js +92 -0
  45. package/dist/lib/models/adventure.d.ts +0 -2
  46. package/dist/lib/models/adventure.d.ts.map +1 -1
  47. package/dist/lib/models/authorization.d.ts +108 -0
  48. package/dist/lib/models/authorization.d.ts.map +1 -0
  49. package/dist/lib/models/authorization.js +266 -0
  50. package/dist/lib/models/blog.d.ts +6 -6
  51. package/dist/lib/models/booking.d.ts +7 -2
  52. package/dist/lib/models/booking.d.ts.map +1 -1
  53. package/dist/lib/models/chat.d.ts +418 -32
  54. package/dist/lib/models/chat.d.ts.map +1 -1
  55. package/dist/lib/models/chat.js +5 -1
  56. package/dist/lib/models/discount.d.ts +589 -138
  57. package/dist/lib/models/discount.d.ts.map +1 -1
  58. package/dist/lib/models/discount.js +118 -96
  59. package/dist/lib/models/guide.d.ts +0 -2
  60. package/dist/lib/models/guide.d.ts.map +1 -1
  61. package/dist/lib/models/loyalty.d.ts +88 -0
  62. package/dist/lib/models/loyalty.d.ts.map +1 -0
  63. package/dist/lib/models/loyalty.js +1 -0
  64. package/dist/lib/models/notifications.d.ts +6 -6
  65. package/dist/lib/models/opportunities/freelance.d.ts +66 -20
  66. package/dist/lib/models/opportunities/freelance.d.ts.map +1 -1
  67. package/dist/lib/models/opportunities/internship.d.ts +66 -20
  68. package/dist/lib/models/opportunities/internship.d.ts.map +1 -1
  69. package/dist/lib/models/opportunities/job.d.ts +66 -20
  70. package/dist/lib/models/opportunities/job.d.ts.map +1 -1
  71. package/dist/lib/models/opportunities/opportunity.d.ts +66 -20
  72. package/dist/lib/models/opportunities/opportunity.d.ts.map +1 -1
  73. package/dist/lib/models/opportunities/opportunity.js +2 -0
  74. package/dist/lib/models/opportunities/volunteerJob.d.ts +66 -20
  75. package/dist/lib/models/opportunities/volunteerJob.d.ts.map +1 -1
  76. package/dist/lib/models/package.d.ts +77 -216
  77. package/dist/lib/models/package.d.ts.map +1 -1
  78. package/dist/lib/models/package.js +0 -2
  79. package/dist/lib/models/portfolio.d.ts +2 -2
  80. package/dist/lib/models/pricing.d.ts +12 -12
  81. package/dist/lib/models/props.d.ts +1 -1
  82. package/dist/lib/models/props.d.ts.map +1 -1
  83. package/dist/lib/models/rental.d.ts +0 -2
  84. package/dist/lib/models/rental.d.ts.map +1 -1
  85. package/dist/lib/models/review.d.ts +2 -2
  86. package/dist/lib/models/stay.d.ts +17 -17
  87. package/dist/lib/models/store.d.ts +71 -0
  88. package/dist/lib/models/store.d.ts.map +1 -0
  89. package/dist/lib/models/store.js +1 -0
  90. package/dist/lib/models/tile.d.ts +0 -2
  91. package/dist/lib/models/tile.d.ts.map +1 -1
  92. package/dist/lib/models/travelPackage.d.ts +211 -310
  93. package/dist/lib/models/travelPackage.d.ts.map +1 -1
  94. package/dist/lib/models/travelPackage.js +0 -2
  95. package/dist/lib/models/user.d.ts +32 -8
  96. package/dist/lib/models/user.d.ts.map +1 -1
  97. package/dist/lib/models/user.js +10 -1
  98. package/dist/lib/opportunityFormPage.d.ts +1 -0
  99. package/dist/lib/opportunityFormPage.d.ts.map +1 -1
  100. package/dist/lib/opportunityFormPage.js +1 -0
  101. package/dist/lib/rentalActions.js +0 -1
  102. package/dist/lib/rentalDummyData.d.ts.map +1 -1
  103. package/dist/lib/rentalDummyData.js +0 -35
  104. package/dist/lib/rentalFormPage.d.ts +0 -2
  105. package/dist/lib/rentalFormPage.d.ts.map +1 -1
  106. package/dist/lib/rentalFormPage.js +0 -3
  107. package/dist/lib/storeActions.d.ts +25 -0
  108. package/dist/lib/storeActions.d.ts.map +1 -0
  109. package/dist/lib/storeActions.js +46 -0
  110. package/dist/lib/storeDummyData.d.ts +2 -26
  111. package/dist/lib/storeDummyData.d.ts.map +1 -1
  112. package/dist/lib/userAtom.d.ts +178 -42
  113. package/dist/lib/userAtom.d.ts.map +1 -1
  114. package/dist/lib/userAtom.js +80 -52
  115. package/dist/lib/utils.d.ts.map +1 -1
  116. package/dist/lib/utils.js +1 -1
  117. package/package.json +4 -2
@@ -55,7 +55,10 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
55
55
  ratingCount: z.ZodNumber;
56
56
  reviewCount: z.ZodNumber;
57
57
  hostingType: z.ZodOptional<z.ZodString>;
58
+ requiredMembershipTier: z.ZodDefault<z.ZodEnum<["none", "plus", "premium"]>>;
59
+ membershipRequirementStatus: z.ZodDefault<z.ZodEnum<["none", "pending", "approved", "rejected"]>>;
58
60
  hostId: z.ZodLazy<z.ZodObject<{
61
+ _id: z.ZodOptional<z.ZodString>;
59
62
  username: z.ZodString;
60
63
  firstName: z.ZodString;
61
64
  lastName: z.ZodString;
@@ -84,7 +87,14 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
84
87
  verifiedEmail: z.ZodBoolean;
85
88
  verifiedMobile: z.ZodBoolean;
86
89
  verifiedIdCard: z.ZodOptional<z.ZodBoolean>;
87
- role: z.ZodEnum<["host", "user", "admin", "hr", "sales"]>;
90
+ role: z.ZodEnum<[string, ...string[]]>;
91
+ permissions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
92
+ accountType: z.ZodOptional<z.ZodEnum<["user", "host", "staff"]>>;
93
+ baseAccountType: z.ZodOptional<z.ZodEnum<["user", "host"]>>;
94
+ legacyRole: z.ZodOptional<z.ZodString>;
95
+ staffProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
+ baseUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
+ baseHostId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
88
98
  socialLinks: z.ZodOptional<z.ZodRecord<z.ZodEnum<["instagram", "linkedin", "youtube", "googleBusiness"]>, z.ZodString>>;
89
99
  userResume: z.ZodOptional<z.ZodString>;
90
100
  skills: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -143,11 +153,11 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
143
153
  businessVerificationDenialReason: z.ZodOptional<z.ZodString>;
144
154
  }, "strict", z.ZodTypeAny, {
145
155
  username: string;
156
+ email: string;
146
157
  firstName: string;
147
158
  lastName: string;
148
- email: string;
149
- password: string;
150
159
  phoneNumber: string;
160
+ password: string;
151
161
  countryCode: string;
152
162
  country: string;
153
163
  gender: "male" | "female" | "other";
@@ -159,7 +169,12 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
159
169
  lastActive: Date;
160
170
  verifiedEmail: boolean;
161
171
  verifiedMobile: boolean;
162
- role: "host" | "user" | "admin" | "hr" | "sales";
172
+ role: string;
173
+ baseAccountType?: "user" | "host" | undefined;
174
+ legacyRole?: string | undefined;
175
+ staffProfileId?: string | null | undefined;
176
+ accountType?: "user" | "host" | "staff" | undefined;
177
+ _id?: string | undefined;
163
178
  location?: string | undefined;
164
179
  pinCode?: string | undefined;
165
180
  dob?: Date | undefined;
@@ -171,6 +186,9 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
171
186
  accessToken?: string | undefined;
172
187
  refreshToken?: string | undefined;
173
188
  verifiedIdCard?: boolean | undefined;
189
+ permissions?: string[] | undefined;
190
+ baseUserId?: string | null | undefined;
191
+ baseHostId?: string | null | undefined;
174
192
  socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
175
193
  userResume?: string | undefined;
176
194
  skills?: {
@@ -205,11 +223,11 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
205
223
  businessVerificationDenialReason?: string | undefined;
206
224
  }, {
207
225
  username: string;
226
+ email: string;
208
227
  firstName: string;
209
228
  lastName: string;
210
- email: string;
211
- password: string;
212
229
  phoneNumber: string;
230
+ password: string;
213
231
  countryCode: string;
214
232
  country: string;
215
233
  gender: "male" | "female" | "other";
@@ -221,7 +239,12 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
221
239
  lastActive: Date;
222
240
  verifiedEmail: boolean;
223
241
  verifiedMobile: boolean;
224
- role: "host" | "user" | "admin" | "hr" | "sales";
242
+ role: string;
243
+ baseAccountType?: "user" | "host" | undefined;
244
+ legacyRole?: string | undefined;
245
+ staffProfileId?: string | null | undefined;
246
+ accountType?: "user" | "host" | "staff" | undefined;
247
+ _id?: string | undefined;
225
248
  location?: string | undefined;
226
249
  pinCode?: string | undefined;
227
250
  dob?: Date | undefined;
@@ -233,6 +256,9 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
233
256
  accessToken?: string | undefined;
234
257
  refreshToken?: string | undefined;
235
258
  verifiedIdCard?: boolean | undefined;
259
+ permissions?: string[] | undefined;
260
+ baseUserId?: string | null | undefined;
261
+ baseHostId?: string | null | undefined;
236
262
  socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
237
263
  userResume?: string | undefined;
238
264
  skills?: {
@@ -268,7 +294,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
268
294
  }>>;
269
295
  applicationObservers: z.ZodOptional<z.ZodArray<z.ZodObject<{
270
296
  username: z.ZodString;
271
- role: z.ZodEnum<["host", "user", "admin", "hr", "sales"]>;
297
+ role: z.ZodEnum<[string, ...string[]]>;
272
298
  countryCode: z.ZodString;
273
299
  phoneNumber: z.ZodString;
274
300
  email: z.ZodString;
@@ -277,13 +303,13 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
277
303
  email: string;
278
304
  phoneNumber: string;
279
305
  countryCode: string;
280
- role: "host" | "user" | "admin" | "hr" | "sales";
306
+ role: string;
281
307
  }, {
282
308
  username: string;
283
309
  email: string;
284
310
  phoneNumber: string;
285
311
  countryCode: string;
286
- role: "host" | "user" | "admin" | "hr" | "sales";
312
+ role: string;
287
313
  }>, "many">>;
288
314
  status: z.ZodEnum<["draft", "archived", "pending", "open", "closed", "denied", "deleted"]>;
289
315
  adminApproval: z.ZodBoolean;
@@ -335,7 +361,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
335
361
  }>;
336
362
  }, "strict", z.ZodTypeAny, {
337
363
  country: string;
338
- status: "pending" | "denied" | "draft" | "archived" | "open" | "closed" | "deleted";
364
+ status: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | "deleted";
339
365
  rating: number;
340
366
  ratingCount: number;
341
367
  reviewCount: number;
@@ -367,13 +393,15 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
367
393
  applicationCount: number;
368
394
  views: number;
369
395
  shares: number;
396
+ requiredMembershipTier: "none" | "plus" | "premium";
397
+ membershipRequirementStatus: "approved" | "pending" | "none" | "rejected";
370
398
  hostId: {
371
399
  username: string;
400
+ email: string;
372
401
  firstName: string;
373
402
  lastName: string;
374
- email: string;
375
- password: string;
376
403
  phoneNumber: string;
404
+ password: string;
377
405
  countryCode: string;
378
406
  country: string;
379
407
  gender: "male" | "female" | "other";
@@ -385,7 +413,12 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
385
413
  lastActive: Date;
386
414
  verifiedEmail: boolean;
387
415
  verifiedMobile: boolean;
388
- role: "host" | "user" | "admin" | "hr" | "sales";
416
+ role: string;
417
+ baseAccountType?: "user" | "host" | undefined;
418
+ legacyRole?: string | undefined;
419
+ staffProfileId?: string | null | undefined;
420
+ accountType?: "user" | "host" | "staff" | undefined;
421
+ _id?: string | undefined;
389
422
  location?: string | undefined;
390
423
  pinCode?: string | undefined;
391
424
  dob?: Date | undefined;
@@ -397,6 +430,9 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
397
430
  accessToken?: string | undefined;
398
431
  refreshToken?: string | undefined;
399
432
  verifiedIdCard?: boolean | undefined;
433
+ permissions?: string[] | undefined;
434
+ baseUserId?: string | null | undefined;
435
+ baseHostId?: string | null | undefined;
400
436
  socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
401
437
  userResume?: string | undefined;
402
438
  skills?: {
@@ -460,11 +496,11 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
460
496
  email: string;
461
497
  phoneNumber: string;
462
498
  countryCode: string;
463
- role: "host" | "user" | "admin" | "hr" | "sales";
499
+ role: string;
464
500
  }[] | undefined;
465
501
  }, {
466
502
  country: string;
467
- status: "pending" | "denied" | "draft" | "archived" | "open" | "closed" | "deleted";
503
+ status: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | "deleted";
468
504
  rating: number;
469
505
  ratingCount: number;
470
506
  reviewCount: number;
@@ -498,11 +534,11 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
498
534
  shares: number;
499
535
  hostId: {
500
536
  username: string;
537
+ email: string;
501
538
  firstName: string;
502
539
  lastName: string;
503
- email: string;
504
- password: string;
505
540
  phoneNumber: string;
541
+ password: string;
506
542
  countryCode: string;
507
543
  country: string;
508
544
  gender: "male" | "female" | "other";
@@ -514,7 +550,12 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
514
550
  lastActive: Date;
515
551
  verifiedEmail: boolean;
516
552
  verifiedMobile: boolean;
517
- role: "host" | "user" | "admin" | "hr" | "sales";
553
+ role: string;
554
+ baseAccountType?: "user" | "host" | undefined;
555
+ legacyRole?: string | undefined;
556
+ staffProfileId?: string | null | undefined;
557
+ accountType?: "user" | "host" | "staff" | undefined;
558
+ _id?: string | undefined;
518
559
  location?: string | undefined;
519
560
  pinCode?: string | undefined;
520
561
  dob?: Date | undefined;
@@ -526,6 +567,9 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
526
567
  accessToken?: string | undefined;
527
568
  refreshToken?: string | undefined;
528
569
  verifiedIdCard?: boolean | undefined;
570
+ permissions?: string[] | undefined;
571
+ baseUserId?: string | null | undefined;
572
+ baseHostId?: string | null | undefined;
529
573
  socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
530
574
  userResume?: string | undefined;
531
575
  skills?: {
@@ -584,12 +628,14 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
584
628
  } | undefined;
585
629
  pendingApplicationCount?: number | undefined;
586
630
  hostingType?: string | undefined;
631
+ requiredMembershipTier?: "none" | "plus" | "premium" | undefined;
632
+ membershipRequirementStatus?: "approved" | "pending" | "none" | "rejected" | undefined;
587
633
  applicationObservers?: {
588
634
  username: string;
589
635
  email: string;
590
636
  phoneNumber: string;
591
637
  countryCode: string;
592
- role: "host" | "user" | "admin" | "hr" | "sales";
638
+ role: string;
593
639
  }[] | undefined;
594
640
  }>;
595
641
  //# sourceMappingURL=freelance.d.ts.map
@@ -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"}
@@ -55,7 +55,10 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
55
55
  ratingCount: z.ZodNumber;
56
56
  reviewCount: z.ZodNumber;
57
57
  hostingType: z.ZodOptional<z.ZodString>;
58
+ requiredMembershipTier: z.ZodDefault<z.ZodEnum<["none", "plus", "premium"]>>;
59
+ membershipRequirementStatus: z.ZodDefault<z.ZodEnum<["none", "pending", "approved", "rejected"]>>;
58
60
  hostId: z.ZodLazy<z.ZodObject<{
61
+ _id: z.ZodOptional<z.ZodString>;
59
62
  username: z.ZodString;
60
63
  firstName: z.ZodString;
61
64
  lastName: z.ZodString;
@@ -84,7 +87,14 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
84
87
  verifiedEmail: z.ZodBoolean;
85
88
  verifiedMobile: z.ZodBoolean;
86
89
  verifiedIdCard: z.ZodOptional<z.ZodBoolean>;
87
- role: z.ZodEnum<["host", "user", "admin", "hr", "sales"]>;
90
+ role: z.ZodEnum<[string, ...string[]]>;
91
+ permissions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
92
+ accountType: z.ZodOptional<z.ZodEnum<["user", "host", "staff"]>>;
93
+ baseAccountType: z.ZodOptional<z.ZodEnum<["user", "host"]>>;
94
+ legacyRole: z.ZodOptional<z.ZodString>;
95
+ staffProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
+ baseUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
+ baseHostId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
88
98
  socialLinks: z.ZodOptional<z.ZodRecord<z.ZodEnum<["instagram", "linkedin", "youtube", "googleBusiness"]>, z.ZodString>>;
89
99
  userResume: z.ZodOptional<z.ZodString>;
90
100
  skills: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -143,11 +153,11 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
143
153
  businessVerificationDenialReason: z.ZodOptional<z.ZodString>;
144
154
  }, "strict", z.ZodTypeAny, {
145
155
  username: string;
156
+ email: string;
146
157
  firstName: string;
147
158
  lastName: string;
148
- email: string;
149
- password: string;
150
159
  phoneNumber: string;
160
+ password: string;
151
161
  countryCode: string;
152
162
  country: string;
153
163
  gender: "male" | "female" | "other";
@@ -159,7 +169,12 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
159
169
  lastActive: Date;
160
170
  verifiedEmail: boolean;
161
171
  verifiedMobile: boolean;
162
- role: "host" | "user" | "admin" | "hr" | "sales";
172
+ role: string;
173
+ baseAccountType?: "user" | "host" | undefined;
174
+ legacyRole?: string | undefined;
175
+ staffProfileId?: string | null | undefined;
176
+ accountType?: "user" | "host" | "staff" | undefined;
177
+ _id?: string | undefined;
163
178
  location?: string | undefined;
164
179
  pinCode?: string | undefined;
165
180
  dob?: Date | undefined;
@@ -171,6 +186,9 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
171
186
  accessToken?: string | undefined;
172
187
  refreshToken?: string | undefined;
173
188
  verifiedIdCard?: boolean | undefined;
189
+ permissions?: string[] | undefined;
190
+ baseUserId?: string | null | undefined;
191
+ baseHostId?: string | null | undefined;
174
192
  socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
175
193
  userResume?: string | undefined;
176
194
  skills?: {
@@ -205,11 +223,11 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
205
223
  businessVerificationDenialReason?: string | undefined;
206
224
  }, {
207
225
  username: string;
226
+ email: string;
208
227
  firstName: string;
209
228
  lastName: string;
210
- email: string;
211
- password: string;
212
229
  phoneNumber: string;
230
+ password: string;
213
231
  countryCode: string;
214
232
  country: string;
215
233
  gender: "male" | "female" | "other";
@@ -221,7 +239,12 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
221
239
  lastActive: Date;
222
240
  verifiedEmail: boolean;
223
241
  verifiedMobile: boolean;
224
- role: "host" | "user" | "admin" | "hr" | "sales";
242
+ role: string;
243
+ baseAccountType?: "user" | "host" | undefined;
244
+ legacyRole?: string | undefined;
245
+ staffProfileId?: string | null | undefined;
246
+ accountType?: "user" | "host" | "staff" | undefined;
247
+ _id?: string | undefined;
225
248
  location?: string | undefined;
226
249
  pinCode?: string | undefined;
227
250
  dob?: Date | undefined;
@@ -233,6 +256,9 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
233
256
  accessToken?: string | undefined;
234
257
  refreshToken?: string | undefined;
235
258
  verifiedIdCard?: boolean | undefined;
259
+ permissions?: string[] | undefined;
260
+ baseUserId?: string | null | undefined;
261
+ baseHostId?: string | null | undefined;
236
262
  socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
237
263
  userResume?: string | undefined;
238
264
  skills?: {
@@ -268,7 +294,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
268
294
  }>>;
269
295
  applicationObservers: z.ZodOptional<z.ZodArray<z.ZodObject<{
270
296
  username: z.ZodString;
271
- role: z.ZodEnum<["host", "user", "admin", "hr", "sales"]>;
297
+ role: z.ZodEnum<[string, ...string[]]>;
272
298
  countryCode: z.ZodString;
273
299
  phoneNumber: z.ZodString;
274
300
  email: z.ZodString;
@@ -277,13 +303,13 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
277
303
  email: string;
278
304
  phoneNumber: string;
279
305
  countryCode: string;
280
- role: "host" | "user" | "admin" | "hr" | "sales";
306
+ role: string;
281
307
  }, {
282
308
  username: string;
283
309
  email: string;
284
310
  phoneNumber: string;
285
311
  countryCode: string;
286
- role: "host" | "user" | "admin" | "hr" | "sales";
312
+ role: string;
287
313
  }>, "many">>;
288
314
  status: z.ZodEnum<["draft", "archived", "pending", "open", "closed", "denied", "deleted"]>;
289
315
  adminApproval: z.ZodBoolean;
@@ -322,7 +348,7 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
322
348
  }>;
323
349
  }, "strict", z.ZodTypeAny, {
324
350
  country: string;
325
- status: "pending" | "denied" | "draft" | "archived" | "open" | "closed" | "deleted";
351
+ status: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | "deleted";
326
352
  rating: number;
327
353
  ratingCount: number;
328
354
  reviewCount: number;
@@ -354,13 +380,15 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
354
380
  applicationCount: number;
355
381
  views: number;
356
382
  shares: number;
383
+ requiredMembershipTier: "none" | "plus" | "premium";
384
+ membershipRequirementStatus: "approved" | "pending" | "none" | "rejected";
357
385
  hostId: {
358
386
  username: string;
387
+ email: string;
359
388
  firstName: string;
360
389
  lastName: string;
361
- email: string;
362
- password: string;
363
390
  phoneNumber: string;
391
+ password: string;
364
392
  countryCode: string;
365
393
  country: string;
366
394
  gender: "male" | "female" | "other";
@@ -372,7 +400,12 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
372
400
  lastActive: Date;
373
401
  verifiedEmail: boolean;
374
402
  verifiedMobile: boolean;
375
- role: "host" | "user" | "admin" | "hr" | "sales";
403
+ role: string;
404
+ baseAccountType?: "user" | "host" | undefined;
405
+ legacyRole?: string | undefined;
406
+ staffProfileId?: string | null | undefined;
407
+ accountType?: "user" | "host" | "staff" | undefined;
408
+ _id?: string | undefined;
376
409
  location?: string | undefined;
377
410
  pinCode?: string | undefined;
378
411
  dob?: Date | undefined;
@@ -384,6 +417,9 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
384
417
  accessToken?: string | undefined;
385
418
  refreshToken?: string | undefined;
386
419
  verifiedIdCard?: boolean | undefined;
420
+ permissions?: string[] | undefined;
421
+ baseUserId?: string | null | undefined;
422
+ baseHostId?: string | null | undefined;
387
423
  socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
388
424
  userResume?: string | undefined;
389
425
  skills?: {
@@ -442,11 +478,11 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
442
478
  email: string;
443
479
  phoneNumber: string;
444
480
  countryCode: string;
445
- role: "host" | "user" | "admin" | "hr" | "sales";
481
+ role: string;
446
482
  }[] | undefined;
447
483
  }, {
448
484
  country: string;
449
- status: "pending" | "denied" | "draft" | "archived" | "open" | "closed" | "deleted";
485
+ status: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | "deleted";
450
486
  rating: number;
451
487
  ratingCount: number;
452
488
  reviewCount: number;
@@ -480,11 +516,11 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
480
516
  shares: number;
481
517
  hostId: {
482
518
  username: string;
519
+ email: string;
483
520
  firstName: string;
484
521
  lastName: string;
485
- email: string;
486
- password: string;
487
522
  phoneNumber: string;
523
+ password: string;
488
524
  countryCode: string;
489
525
  country: string;
490
526
  gender: "male" | "female" | "other";
@@ -496,7 +532,12 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
496
532
  lastActive: Date;
497
533
  verifiedEmail: boolean;
498
534
  verifiedMobile: boolean;
499
- role: "host" | "user" | "admin" | "hr" | "sales";
535
+ role: string;
536
+ baseAccountType?: "user" | "host" | undefined;
537
+ legacyRole?: string | undefined;
538
+ staffProfileId?: string | null | undefined;
539
+ accountType?: "user" | "host" | "staff" | undefined;
540
+ _id?: string | undefined;
500
541
  location?: string | undefined;
501
542
  pinCode?: string | undefined;
502
543
  dob?: Date | undefined;
@@ -508,6 +549,9 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
508
549
  accessToken?: string | undefined;
509
550
  refreshToken?: string | undefined;
510
551
  verifiedIdCard?: boolean | undefined;
552
+ permissions?: string[] | undefined;
553
+ baseUserId?: string | null | undefined;
554
+ baseHostId?: string | null | undefined;
511
555
  socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
512
556
  userResume?: string | undefined;
513
557
  skills?: {
@@ -561,12 +605,14 @@ export declare const InternshipOpportunitySchema: z.ZodObject<{
561
605
  } | undefined;
562
606
  pendingApplicationCount?: number | undefined;
563
607
  hostingType?: string | undefined;
608
+ requiredMembershipTier?: "none" | "plus" | "premium" | undefined;
609
+ membershipRequirementStatus?: "approved" | "pending" | "none" | "rejected" | undefined;
564
610
  applicationObservers?: {
565
611
  username: string;
566
612
  email: string;
567
613
  phoneNumber: string;
568
614
  countryCode: string;
569
- role: "host" | "user" | "admin" | "hr" | "sales";
615
+ role: string;
570
616
  }[] | undefined;
571
617
  }>;
572
618
  //# sourceMappingURL=internship.d.ts.map
@@ -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"}