@myrjfa/state 2.1.7 → 2.1.9

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.
@@ -17,6 +17,10 @@ export declare const opportunityTypeOptions: readonly [{
17
17
  readonly value: "job";
18
18
  readonly label: "Job";
19
19
  readonly description: "Full-time or part-time employment";
20
+ }, {
21
+ readonly value: "contentCreator";
22
+ readonly label: "Content Creator";
23
+ readonly description: "Create travel, hospitality, or brand content";
20
24
  }];
21
25
  export declare const workModeOptions: readonly [{
22
26
  readonly value: "onsite";
@@ -28,7 +32,7 @@ export declare const workModeOptions: readonly [{
28
32
  readonly value: "hybrid";
29
33
  readonly label: "Hybrid";
30
34
  }];
31
- export declare const OpportunityTypeEnum: z.ZodEnum<["volunteer" | "internship" | "freelance" | "job", ...("volunteer" | "internship" | "freelance" | "job")[]]>;
35
+ export declare const OpportunityTypeEnum: z.ZodEnum<["volunteer" | "internship" | "freelance" | "job" | "contentCreator", ...("volunteer" | "internship" | "freelance" | "job" | "contentCreator")[]]>;
32
36
  export declare const WorkModeEnum: z.ZodEnum<["onsite" | "remote" | "hybrid", ...("onsite" | "remote" | "hybrid")[]]>;
33
37
  export declare const OpportunityStatusEnum: z.ZodEnum<["draft", "archived", "pending", "open", "closed", "denied", "deleted"]>;
34
38
  export declare const compensationTypeOptions: readonly [{
@@ -106,7 +110,7 @@ export declare const BondPlanSchema: z.ZodObject<{
106
110
  export type BondPlan = z.infer<typeof BondPlanSchema>;
107
111
  export declare const OpportunitySchema: z.ZodObject<{
108
112
  slug: z.ZodString;
109
- opportunityType: z.ZodEnum<["volunteer" | "internship" | "freelance" | "job", ...("volunteer" | "internship" | "freelance" | "job")[]]>;
113
+ opportunityType: z.ZodEnum<["volunteer" | "internship" | "freelance" | "job" | "contentCreator", ...("volunteer" | "internship" | "freelance" | "job" | "contentCreator")[]]>;
110
114
  title: z.ZodString;
111
115
  skills: z.ZodArray<z.ZodString, "many">;
112
116
  description: z.ZodString;
@@ -241,20 +245,20 @@ export declare const OpportunitySchema: z.ZodObject<{
241
245
  registrationNumber: z.ZodOptional<z.ZodString>;
242
246
  }, "strip", z.ZodTypeAny, {
243
247
  type: string;
244
- name: string;
245
248
  city: string;
246
249
  state: string;
247
250
  country: string;
248
251
  address: string;
252
+ name: string;
249
253
  pinCode?: string | undefined;
250
254
  registrationNumber?: string | undefined;
251
255
  }, {
252
256
  type: string;
253
- name: string;
254
257
  city: string;
255
258
  state: string;
256
259
  country: string;
257
260
  address: string;
261
+ name: string;
258
262
  pinCode?: string | undefined;
259
263
  registrationNumber?: string | undefined;
260
264
  }>, "many">>;
@@ -264,7 +268,6 @@ export declare const OpportunitySchema: z.ZodObject<{
264
268
  businessApiVerificationStatus: z.ZodOptional<z.ZodEnum<["pending", "verified", "failed"]>>;
265
269
  businessVerificationDenialReason: z.ZodOptional<z.ZodString>;
266
270
  }, "strict", z.ZodTypeAny, {
267
- role: "host" | "user" | "admin" | "hr" | "sales";
268
271
  country: string;
269
272
  rating: number;
270
273
  ratingCount: number;
@@ -282,7 +285,7 @@ export declare const OpportunitySchema: z.ZodObject<{
282
285
  lastActive: Date;
283
286
  verifiedEmail: boolean;
284
287
  verifiedMobile: boolean;
285
- id?: string | undefined;
288
+ role: "host" | "user" | "admin" | "hr" | "sales";
286
289
  skills?: {
287
290
  skill: string;
288
291
  skillExpertise: number;
@@ -303,6 +306,7 @@ export declare const OpportunitySchema: z.ZodObject<{
303
306
  wishlist?: string[] | undefined;
304
307
  favBlogs?: string[] | undefined;
305
308
  favPackages?: string[] | undefined;
309
+ id?: string | undefined;
306
310
  selfie?: string | undefined;
307
311
  selfieAction?: string | undefined;
308
312
  jobCount?: number | undefined;
@@ -312,11 +316,11 @@ export declare const OpportunitySchema: z.ZodObject<{
312
316
  verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
313
317
  properties?: {
314
318
  type: string;
315
- name: string;
316
319
  city: string;
317
320
  state: string;
318
321
  country: string;
319
322
  address: string;
323
+ name: string;
320
324
  pinCode?: string | undefined;
321
325
  registrationNumber?: string | undefined;
322
326
  }[] | undefined;
@@ -326,7 +330,6 @@ export declare const OpportunitySchema: z.ZodObject<{
326
330
  businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
327
331
  businessVerificationDenialReason?: string | undefined;
328
332
  }, {
329
- role: "host" | "user" | "admin" | "hr" | "sales";
330
333
  country: string;
331
334
  rating: number;
332
335
  ratingCount: number;
@@ -344,7 +347,7 @@ export declare const OpportunitySchema: z.ZodObject<{
344
347
  lastActive: Date;
345
348
  verifiedEmail: boolean;
346
349
  verifiedMobile: boolean;
347
- id?: string | undefined;
350
+ role: "host" | "user" | "admin" | "hr" | "sales";
348
351
  skills?: {
349
352
  skill: string;
350
353
  skillExpertise: number;
@@ -365,6 +368,7 @@ export declare const OpportunitySchema: z.ZodObject<{
365
368
  wishlist?: string[] | undefined;
366
369
  favBlogs?: string[] | undefined;
367
370
  favPackages?: string[] | undefined;
371
+ id?: string | undefined;
368
372
  selfie?: string | undefined;
369
373
  selfieAction?: string | undefined;
370
374
  jobCount?: number | undefined;
@@ -374,11 +378,11 @@ export declare const OpportunitySchema: z.ZodObject<{
374
378
  verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
375
379
  properties?: {
376
380
  type: string;
377
- name: string;
378
381
  city: string;
379
382
  state: string;
380
383
  country: string;
381
384
  address: string;
385
+ name: string;
382
386
  pinCode?: string | undefined;
383
387
  registrationNumber?: string | undefined;
384
388
  }[] | undefined;
@@ -395,17 +399,17 @@ export declare const OpportunitySchema: z.ZodObject<{
395
399
  phoneNumber: z.ZodString;
396
400
  email: z.ZodString;
397
401
  }, "strip", z.ZodTypeAny, {
398
- role: "host" | "user" | "admin" | "hr" | "sales";
399
402
  username: string;
400
403
  email: string;
401
404
  phoneNumber: string;
402
405
  countryCode: string;
403
- }, {
404
406
  role: "host" | "user" | "admin" | "hr" | "sales";
407
+ }, {
405
408
  username: string;
406
409
  email: string;
407
410
  phoneNumber: string;
408
411
  countryCode: string;
412
+ role: "host" | "user" | "admin" | "hr" | "sales";
409
413
  }>, "many">>;
410
414
  status: z.ZodEnum<["draft", "archived", "pending", "open", "closed", "denied", "deleted"]>;
411
415
  adminApproval: z.ZodBoolean;
@@ -414,7 +418,7 @@ export declare const OpportunitySchema: z.ZodObject<{
414
418
  }, "strict", z.ZodTypeAny, {
415
419
  status: "draft" | "archived" | "pending" | "open" | "closed" | "denied" | "deleted";
416
420
  slug: string;
417
- opportunityType: "volunteer" | "internship" | "freelance" | "job";
421
+ opportunityType: "volunteer" | "internship" | "freelance" | "job" | "contentCreator";
418
422
  title: string;
419
423
  skills: string[];
420
424
  description: string;
@@ -440,7 +444,6 @@ export declare const OpportunitySchema: z.ZodObject<{
440
444
  ratingCount: number;
441
445
  reviewCount: number;
442
446
  hostId: {
443
- role: "host" | "user" | "admin" | "hr" | "sales";
444
447
  country: string;
445
448
  rating: number;
446
449
  ratingCount: number;
@@ -458,7 +461,7 @@ export declare const OpportunitySchema: z.ZodObject<{
458
461
  lastActive: Date;
459
462
  verifiedEmail: boolean;
460
463
  verifiedMobile: boolean;
461
- id?: string | undefined;
464
+ role: "host" | "user" | "admin" | "hr" | "sales";
462
465
  skills?: {
463
466
  skill: string;
464
467
  skillExpertise: number;
@@ -479,6 +482,7 @@ export declare const OpportunitySchema: z.ZodObject<{
479
482
  wishlist?: string[] | undefined;
480
483
  favBlogs?: string[] | undefined;
481
484
  favPackages?: string[] | undefined;
485
+ id?: string | undefined;
482
486
  selfie?: string | undefined;
483
487
  selfieAction?: string | undefined;
484
488
  jobCount?: number | undefined;
@@ -488,11 +492,11 @@ export declare const OpportunitySchema: z.ZodObject<{
488
492
  verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
489
493
  properties?: {
490
494
  type: string;
491
- name: string;
492
495
  city: string;
493
496
  state: string;
494
497
  country: string;
495
498
  address: string;
499
+ name: string;
496
500
  pinCode?: string | undefined;
497
501
  registrationNumber?: string | undefined;
498
502
  }[] | undefined;
@@ -522,18 +526,18 @@ export declare const OpportunitySchema: z.ZodObject<{
522
526
  pendingApplicationCount?: number | undefined;
523
527
  hostingType?: string | undefined;
524
528
  applicationObservers?: {
525
- role: "host" | "user" | "admin" | "hr" | "sales";
526
529
  username: string;
527
530
  email: string;
528
531
  phoneNumber: string;
529
532
  countryCode: string;
533
+ role: "host" | "user" | "admin" | "hr" | "sales";
530
534
  }[] | undefined;
531
535
  createdAt?: Date | undefined;
532
536
  updatedAt?: Date | undefined;
533
537
  }, {
534
538
  status: "draft" | "archived" | "pending" | "open" | "closed" | "denied" | "deleted";
535
539
  slug: string;
536
- opportunityType: "volunteer" | "internship" | "freelance" | "job";
540
+ opportunityType: "volunteer" | "internship" | "freelance" | "job" | "contentCreator";
537
541
  title: string;
538
542
  skills: string[];
539
543
  description: string;
@@ -559,7 +563,6 @@ export declare const OpportunitySchema: z.ZodObject<{
559
563
  ratingCount: number;
560
564
  reviewCount: number;
561
565
  hostId: {
562
- role: "host" | "user" | "admin" | "hr" | "sales";
563
566
  country: string;
564
567
  rating: number;
565
568
  ratingCount: number;
@@ -577,7 +580,7 @@ export declare const OpportunitySchema: z.ZodObject<{
577
580
  lastActive: Date;
578
581
  verifiedEmail: boolean;
579
582
  verifiedMobile: boolean;
580
- id?: string | undefined;
583
+ role: "host" | "user" | "admin" | "hr" | "sales";
581
584
  skills?: {
582
585
  skill: string;
583
586
  skillExpertise: number;
@@ -598,6 +601,7 @@ export declare const OpportunitySchema: z.ZodObject<{
598
601
  wishlist?: string[] | undefined;
599
602
  favBlogs?: string[] | undefined;
600
603
  favPackages?: string[] | undefined;
604
+ id?: string | undefined;
601
605
  selfie?: string | undefined;
602
606
  selfieAction?: string | undefined;
603
607
  jobCount?: number | undefined;
@@ -607,11 +611,11 @@ export declare const OpportunitySchema: z.ZodObject<{
607
611
  verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
608
612
  properties?: {
609
613
  type: string;
610
- name: string;
611
614
  city: string;
612
615
  state: string;
613
616
  country: string;
614
617
  address: string;
618
+ name: string;
615
619
  pinCode?: string | undefined;
616
620
  registrationNumber?: string | undefined;
617
621
  }[] | undefined;
@@ -641,11 +645,11 @@ export declare const OpportunitySchema: z.ZodObject<{
641
645
  pendingApplicationCount?: number | undefined;
642
646
  hostingType?: string | undefined;
643
647
  applicationObservers?: {
644
- role: "host" | "user" | "admin" | "hr" | "sales";
645
648
  username: string;
646
649
  email: string;
647
650
  phoneNumber: string;
648
651
  countryCode: string;
652
+ role: "host" | "user" | "admin" | "hr" | "sales";
649
653
  }[] | undefined;
650
654
  createdAt?: Date | undefined;
651
655
  updatedAt?: Date | undefined;
@@ -657,6 +661,7 @@ export type OppMetaData = {
657
661
  location: string;
658
662
  skills: string[];
659
663
  hostingType: string;
664
+ opportunityType?: OpportunityType;
660
665
  };
661
666
  export declare const PlatformFeeSchema: z.ZodObject<{
662
667
  commissionPercent: z.ZodNumber;
@@ -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;;;;;;;;;;;;;;;;EAKzB,CAAC;AAEX,eAAO,MAAM,eAAe;;;;;;;;;EAIlB,CAAC;AACX,eAAO,MAAM,mBAAmB,wHAAoG,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;AAC7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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2DnB,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"}
@@ -9,6 +9,7 @@ export const opportunityTypeOptions = [
9
9
  { value: 'internship', label: 'Internship', description: 'Skill-building with optional stipend' },
10
10
  { value: 'freelance', label: 'Freelance', description: 'Project-based work' },
11
11
  { value: 'job', label: 'Job', description: 'Full-time or part-time employment' },
12
+ { value: 'contentCreator', label: 'Content Creator', description: 'Create travel, hospitality, or brand content' },
12
13
  ];
13
14
  export const workModeOptions = [
14
15
  { value: 'onsite', label: 'On-site' },
@@ -45,6 +46,7 @@ export const getCompensationTypeForOpportunity = (oppType) => {
45
46
  switch (oppType) {
46
47
  case 'internship': return 'stipend';
47
48
  case 'freelance': return 'project-based';
49
+ case 'contentCreator': return 'project-based';
48
50
  case 'job': return 'salary';
49
51
  default: return 'free';
50
52
  }
@@ -135,20 +135,20 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
135
135
  registrationNumber: z.ZodOptional<z.ZodString>;
136
136
  }, "strip", z.ZodTypeAny, {
137
137
  type: string;
138
- name: string;
139
138
  city: string;
140
139
  state: string;
141
140
  country: string;
142
141
  address: string;
142
+ name: string;
143
143
  pinCode?: string | undefined;
144
144
  registrationNumber?: string | undefined;
145
145
  }, {
146
146
  type: string;
147
- name: string;
148
147
  city: string;
149
148
  state: string;
150
149
  country: string;
151
150
  address: string;
151
+ name: string;
152
152
  pinCode?: string | undefined;
153
153
  registrationNumber?: string | undefined;
154
154
  }>, "many">>;
@@ -158,7 +158,6 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
158
158
  businessApiVerificationStatus: z.ZodOptional<z.ZodEnum<["pending", "verified", "failed"]>>;
159
159
  businessVerificationDenialReason: z.ZodOptional<z.ZodString>;
160
160
  }, "strict", z.ZodTypeAny, {
161
- role: "host" | "user" | "admin" | "hr" | "sales";
162
161
  country: string;
163
162
  rating: number;
164
163
  ratingCount: number;
@@ -176,7 +175,7 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
176
175
  lastActive: Date;
177
176
  verifiedEmail: boolean;
178
177
  verifiedMobile: boolean;
179
- id?: string | undefined;
178
+ role: "host" | "user" | "admin" | "hr" | "sales";
180
179
  skills?: {
181
180
  skill: string;
182
181
  skillExpertise: number;
@@ -197,6 +196,7 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
197
196
  wishlist?: string[] | undefined;
198
197
  favBlogs?: string[] | undefined;
199
198
  favPackages?: string[] | undefined;
199
+ id?: string | undefined;
200
200
  selfie?: string | undefined;
201
201
  selfieAction?: string | undefined;
202
202
  jobCount?: number | undefined;
@@ -206,11 +206,11 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
206
206
  verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
207
207
  properties?: {
208
208
  type: string;
209
- name: string;
210
209
  city: string;
211
210
  state: string;
212
211
  country: string;
213
212
  address: string;
213
+ name: string;
214
214
  pinCode?: string | undefined;
215
215
  registrationNumber?: string | undefined;
216
216
  }[] | undefined;
@@ -220,7 +220,6 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
220
220
  businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
221
221
  businessVerificationDenialReason?: string | undefined;
222
222
  }, {
223
- role: "host" | "user" | "admin" | "hr" | "sales";
224
223
  country: string;
225
224
  rating: number;
226
225
  ratingCount: number;
@@ -238,7 +237,7 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
238
237
  lastActive: Date;
239
238
  verifiedEmail: boolean;
240
239
  verifiedMobile: boolean;
241
- id?: string | undefined;
240
+ role: "host" | "user" | "admin" | "hr" | "sales";
242
241
  skills?: {
243
242
  skill: string;
244
243
  skillExpertise: number;
@@ -259,6 +258,7 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
259
258
  wishlist?: string[] | undefined;
260
259
  favBlogs?: string[] | undefined;
261
260
  favPackages?: string[] | undefined;
261
+ id?: string | undefined;
262
262
  selfie?: string | undefined;
263
263
  selfieAction?: string | undefined;
264
264
  jobCount?: number | undefined;
@@ -268,11 +268,11 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
268
268
  verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
269
269
  properties?: {
270
270
  type: string;
271
- name: string;
272
271
  city: string;
273
272
  state: string;
274
273
  country: string;
275
274
  address: string;
275
+ name: string;
276
276
  pinCode?: string | undefined;
277
277
  registrationNumber?: string | undefined;
278
278
  }[] | undefined;
@@ -289,17 +289,17 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
289
289
  phoneNumber: z.ZodString;
290
290
  email: z.ZodString;
291
291
  }, "strip", z.ZodTypeAny, {
292
- role: "host" | "user" | "admin" | "hr" | "sales";
293
292
  username: string;
294
293
  email: string;
295
294
  phoneNumber: string;
296
295
  countryCode: string;
297
- }, {
298
296
  role: "host" | "user" | "admin" | "hr" | "sales";
297
+ }, {
299
298
  username: string;
300
299
  email: string;
301
300
  phoneNumber: string;
302
301
  countryCode: string;
302
+ role: "host" | "user" | "admin" | "hr" | "sales";
303
303
  }>, "many">>;
304
304
  status: z.ZodEnum<["draft", "archived", "pending", "open", "closed", "denied", "deleted"]>;
305
305
  adminApproval: z.ZodBoolean;
@@ -336,7 +336,6 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
336
336
  ratingCount: number;
337
337
  reviewCount: number;
338
338
  hostId: {
339
- role: "host" | "user" | "admin" | "hr" | "sales";
340
339
  country: string;
341
340
  rating: number;
342
341
  ratingCount: number;
@@ -354,7 +353,7 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
354
353
  lastActive: Date;
355
354
  verifiedEmail: boolean;
356
355
  verifiedMobile: boolean;
357
- id?: string | undefined;
356
+ role: "host" | "user" | "admin" | "hr" | "sales";
358
357
  skills?: {
359
358
  skill: string;
360
359
  skillExpertise: number;
@@ -375,6 +374,7 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
375
374
  wishlist?: string[] | undefined;
376
375
  favBlogs?: string[] | undefined;
377
376
  favPackages?: string[] | undefined;
377
+ id?: string | undefined;
378
378
  selfie?: string | undefined;
379
379
  selfieAction?: string | undefined;
380
380
  jobCount?: number | undefined;
@@ -384,11 +384,11 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
384
384
  verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
385
385
  properties?: {
386
386
  type: string;
387
- name: string;
388
387
  city: string;
389
388
  state: string;
390
389
  country: string;
391
390
  address: string;
391
+ name: string;
392
392
  pinCode?: string | undefined;
393
393
  registrationNumber?: string | undefined;
394
394
  }[] | undefined;
@@ -418,11 +418,11 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
418
418
  pendingApplicationCount?: number | undefined;
419
419
  hostingType?: string | undefined;
420
420
  applicationObservers?: {
421
- role: "host" | "user" | "admin" | "hr" | "sales";
422
421
  username: string;
423
422
  email: string;
424
423
  phoneNumber: string;
425
424
  countryCode: string;
425
+ role: "host" | "user" | "admin" | "hr" | "sales";
426
426
  }[] | undefined;
427
427
  createdAt?: Date | undefined;
428
428
  updatedAt?: Date | undefined;
@@ -455,7 +455,6 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
455
455
  ratingCount: number;
456
456
  reviewCount: number;
457
457
  hostId: {
458
- role: "host" | "user" | "admin" | "hr" | "sales";
459
458
  country: string;
460
459
  rating: number;
461
460
  ratingCount: number;
@@ -473,7 +472,7 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
473
472
  lastActive: Date;
474
473
  verifiedEmail: boolean;
475
474
  verifiedMobile: boolean;
476
- id?: string | undefined;
475
+ role: "host" | "user" | "admin" | "hr" | "sales";
477
476
  skills?: {
478
477
  skill: string;
479
478
  skillExpertise: number;
@@ -494,6 +493,7 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
494
493
  wishlist?: string[] | undefined;
495
494
  favBlogs?: string[] | undefined;
496
495
  favPackages?: string[] | undefined;
496
+ id?: string | undefined;
497
497
  selfie?: string | undefined;
498
498
  selfieAction?: string | undefined;
499
499
  jobCount?: number | undefined;
@@ -503,11 +503,11 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
503
503
  verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
504
504
  properties?: {
505
505
  type: string;
506
- name: string;
507
506
  city: string;
508
507
  state: string;
509
508
  country: string;
510
509
  address: string;
510
+ name: string;
511
511
  pinCode?: string | undefined;
512
512
  registrationNumber?: string | undefined;
513
513
  }[] | undefined;
@@ -537,11 +537,11 @@ export declare const VolunteerOpportunitySchema: z.ZodObject<{
537
537
  pendingApplicationCount?: number | undefined;
538
538
  hostingType?: string | undefined;
539
539
  applicationObservers?: {
540
- role: "host" | "user" | "admin" | "hr" | "sales";
541
540
  username: string;
542
541
  email: string;
543
542
  phoneNumber: string;
544
543
  countryCode: string;
544
+ role: "host" | "user" | "admin" | "hr" | "sales";
545
545
  }[] | undefined;
546
546
  createdAt?: Date | undefined;
547
547
  updatedAt?: Date | undefined;
@@ -5,6 +5,7 @@ export declare const ReviewSchema: z.ZodObject<{
5
5
  reviewerUsername: z.ZodString;
6
6
  rating: z.ZodNumber;
7
7
  comment: z.ZodString;
8
+ images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8
9
  createdAt: z.ZodDate;
9
10
  updatedAt: z.ZodDate;
10
11
  }, "strict", z.ZodTypeAny, {
@@ -15,6 +16,7 @@ export declare const ReviewSchema: z.ZodObject<{
15
16
  comment: string;
16
17
  createdAt: Date;
17
18
  updatedAt: Date;
19
+ images?: string[] | undefined;
18
20
  }, {
19
21
  _id: string;
20
22
  reviewerPic: string;
@@ -23,18 +25,22 @@ export declare const ReviewSchema: z.ZodObject<{
23
25
  comment: string;
24
26
  createdAt: Date;
25
27
  updatedAt: Date;
28
+ images?: string[] | undefined;
26
29
  }>;
27
30
  export type reviewTargetType = 'opportunity' | 'package' | 'host' | 'user' | 'blog' | 'portfolio' | 'rental' | 'adventure' | 'guide' | 'stay' | 'event';
28
31
  export type Review = z.infer<typeof ReviewSchema>;
29
32
  export declare const reviewBasicSchema: z.ZodObject<{
30
33
  rating: z.ZodNumber;
31
34
  comment: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
35
+ images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
32
36
  }, "strip", z.ZodTypeAny, {
33
37
  rating: number;
34
38
  comment?: string | undefined;
39
+ images?: string[] | undefined;
35
40
  }, {
36
41
  rating: number;
37
42
  comment?: string | undefined;
43
+ images?: string[] | undefined;
38
44
  }>;
39
45
  export type reviewType = z.infer<typeof reviewBasicSchema>;
40
46
  export declare const sampleReviews: Review[];
@@ -1 +1 @@
1
- {"version":3,"file":"review.d.ts","sourceRoot":"","sources":["../../../src/lib/models/review.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;EAQd,CAAC;AAEZ,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;AAExJ,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD,eAAO,MAAM,iBAAiB;;;;;;;;;EAQ5B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE3D,eAAO,MAAM,aAAa,EAAE,MAAM,EAuDjC,CAAA"}
1
+ {"version":3,"file":"review.d.ts","sourceRoot":"","sources":["../../../src/lib/models/review.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;EASd,CAAC;AAEZ,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;AAExJ,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;EAS5B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE3D,eAAO,MAAM,aAAa,EAAE,MAAM,EAuDjC,CAAA"}
@@ -5,6 +5,7 @@ export const ReviewSchema = z.object({
5
5
  reviewerUsername: z.string(),
6
6
  rating: z.number(),
7
7
  comment: z.string(),
8
+ images: z.array(z.string()).optional(),
8
9
  createdAt: z.date(),
9
10
  updatedAt: z.date(),
10
11
  }).strict();
@@ -13,6 +14,7 @@ export const reviewBasicSchema = z.object({
13
14
  message: "Please select a rating",
14
15
  }),
15
16
  comment: z.string().optional().refine((val) => !val || val.trim()?.length >= 5, { message: 'Review must be at least 5 characters' }),
17
+ images: z.array(z.string()).optional(),
16
18
  });
17
19
  export const sampleReviews = [
18
20
  {