@myrjfa/state 2.3.1 → 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/dist/lib/actions/actions.d.ts +6 -6
- package/dist/lib/actions/auth.d.ts +23 -19
- package/dist/lib/actions/auth.d.ts.map +1 -1
- package/dist/lib/actions/auth.js +24 -5
- package/dist/lib/actions/fetcher.d.ts.map +1 -1
- package/dist/lib/actions/fetcher.js +15 -8
- package/dist/lib/actions.d.ts +12 -12
- package/dist/lib/actions.d.ts.map +1 -1
- package/dist/lib/actions.js +3 -1
- package/dist/lib/authSessionManager.d.ts.map +1 -1
- package/dist/lib/authSessionManager.js +77 -13
- package/dist/lib/authSessionPolicy.d.ts +34 -0
- package/dist/lib/authSessionPolicy.d.ts.map +1 -1
- package/dist/lib/authSessionPolicy.js +52 -0
- package/dist/lib/models/authorization.d.ts +4 -3
- package/dist/lib/models/authorization.d.ts.map +1 -1
- package/dist/lib/models/authorization.js +4 -1
- package/dist/lib/models/blog.d.ts +4 -4
- package/dist/lib/models/discount.d.ts +52 -52
- package/dist/lib/models/notifications.d.ts +2 -2
- package/dist/lib/models/opportunities/freelance.d.ts +34 -34
- package/dist/lib/models/opportunities/internship.d.ts +34 -34
- package/dist/lib/models/opportunities/job.d.ts +34 -34
- package/dist/lib/models/opportunities/opportunity.d.ts +34 -34
- package/dist/lib/models/opportunities/volunteerJob.d.ts +34 -34
- package/dist/lib/models/package.d.ts +16 -16
- package/dist/lib/models/portfolio.d.ts +2 -2
- package/dist/lib/models/pricing.d.ts +12 -12
- package/dist/lib/models/review.d.ts +2 -2
- package/dist/lib/models/stay.d.ts +18 -18
- package/dist/lib/models/travelPackage.d.ts +36 -36
- package/dist/lib/models/user.d.ts +12 -12
- package/dist/lib/userAtom.d.ts +126 -25
- package/dist/lib/userAtom.d.ts.map +1 -1
- package/dist/lib/userAtom.js +79 -45
- package/package.json +1 -1
- package/dist/lib/actions/adminDashboard.d.ts +0 -4
- package/dist/lib/actions/adminDashboard.d.ts.map +0 -1
- package/dist/lib/actions/adminDashboard.js +0 -29
- package/dist/lib/actions/adventure.d.ts +0 -104
- package/dist/lib/actions/adventure.d.ts.map +0 -1
- package/dist/lib/actions/adventure.js +0 -203
- package/dist/lib/actions/application.d.ts +0 -35
- package/dist/lib/actions/application.d.ts.map +0 -1
- package/dist/lib/actions/application.js +0 -573
- package/dist/lib/actions/blog.d.ts +0 -61
- package/dist/lib/actions/blog.d.ts.map +0 -1
- package/dist/lib/actions/blog.js +0 -762
- package/dist/lib/actions/brand.d.ts +0 -83
- package/dist/lib/actions/brand.d.ts.map +0 -1
- package/dist/lib/actions/brand.js +0 -28
- package/dist/lib/actions/companion.d.ts +0 -174
- package/dist/lib/actions/companion.d.ts.map +0 -1
- package/dist/lib/actions/companion.js +0 -276
- package/dist/lib/actions/event.d.ts +0 -178
- package/dist/lib/actions/event.d.ts.map +0 -1
- package/dist/lib/actions/event.js +0 -214
- package/dist/lib/actions/guide.d.ts +0 -55
- package/dist/lib/actions/guide.d.ts.map +0 -1
- package/dist/lib/actions/guide.js +0 -128
- package/dist/lib/actions/hostDashboard.d.ts +0 -122
- package/dist/lib/actions/hostDashboard.d.ts.map +0 -1
- package/dist/lib/actions/hostDashboard.js +0 -329
- package/dist/lib/actions/location.d.ts +0 -141
- package/dist/lib/actions/location.d.ts.map +0 -1
- package/dist/lib/actions/location.js +0 -113
- package/dist/lib/actions/notifications.d.ts +0 -91
- package/dist/lib/actions/notifications.d.ts.map +0 -1
- package/dist/lib/actions/notifications.js +0 -83
- package/dist/lib/actions/opportunity.d.ts +0 -44
- package/dist/lib/actions/opportunity.d.ts.map +0 -1
- package/dist/lib/actions/opportunity.js +0 -318
- package/dist/lib/actions/package.d.ts +0 -85
- package/dist/lib/actions/package.d.ts.map +0 -1
- package/dist/lib/actions/package.js +0 -167
- package/dist/lib/actions/place.d.ts +0 -191
- package/dist/lib/actions/place.d.ts.map +0 -1
- package/dist/lib/actions/place.js +0 -57
- package/dist/lib/actions/portfolio.d.ts +0 -65
- package/dist/lib/actions/portfolio.d.ts.map +0 -1
- package/dist/lib/actions/portfolio.js +0 -62
- package/dist/lib/actions/property.d.ts +0 -17
- package/dist/lib/actions/property.d.ts.map +0 -1
- package/dist/lib/actions/property.js +0 -16
- package/dist/lib/actions/rental.d.ts +0 -87
- package/dist/lib/actions/rental.d.ts.map +0 -1
- package/dist/lib/actions/rental.js +0 -205
- package/dist/lib/actions/review.d.ts +0 -8
- package/dist/lib/actions/review.d.ts.map +0 -1
- package/dist/lib/actions/review.js +0 -102
- package/dist/lib/actions/room.d.ts +0 -39
- package/dist/lib/actions/room.d.ts.map +0 -1
- package/dist/lib/actions/room.js +0 -74
- package/dist/lib/actions/stay.d.ts +0 -97
- package/dist/lib/actions/stay.d.ts.map +0 -1
- package/dist/lib/actions/stay.js +0 -138
- package/dist/lib/actions/travelPackage.d.ts +0 -104
- package/dist/lib/actions/travelPackage.d.ts.map +0 -1
- package/dist/lib/actions/travelPackage.js +0 -487
- package/dist/lib/data/adventureDummyData.d.ts +0 -3
- package/dist/lib/data/adventureDummyData.d.ts.map +0 -1
- package/dist/lib/data/adventureDummyData.js +0 -138
- package/dist/lib/data/adventureFormPage.d.ts +0 -28
- package/dist/lib/data/adventureFormPage.d.ts.map +0 -1
- package/dist/lib/data/adventureFormPage.js +0 -58
- package/dist/lib/data/companionDummyData.d.ts +0 -99
- package/dist/lib/data/companionDummyData.d.ts.map +0 -1
- package/dist/lib/data/companionDummyData.js +0 -203
- package/dist/lib/data/destinations.d.ts +0 -14
- package/dist/lib/data/destinations.d.ts.map +0 -1
- package/dist/lib/data/destinations.js +0 -203
- package/dist/lib/data/eventFormPage.d.ts +0 -38
- package/dist/lib/data/eventFormPage.d.ts.map +0 -1
- package/dist/lib/data/eventFormPage.js +0 -56
- package/dist/lib/data/eventsDummyData.d.ts +0 -54
- package/dist/lib/data/eventsDummyData.d.ts.map +0 -1
- package/dist/lib/data/eventsDummyData.js +0 -586
- package/dist/lib/data/guideDummyData.d.ts +0 -3
- package/dist/lib/data/guideDummyData.d.ts.map +0 -1
- package/dist/lib/data/guideDummyData.js +0 -66
- package/dist/lib/data/opportunityFormData.d.ts +0 -13
- package/dist/lib/data/opportunityFormData.d.ts.map +0 -1
- package/dist/lib/data/opportunityFormData.js +0 -62
- package/dist/lib/data/opportunityFormPage.d.ts +0 -12
- package/dist/lib/data/opportunityFormPage.d.ts.map +0 -1
- package/dist/lib/data/opportunityFormPage.js +0 -33
- package/dist/lib/data/packageDummyData.d.ts +0 -3
- package/dist/lib/data/packageDummyData.d.ts.map +0 -1
- package/dist/lib/data/packageDummyData.js +0 -56
- package/dist/lib/data/rentalDummyData.d.ts +0 -3
- package/dist/lib/data/rentalDummyData.d.ts.map +0 -1
- package/dist/lib/data/rentalDummyData.js +0 -382
- package/dist/lib/data/rentalFormPage.d.ts +0 -11
- package/dist/lib/data/rentalFormPage.d.ts.map +0 -1
- package/dist/lib/data/rentalFormPage.js +0 -86
- package/dist/lib/data/staysDummyData.d.ts +0 -72
- package/dist/lib/data/staysDummyData.d.ts.map +0 -1
- package/dist/lib/data/staysDummyData.js +0 -694
- package/dist/lib/data/storeDummyData.d.ts +0 -33
- package/dist/lib/data/storeDummyData.d.ts.map +0 -1
- package/dist/lib/data/storeDummyData.js +0 -336
- package/dist/lib/data/travelPackageFormData.d.ts +0 -19
- package/dist/lib/data/travelPackageFormData.d.ts.map +0 -1
- package/dist/lib/data/travelPackageFormData.js +0 -51
- package/dist/lib/data/travelPackageFormPage.d.ts +0 -22
- package/dist/lib/data/travelPackageFormPage.d.ts.map +0 -1
- package/dist/lib/data/travelPackageFormPage.js +0 -40
- package/dist/lib/data/vehicleData.d.ts +0 -2
- package/dist/lib/data/vehicleData.d.ts.map +0 -1
- package/dist/lib/data/vehicleData.js +0 -187
- package/dist/lib/data/vehicleModels.d.ts +0 -2
- package/dist/lib/data/vehicleModels.d.ts.map +0 -1
- package/dist/lib/data/vehicleModels.js +0 -128
- package/dist/lib/hooks/usePersistentDraftState.d.ts +0 -20
- package/dist/lib/hooks/usePersistentDraftState.d.ts.map +0 -1
- package/dist/lib/hooks/usePersistentDraftState.js +0 -47
- package/dist/lib/models/forms.d.ts +0 -384
- package/dist/lib/models/forms.d.ts.map +0 -1
- package/dist/lib/models/forms.js +0 -121
- package/dist/lib/pricingActions.d.ts +0 -13
- package/dist/lib/pricingActions.d.ts.map +0 -1
- package/dist/lib/pricingActions.js +0 -16
- package/dist/lib/utils/entitySubmission.d.ts +0 -21
- package/dist/lib/utils/entitySubmission.d.ts.map +0 -1
- package/dist/lib/utils/entitySubmission.js +0 -10
- package/dist/lib/utils/imageUpload.d.ts +0 -4
- package/dist/lib/utils/imageUpload.d.ts.map +0 -1
- package/dist/lib/utils/imageUpload.js +0 -36
- package/dist/lib/utils/tileConverters.d.ts +0 -8
- package/dist/lib/utils/tileConverters.d.ts.map +0 -1
- package/dist/lib/utils/tileConverters.js +0 -59
|
@@ -9,8 +9,8 @@ export declare const ReviewSchema: z.ZodObject<{
|
|
|
9
9
|
createdAt: z.ZodDate;
|
|
10
10
|
updatedAt: z.ZodDate;
|
|
11
11
|
}, "strict", z.ZodTypeAny, {
|
|
12
|
-
rating: number;
|
|
13
12
|
_id: string;
|
|
13
|
+
rating: number;
|
|
14
14
|
reviewerPic: string;
|
|
15
15
|
reviewerUsername: string;
|
|
16
16
|
comment: string;
|
|
@@ -18,8 +18,8 @@ export declare const ReviewSchema: z.ZodObject<{
|
|
|
18
18
|
updatedAt: Date;
|
|
19
19
|
images?: string[] | undefined;
|
|
20
20
|
}, {
|
|
21
|
-
rating: number;
|
|
22
21
|
_id: string;
|
|
22
|
+
rating: number;
|
|
23
23
|
reviewerPic: string;
|
|
24
24
|
reviewerUsername: string;
|
|
25
25
|
comment: string;
|
|
@@ -78,18 +78,18 @@ export declare const StayManagerSchema: z.ZodObject<{
|
|
|
78
78
|
addedAt: z.ZodOptional<z.ZodDate>;
|
|
79
79
|
}, "strip", z.ZodTypeAny, {
|
|
80
80
|
username: string;
|
|
81
|
-
role: "
|
|
81
|
+
role: "user" | "host";
|
|
82
|
+
permissions: string[];
|
|
82
83
|
userId: string;
|
|
83
84
|
managerRole: string;
|
|
84
|
-
permissions: string[];
|
|
85
85
|
isOwner: boolean;
|
|
86
86
|
_id?: string | undefined;
|
|
87
87
|
addedAt?: Date | undefined;
|
|
88
88
|
}, {
|
|
89
89
|
username: string;
|
|
90
|
-
role: "
|
|
91
|
-
userId: string;
|
|
90
|
+
role: "user" | "host";
|
|
92
91
|
permissions: string[];
|
|
92
|
+
userId: string;
|
|
93
93
|
_id?: string | undefined;
|
|
94
94
|
managerRole?: string | undefined;
|
|
95
95
|
isOwner?: boolean | undefined;
|
|
@@ -217,10 +217,10 @@ export declare const RoomSchema: z.ZodObject<{
|
|
|
217
217
|
maxChildren: number;
|
|
218
218
|
maxOccupancy: number;
|
|
219
219
|
totalRooms: number;
|
|
220
|
-
bathType: "
|
|
220
|
+
bathType: "shared" | "private";
|
|
221
221
|
isAvailable: boolean;
|
|
222
|
-
description?: string | undefined;
|
|
223
222
|
_id?: string | undefined;
|
|
223
|
+
description?: string | undefined;
|
|
224
224
|
images?: string[] | undefined;
|
|
225
225
|
createdAt?: Date | undefined;
|
|
226
226
|
updatedAt?: Date | undefined;
|
|
@@ -237,9 +237,9 @@ export declare const RoomSchema: z.ZodObject<{
|
|
|
237
237
|
propertyId: string;
|
|
238
238
|
roomType: string;
|
|
239
239
|
pricePerNight: number;
|
|
240
|
+
_id?: string | undefined;
|
|
240
241
|
status?: "draft" | "active" | "inactive" | undefined;
|
|
241
242
|
description?: string | undefined;
|
|
242
|
-
_id?: string | undefined;
|
|
243
243
|
images?: string[] | undefined;
|
|
244
244
|
createdAt?: Date | undefined;
|
|
245
245
|
updatedAt?: Date | undefined;
|
|
@@ -251,7 +251,7 @@ export declare const RoomSchema: z.ZodObject<{
|
|
|
251
251
|
totalRooms?: number | undefined;
|
|
252
252
|
availableRooms?: number | undefined;
|
|
253
253
|
bedType?: string | undefined;
|
|
254
|
-
bathType?: "
|
|
254
|
+
bathType?: "shared" | "private" | undefined;
|
|
255
255
|
roomSize?: string | undefined;
|
|
256
256
|
view?: string | undefined;
|
|
257
257
|
mealPlan?: string | undefined;
|
|
@@ -285,18 +285,18 @@ export declare const StaySchema: z.ZodObject<{
|
|
|
285
285
|
addedAt: z.ZodOptional<z.ZodDate>;
|
|
286
286
|
}, "strip", z.ZodTypeAny, {
|
|
287
287
|
username: string;
|
|
288
|
-
role: "
|
|
288
|
+
role: "user" | "host";
|
|
289
|
+
permissions: string[];
|
|
289
290
|
userId: string;
|
|
290
291
|
managerRole: string;
|
|
291
|
-
permissions: string[];
|
|
292
292
|
isOwner: boolean;
|
|
293
293
|
_id?: string | undefined;
|
|
294
294
|
addedAt?: Date | undefined;
|
|
295
295
|
}, {
|
|
296
296
|
username: string;
|
|
297
|
-
role: "
|
|
298
|
-
userId: string;
|
|
297
|
+
role: "user" | "host";
|
|
299
298
|
permissions: string[];
|
|
299
|
+
userId: string;
|
|
300
300
|
_id?: string | undefined;
|
|
301
301
|
managerRole?: string | undefined;
|
|
302
302
|
isOwner?: boolean | undefined;
|
|
@@ -347,6 +347,7 @@ export declare const StaySchema: z.ZodObject<{
|
|
|
347
347
|
state: string;
|
|
348
348
|
title: string;
|
|
349
349
|
propertyType: string;
|
|
350
|
+
_id?: string | undefined;
|
|
350
351
|
status?: "pending" | "draft" | "archived" | "open" | "closed" | "active" | "inactive" | undefined;
|
|
351
352
|
rating?: number | undefined;
|
|
352
353
|
ratingCount?: number | undefined;
|
|
@@ -354,7 +355,6 @@ export declare const StaySchema: z.ZodObject<{
|
|
|
354
355
|
name?: string | undefined;
|
|
355
356
|
address?: string | undefined;
|
|
356
357
|
description?: string | undefined;
|
|
357
|
-
_id?: string | undefined;
|
|
358
358
|
images?: string[] | undefined;
|
|
359
359
|
createdAt?: Date | undefined;
|
|
360
360
|
updatedAt?: Date | undefined;
|
|
@@ -370,10 +370,10 @@ export declare const StaySchema: z.ZodObject<{
|
|
|
370
370
|
openedAt?: Date | undefined;
|
|
371
371
|
managers?: {
|
|
372
372
|
username: string;
|
|
373
|
-
role: "
|
|
373
|
+
role: "user" | "host";
|
|
374
|
+
permissions: string[];
|
|
374
375
|
userId: string;
|
|
375
376
|
managerRole: string;
|
|
376
|
-
permissions: string[];
|
|
377
377
|
isOwner: boolean;
|
|
378
378
|
_id?: string | undefined;
|
|
379
379
|
addedAt?: Date | undefined;
|
|
@@ -402,6 +402,7 @@ export declare const StaySchema: z.ZodObject<{
|
|
|
402
402
|
state: string;
|
|
403
403
|
title: string;
|
|
404
404
|
propertyType: string;
|
|
405
|
+
_id?: string | undefined;
|
|
405
406
|
country?: string | undefined;
|
|
406
407
|
status?: "pending" | "draft" | "archived" | "open" | "closed" | "active" | "inactive" | undefined;
|
|
407
408
|
rating?: number | undefined;
|
|
@@ -410,7 +411,6 @@ export declare const StaySchema: z.ZodObject<{
|
|
|
410
411
|
name?: string | undefined;
|
|
411
412
|
address?: string | undefined;
|
|
412
413
|
description?: string | undefined;
|
|
413
|
-
_id?: string | undefined;
|
|
414
414
|
images?: string[] | undefined;
|
|
415
415
|
createdAt?: Date | undefined;
|
|
416
416
|
updatedAt?: Date | undefined;
|
|
@@ -426,9 +426,9 @@ export declare const StaySchema: z.ZodObject<{
|
|
|
426
426
|
openedAt?: Date | undefined;
|
|
427
427
|
managers?: {
|
|
428
428
|
username: string;
|
|
429
|
-
role: "
|
|
430
|
-
userId: string;
|
|
429
|
+
role: "user" | "host";
|
|
431
430
|
permissions: string[];
|
|
431
|
+
userId: string;
|
|
432
432
|
_id?: string | undefined;
|
|
433
433
|
managerRole?: string | undefined;
|
|
434
434
|
isOwner?: boolean | undefined;
|
|
@@ -130,9 +130,9 @@ export declare const TravelPackageSchema: z.ZodObject<{
|
|
|
130
130
|
isActive?: boolean | undefined;
|
|
131
131
|
id?: string | undefined;
|
|
132
132
|
description?: string | undefined;
|
|
133
|
-
basePrice?: number | undefined;
|
|
134
133
|
parentStrategyId?: string | null | undefined;
|
|
135
134
|
defaultStrategyId?: string | null | undefined;
|
|
135
|
+
basePrice?: number | undefined;
|
|
136
136
|
finalBasePrice?: number | undefined;
|
|
137
137
|
sortOrder?: number | undefined;
|
|
138
138
|
gst?: number | undefined;
|
|
@@ -182,9 +182,9 @@ export declare const TravelPackageSchema: z.ZodObject<{
|
|
|
182
182
|
isActive?: boolean | undefined;
|
|
183
183
|
id?: string | undefined;
|
|
184
184
|
description?: string | undefined;
|
|
185
|
-
basePrice?: number | undefined;
|
|
186
185
|
parentStrategyId?: string | null | undefined;
|
|
187
186
|
defaultStrategyId?: string | null | undefined;
|
|
187
|
+
basePrice?: number | undefined;
|
|
188
188
|
finalBasePrice?: number | undefined;
|
|
189
189
|
sortOrder?: number | undefined;
|
|
190
190
|
gst?: number | undefined;
|
|
@@ -360,11 +360,11 @@ export declare const TravelPackageSchema: z.ZodObject<{
|
|
|
360
360
|
businessVerificationDenialReason: z.ZodOptional<z.ZodString>;
|
|
361
361
|
}, "strict", z.ZodTypeAny, {
|
|
362
362
|
username: string;
|
|
363
|
+
email: string;
|
|
363
364
|
firstName: string;
|
|
364
365
|
lastName: string;
|
|
365
|
-
email: string;
|
|
366
|
-
password: string;
|
|
367
366
|
phoneNumber: string;
|
|
367
|
+
password: string;
|
|
368
368
|
countryCode: string;
|
|
369
369
|
country: string;
|
|
370
370
|
gender: "male" | "female" | "other";
|
|
@@ -377,6 +377,10 @@ export declare const TravelPackageSchema: z.ZodObject<{
|
|
|
377
377
|
verifiedEmail: boolean;
|
|
378
378
|
verifiedMobile: boolean;
|
|
379
379
|
role: string;
|
|
380
|
+
baseAccountType?: "user" | "host" | undefined;
|
|
381
|
+
legacyRole?: string | undefined;
|
|
382
|
+
staffProfileId?: string | null | undefined;
|
|
383
|
+
accountType?: "user" | "host" | "staff" | undefined;
|
|
380
384
|
_id?: string | undefined;
|
|
381
385
|
location?: string | undefined;
|
|
382
386
|
pinCode?: string | undefined;
|
|
@@ -390,10 +394,6 @@ export declare const TravelPackageSchema: z.ZodObject<{
|
|
|
390
394
|
refreshToken?: string | undefined;
|
|
391
395
|
verifiedIdCard?: boolean | undefined;
|
|
392
396
|
permissions?: string[] | undefined;
|
|
393
|
-
accountType?: "user" | "host" | "staff" | undefined;
|
|
394
|
-
baseAccountType?: "user" | "host" | undefined;
|
|
395
|
-
legacyRole?: string | undefined;
|
|
396
|
-
staffProfileId?: string | null | undefined;
|
|
397
397
|
baseUserId?: string | null | undefined;
|
|
398
398
|
baseHostId?: string | null | undefined;
|
|
399
399
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
@@ -430,11 +430,11 @@ export declare const TravelPackageSchema: z.ZodObject<{
|
|
|
430
430
|
businessVerificationDenialReason?: string | undefined;
|
|
431
431
|
}, {
|
|
432
432
|
username: string;
|
|
433
|
+
email: string;
|
|
433
434
|
firstName: string;
|
|
434
435
|
lastName: string;
|
|
435
|
-
email: string;
|
|
436
|
-
password: string;
|
|
437
436
|
phoneNumber: string;
|
|
437
|
+
password: string;
|
|
438
438
|
countryCode: string;
|
|
439
439
|
country: string;
|
|
440
440
|
gender: "male" | "female" | "other";
|
|
@@ -447,6 +447,10 @@ export declare const TravelPackageSchema: z.ZodObject<{
|
|
|
447
447
|
verifiedEmail: boolean;
|
|
448
448
|
verifiedMobile: boolean;
|
|
449
449
|
role: string;
|
|
450
|
+
baseAccountType?: "user" | "host" | undefined;
|
|
451
|
+
legacyRole?: string | undefined;
|
|
452
|
+
staffProfileId?: string | null | undefined;
|
|
453
|
+
accountType?: "user" | "host" | "staff" | undefined;
|
|
450
454
|
_id?: string | undefined;
|
|
451
455
|
location?: string | undefined;
|
|
452
456
|
pinCode?: string | undefined;
|
|
@@ -460,10 +464,6 @@ export declare const TravelPackageSchema: z.ZodObject<{
|
|
|
460
464
|
refreshToken?: string | undefined;
|
|
461
465
|
verifiedIdCard?: boolean | undefined;
|
|
462
466
|
permissions?: string[] | undefined;
|
|
463
|
-
accountType?: "user" | "host" | "staff" | undefined;
|
|
464
|
-
baseAccountType?: "user" | "host" | undefined;
|
|
465
|
-
legacyRole?: string | undefined;
|
|
466
|
-
staffProfileId?: string | null | undefined;
|
|
467
467
|
baseUserId?: string | null | undefined;
|
|
468
468
|
baseHostId?: string | null | undefined;
|
|
469
469
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
@@ -542,11 +542,11 @@ export declare const TravelPackageSchema: z.ZodObject<{
|
|
|
542
542
|
views: number;
|
|
543
543
|
hostId: {
|
|
544
544
|
username: string;
|
|
545
|
+
email: string;
|
|
545
546
|
firstName: string;
|
|
546
547
|
lastName: string;
|
|
547
|
-
email: string;
|
|
548
|
-
password: string;
|
|
549
548
|
phoneNumber: string;
|
|
549
|
+
password: string;
|
|
550
550
|
countryCode: string;
|
|
551
551
|
country: string;
|
|
552
552
|
gender: "male" | "female" | "other";
|
|
@@ -559,6 +559,10 @@ export declare const TravelPackageSchema: z.ZodObject<{
|
|
|
559
559
|
verifiedEmail: boolean;
|
|
560
560
|
verifiedMobile: boolean;
|
|
561
561
|
role: string;
|
|
562
|
+
baseAccountType?: "user" | "host" | undefined;
|
|
563
|
+
legacyRole?: string | undefined;
|
|
564
|
+
staffProfileId?: string | null | undefined;
|
|
565
|
+
accountType?: "user" | "host" | "staff" | undefined;
|
|
562
566
|
_id?: string | undefined;
|
|
563
567
|
location?: string | undefined;
|
|
564
568
|
pinCode?: string | undefined;
|
|
@@ -572,10 +576,6 @@ export declare const TravelPackageSchema: z.ZodObject<{
|
|
|
572
576
|
refreshToken?: string | undefined;
|
|
573
577
|
verifiedIdCard?: boolean | undefined;
|
|
574
578
|
permissions?: string[] | undefined;
|
|
575
|
-
accountType?: "user" | "host" | "staff" | undefined;
|
|
576
|
-
baseAccountType?: "user" | "host" | undefined;
|
|
577
|
-
legacyRole?: string | undefined;
|
|
578
|
-
staffProfileId?: string | null | undefined;
|
|
579
579
|
baseUserId?: string | null | undefined;
|
|
580
580
|
baseHostId?: string | null | undefined;
|
|
581
581
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
@@ -611,8 +611,6 @@ export declare const TravelPackageSchema: z.ZodObject<{
|
|
|
611
611
|
businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
|
|
612
612
|
businessVerificationDenialReason?: string | undefined;
|
|
613
613
|
};
|
|
614
|
-
packageImages: string[];
|
|
615
|
-
bookingMode: "booking" | "enquiry" | "both";
|
|
616
614
|
pricing: {
|
|
617
615
|
currency: string;
|
|
618
616
|
pricingStrategies: {
|
|
@@ -640,6 +638,8 @@ export declare const TravelPackageSchema: z.ZodObject<{
|
|
|
640
638
|
endDate?: string | Date | undefined;
|
|
641
639
|
}[];
|
|
642
640
|
};
|
|
641
|
+
packageImages: string[];
|
|
642
|
+
bookingMode: "booking" | "enquiry" | "both";
|
|
643
643
|
itinerary: {
|
|
644
644
|
title: string;
|
|
645
645
|
facilities: string[];
|
|
@@ -653,12 +653,12 @@ export declare const TravelPackageSchema: z.ZodObject<{
|
|
|
653
653
|
thingsToDo: string[];
|
|
654
654
|
thingsNotToDo: string[];
|
|
655
655
|
thingsToCarry: string[];
|
|
656
|
-
urgent?: boolean | undefined;
|
|
657
|
-
applicationCount?: number | undefined;
|
|
658
656
|
createdAt?: Date | undefined;
|
|
659
657
|
updatedAt?: Date | undefined;
|
|
660
|
-
|
|
658
|
+
urgent?: boolean | undefined;
|
|
659
|
+
applicationCount?: number | undefined;
|
|
661
660
|
basePrice?: number | undefined;
|
|
661
|
+
highlights?: string[] | undefined;
|
|
662
662
|
difficultyLevel?: DifficultyEnum | undefined;
|
|
663
663
|
customFrequencyDays?: number | undefined;
|
|
664
664
|
blockedDates?: (string | Date)[] | undefined;
|
|
@@ -694,11 +694,11 @@ export declare const TravelPackageSchema: z.ZodObject<{
|
|
|
694
694
|
views: number;
|
|
695
695
|
hostId: {
|
|
696
696
|
username: string;
|
|
697
|
+
email: string;
|
|
697
698
|
firstName: string;
|
|
698
699
|
lastName: string;
|
|
699
|
-
email: string;
|
|
700
|
-
password: string;
|
|
701
700
|
phoneNumber: string;
|
|
701
|
+
password: string;
|
|
702
702
|
countryCode: string;
|
|
703
703
|
country: string;
|
|
704
704
|
gender: "male" | "female" | "other";
|
|
@@ -711,6 +711,10 @@ export declare const TravelPackageSchema: z.ZodObject<{
|
|
|
711
711
|
verifiedEmail: boolean;
|
|
712
712
|
verifiedMobile: boolean;
|
|
713
713
|
role: string;
|
|
714
|
+
baseAccountType?: "user" | "host" | undefined;
|
|
715
|
+
legacyRole?: string | undefined;
|
|
716
|
+
staffProfileId?: string | null | undefined;
|
|
717
|
+
accountType?: "user" | "host" | "staff" | undefined;
|
|
714
718
|
_id?: string | undefined;
|
|
715
719
|
location?: string | undefined;
|
|
716
720
|
pinCode?: string | undefined;
|
|
@@ -724,10 +728,6 @@ export declare const TravelPackageSchema: z.ZodObject<{
|
|
|
724
728
|
refreshToken?: string | undefined;
|
|
725
729
|
verifiedIdCard?: boolean | undefined;
|
|
726
730
|
permissions?: string[] | undefined;
|
|
727
|
-
accountType?: "user" | "host" | "staff" | undefined;
|
|
728
|
-
baseAccountType?: "user" | "host" | undefined;
|
|
729
|
-
legacyRole?: string | undefined;
|
|
730
|
-
staffProfileId?: string | null | undefined;
|
|
731
731
|
baseUserId?: string | null | undefined;
|
|
732
732
|
baseHostId?: string | null | undefined;
|
|
733
733
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
@@ -763,7 +763,6 @@ export declare const TravelPackageSchema: z.ZodObject<{
|
|
|
763
763
|
businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
|
|
764
764
|
businessVerificationDenialReason?: string | undefined;
|
|
765
765
|
};
|
|
766
|
-
packageImages: string[];
|
|
767
766
|
pricing: {
|
|
768
767
|
currency?: string | undefined;
|
|
769
768
|
pricingStrategies?: {
|
|
@@ -771,9 +770,9 @@ export declare const TravelPackageSchema: z.ZodObject<{
|
|
|
771
770
|
isActive?: boolean | undefined;
|
|
772
771
|
id?: string | undefined;
|
|
773
772
|
description?: string | undefined;
|
|
774
|
-
basePrice?: number | undefined;
|
|
775
773
|
parentStrategyId?: string | null | undefined;
|
|
776
774
|
defaultStrategyId?: string | null | undefined;
|
|
775
|
+
basePrice?: number | undefined;
|
|
777
776
|
finalBasePrice?: number | undefined;
|
|
778
777
|
sortOrder?: number | undefined;
|
|
779
778
|
gst?: number | undefined;
|
|
@@ -791,6 +790,7 @@ export declare const TravelPackageSchema: z.ZodObject<{
|
|
|
791
790
|
endDate?: string | Date | undefined;
|
|
792
791
|
}[] | undefined;
|
|
793
792
|
};
|
|
793
|
+
packageImages: string[];
|
|
794
794
|
itinerary: {
|
|
795
795
|
title: string;
|
|
796
796
|
facilities: string[];
|
|
@@ -804,14 +804,14 @@ export declare const TravelPackageSchema: z.ZodObject<{
|
|
|
804
804
|
thingsToDo: string[];
|
|
805
805
|
thingsNotToDo: string[];
|
|
806
806
|
thingsToCarry: string[];
|
|
807
|
+
createdAt?: Date | undefined;
|
|
808
|
+
updatedAt?: Date | undefined;
|
|
807
809
|
frequency?: "custom" | "daily" | "weekly" | "monthly" | "yearly" | "bi-weekly" | undefined;
|
|
808
810
|
urgent?: boolean | undefined;
|
|
809
811
|
applicationCount?: number | undefined;
|
|
810
|
-
|
|
811
|
-
updatedAt?: Date | undefined;
|
|
812
|
+
basePrice?: number | undefined;
|
|
812
813
|
highlights?: string[] | undefined;
|
|
813
814
|
bookingMode?: "booking" | "enquiry" | "both" | undefined;
|
|
814
|
-
basePrice?: number | undefined;
|
|
815
815
|
difficultyLevel?: DifficultyEnum | undefined;
|
|
816
816
|
customFrequencyDays?: number | undefined;
|
|
817
817
|
blockedDates?: (string | Date)[] | undefined;
|
|
@@ -97,11 +97,11 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
97
97
|
businessVerificationDenialReason: z.ZodOptional<z.ZodString>;
|
|
98
98
|
}, "strict", z.ZodTypeAny, {
|
|
99
99
|
username: string;
|
|
100
|
+
email: string;
|
|
100
101
|
firstName: string;
|
|
101
102
|
lastName: string;
|
|
102
|
-
email: string;
|
|
103
|
-
password: string;
|
|
104
103
|
phoneNumber: string;
|
|
104
|
+
password: string;
|
|
105
105
|
countryCode: string;
|
|
106
106
|
country: string;
|
|
107
107
|
gender: "male" | "female" | "other";
|
|
@@ -114,6 +114,10 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
114
114
|
verifiedEmail: boolean;
|
|
115
115
|
verifiedMobile: boolean;
|
|
116
116
|
role: string;
|
|
117
|
+
baseAccountType?: "user" | "host" | undefined;
|
|
118
|
+
legacyRole?: string | undefined;
|
|
119
|
+
staffProfileId?: string | null | undefined;
|
|
120
|
+
accountType?: "user" | "host" | "staff" | undefined;
|
|
117
121
|
_id?: string | undefined;
|
|
118
122
|
location?: string | undefined;
|
|
119
123
|
pinCode?: string | undefined;
|
|
@@ -127,10 +131,6 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
127
131
|
refreshToken?: string | undefined;
|
|
128
132
|
verifiedIdCard?: boolean | undefined;
|
|
129
133
|
permissions?: string[] | undefined;
|
|
130
|
-
accountType?: "user" | "host" | "staff" | undefined;
|
|
131
|
-
baseAccountType?: "user" | "host" | undefined;
|
|
132
|
-
legacyRole?: string | undefined;
|
|
133
|
-
staffProfileId?: string | null | undefined;
|
|
134
134
|
baseUserId?: string | null | undefined;
|
|
135
135
|
baseHostId?: string | null | undefined;
|
|
136
136
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
@@ -167,11 +167,11 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
167
167
|
businessVerificationDenialReason?: string | undefined;
|
|
168
168
|
}, {
|
|
169
169
|
username: string;
|
|
170
|
+
email: string;
|
|
170
171
|
firstName: string;
|
|
171
172
|
lastName: string;
|
|
172
|
-
email: string;
|
|
173
|
-
password: string;
|
|
174
173
|
phoneNumber: string;
|
|
174
|
+
password: string;
|
|
175
175
|
countryCode: string;
|
|
176
176
|
country: string;
|
|
177
177
|
gender: "male" | "female" | "other";
|
|
@@ -184,6 +184,10 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
184
184
|
verifiedEmail: boolean;
|
|
185
185
|
verifiedMobile: boolean;
|
|
186
186
|
role: string;
|
|
187
|
+
baseAccountType?: "user" | "host" | undefined;
|
|
188
|
+
legacyRole?: string | undefined;
|
|
189
|
+
staffProfileId?: string | null | undefined;
|
|
190
|
+
accountType?: "user" | "host" | "staff" | undefined;
|
|
187
191
|
_id?: string | undefined;
|
|
188
192
|
location?: string | undefined;
|
|
189
193
|
pinCode?: string | undefined;
|
|
@@ -197,10 +201,6 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
197
201
|
refreshToken?: string | undefined;
|
|
198
202
|
verifiedIdCard?: boolean | undefined;
|
|
199
203
|
permissions?: string[] | undefined;
|
|
200
|
-
accountType?: "user" | "host" | "staff" | undefined;
|
|
201
|
-
baseAccountType?: "user" | "host" | undefined;
|
|
202
|
-
legacyRole?: string | undefined;
|
|
203
|
-
staffProfileId?: string | null | undefined;
|
|
204
204
|
baseUserId?: string | null | undefined;
|
|
205
205
|
baseHostId?: string | null | undefined;
|
|
206
206
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|