hububb-saas-shared 1.0.51 → 1.0.52

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.
@@ -308,7 +308,74 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
308
308
  checkedOutMark: import("zod").ZodOptional<import("zod").ZodDate>;
309
309
  threadId: import("zod").ZodOptional<import("zod").ZodString>;
310
310
  }, "id" | "status" | "otaName" | "propertyId" | "checkIn" | "checkOut">, {
311
- listingNickname: import("zod").ZodOptional<import("zod").ZodString>;
311
+ propertyNickname: import("zod").ZodOptional<import("zod").ZodString>;
312
+ property: import("zod").ZodOptional<import("zod").ZodObject<{
313
+ id: import("zod").ZodNumber;
314
+ title: import("zod").ZodString;
315
+ description: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
316
+ nickname: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
317
+ createdAt: import("zod").ZodDate;
318
+ updatedAt: import("zod").ZodDate;
319
+ userId: import("zod").ZodString;
320
+ propertyType: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
321
+ listingType: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
322
+ bedrooms: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
323
+ bathrooms: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
324
+ capacity: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
325
+ beds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
326
+ checkInTime: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
327
+ checkOutTime: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
328
+ channexId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
329
+ hububbId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
330
+ channexRoomTypeId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
331
+ minimumNights: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
332
+ maximumNights: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
333
+ area: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
334
+ }, "strip", import("zod").ZodTypeAny, {
335
+ id: number;
336
+ title: string;
337
+ createdAt: Date;
338
+ updatedAt: Date;
339
+ userId: string;
340
+ area?: number | null | undefined;
341
+ description?: string | null | undefined;
342
+ nickname?: string | null | undefined;
343
+ propertyType?: string | null | undefined;
344
+ listingType?: string | null | undefined;
345
+ bedrooms?: number | null | undefined;
346
+ bathrooms?: number | null | undefined;
347
+ capacity?: number | null | undefined;
348
+ beds?: number | null | undefined;
349
+ checkInTime?: string | null | undefined;
350
+ checkOutTime?: string | null | undefined;
351
+ channexId?: string | null | undefined;
352
+ hububbId?: string | null | undefined;
353
+ channexRoomTypeId?: string | null | undefined;
354
+ minimumNights?: number | null | undefined;
355
+ maximumNights?: number | null | undefined;
356
+ }, {
357
+ id: number;
358
+ title: string;
359
+ createdAt: Date;
360
+ updatedAt: Date;
361
+ userId: string;
362
+ area?: number | null | undefined;
363
+ description?: string | null | undefined;
364
+ nickname?: string | null | undefined;
365
+ propertyType?: string | null | undefined;
366
+ listingType?: string | null | undefined;
367
+ bedrooms?: number | null | undefined;
368
+ bathrooms?: number | null | undefined;
369
+ capacity?: number | null | undefined;
370
+ beds?: number | null | undefined;
371
+ checkInTime?: string | null | undefined;
372
+ checkOutTime?: string | null | undefined;
373
+ channexId?: string | null | undefined;
374
+ hububbId?: string | null | undefined;
375
+ channexRoomTypeId?: string | null | undefined;
376
+ minimumNights?: number | null | undefined;
377
+ maximumNights?: number | null | undefined;
378
+ }>>;
312
379
  }>, "strip", import("zod").ZodTypeAny, {
313
380
  id: number;
314
381
  status: "CONFIRMED" | "CANCELLED";
@@ -316,7 +383,30 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
316
383
  propertyId: number;
317
384
  checkIn: Date;
318
385
  checkOut: Date;
319
- listingNickname?: string | undefined;
386
+ property?: {
387
+ id: number;
388
+ title: string;
389
+ createdAt: Date;
390
+ updatedAt: Date;
391
+ userId: string;
392
+ area?: number | null | undefined;
393
+ description?: string | null | undefined;
394
+ nickname?: string | null | undefined;
395
+ propertyType?: string | null | undefined;
396
+ listingType?: string | null | undefined;
397
+ bedrooms?: number | null | undefined;
398
+ bathrooms?: number | null | undefined;
399
+ capacity?: number | null | undefined;
400
+ beds?: number | null | undefined;
401
+ checkInTime?: string | null | undefined;
402
+ checkOutTime?: string | null | undefined;
403
+ channexId?: string | null | undefined;
404
+ hububbId?: string | null | undefined;
405
+ channexRoomTypeId?: string | null | undefined;
406
+ minimumNights?: number | null | undefined;
407
+ maximumNights?: number | null | undefined;
408
+ } | undefined;
409
+ propertyNickname?: string | undefined;
320
410
  }, {
321
411
  id: number;
322
412
  status: "CONFIRMED" | "CANCELLED";
@@ -324,7 +414,30 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
324
414
  propertyId: number;
325
415
  checkIn: Date;
326
416
  checkOut: Date;
327
- listingNickname?: string | undefined;
417
+ property?: {
418
+ id: number;
419
+ title: string;
420
+ createdAt: Date;
421
+ updatedAt: Date;
422
+ userId: string;
423
+ area?: number | null | undefined;
424
+ description?: string | null | undefined;
425
+ nickname?: string | null | undefined;
426
+ propertyType?: string | null | undefined;
427
+ listingType?: string | null | undefined;
428
+ bedrooms?: number | null | undefined;
429
+ bathrooms?: number | null | undefined;
430
+ capacity?: number | null | undefined;
431
+ beds?: number | null | undefined;
432
+ checkInTime?: string | null | undefined;
433
+ checkOutTime?: string | null | undefined;
434
+ channexId?: string | null | undefined;
435
+ hububbId?: string | null | undefined;
436
+ channexRoomTypeId?: string | null | undefined;
437
+ minimumNights?: number | null | undefined;
438
+ maximumNights?: number | null | undefined;
439
+ } | undefined;
440
+ propertyNickname?: string | undefined;
328
441
  }>>;
