@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.
- package/LICENSE +201 -201
- package/README.md +20 -3
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/lib/actions/actions.d.ts +13 -13
- package/dist/lib/actions/actions.d.ts.map +1 -1
- package/dist/lib/actions/actions.js +5 -4
- package/dist/lib/actions/auth.d.ts +116 -7
- package/dist/lib/actions/auth.d.ts.map +1 -1
- package/dist/lib/actions/auth.js +59 -10
- package/dist/lib/actions/chat.d.ts +261 -24
- package/dist/lib/actions/chat.d.ts.map +1 -1
- package/dist/lib/actions/chat.js +525 -41
- package/dist/lib/actions/fetcher.d.ts.map +1 -1
- package/dist/lib/actions/fetcher.js +26 -9
- package/dist/lib/actions/serverActions.d.ts +1 -0
- package/dist/lib/actions/serverActions.d.ts.map +1 -1
- package/dist/lib/actions/serverActions.js +15 -0
- package/dist/lib/actions/socket.d.ts.map +1 -1
- package/dist/lib/actions/socket.js +5 -1
- package/dist/lib/actions.d.ts +26 -26
- package/dist/lib/actions.d.ts.map +1 -1
- package/dist/lib/actions.js +17 -12
- package/dist/lib/adminDashboardActions.d.ts +15 -3
- package/dist/lib/adminDashboardActions.d.ts.map +1 -1
- package/dist/lib/adminDashboardActions.js +16 -7
- package/dist/lib/authSessionManager.d.ts.map +1 -1
- package/dist/lib/authSessionManager.js +77 -12
- package/dist/lib/authSessionPolicy.d.ts +44 -0
- package/dist/lib/authSessionPolicy.d.ts.map +1 -0
- package/dist/lib/authSessionPolicy.js +61 -0
- package/dist/lib/authorizationActions.d.ts +77 -0
- package/dist/lib/authorizationActions.d.ts.map +1 -0
- package/dist/lib/authorizationActions.js +61 -0
- package/dist/lib/context/ChatContext.d.ts +25 -6
- package/dist/lib/context/ChatContext.d.ts.map +1 -1
- package/dist/lib/context/ChatContext.js +356 -245
- package/dist/lib/discountActions.d.ts +43 -0
- package/dist/lib/discountActions.d.ts.map +1 -0
- package/dist/lib/discountActions.js +69 -0
- package/dist/lib/loyaltyActions.d.ts +32 -0
- package/dist/lib/loyaltyActions.d.ts.map +1 -0
- package/dist/lib/loyaltyActions.js +92 -0
- package/dist/lib/models/adventure.d.ts +0 -2
- package/dist/lib/models/adventure.d.ts.map +1 -1
- package/dist/lib/models/authorization.d.ts +108 -0
- package/dist/lib/models/authorization.d.ts.map +1 -0
- package/dist/lib/models/authorization.js +266 -0
- package/dist/lib/models/blog.d.ts +6 -6
- package/dist/lib/models/booking.d.ts +7 -2
- package/dist/lib/models/booking.d.ts.map +1 -1
- package/dist/lib/models/chat.d.ts +418 -32
- package/dist/lib/models/chat.d.ts.map +1 -1
- package/dist/lib/models/chat.js +5 -1
- package/dist/lib/models/discount.d.ts +589 -138
- package/dist/lib/models/discount.d.ts.map +1 -1
- package/dist/lib/models/discount.js +118 -96
- package/dist/lib/models/guide.d.ts +0 -2
- package/dist/lib/models/guide.d.ts.map +1 -1
- package/dist/lib/models/loyalty.d.ts +88 -0
- package/dist/lib/models/loyalty.d.ts.map +1 -0
- package/dist/lib/models/loyalty.js +1 -0
- package/dist/lib/models/notifications.d.ts +6 -6
- package/dist/lib/models/opportunities/freelance.d.ts +66 -20
- package/dist/lib/models/opportunities/freelance.d.ts.map +1 -1
- package/dist/lib/models/opportunities/internship.d.ts +66 -20
- package/dist/lib/models/opportunities/internship.d.ts.map +1 -1
- package/dist/lib/models/opportunities/job.d.ts +66 -20
- package/dist/lib/models/opportunities/job.d.ts.map +1 -1
- package/dist/lib/models/opportunities/opportunity.d.ts +66 -20
- package/dist/lib/models/opportunities/opportunity.d.ts.map +1 -1
- package/dist/lib/models/opportunities/opportunity.js +2 -0
- package/dist/lib/models/opportunities/volunteerJob.d.ts +66 -20
- package/dist/lib/models/opportunities/volunteerJob.d.ts.map +1 -1
- package/dist/lib/models/package.d.ts +77 -216
- package/dist/lib/models/package.d.ts.map +1 -1
- package/dist/lib/models/package.js +0 -2
- package/dist/lib/models/portfolio.d.ts +2 -2
- package/dist/lib/models/pricing.d.ts +12 -12
- package/dist/lib/models/props.d.ts +1 -1
- package/dist/lib/models/props.d.ts.map +1 -1
- package/dist/lib/models/rental.d.ts +0 -2
- package/dist/lib/models/rental.d.ts.map +1 -1
- package/dist/lib/models/review.d.ts +2 -2
- package/dist/lib/models/stay.d.ts +17 -17
- package/dist/lib/models/store.d.ts +71 -0
- package/dist/lib/models/store.d.ts.map +1 -0
- package/dist/lib/models/store.js +1 -0
- package/dist/lib/models/tile.d.ts +0 -2
- package/dist/lib/models/tile.d.ts.map +1 -1
- package/dist/lib/models/travelPackage.d.ts +211 -310
- package/dist/lib/models/travelPackage.d.ts.map +1 -1
- package/dist/lib/models/travelPackage.js +0 -2
- package/dist/lib/models/user.d.ts +32 -8
- package/dist/lib/models/user.d.ts.map +1 -1
- package/dist/lib/models/user.js +10 -1
- package/dist/lib/opportunityFormPage.d.ts +1 -0
- package/dist/lib/opportunityFormPage.d.ts.map +1 -1
- package/dist/lib/opportunityFormPage.js +1 -0
- package/dist/lib/rentalActions.js +0 -1
- package/dist/lib/rentalDummyData.d.ts.map +1 -1
- package/dist/lib/rentalDummyData.js +0 -35
- package/dist/lib/rentalFormPage.d.ts +0 -2
- package/dist/lib/rentalFormPage.d.ts.map +1 -1
- package/dist/lib/rentalFormPage.js +0 -3
- package/dist/lib/storeActions.d.ts +25 -0
- package/dist/lib/storeActions.d.ts.map +1 -0
- package/dist/lib/storeActions.js +46 -0
- package/dist/lib/storeDummyData.d.ts +2 -26
- package/dist/lib/storeDummyData.d.ts.map +1 -1
- package/dist/lib/userAtom.d.ts +178 -42
- package/dist/lib/userAtom.d.ts.map +1 -1
- package/dist/lib/userAtom.js +80 -52
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +1 -1
- package/package.json +4 -2
|
@@ -100,7 +100,10 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
100
100
|
ratingCount: z.ZodNumber;
|
|
101
101
|
reviewCount: z.ZodNumber;
|
|
102
102
|
hostingType: z.ZodOptional<z.ZodString>;
|
|
103
|
+
requiredMembershipTier: z.ZodDefault<z.ZodEnum<["none", "plus", "premium"]>>;
|
|
104
|
+
membershipRequirementStatus: z.ZodDefault<z.ZodEnum<["none", "pending", "approved", "rejected"]>>;
|
|
103
105
|
hostId: z.ZodLazy<z.ZodObject<{
|
|
106
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
104
107
|
username: z.ZodString;
|
|
105
108
|
firstName: z.ZodString;
|
|
106
109
|
lastName: z.ZodString;
|
|
@@ -129,7 +132,14 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
129
132
|
verifiedEmail: z.ZodBoolean;
|
|
130
133
|
verifiedMobile: z.ZodBoolean;
|
|
131
134
|
verifiedIdCard: z.ZodOptional<z.ZodBoolean>;
|
|
132
|
-
role: z.ZodEnum<[
|
|
135
|
+
role: z.ZodEnum<[string, ...string[]]>;
|
|
136
|
+
permissions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
137
|
+
accountType: z.ZodOptional<z.ZodEnum<["user", "host", "staff"]>>;
|
|
138
|
+
baseAccountType: z.ZodOptional<z.ZodEnum<["user", "host"]>>;
|
|
139
|
+
legacyRole: z.ZodOptional<z.ZodString>;
|
|
140
|
+
staffProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
141
|
+
baseUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
142
|
+
baseHostId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
133
143
|
socialLinks: z.ZodOptional<z.ZodRecord<z.ZodEnum<["instagram", "linkedin", "youtube", "googleBusiness"]>, z.ZodString>>;
|
|
134
144
|
userResume: z.ZodOptional<z.ZodString>;
|
|
135
145
|
skills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -188,11 +198,11 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
188
198
|
businessVerificationDenialReason: z.ZodOptional<z.ZodString>;
|
|
189
199
|
}, "strict", z.ZodTypeAny, {
|
|
190
200
|
username: string;
|
|
201
|
+
email: string;
|
|
191
202
|
firstName: string;
|
|
192
203
|
lastName: string;
|
|
193
|
-
email: string;
|
|
194
|
-
password: string;
|
|
195
204
|
phoneNumber: string;
|
|
205
|
+
password: string;
|
|
196
206
|
countryCode: string;
|
|
197
207
|
country: string;
|
|
198
208
|
gender: "male" | "female" | "other";
|
|
@@ -204,7 +214,12 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
204
214
|
lastActive: Date;
|
|
205
215
|
verifiedEmail: boolean;
|
|
206
216
|
verifiedMobile: boolean;
|
|
207
|
-
role:
|
|
217
|
+
role: string;
|
|
218
|
+
baseAccountType?: "user" | "host" | undefined;
|
|
219
|
+
legacyRole?: string | undefined;
|
|
220
|
+
staffProfileId?: string | null | undefined;
|
|
221
|
+
accountType?: "user" | "host" | "staff" | undefined;
|
|
222
|
+
_id?: string | undefined;
|
|
208
223
|
location?: string | undefined;
|
|
209
224
|
pinCode?: string | undefined;
|
|
210
225
|
dob?: Date | undefined;
|
|
@@ -216,6 +231,9 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
216
231
|
accessToken?: string | undefined;
|
|
217
232
|
refreshToken?: string | undefined;
|
|
218
233
|
verifiedIdCard?: boolean | undefined;
|
|
234
|
+
permissions?: string[] | undefined;
|
|
235
|
+
baseUserId?: string | null | undefined;
|
|
236
|
+
baseHostId?: string | null | undefined;
|
|
219
237
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
220
238
|
userResume?: string | undefined;
|
|
221
239
|
skills?: {
|
|
@@ -250,11 +268,11 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
250
268
|
businessVerificationDenialReason?: string | undefined;
|
|
251
269
|
}, {
|
|
252
270
|
username: string;
|
|
271
|
+
email: string;
|
|
253
272
|
firstName: string;
|
|
254
273
|
lastName: string;
|
|
255
|
-
email: string;
|
|
256
|
-
password: string;
|
|
257
274
|
phoneNumber: string;
|
|
275
|
+
password: string;
|
|
258
276
|
countryCode: string;
|
|
259
277
|
country: string;
|
|
260
278
|
gender: "male" | "female" | "other";
|
|
@@ -266,7 +284,12 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
266
284
|
lastActive: Date;
|
|
267
285
|
verifiedEmail: boolean;
|
|
268
286
|
verifiedMobile: boolean;
|
|
269
|
-
role:
|
|
287
|
+
role: string;
|
|
288
|
+
baseAccountType?: "user" | "host" | undefined;
|
|
289
|
+
legacyRole?: string | undefined;
|
|
290
|
+
staffProfileId?: string | null | undefined;
|
|
291
|
+
accountType?: "user" | "host" | "staff" | undefined;
|
|
292
|
+
_id?: string | undefined;
|
|
270
293
|
location?: string | undefined;
|
|
271
294
|
pinCode?: string | undefined;
|
|
272
295
|
dob?: Date | undefined;
|
|
@@ -278,6 +301,9 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
278
301
|
accessToken?: string | undefined;
|
|
279
302
|
refreshToken?: string | undefined;
|
|
280
303
|
verifiedIdCard?: boolean | undefined;
|
|
304
|
+
permissions?: string[] | undefined;
|
|
305
|
+
baseUserId?: string | null | undefined;
|
|
306
|
+
baseHostId?: string | null | undefined;
|
|
281
307
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
282
308
|
userResume?: string | undefined;
|
|
283
309
|
skills?: {
|
|
@@ -313,7 +339,7 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
313
339
|
}>>;
|
|
314
340
|
applicationObservers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
315
341
|
username: z.ZodString;
|
|
316
|
-
role: z.ZodEnum<[
|
|
342
|
+
role: z.ZodEnum<[string, ...string[]]>;
|
|
317
343
|
countryCode: z.ZodString;
|
|
318
344
|
phoneNumber: z.ZodString;
|
|
319
345
|
email: z.ZodString;
|
|
@@ -322,13 +348,13 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
322
348
|
email: string;
|
|
323
349
|
phoneNumber: string;
|
|
324
350
|
countryCode: string;
|
|
325
|
-
role:
|
|
351
|
+
role: string;
|
|
326
352
|
}, {
|
|
327
353
|
username: string;
|
|
328
354
|
email: string;
|
|
329
355
|
phoneNumber: string;
|
|
330
356
|
countryCode: string;
|
|
331
|
-
role:
|
|
357
|
+
role: string;
|
|
332
358
|
}>, "many">>;
|
|
333
359
|
status: z.ZodEnum<["draft", "archived", "pending", "open", "closed", "denied", "deleted"]>;
|
|
334
360
|
adminApproval: z.ZodBoolean;
|
|
@@ -412,7 +438,7 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
412
438
|
}>;
|
|
413
439
|
}, "strict", z.ZodTypeAny, {
|
|
414
440
|
country: string;
|
|
415
|
-
status: "pending" | "
|
|
441
|
+
status: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | "deleted";
|
|
416
442
|
rating: number;
|
|
417
443
|
ratingCount: number;
|
|
418
444
|
reviewCount: number;
|
|
@@ -444,13 +470,15 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
444
470
|
applicationCount: number;
|
|
445
471
|
views: number;
|
|
446
472
|
shares: number;
|
|
473
|
+
requiredMembershipTier: "none" | "plus" | "premium";
|
|
474
|
+
membershipRequirementStatus: "approved" | "pending" | "none" | "rejected";
|
|
447
475
|
hostId: {
|
|
448
476
|
username: string;
|
|
477
|
+
email: string;
|
|
449
478
|
firstName: string;
|
|
450
479
|
lastName: string;
|
|
451
|
-
email: string;
|
|
452
|
-
password: string;
|
|
453
480
|
phoneNumber: string;
|
|
481
|
+
password: string;
|
|
454
482
|
countryCode: string;
|
|
455
483
|
country: string;
|
|
456
484
|
gender: "male" | "female" | "other";
|
|
@@ -462,7 +490,12 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
462
490
|
lastActive: Date;
|
|
463
491
|
verifiedEmail: boolean;
|
|
464
492
|
verifiedMobile: boolean;
|
|
465
|
-
role:
|
|
493
|
+
role: string;
|
|
494
|
+
baseAccountType?: "user" | "host" | undefined;
|
|
495
|
+
legacyRole?: string | undefined;
|
|
496
|
+
staffProfileId?: string | null | undefined;
|
|
497
|
+
accountType?: "user" | "host" | "staff" | undefined;
|
|
498
|
+
_id?: string | undefined;
|
|
466
499
|
location?: string | undefined;
|
|
467
500
|
pinCode?: string | undefined;
|
|
468
501
|
dob?: Date | undefined;
|
|
@@ -474,6 +507,9 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
474
507
|
accessToken?: string | undefined;
|
|
475
508
|
refreshToken?: string | undefined;
|
|
476
509
|
verifiedIdCard?: boolean | undefined;
|
|
510
|
+
permissions?: string[] | undefined;
|
|
511
|
+
baseUserId?: string | null | undefined;
|
|
512
|
+
baseHostId?: string | null | undefined;
|
|
477
513
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
478
514
|
userResume?: string | undefined;
|
|
479
515
|
skills?: {
|
|
@@ -555,11 +591,11 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
555
591
|
email: string;
|
|
556
592
|
phoneNumber: string;
|
|
557
593
|
countryCode: string;
|
|
558
|
-
role:
|
|
594
|
+
role: string;
|
|
559
595
|
}[] | undefined;
|
|
560
596
|
}, {
|
|
561
597
|
country: string;
|
|
562
|
-
status: "pending" | "
|
|
598
|
+
status: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | "deleted";
|
|
563
599
|
rating: number;
|
|
564
600
|
ratingCount: number;
|
|
565
601
|
reviewCount: number;
|
|
@@ -593,11 +629,11 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
593
629
|
shares: number;
|
|
594
630
|
hostId: {
|
|
595
631
|
username: string;
|
|
632
|
+
email: string;
|
|
596
633
|
firstName: string;
|
|
597
634
|
lastName: string;
|
|
598
|
-
email: string;
|
|
599
|
-
password: string;
|
|
600
635
|
phoneNumber: string;
|
|
636
|
+
password: string;
|
|
601
637
|
countryCode: string;
|
|
602
638
|
country: string;
|
|
603
639
|
gender: "male" | "female" | "other";
|
|
@@ -609,7 +645,12 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
609
645
|
lastActive: Date;
|
|
610
646
|
verifiedEmail: boolean;
|
|
611
647
|
verifiedMobile: boolean;
|
|
612
|
-
role:
|
|
648
|
+
role: string;
|
|
649
|
+
baseAccountType?: "user" | "host" | undefined;
|
|
650
|
+
legacyRole?: string | undefined;
|
|
651
|
+
staffProfileId?: string | null | undefined;
|
|
652
|
+
accountType?: "user" | "host" | "staff" | undefined;
|
|
653
|
+
_id?: string | undefined;
|
|
613
654
|
location?: string | undefined;
|
|
614
655
|
pinCode?: string | undefined;
|
|
615
656
|
dob?: Date | undefined;
|
|
@@ -621,6 +662,9 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
621
662
|
accessToken?: string | undefined;
|
|
622
663
|
refreshToken?: string | undefined;
|
|
623
664
|
verifiedIdCard?: boolean | undefined;
|
|
665
|
+
permissions?: string[] | undefined;
|
|
666
|
+
baseUserId?: string | null | undefined;
|
|
667
|
+
baseHostId?: string | null | undefined;
|
|
624
668
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
625
669
|
userResume?: string | undefined;
|
|
626
670
|
skills?: {
|
|
@@ -697,12 +741,14 @@ export declare const JobOpportunitySchema: z.ZodObject<{
|
|
|
697
741
|
} | undefined;
|
|
698
742
|
pendingApplicationCount?: number | undefined;
|
|
699
743
|
hostingType?: string | undefined;
|
|
744
|
+
requiredMembershipTier?: "none" | "plus" | "premium" | undefined;
|
|
745
|
+
membershipRequirementStatus?: "approved" | "pending" | "none" | "rejected" | undefined;
|
|
700
746
|
applicationObservers?: {
|
|
701
747
|
username: string;
|
|
702
748
|
email: string;
|
|
703
749
|
phoneNumber: string;
|
|
704
750
|
countryCode: string;
|
|
705
|
-
role:
|
|
751
|
+
role: string;
|
|
706
752
|
}[] | undefined;
|
|
707
753
|
}>;
|
|
708
754
|
//# sourceMappingURL=job.d.ts.map
|
|
@@ -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
|
|
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"}
|
|
@@ -181,7 +181,10 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
181
181
|
ratingCount: z.ZodNumber;
|
|
182
182
|
reviewCount: z.ZodNumber;
|
|
183
183
|
hostingType: z.ZodOptional<z.ZodString>;
|
|
184
|
+
requiredMembershipTier: z.ZodDefault<z.ZodEnum<["none", "plus", "premium"]>>;
|
|
185
|
+
membershipRequirementStatus: z.ZodDefault<z.ZodEnum<["none", "pending", "approved", "rejected"]>>;
|
|
184
186
|
hostId: z.ZodLazy<z.ZodObject<{
|
|
187
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
185
188
|
username: z.ZodString;
|
|
186
189
|
firstName: z.ZodString;
|
|
187
190
|
lastName: z.ZodString;
|
|
@@ -210,7 +213,14 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
210
213
|
verifiedEmail: z.ZodBoolean;
|
|
211
214
|
verifiedMobile: z.ZodBoolean;
|
|
212
215
|
verifiedIdCard: z.ZodOptional<z.ZodBoolean>;
|
|
213
|
-
role: z.ZodEnum<[
|
|
216
|
+
role: z.ZodEnum<[string, ...string[]]>;
|
|
217
|
+
permissions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
218
|
+
accountType: z.ZodOptional<z.ZodEnum<["user", "host", "staff"]>>;
|
|
219
|
+
baseAccountType: z.ZodOptional<z.ZodEnum<["user", "host"]>>;
|
|
220
|
+
legacyRole: z.ZodOptional<z.ZodString>;
|
|
221
|
+
staffProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
222
|
+
baseUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
223
|
+
baseHostId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
214
224
|
socialLinks: z.ZodOptional<z.ZodRecord<z.ZodEnum<["instagram", "linkedin", "youtube", "googleBusiness"]>, z.ZodString>>;
|
|
215
225
|
userResume: z.ZodOptional<z.ZodString>;
|
|
216
226
|
skills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -269,11 +279,11 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
269
279
|
businessVerificationDenialReason: z.ZodOptional<z.ZodString>;
|
|
270
280
|
}, "strict", z.ZodTypeAny, {
|
|
271
281
|
username: string;
|
|
282
|
+
email: string;
|
|
272
283
|
firstName: string;
|
|
273
284
|
lastName: string;
|
|
274
|
-
email: string;
|
|
275
|
-
password: string;
|
|
276
285
|
phoneNumber: string;
|
|
286
|
+
password: string;
|
|
277
287
|
countryCode: string;
|
|
278
288
|
country: string;
|
|
279
289
|
gender: "male" | "female" | "other";
|
|
@@ -285,7 +295,12 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
285
295
|
lastActive: Date;
|
|
286
296
|
verifiedEmail: boolean;
|
|
287
297
|
verifiedMobile: boolean;
|
|
288
|
-
role:
|
|
298
|
+
role: string;
|
|
299
|
+
baseAccountType?: "user" | "host" | undefined;
|
|
300
|
+
legacyRole?: string | undefined;
|
|
301
|
+
staffProfileId?: string | null | undefined;
|
|
302
|
+
accountType?: "user" | "host" | "staff" | undefined;
|
|
303
|
+
_id?: string | undefined;
|
|
289
304
|
location?: string | undefined;
|
|
290
305
|
pinCode?: string | undefined;
|
|
291
306
|
dob?: Date | undefined;
|
|
@@ -297,6 +312,9 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
297
312
|
accessToken?: string | undefined;
|
|
298
313
|
refreshToken?: string | undefined;
|
|
299
314
|
verifiedIdCard?: boolean | undefined;
|
|
315
|
+
permissions?: string[] | undefined;
|
|
316
|
+
baseUserId?: string | null | undefined;
|
|
317
|
+
baseHostId?: string | null | undefined;
|
|
300
318
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
301
319
|
userResume?: string | undefined;
|
|
302
320
|
skills?: {
|
|
@@ -331,11 +349,11 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
331
349
|
businessVerificationDenialReason?: string | undefined;
|
|
332
350
|
}, {
|
|
333
351
|
username: string;
|
|
352
|
+
email: string;
|
|
334
353
|
firstName: string;
|
|
335
354
|
lastName: string;
|
|
336
|
-
email: string;
|
|
337
|
-
password: string;
|
|
338
355
|
phoneNumber: string;
|
|
356
|
+
password: string;
|
|
339
357
|
countryCode: string;
|
|
340
358
|
country: string;
|
|
341
359
|
gender: "male" | "female" | "other";
|
|
@@ -347,7 +365,12 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
347
365
|
lastActive: Date;
|
|
348
366
|
verifiedEmail: boolean;
|
|
349
367
|
verifiedMobile: boolean;
|
|
350
|
-
role:
|
|
368
|
+
role: string;
|
|
369
|
+
baseAccountType?: "user" | "host" | undefined;
|
|
370
|
+
legacyRole?: string | undefined;
|
|
371
|
+
staffProfileId?: string | null | undefined;
|
|
372
|
+
accountType?: "user" | "host" | "staff" | undefined;
|
|
373
|
+
_id?: string | undefined;
|
|
351
374
|
location?: string | undefined;
|
|
352
375
|
pinCode?: string | undefined;
|
|
353
376
|
dob?: Date | undefined;
|
|
@@ -359,6 +382,9 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
359
382
|
accessToken?: string | undefined;
|
|
360
383
|
refreshToken?: string | undefined;
|
|
361
384
|
verifiedIdCard?: boolean | undefined;
|
|
385
|
+
permissions?: string[] | undefined;
|
|
386
|
+
baseUserId?: string | null | undefined;
|
|
387
|
+
baseHostId?: string | null | undefined;
|
|
362
388
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
363
389
|
userResume?: string | undefined;
|
|
364
390
|
skills?: {
|
|
@@ -394,7 +420,7 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
394
420
|
}>>;
|
|
395
421
|
applicationObservers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
396
422
|
username: z.ZodString;
|
|
397
|
-
role: z.ZodEnum<[
|
|
423
|
+
role: z.ZodEnum<[string, ...string[]]>;
|
|
398
424
|
countryCode: z.ZodString;
|
|
399
425
|
phoneNumber: z.ZodString;
|
|
400
426
|
email: z.ZodString;
|
|
@@ -403,13 +429,13 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
403
429
|
email: string;
|
|
404
430
|
phoneNumber: string;
|
|
405
431
|
countryCode: string;
|
|
406
|
-
role:
|
|
432
|
+
role: string;
|
|
407
433
|
}, {
|
|
408
434
|
username: string;
|
|
409
435
|
email: string;
|
|
410
436
|
phoneNumber: string;
|
|
411
437
|
countryCode: string;
|
|
412
|
-
role:
|
|
438
|
+
role: string;
|
|
413
439
|
}>, "many">>;
|
|
414
440
|
status: z.ZodEnum<["draft", "archived", "pending", "open", "closed", "denied", "deleted"]>;
|
|
415
441
|
adminApproval: z.ZodBoolean;
|
|
@@ -417,7 +443,7 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
417
443
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
418
444
|
}, "strict", z.ZodTypeAny, {
|
|
419
445
|
country: string;
|
|
420
|
-
status: "pending" | "
|
|
446
|
+
status: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | "deleted";
|
|
421
447
|
rating: number;
|
|
422
448
|
ratingCount: number;
|
|
423
449
|
reviewCount: number;
|
|
@@ -443,13 +469,15 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
443
469
|
applicationCount: number;
|
|
444
470
|
views: number;
|
|
445
471
|
shares: number;
|
|
472
|
+
requiredMembershipTier: "none" | "plus" | "premium";
|
|
473
|
+
membershipRequirementStatus: "approved" | "pending" | "none" | "rejected";
|
|
446
474
|
hostId: {
|
|
447
475
|
username: string;
|
|
476
|
+
email: string;
|
|
448
477
|
firstName: string;
|
|
449
478
|
lastName: string;
|
|
450
|
-
email: string;
|
|
451
|
-
password: string;
|
|
452
479
|
phoneNumber: string;
|
|
480
|
+
password: string;
|
|
453
481
|
countryCode: string;
|
|
454
482
|
country: string;
|
|
455
483
|
gender: "male" | "female" | "other";
|
|
@@ -461,7 +489,12 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
461
489
|
lastActive: Date;
|
|
462
490
|
verifiedEmail: boolean;
|
|
463
491
|
verifiedMobile: boolean;
|
|
464
|
-
role:
|
|
492
|
+
role: string;
|
|
493
|
+
baseAccountType?: "user" | "host" | undefined;
|
|
494
|
+
legacyRole?: string | undefined;
|
|
495
|
+
staffProfileId?: string | null | undefined;
|
|
496
|
+
accountType?: "user" | "host" | "staff" | undefined;
|
|
497
|
+
_id?: string | undefined;
|
|
465
498
|
location?: string | undefined;
|
|
466
499
|
pinCode?: string | undefined;
|
|
467
500
|
dob?: Date | undefined;
|
|
@@ -473,6 +506,9 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
473
506
|
accessToken?: string | undefined;
|
|
474
507
|
refreshToken?: string | undefined;
|
|
475
508
|
verifiedIdCard?: boolean | undefined;
|
|
509
|
+
permissions?: string[] | undefined;
|
|
510
|
+
baseUserId?: string | null | undefined;
|
|
511
|
+
baseHostId?: string | null | undefined;
|
|
476
512
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
477
513
|
userResume?: string | undefined;
|
|
478
514
|
skills?: {
|
|
@@ -532,11 +568,11 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
532
568
|
email: string;
|
|
533
569
|
phoneNumber: string;
|
|
534
570
|
countryCode: string;
|
|
535
|
-
role:
|
|
571
|
+
role: string;
|
|
536
572
|
}[] | undefined;
|
|
537
573
|
}, {
|
|
538
574
|
country: string;
|
|
539
|
-
status: "pending" | "
|
|
575
|
+
status: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | "deleted";
|
|
540
576
|
rating: number;
|
|
541
577
|
ratingCount: number;
|
|
542
578
|
reviewCount: number;
|
|
@@ -564,11 +600,11 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
564
600
|
shares: number;
|
|
565
601
|
hostId: {
|
|
566
602
|
username: string;
|
|
603
|
+
email: string;
|
|
567
604
|
firstName: string;
|
|
568
605
|
lastName: string;
|
|
569
|
-
email: string;
|
|
570
|
-
password: string;
|
|
571
606
|
phoneNumber: string;
|
|
607
|
+
password: string;
|
|
572
608
|
countryCode: string;
|
|
573
609
|
country: string;
|
|
574
610
|
gender: "male" | "female" | "other";
|
|
@@ -580,7 +616,12 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
580
616
|
lastActive: Date;
|
|
581
617
|
verifiedEmail: boolean;
|
|
582
618
|
verifiedMobile: boolean;
|
|
583
|
-
role:
|
|
619
|
+
role: string;
|
|
620
|
+
baseAccountType?: "user" | "host" | undefined;
|
|
621
|
+
legacyRole?: string | undefined;
|
|
622
|
+
staffProfileId?: string | null | undefined;
|
|
623
|
+
accountType?: "user" | "host" | "staff" | undefined;
|
|
624
|
+
_id?: string | undefined;
|
|
584
625
|
location?: string | undefined;
|
|
585
626
|
pinCode?: string | undefined;
|
|
586
627
|
dob?: Date | undefined;
|
|
@@ -592,6 +633,9 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
592
633
|
accessToken?: string | undefined;
|
|
593
634
|
refreshToken?: string | undefined;
|
|
594
635
|
verifiedIdCard?: boolean | undefined;
|
|
636
|
+
permissions?: string[] | undefined;
|
|
637
|
+
baseUserId?: string | null | undefined;
|
|
638
|
+
baseHostId?: string | null | undefined;
|
|
595
639
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
596
640
|
userResume?: string | undefined;
|
|
597
641
|
skills?: {
|
|
@@ -646,12 +690,14 @@ export declare const OpportunitySchema: z.ZodObject<{
|
|
|
646
690
|
} | undefined;
|
|
647
691
|
pendingApplicationCount?: number | undefined;
|
|
648
692
|
hostingType?: string | undefined;
|
|
693
|
+
requiredMembershipTier?: "none" | "plus" | "premium" | undefined;
|
|
694
|
+
membershipRequirementStatus?: "approved" | "pending" | "none" | "rejected" | undefined;
|
|
649
695
|
applicationObservers?: {
|
|
650
696
|
username: string;
|
|
651
697
|
email: string;
|
|
652
698
|
phoneNumber: string;
|
|
653
699
|
countryCode: string;
|
|
654
|
-
role:
|
|
700
|
+
role: string;
|
|
655
701
|
}[] | undefined;
|
|
656
702
|
}>;
|
|
657
703
|
export type Opportunity = z.infer<typeof OpportunitySchema>;
|
|
@@ -1 +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;;;;;;;;;;;;;;;;;;;;EAMzB,CAAC;AAEX,eAAO,MAAM,eAAe;;;;;;;;;EAIlB,CAAC;AACX,eAAO,MAAM,mBAAmB,8JAAoG,CAAC;AAErI,eAAO,MAAM,YAAY,oFAA+E,CAAC;AAEzG,eAAO,MAAM,qBAAqB,oFAQhC,CAAC;AAGH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;EAK1B,CAAC;AAEX,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;EAMtB,CAAC;AAGX,MAAM,MAAM,eAAe,GAAG,OAAO,sBAAsB,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC;AAC7E,MAAM,MAAM,QAAQ,GAAG,OAAO,eAAe,CAAC,MAAM,CAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6DnB,CAAC;AAEZ,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,MAAM,MAAM,WAAW,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,eAAe,CAAC;CACrC,CAAC;AAIF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;EAI5B,CAAC;AAIH,eAAO,MAAM,iBAAiB,EAuBzB,WAAW,EAAE,CAAC;AAEnB,eAAO,MAAM,sBAAsB,EAqC9B,WAAW,EAAE,CAAC;AAGnB,eAAO,MAAM,uBAAuB,EAiB/B,WAAW,EAAE,CAAC;AAEnB,eAAO,MAAM,4BAA4B,EA2BpC,WAAW,EAAE,CAAC"}
|
|
@@ -99,6 +99,8 @@ export const OpportunitySchema = z.object({
|
|
|
99
99
|
ratingCount: z.number(),
|
|
100
100
|
reviewCount: z.number(),
|
|
101
101
|
hostingType: z.string().optional(),
|
|
102
|
+
requiredMembershipTier: z.enum(["none", "plus", "premium"]).default("none"),
|
|
103
|
+
membershipRequirementStatus: z.enum(["none", "pending", "approved", "rejected"]).default("none"),
|
|
102
104
|
hostId: z.lazy(() => UserSchema),
|
|
103
105
|
applicationObservers: z.array(z.object({
|
|
104
106
|
username: z.string(),
|