@myrjfa/state 1.1.2 → 2.0.0
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/index.d.ts +18 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -2
- package/dist/lib/actions/actions.d.ts +1 -20
- package/dist/lib/actions/actions.d.ts.map +1 -1
- package/dist/lib/actions/actions.js +10 -50
- package/dist/lib/actions/auth.d.ts +22 -12
- package/dist/lib/actions/auth.d.ts.map +1 -1
- package/dist/lib/actions/booking.d.ts +30 -0
- package/dist/lib/actions/booking.d.ts.map +1 -0
- package/dist/lib/actions/booking.js +77 -0
- package/dist/lib/actions/fetcher.d.ts +3 -0
- package/dist/lib/actions/fetcher.d.ts.map +1 -1
- package/dist/lib/actions/fetcher.js +6 -44
- package/dist/lib/actions/{serverActions.d.ts → severActions.d.ts} +1 -1
- package/dist/lib/actions/severActions.d.ts.map +1 -0
- package/dist/lib/actions/{serverActions.js → severActions.js} +2 -5
- package/dist/lib/authSessionManager.d.ts.map +1 -1
- package/dist/lib/authSessionManager.js +7 -14
- package/dist/lib/context/ChatContext.d.ts +1 -1
- package/dist/lib/context/ChatContext.d.ts.map +1 -1
- package/dist/lib/models/adventure.d.ts +75 -0
- package/dist/lib/models/adventure.d.ts.map +1 -0
- package/dist/lib/models/adventure.js +1 -0
- package/dist/lib/models/blog.d.ts +6 -7
- package/dist/lib/models/blog.d.ts.map +1 -1
- package/dist/lib/models/booking.d.ts +47 -0
- package/dist/lib/models/booking.d.ts.map +1 -0
- package/dist/lib/models/booking.js +1 -0
- package/dist/lib/models/guide.d.ts +43 -0
- package/dist/lib/models/guide.d.ts.map +1 -0
- package/dist/lib/models/guide.js +1 -0
- package/dist/lib/models/{notifications.d.ts → notfications.d.ts} +1 -1
- package/dist/lib/models/notfications.d.ts.map +1 -0
- package/dist/lib/models/opportunities/freelance.d.ts +94 -54
- package/dist/lib/models/opportunities/freelance.d.ts.map +1 -1
- package/dist/lib/models/opportunities/internship.d.ts +94 -54
- package/dist/lib/models/opportunities/internship.d.ts.map +1 -1
- package/dist/lib/models/opportunities/job.d.ts +104 -64
- package/dist/lib/models/opportunities/job.d.ts.map +1 -1
- package/dist/lib/models/opportunities/opportunity.d.ts +107 -67
- package/dist/lib/models/opportunities/opportunity.d.ts.map +1 -1
- package/dist/lib/models/opportunities/opportunity.js +0 -1
- package/dist/lib/models/opportunities/volunteerJob.d.ts +94 -54
- package/dist/lib/models/opportunities/volunteerJob.d.ts.map +1 -1
- package/dist/lib/models/package.d.ts +264 -0
- package/dist/lib/models/package.d.ts.map +1 -0
- package/dist/lib/models/package.js +58 -0
- package/dist/lib/models/portfolio.d.ts +2 -2
- package/dist/lib/models/props.d.ts +7 -21
- package/dist/lib/models/props.d.ts.map +1 -1
- package/dist/lib/models/props.js +36 -0
- package/dist/lib/models/rental.d.ts +85 -0
- package/dist/lib/models/rental.d.ts.map +1 -0
- package/dist/lib/models/rental.js +1 -0
- package/dist/lib/models/review.d.ts +1 -1
- package/dist/lib/models/review.d.ts.map +1 -1
- package/dist/lib/models/stay.d.ts +459 -0
- package/dist/lib/models/stay.d.ts.map +1 -0
- package/dist/lib/models/stay.js +214 -0
- package/dist/lib/models/tile.d.ts +26 -1
- package/dist/lib/models/tile.d.ts.map +1 -1
- package/dist/lib/models/user.d.ts +52 -19
- package/dist/lib/models/user.d.ts.map +1 -1
- package/dist/lib/models/user.js +10 -5
- package/dist/lib/userAtom.d.ts +44 -24
- package/dist/lib/userAtom.d.ts.map +1 -1
- package/dist/lib/userAtom.js +11 -13
- package/dist/lib/utils.js +4 -4
- package/package.json +5 -2
- package/dist/lib/actions/serverActions.d.ts.map +0 -1
- package/dist/lib/models/notifications.d.ts.map +0 -1
- package/dist/lib/utils/socialMediaUrl.d.ts +0 -25
- package/dist/lib/utils/socialMediaUrl.d.ts.map +0 -1
- package/dist/lib/utils/socialMediaUrl.js +0 -97
- /package/dist/lib/models/{notifications.js → notfications.js} +0 -0
|
@@ -10,22 +10,22 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
10
10
|
state: z.ZodString;
|
|
11
11
|
country: z.ZodString;
|
|
12
12
|
address: z.ZodOptional<z.ZodString>;
|
|
13
|
-
workMode: z.ZodOptional<z.ZodEnum<[
|
|
13
|
+
workMode: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
|
|
14
14
|
compensation: z.ZodOptional<z.ZodObject<{
|
|
15
|
-
type: z.ZodEnum<[
|
|
15
|
+
type: z.ZodEnum<[string, ...string[]]>;
|
|
16
16
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
17
17
|
currency: z.ZodEnum<[string, ...string[]]>;
|
|
18
|
-
frequency: z.ZodOptional<z.ZodEnum<[
|
|
18
|
+
frequency: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
type:
|
|
20
|
+
type: string;
|
|
21
21
|
currency: string;
|
|
22
22
|
amount?: number | undefined;
|
|
23
|
-
frequency?:
|
|
23
|
+
frequency?: string | undefined;
|
|
24
24
|
}, {
|
|
25
|
-
type:
|
|
25
|
+
type: string;
|
|
26
26
|
currency: string;
|
|
27
27
|
amount?: number | undefined;
|
|
28
|
-
frequency?:
|
|
28
|
+
frequency?: string | undefined;
|
|
29
29
|
}>>;
|
|
30
30
|
bondPlan: z.ZodOptional<z.ZodObject<{
|
|
31
31
|
enabled: z.ZodBoolean;
|
|
@@ -64,7 +64,6 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
64
64
|
answer: string;
|
|
65
65
|
}>, "many">;
|
|
66
66
|
applicationCount: z.ZodNumber;
|
|
67
|
-
pendingApplicationCount: z.ZodOptional<z.ZodNumber>;
|
|
68
67
|
views: z.ZodNumber;
|
|
69
68
|
shares: z.ZodNumber;
|
|
70
69
|
rating: z.ZodNumber;
|
|
@@ -101,7 +100,7 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
101
100
|
verifiedMobile: z.ZodBoolean;
|
|
102
101
|
verifiedIdCard: z.ZodOptional<z.ZodBoolean>;
|
|
103
102
|
role: z.ZodEnum<["host", "user", "admin", "hr", "sales"]>;
|
|
104
|
-
socialLinks: z.ZodOptional<z.ZodRecord<z.ZodEnum<[
|
|
103
|
+
socialLinks: z.ZodOptional<z.ZodRecord<z.ZodEnum<[string, ...string[]]>, z.ZodString>>;
|
|
105
104
|
userResume: z.ZodOptional<z.ZodString>;
|
|
106
105
|
skills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
107
106
|
skill: z.ZodString;
|
|
@@ -124,11 +123,34 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
124
123
|
gstNumber: z.ZodOptional<z.ZodString>;
|
|
125
124
|
panCard: z.ZodOptional<z.ZodString>;
|
|
126
125
|
verifiedBusiness: z.ZodOptional<z.ZodEnum<["true", "false", "inProgress"]>>;
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
126
|
+
properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
127
|
+
name: z.ZodString;
|
|
128
|
+
type: z.ZodString;
|
|
129
|
+
address: z.ZodString;
|
|
130
|
+
city: z.ZodString;
|
|
131
|
+
state: z.ZodString;
|
|
132
|
+
country: z.ZodString;
|
|
133
|
+
pinCode: z.ZodOptional<z.ZodString>;
|
|
134
|
+
registrationNumber: z.ZodOptional<z.ZodString>;
|
|
135
|
+
}, "strip", z.ZodTypeAny, {
|
|
136
|
+
country: string;
|
|
137
|
+
type: string;
|
|
138
|
+
name: string;
|
|
139
|
+
address: string;
|
|
140
|
+
city: string;
|
|
141
|
+
state: string;
|
|
142
|
+
pinCode?: string | undefined;
|
|
143
|
+
registrationNumber?: string | undefined;
|
|
144
|
+
}, {
|
|
145
|
+
country: string;
|
|
146
|
+
type: string;
|
|
147
|
+
name: string;
|
|
148
|
+
address: string;
|
|
149
|
+
city: string;
|
|
150
|
+
state: string;
|
|
151
|
+
pinCode?: string | undefined;
|
|
152
|
+
registrationNumber?: string | undefined;
|
|
153
|
+
}>, "many">>;
|
|
132
154
|
}, "strict", z.ZodTypeAny, {
|
|
133
155
|
username: string;
|
|
134
156
|
firstName: string;
|
|
@@ -159,7 +181,7 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
159
181
|
accessToken?: string | undefined;
|
|
160
182
|
refreshToken?: string | undefined;
|
|
161
183
|
verifiedIdCard?: boolean | undefined;
|
|
162
|
-
socialLinks?:
|
|
184
|
+
socialLinks?: Record<string, string> | undefined;
|
|
163
185
|
userResume?: string | undefined;
|
|
164
186
|
skills?: {
|
|
165
187
|
skill: string;
|
|
@@ -176,11 +198,16 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
176
198
|
gstNumber?: string | undefined;
|
|
177
199
|
panCard?: string | undefined;
|
|
178
200
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
201
|
+
properties?: {
|
|
202
|
+
country: string;
|
|
203
|
+
type: string;
|
|
204
|
+
name: string;
|
|
205
|
+
address: string;
|
|
206
|
+
city: string;
|
|
207
|
+
state: string;
|
|
208
|
+
pinCode?: string | undefined;
|
|
209
|
+
registrationNumber?: string | undefined;
|
|
210
|
+
}[] | undefined;
|
|
184
211
|
}, {
|
|
185
212
|
username: string;
|
|
186
213
|
firstName: string;
|
|
@@ -211,7 +238,7 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
211
238
|
accessToken?: string | undefined;
|
|
212
239
|
refreshToken?: string | undefined;
|
|
213
240
|
verifiedIdCard?: boolean | undefined;
|
|
214
|
-
socialLinks?:
|
|
241
|
+
socialLinks?: Record<string, string> | undefined;
|
|
215
242
|
userResume?: string | undefined;
|
|
216
243
|
skills?: {
|
|
217
244
|
skill: string;
|
|
@@ -228,11 +255,16 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
228
255
|
gstNumber?: string | undefined;
|
|
229
256
|
panCard?: string | undefined;
|
|
230
257
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
258
|
+
properties?: {
|
|
259
|
+
country: string;
|
|
260
|
+
type: string;
|
|
261
|
+
name: string;
|
|
262
|
+
address: string;
|
|
263
|
+
city: string;
|
|
264
|
+
state: string;
|
|
265
|
+
pinCode?: string | undefined;
|
|
266
|
+
registrationNumber?: string | undefined;
|
|
267
|
+
}[] | undefined;
|
|
236
268
|
}>>;
|
|
237
269
|
applicationObservers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
238
270
|
username: z.ZodString;
|
|
@@ -261,18 +293,18 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
261
293
|
opportunityType: z.ZodLiteral<"volunteer">;
|
|
262
294
|
}, "strict", z.ZodTypeAny, {
|
|
263
295
|
country: string;
|
|
264
|
-
status: "
|
|
296
|
+
status: "draft" | "archived" | "pending" | "denied" | "open" | "closed" | "deleted";
|
|
265
297
|
rating: number;
|
|
266
298
|
ratingCount: number;
|
|
267
299
|
reviewCount: number;
|
|
268
300
|
skills: string[];
|
|
301
|
+
city: string;
|
|
302
|
+
state: string;
|
|
269
303
|
title: string;
|
|
270
304
|
description: string;
|
|
271
305
|
slug: string;
|
|
272
306
|
opportunityType: "volunteer";
|
|
273
307
|
images: string[];
|
|
274
|
-
city: string;
|
|
275
|
-
state: string;
|
|
276
308
|
availableFrom: Date;
|
|
277
309
|
minDuration: number;
|
|
278
310
|
maxDuration: number;
|
|
@@ -317,7 +349,7 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
317
349
|
accessToken?: string | undefined;
|
|
318
350
|
refreshToken?: string | undefined;
|
|
319
351
|
verifiedIdCard?: boolean | undefined;
|
|
320
|
-
socialLinks?:
|
|
352
|
+
socialLinks?: Record<string, string> | undefined;
|
|
321
353
|
userResume?: string | undefined;
|
|
322
354
|
skills?: {
|
|
323
355
|
skill: string;
|
|
@@ -334,23 +366,28 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
334
366
|
gstNumber?: string | undefined;
|
|
335
367
|
panCard?: string | undefined;
|
|
336
368
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
369
|
+
properties?: {
|
|
370
|
+
country: string;
|
|
371
|
+
type: string;
|
|
372
|
+
name: string;
|
|
373
|
+
address: string;
|
|
374
|
+
city: string;
|
|
375
|
+
state: string;
|
|
376
|
+
pinCode?: string | undefined;
|
|
377
|
+
registrationNumber?: string | undefined;
|
|
378
|
+
}[] | undefined;
|
|
342
379
|
};
|
|
343
380
|
adminApproval: boolean;
|
|
381
|
+
address?: string | undefined;
|
|
344
382
|
createdAt?: Date | undefined;
|
|
345
383
|
updatedAt?: Date | undefined;
|
|
346
384
|
categoryId?: string | undefined;
|
|
347
|
-
|
|
348
|
-
workMode?: "onsite" | "remote" | "hybrid" | undefined;
|
|
385
|
+
workMode?: string | undefined;
|
|
349
386
|
compensation?: {
|
|
350
|
-
type:
|
|
387
|
+
type: string;
|
|
351
388
|
currency: string;
|
|
352
389
|
amount?: number | undefined;
|
|
353
|
-
frequency?:
|
|
390
|
+
frequency?: string | undefined;
|
|
354
391
|
} | undefined;
|
|
355
392
|
bondPlan?: {
|
|
356
393
|
enabled: boolean;
|
|
@@ -359,7 +396,6 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
359
396
|
hostFee?: number | undefined;
|
|
360
397
|
securityDeposit?: number | undefined;
|
|
361
398
|
} | undefined;
|
|
362
|
-
pendingApplicationCount?: number | undefined;
|
|
363
399
|
hostingType?: string | undefined;
|
|
364
400
|
applicationObservers?: {
|
|
365
401
|
username: string;
|
|
@@ -370,18 +406,18 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
370
406
|
}[] | undefined;
|
|
371
407
|
}, {
|
|
372
408
|
country: string;
|
|
373
|
-
status: "
|
|
409
|
+
status: "draft" | "archived" | "pending" | "denied" | "open" | "closed" | "deleted";
|
|
374
410
|
rating: number;
|
|
375
411
|
ratingCount: number;
|
|
376
412
|
reviewCount: number;
|
|
377
413
|
skills: string[];
|
|
414
|
+
city: string;
|
|
415
|
+
state: string;
|
|
378
416
|
title: string;
|
|
379
417
|
description: string;
|
|
380
418
|
slug: string;
|
|
381
419
|
opportunityType: "volunteer";
|
|
382
420
|
images: string[];
|
|
383
|
-
city: string;
|
|
384
|
-
state: string;
|
|
385
421
|
availableFrom: Date;
|
|
386
422
|
minDuration: number;
|
|
387
423
|
maxDuration: number;
|
|
@@ -426,7 +462,7 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
426
462
|
accessToken?: string | undefined;
|
|
427
463
|
refreshToken?: string | undefined;
|
|
428
464
|
verifiedIdCard?: boolean | undefined;
|
|
429
|
-
socialLinks?:
|
|
465
|
+
socialLinks?: Record<string, string> | undefined;
|
|
430
466
|
userResume?: string | undefined;
|
|
431
467
|
skills?: {
|
|
432
468
|
skill: string;
|
|
@@ -443,23 +479,28 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
443
479
|
gstNumber?: string | undefined;
|
|
444
480
|
panCard?: string | undefined;
|
|
445
481
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
482
|
+
properties?: {
|
|
483
|
+
country: string;
|
|
484
|
+
type: string;
|
|
485
|
+
name: string;
|
|
486
|
+
address: string;
|
|
487
|
+
city: string;
|
|
488
|
+
state: string;
|
|
489
|
+
pinCode?: string | undefined;
|
|
490
|
+
registrationNumber?: string | undefined;
|
|
491
|
+
}[] | undefined;
|
|
451
492
|
};
|
|
452
493
|
adminApproval: boolean;
|
|
494
|
+
address?: string | undefined;
|
|
453
495
|
createdAt?: Date | undefined;
|
|
454
496
|
updatedAt?: Date | undefined;
|
|
455
497
|
categoryId?: string | undefined;
|
|
456
|
-
|
|
457
|
-
workMode?: "onsite" | "remote" | "hybrid" | undefined;
|
|
498
|
+
workMode?: string | undefined;
|
|
458
499
|
compensation?: {
|
|
459
|
-
type:
|
|
500
|
+
type: string;
|
|
460
501
|
currency: string;
|
|
461
502
|
amount?: number | undefined;
|
|
462
|
-
frequency?:
|
|
503
|
+
frequency?: string | undefined;
|
|
463
504
|
} | undefined;
|
|
464
505
|
bondPlan?: {
|
|
465
506
|
enabled: boolean;
|
|
@@ -468,7 +509,6 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
|
|
|
468
509
|
securityDeposit?: number | undefined;
|
|
469
510
|
commissionRate?: number | undefined;
|
|
470
511
|
} | undefined;
|
|
471
|
-
pendingApplicationCount?: number | undefined;
|
|
472
512
|
hostingType?: string | undefined;
|
|
473
513
|
applicationObservers?: {
|
|
474
514
|
username: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volunteerJob.d.ts","sourceRoot":"","sources":["../../../../src/lib/models/opportunities/volunteerJob.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"volunteerJob.d.ts","sourceRoot":"","sources":["../../../../src/lib/models/opportunities/volunteerJob.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAErC,CAAC"}
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ItinerarySchema: z.ZodObject<{
|
|
3
|
+
day: z.ZodNumber;
|
|
4
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5
|
+
message: z.ZodOptional<z.ZodString>;
|
|
6
|
+
route: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7
|
+
facilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
8
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
day: number;
|
|
11
|
+
message?: string | undefined;
|
|
12
|
+
title?: string | undefined;
|
|
13
|
+
facilities?: string[] | undefined;
|
|
14
|
+
route?: string[] | undefined;
|
|
15
|
+
mode?: string | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
day: number;
|
|
18
|
+
message?: string | undefined;
|
|
19
|
+
title?: string | undefined;
|
|
20
|
+
facilities?: string[] | undefined;
|
|
21
|
+
route?: string[] | undefined;
|
|
22
|
+
mode?: string | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
export declare const PricingStrategySchema: z.ZodObject<{
|
|
25
|
+
basePrice: z.ZodNumber;
|
|
26
|
+
gst: z.ZodNumber;
|
|
27
|
+
currency: z.ZodString;
|
|
28
|
+
description: z.ZodOptional<z.ZodString>;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
currency: string;
|
|
31
|
+
basePrice: number;
|
|
32
|
+
gst: number;
|
|
33
|
+
description?: string | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
currency: string;
|
|
36
|
+
basePrice: number;
|
|
37
|
+
gst: number;
|
|
38
|
+
description?: string | undefined;
|
|
39
|
+
}>;
|
|
40
|
+
export declare const TravelPackageSchema: z.ZodObject<{
|
|
41
|
+
_id: z.ZodString;
|
|
42
|
+
title: z.ZodString;
|
|
43
|
+
description: z.ZodOptional<z.ZodString>;
|
|
44
|
+
slug: z.ZodString;
|
|
45
|
+
hostId: z.ZodString;
|
|
46
|
+
categoryId: z.ZodOptional<z.ZodString>;
|
|
47
|
+
pricingStrategy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
48
|
+
basePrice: z.ZodNumber;
|
|
49
|
+
gst: z.ZodNumber;
|
|
50
|
+
currency: z.ZodString;
|
|
51
|
+
description: z.ZodOptional<z.ZodString>;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
currency: string;
|
|
54
|
+
basePrice: number;
|
|
55
|
+
gst: number;
|
|
56
|
+
description?: string | undefined;
|
|
57
|
+
}, {
|
|
58
|
+
currency: string;
|
|
59
|
+
basePrice: number;
|
|
60
|
+
gst: number;
|
|
61
|
+
description?: string | undefined;
|
|
62
|
+
}>, "many">>;
|
|
63
|
+
difficultyLevel: z.ZodOptional<z.ZodEnum<["easy", "medium", "hard"]>>;
|
|
64
|
+
urgent: z.ZodDefault<z.ZodBoolean>;
|
|
65
|
+
peopleRequired: z.ZodOptional<z.ZodNumber>;
|
|
66
|
+
applicationCount: z.ZodDefault<z.ZodNumber>;
|
|
67
|
+
city: z.ZodString;
|
|
68
|
+
state: z.ZodString;
|
|
69
|
+
country: z.ZodDefault<z.ZodString>;
|
|
70
|
+
availableFrom: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
71
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
72
|
+
highlights: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
73
|
+
itinerary: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
74
|
+
day: z.ZodNumber;
|
|
75
|
+
title: z.ZodOptional<z.ZodString>;
|
|
76
|
+
message: z.ZodOptional<z.ZodString>;
|
|
77
|
+
route: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
78
|
+
facilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
79
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
day: number;
|
|
82
|
+
message?: string | undefined;
|
|
83
|
+
title?: string | undefined;
|
|
84
|
+
facilities?: string[] | undefined;
|
|
85
|
+
route?: string[] | undefined;
|
|
86
|
+
mode?: string | undefined;
|
|
87
|
+
}, {
|
|
88
|
+
day: number;
|
|
89
|
+
message?: string | undefined;
|
|
90
|
+
title?: string | undefined;
|
|
91
|
+
facilities?: string[] | undefined;
|
|
92
|
+
route?: string[] | undefined;
|
|
93
|
+
mode?: string | undefined;
|
|
94
|
+
}>, "many">>;
|
|
95
|
+
whatsIncluded: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
96
|
+
whatsNotIncluded: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
97
|
+
thingsToDo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
98
|
+
thingsNotToDo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
99
|
+
thingsToCarry: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
100
|
+
packageImages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
101
|
+
questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
102
|
+
question: z.ZodString;
|
|
103
|
+
answer: z.ZodString;
|
|
104
|
+
}, "strip", z.ZodTypeAny, {
|
|
105
|
+
question: string;
|
|
106
|
+
answer: string;
|
|
107
|
+
}, {
|
|
108
|
+
question: string;
|
|
109
|
+
answer: string;
|
|
110
|
+
}>, "many">>;
|
|
111
|
+
status: z.ZodDefault<z.ZodEnum<["draft", "archived", "pending", "open", "closed", "denied"]>>;
|
|
112
|
+
views: z.ZodDefault<z.ZodNumber>;
|
|
113
|
+
likes: z.ZodDefault<z.ZodNumber>;
|
|
114
|
+
shares: z.ZodDefault<z.ZodNumber>;
|
|
115
|
+
rating: z.ZodDefault<z.ZodNumber>;
|
|
116
|
+
ratingCount: z.ZodDefault<z.ZodNumber>;
|
|
117
|
+
reviewCount: z.ZodDefault<z.ZodNumber>;
|
|
118
|
+
isDeleted: z.ZodDefault<z.ZodBoolean>;
|
|
119
|
+
createdAt: z.ZodUnion<[z.ZodDate, z.ZodString]>;
|
|
120
|
+
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodString]>;
|
|
121
|
+
host: z.ZodOptional<z.ZodObject<{
|
|
122
|
+
name: z.ZodOptional<z.ZodString>;
|
|
123
|
+
profilePic: z.ZodOptional<z.ZodString>;
|
|
124
|
+
image: z.ZodOptional<z.ZodString>;
|
|
125
|
+
rating: z.ZodOptional<z.ZodNumber>;
|
|
126
|
+
}, "strip", z.ZodTypeAny, {
|
|
127
|
+
profilePic?: string | undefined;
|
|
128
|
+
rating?: number | undefined;
|
|
129
|
+
name?: string | undefined;
|
|
130
|
+
image?: string | undefined;
|
|
131
|
+
}, {
|
|
132
|
+
profilePic?: string | undefined;
|
|
133
|
+
rating?: number | undefined;
|
|
134
|
+
name?: string | undefined;
|
|
135
|
+
image?: string | undefined;
|
|
136
|
+
}>>;
|
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
|
138
|
+
country: string;
|
|
139
|
+
status: "draft" | "archived" | "pending" | "denied" | "open" | "closed";
|
|
140
|
+
rating: number;
|
|
141
|
+
ratingCount: number;
|
|
142
|
+
reviewCount: number;
|
|
143
|
+
city: string;
|
|
144
|
+
state: string;
|
|
145
|
+
title: string;
|
|
146
|
+
_id: string;
|
|
147
|
+
createdAt: string | Date;
|
|
148
|
+
updatedAt: string | Date;
|
|
149
|
+
slug: string;
|
|
150
|
+
urgent: boolean;
|
|
151
|
+
applicationCount: number;
|
|
152
|
+
views: number;
|
|
153
|
+
shares: number;
|
|
154
|
+
hostId: string;
|
|
155
|
+
likes: number;
|
|
156
|
+
isDeleted: boolean;
|
|
157
|
+
host?: {
|
|
158
|
+
profilePic?: string | undefined;
|
|
159
|
+
rating?: number | undefined;
|
|
160
|
+
name?: string | undefined;
|
|
161
|
+
image?: string | undefined;
|
|
162
|
+
} | undefined;
|
|
163
|
+
duration?: number | undefined;
|
|
164
|
+
description?: string | undefined;
|
|
165
|
+
categoryId?: string | undefined;
|
|
166
|
+
availableFrom?: string | Date | undefined;
|
|
167
|
+
peopleRequired?: number | undefined;
|
|
168
|
+
questions?: {
|
|
169
|
+
question: string;
|
|
170
|
+
answer: string;
|
|
171
|
+
}[] | undefined;
|
|
172
|
+
pricingStrategy?: {
|
|
173
|
+
currency: string;
|
|
174
|
+
basePrice: number;
|
|
175
|
+
gst: number;
|
|
176
|
+
description?: string | undefined;
|
|
177
|
+
}[] | undefined;
|
|
178
|
+
difficultyLevel?: "easy" | "medium" | "hard" | undefined;
|
|
179
|
+
highlights?: string[] | undefined;
|
|
180
|
+
itinerary?: {
|
|
181
|
+
day: number;
|
|
182
|
+
message?: string | undefined;
|
|
183
|
+
title?: string | undefined;
|
|
184
|
+
facilities?: string[] | undefined;
|
|
185
|
+
route?: string[] | undefined;
|
|
186
|
+
mode?: string | undefined;
|
|
187
|
+
}[] | undefined;
|
|
188
|
+
whatsIncluded?: string[] | undefined;
|
|
189
|
+
whatsNotIncluded?: string[] | undefined;
|
|
190
|
+
thingsToDo?: string[] | undefined;
|
|
191
|
+
thingsNotToDo?: string[] | undefined;
|
|
192
|
+
thingsToCarry?: string[] | undefined;
|
|
193
|
+
packageImages?: string[] | undefined;
|
|
194
|
+
}, {
|
|
195
|
+
city: string;
|
|
196
|
+
state: string;
|
|
197
|
+
title: string;
|
|
198
|
+
_id: string;
|
|
199
|
+
createdAt: string | Date;
|
|
200
|
+
updatedAt: string | Date;
|
|
201
|
+
slug: string;
|
|
202
|
+
hostId: string;
|
|
203
|
+
host?: {
|
|
204
|
+
profilePic?: string | undefined;
|
|
205
|
+
rating?: number | undefined;
|
|
206
|
+
name?: string | undefined;
|
|
207
|
+
image?: string | undefined;
|
|
208
|
+
} | undefined;
|
|
209
|
+
country?: string | undefined;
|
|
210
|
+
status?: "draft" | "archived" | "pending" | "denied" | "open" | "closed" | undefined;
|
|
211
|
+
rating?: number | undefined;
|
|
212
|
+
ratingCount?: number | undefined;
|
|
213
|
+
reviewCount?: number | undefined;
|
|
214
|
+
duration?: number | undefined;
|
|
215
|
+
description?: string | undefined;
|
|
216
|
+
categoryId?: string | undefined;
|
|
217
|
+
availableFrom?: string | Date | undefined;
|
|
218
|
+
urgent?: boolean | undefined;
|
|
219
|
+
peopleRequired?: number | undefined;
|
|
220
|
+
questions?: {
|
|
221
|
+
question: string;
|
|
222
|
+
answer: string;
|
|
223
|
+
}[] | undefined;
|
|
224
|
+
applicationCount?: number | undefined;
|
|
225
|
+
views?: number | undefined;
|
|
226
|
+
shares?: number | undefined;
|
|
227
|
+
likes?: number | undefined;
|
|
228
|
+
pricingStrategy?: {
|
|
229
|
+
currency: string;
|
|
230
|
+
basePrice: number;
|
|
231
|
+
gst: number;
|
|
232
|
+
description?: string | undefined;
|
|
233
|
+
}[] | undefined;
|
|
234
|
+
difficultyLevel?: "easy" | "medium" | "hard" | undefined;
|
|
235
|
+
highlights?: string[] | undefined;
|
|
236
|
+
itinerary?: {
|
|
237
|
+
day: number;
|
|
238
|
+
message?: string | undefined;
|
|
239
|
+
title?: string | undefined;
|
|
240
|
+
facilities?: string[] | undefined;
|
|
241
|
+
route?: string[] | undefined;
|
|
242
|
+
mode?: string | undefined;
|
|
243
|
+
}[] | undefined;
|
|
244
|
+
whatsIncluded?: string[] | undefined;
|
|
245
|
+
whatsNotIncluded?: string[] | undefined;
|
|
246
|
+
thingsToDo?: string[] | undefined;
|
|
247
|
+
thingsNotToDo?: string[] | undefined;
|
|
248
|
+
thingsToCarry?: string[] | undefined;
|
|
249
|
+
packageImages?: string[] | undefined;
|
|
250
|
+
isDeleted?: boolean | undefined;
|
|
251
|
+
}>;
|
|
252
|
+
export type TravelPackage = z.infer<typeof TravelPackageSchema>;
|
|
253
|
+
export type Itinerary = z.infer<typeof ItinerarySchema>;
|
|
254
|
+
export interface PackageMetaData {
|
|
255
|
+
image: string;
|
|
256
|
+
title: string;
|
|
257
|
+
city: string;
|
|
258
|
+
state: string;
|
|
259
|
+
categoryId?: string;
|
|
260
|
+
difficultyLevel?: string;
|
|
261
|
+
price: number;
|
|
262
|
+
currency: string;
|
|
263
|
+
}
|
|
264
|
+
//# sourceMappingURL=package.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package.d.ts","sourceRoot":"","sources":["../../../src/lib/models/package.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;EAO1B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;EAKhC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0C9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,MAAM,WAAW,eAAe;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const ItinerarySchema = z.object({
|
|
3
|
+
day: z.number(),
|
|
4
|
+
title: z.string().optional(),
|
|
5
|
+
message: z.string().optional(),
|
|
6
|
+
route: z.array(z.string()).optional(),
|
|
7
|
+
facilities: z.array(z.string()).optional(),
|
|
8
|
+
mode: z.string().optional(),
|
|
9
|
+
});
|
|
10
|
+
export const PricingStrategySchema = z.object({
|
|
11
|
+
basePrice: z.number(),
|
|
12
|
+
gst: z.number(),
|
|
13
|
+
currency: z.string(),
|
|
14
|
+
description: z.string().optional(),
|
|
15
|
+
});
|
|
16
|
+
export const TravelPackageSchema = z.object({
|
|
17
|
+
_id: z.string(),
|
|
18
|
+
title: z.string(),
|
|
19
|
+
description: z.string().optional(),
|
|
20
|
+
slug: z.string(),
|
|
21
|
+
hostId: z.string(),
|
|
22
|
+
categoryId: z.string().optional(),
|
|
23
|
+
pricingStrategy: z.array(PricingStrategySchema).optional(),
|
|
24
|
+
difficultyLevel: z.enum(["easy", "medium", "hard"]).optional(),
|
|
25
|
+
urgent: z.boolean().default(false),
|
|
26
|
+
peopleRequired: z.number().optional(),
|
|
27
|
+
applicationCount: z.number().default(0),
|
|
28
|
+
city: z.string(),
|
|
29
|
+
state: z.string(),
|
|
30
|
+
country: z.string().default("India"),
|
|
31
|
+
availableFrom: z.date().or(z.string()).optional(),
|
|
32
|
+
duration: z.number().optional(), // In days
|
|
33
|
+
highlights: z.array(z.string()).optional(),
|
|
34
|
+
itinerary: z.array(ItinerarySchema).optional(),
|
|
35
|
+
whatsIncluded: z.array(z.string()).optional(),
|
|
36
|
+
whatsNotIncluded: z.array(z.string()).optional(),
|
|
37
|
+
thingsToDo: z.array(z.string()).optional(),
|
|
38
|
+
thingsNotToDo: z.array(z.string()).optional(),
|
|
39
|
+
thingsToCarry: z.array(z.string()).optional(),
|
|
40
|
+
packageImages: z.array(z.string()).optional(),
|
|
41
|
+
questions: z.array(z.object({ question: z.string(), answer: z.string() })).optional(),
|
|
42
|
+
status: z.enum(["draft", "archived", "pending", "open", "closed", "denied"]).default("draft"),
|
|
43
|
+
views: z.number().default(0),
|
|
44
|
+
likes: z.number().default(0),
|
|
45
|
+
shares: z.number().default(0),
|
|
46
|
+
rating: z.number().default(0),
|
|
47
|
+
ratingCount: z.number().default(0),
|
|
48
|
+
reviewCount: z.number().default(0),
|
|
49
|
+
isDeleted: z.boolean().default(false),
|
|
50
|
+
createdAt: z.date().or(z.string()),
|
|
51
|
+
updatedAt: z.date().or(z.string()),
|
|
52
|
+
host: z.object({
|
|
53
|
+
name: z.string().optional(),
|
|
54
|
+
profilePic: z.string().optional(),
|
|
55
|
+
image: z.string().optional(),
|
|
56
|
+
rating: z.number().optional()
|
|
57
|
+
}).optional(),
|
|
58
|
+
});
|
|
@@ -20,10 +20,10 @@ export declare const PortfolioItemSchema: z.ZodObject<{
|
|
|
20
20
|
updatedAt: Date;
|
|
21
21
|
views: number;
|
|
22
22
|
shares: number;
|
|
23
|
+
mediaType: "image" | "video";
|
|
23
24
|
caption: string;
|
|
24
25
|
likes: number;
|
|
25
26
|
comments: number;
|
|
26
|
-
mediaType: "image" | "video";
|
|
27
27
|
mainUrl?: string | undefined;
|
|
28
28
|
}, {
|
|
29
29
|
user: string;
|
|
@@ -33,10 +33,10 @@ export declare const PortfolioItemSchema: z.ZodObject<{
|
|
|
33
33
|
updatedAt: Date;
|
|
34
34
|
views: number;
|
|
35
35
|
shares: number;
|
|
36
|
+
mediaType: "image" | "video";
|
|
36
37
|
caption: string;
|
|
37
38
|
likes: number;
|
|
38
39
|
comments: number;
|
|
39
|
-
mediaType: "image" | "video";
|
|
40
40
|
mainUrl?: string | undefined;
|
|
41
41
|
}>;
|
|
42
42
|
export type PortfolioItem = z.infer<typeof PortfolioItemSchema>;
|