329
442
  isInquiryThread: import("zod").ZodOptional<import("zod").ZodBoolean>;
330
443
  }, "strip", import("zod").ZodTypeAny, {
@@ -394,7 +507,30 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
394
507
  propertyId: number;
395
508
  checkIn: Date;
396
509
  checkOut: Date;
397
- listingNickname?: string | undefined;
510
+ property?: {
511
+ id: number;
512
+ title: string;
513
+ createdAt: Date;
514
+ updatedAt: Date;
515
+ userId: string;
516
+ area?: number | null | undefined;
517
+ description?: string | null | undefined;
518
+ nickname?: string | null | undefined;
519
+ propertyType?: string | null | undefined;
520
+ listingType?: string | null | undefined;
521
+ bedrooms?: number | null | undefined;
522
+ bathrooms?: number | null | undefined;
523
+ capacity?: number | null | undefined;
524
+ beds?: number | null | undefined;
525
+ checkInTime?: string | null | undefined;
526
+ checkOutTime?: string | null | undefined;
527
+ channexId?: string | null | undefined;
528
+ hububbId?: string | null | undefined;
529
+ channexRoomTypeId?: string | null | undefined;
530
+ minimumNights?: number | null | undefined;
531
+ maximumNights?: number | null | undefined;
532
+ } | undefined;
533
+ propertyNickname?: string | undefined;
398
534
  } | undefined;
399
535
  isInquiryThread?: boolean | undefined;
400
536
  }, {
@@ -464,7 +600,30 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
464
600
  propertyId: number;
465
601
  checkIn: Date;
466
602
  checkOut: Date;
467
- listingNickname?: string | undefined;
603
+ property?: {
604
+ id: number;
605
+ title: string;
606
+ createdAt: Date;
607
+ updatedAt: Date;
608
+ userId: string;
609
+ area?: number | null | undefined;
610
+ description?: string | null | undefined;
611
+ nickname?: string | null | undefined;
612
+ propertyType?: string | null | undefined;
613
+ listingType?: string | null | undefined;
614
+ bedrooms?: number | null | undefined;
615
+ bathrooms?: number | null | undefined;
616
+ capacity?: number | null | undefined;
617
+ beds?: number | null | undefined;
618
+ checkInTime?: string | null | undefined;
619
+ checkOutTime?: string | null | undefined;
620
+ channexId?: string | null | undefined;
621
+ hububbId?: string | null | undefined;
622
+ channexRoomTypeId?: string | null | undefined;
623
+ minimumNights?: number | null | undefined;
624
+ maximumNights?: number | null | undefined;
625
+ } | undefined;
626
+ propertyNickname?: string | undefined;
468
627
  } | undefined;
469
628
  isInquiryThread?: boolean | undefined;
470
629
  }>;
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
5
5
  const helpers_1 = require("../../helpers");
6
6
  const user_1 = require("../user");
7
7
  const reservation_1 = require("../reservation");
8
+ const property_1 = require("../property");
8
9
  const SeenBySchema = (0, zod_1.record)((0, zod_1.string)(), helpers_1.firestoreTimestampSchema);
9
10
  exports.ChatMessageTypeSchema = (0, zod_1.union)([
10
11
  (0, zod_1.literal)("message"),
@@ -51,7 +52,8 @@ exports.ChatThreadSchema = (0, zod_1.object)({
51
52
  status: true,
52
53
  otaName: true,
53
54
  }).extend({
54
- listingNickname: (0, zod_1.optional)((0, zod_1.string)()),
55
+ propertyNickname: (0, zod_1.optional)((0, zod_1.string)()),
56
+ property: (0, zod_1.optional)(property_1.propertySchema),
55
57
  })),
56
58
  isInquiryThread: (0, zod_1.optional)((0, zod_1.boolean)()),
57
59
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "hububb-saas-shared",
4
- "version": "1.0.51",
4
+ "version": "1.0.52",
5
5
  "description": "This is a shared package for the hububb saas project",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.js",