hububb-saas-shared 1.0.80 → 1.0.82

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.
@@ -300,7 +300,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
300
300
  photoUrl?: string | undefined;
301
301
  stripeCustomerId?: string | undefined;
302
302
  }>, "many">>;
303
- type: z.ZodUnion<[z.ZodLiteral<"ONE_TO_ONE">, z.ZodLiteral<"GROUP">]>;
303
+ type: z.ZodUnion<[z.ZodLiteral<"ONE_TO_ONE">, z.ZodLiteral<"GROUP">, z.ZodLiteral<"OPERATIONS_GROUP">, z.ZodLiteral<"OPERATIONS_ONE_TO_ONE">]>;
304
304
  source: z.ZodOptional<z.ZodString>;
305
305
  externalThreadId: z.ZodOptional<z.ZodString>;
306
306
  externalSource: z.ZodOptional<z.ZodString>;
@@ -481,8 +481,72 @@ export declare const ChatThreadSchema: z.ZodObject<{
481
481
  whatsappTemplateSent: z.ZodOptional<z.ZodBoolean>;
482
482
  whatsappUserReplied: z.ZodOptional<z.ZodBoolean>;
483
483
  lastWhatsappMessageSentAt: z.ZodOptional<z.ZodType<import("../../helpers").Timestamp, z.ZodTypeDef, import("../../helpers").Timestamp>>;
484
+ landlord: z.ZodOptional<z.ZodObject<Pick<{
485
+ id: z.ZodString;
486
+ name: z.ZodString;
487
+ email: z.ZodString;
488
+ createdAt: z.ZodDate;
489
+ updatedAt: z.ZodDate;
490
+ tierId: z.ZodNumber;
491
+ firstName: z.ZodString;
492
+ lastName: z.ZodString;
493
+ phone: z.ZodString;
494
+ photoUrl: z.ZodOptional<z.ZodString>;
495
+ isOnboardingCompleted: z.ZodBoolean;
496
+ userRoleId: z.ZodNumber;
497
+ stripeCustomerId: z.ZodOptional<z.ZodString>;
498
+ onboardingStep: z.ZodNumber;
499
+ onboardingType: z.ZodUnion<[z.ZodLiteral<"AIRBNB_CONNECT">, z.ZodLiteral<"MANUAL_LISTING">]>;
500
+ }, "name" | "id" | "email" | "firstName" | "lastName" | "phone" | "photoUrl" | "userRoleId">, "strip", z.ZodTypeAny, {
501
+ name: string;
502
+ id: string;
503
+ email: string;
504
+ firstName: string;
505
+ lastName: string;
506
+ phone: string;
507
+ userRoleId: number;
508
+ photoUrl?: string | undefined;
509
+ }, {
510
+ name: string;
511
+ id: string;
512
+ email: string;
513
+ firstName: string;
514
+ lastName: string;
515
+ phone: string;
516
+ userRoleId: number;
517
+ photoUrl?: string | undefined;
518
+ }>>;
519
+ operator: z.ZodOptional<z.ZodObject<Pick<{
520
+ id: z.ZodString;
521
+ name: z.ZodString;
522
+ email: z.ZodString;
523
+ createdAt: z.ZodDate;
524
+ updatedAt: z.ZodDate;
525
+ tierId: z.ZodNumber;
526
+ firstName: z.ZodString;
527
+ lastName: z.ZodString;
528
+ phone: z.ZodString;
529
+ photoUrl: z.ZodOptional<z.ZodString>;
530
+ isOnboardingCompleted: z.ZodBoolean;
531
+ userRoleId: z.ZodNumber;
532
+ stripeCustomerId: z.ZodOptional<z.ZodString>;
533
+ onboardingStep: z.ZodNumber;
534
+ onboardingType: z.ZodUnion<[z.ZodLiteral<"AIRBNB_CONNECT">, z.ZodLiteral<"MANUAL_LISTING">]>;
535
+ }, "name" | "id" | "firstName" | "lastName" | "photoUrl">, "strip", z.ZodTypeAny, {
536
+ name: string;
537
+ id: string;
538
+ firstName: string;
539
+ lastName: string;
540
+ photoUrl?: string | undefined;
541
+ }, {
542
+ name: string;
543
+ id: string;
544
+ firstName: string;
545
+ lastName: string;
546
+ photoUrl?: string | undefined;
547
+ }>>;
484
548
  }, "strip", z.ZodTypeAny, {
485
- type: "ONE_TO_ONE" | "GROUP";
549
+ type: "ONE_TO_ONE" | "GROUP" | "OPERATIONS_GROUP" | "OPERATIONS_ONE_TO_ONE";
486
550
  createdAt: import("../../helpers").Timestamp;
487
551
  updatedAt: import("../../helpers").Timestamp;
488
552
  participantIds: string[];
@@ -583,8 +647,25 @@ export declare const ChatThreadSchema: z.ZodObject<{
583
647
  whatsappTemplateSent?: boolean | undefined;
584
648
  whatsappUserReplied?: boolean | undefined;
585
649
  lastWhatsappMessageSentAt?: import("../../helpers").Timestamp | undefined;
650
+ landlord?: {
651
+ name: string;
652
+ id: string;
653
+ email: string;
654
+ firstName: string;
655
+ lastName: string;
656
+ phone: string;
657
+ userRoleId: number;
658
+ photoUrl?: string | undefined;
659
+ } | undefined;
660
+ operator?: {
661
+ name: string;
662
+ id: string;
663
+ firstName: string;
664
+ lastName: string;
665
+ photoUrl?: string | undefined;
666
+ } | undefined;
586
667
  }, {
587
- type: "ONE_TO_ONE" | "GROUP";
668
+ type: "ONE_TO_ONE" | "GROUP" | "OPERATIONS_GROUP" | "OPERATIONS_ONE_TO_ONE";
588
669
  createdAt: import("../../helpers").Timestamp;
589
670
  updatedAt: import("../../helpers").Timestamp;
590
671
  participantIds: string[];
@@ -685,6 +766,23 @@ export declare const ChatThreadSchema: z.ZodObject<{
685
766
  whatsappTemplateSent?: boolean | undefined;
686
767
  whatsappUserReplied?: boolean | undefined;
687
768
  lastWhatsappMessageSentAt?: import("../../helpers").Timestamp | undefined;
769
+ landlord?: {
770
+ name: string;
771
+ id: string;
772
+ email: string;
773
+ firstName: string;
774
+ lastName: string;
775
+ phone: string;
776
+ userRoleId: number;
777
+ photoUrl?: string | undefined;
778
+ } | undefined;
779
+ operator?: {
780
+ name: string;
781
+ id: string;
782
+ firstName: string;
783
+ lastName: string;
784
+ photoUrl?: string | undefined;
785
+ } | undefined;
688
786
  }>;
689
787
  export declare const MessageAutomationTemplateSchema: z.ZodObject<{
690
788
  id: z.ZodOptional<z.ZodString>;
@@ -34,7 +34,12 @@ exports.ChatThreadSchema = (0, zod_1.object)({
34
34
  lastMessage: (0, zod_1.optional)(exports.ChatMessageSchema),
35
35
  participantIds: (0, zod_1.array)((0, zod_1.string)()),
36
36
  participants: (0, zod_1.optional)((0, zod_1.array)(user_1.userSchema)),
37
- type: (0, zod_1.union)([(0, zod_1.literal)("ONE_TO_ONE"), (0, zod_1.literal)("GROUP")]),
37
+ type: (0, zod_1.union)([
38
+ (0, zod_1.literal)("ONE_TO_ONE"),
39
+ (0, zod_1.literal)("GROUP"),
40
+ (0, zod_1.literal)("OPERATIONS_GROUP"),
41
+ (0, zod_1.literal)("OPERATIONS_ONE_TO_ONE"),
42
+ ]),
38
43
  source: (0, zod_1.optional)((0, zod_1.string)()),
39
44
  externalThreadId: (0, zod_1.optional)((0, zod_1.string)()),
40
45
  externalSource: (0, zod_1.optional)((0, zod_1.string)()),
@@ -60,6 +65,23 @@ exports.ChatThreadSchema = (0, zod_1.object)({
60
65
  whatsappTemplateSent: (0, zod_1.optional)((0, zod_1.boolean)()),
61
66
  whatsappUserReplied: (0, zod_1.optional)((0, zod_1.boolean)()),
62
67
  lastWhatsappMessageSentAt: (0, zod_1.optional)(helpers_1.firestoreTimestampSchema),
68
+ landlord: (0, zod_1.optional)(user_1.userSchema.pick({
69
+ id: true,
70
+ name: true,
71
+ photoUrl: true,
72
+ firstName: true,
73
+ lastName: true,
74
+ email: true,
75
+ phone: true,
76
+ userRoleId: true,
77
+ })),
78
+ operator: (0, zod_1.optional)(user_1.userSchema.pick({
79
+ id: true,
80
+ name: true,
81
+ photoUrl: true,
82
+ firstName: true,
83
+ lastName: true,
84
+ })),
63
85
  });
64
86
  exports.MessageAutomationTemplateSchema = (0, zod_1.object)({
65
87
  id: (0, zod_1.optional)((0, zod_1.string)()),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "hububb-saas-shared",
4
- "version": "1.0.80",
4
+ "version": "1.0.82",
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",