hububb-models 1.1.13 → 1.1.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -684,6 +684,121 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
684
684
  needsAttention: import("zod").ZodArray<import("zod").ZodString, "many">;
685
685
  needsAttentionMap: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>;
686
686
  tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
687
+ reservation: import("zod").ZodOptional<import("zod").ZodObject<Pick<{
688
+ id: import("zod").ZodString;
689
+ createdAt: import("zod").ZodOptional<import("zod").ZodType<import("@firebase/firestore-types").Timestamp, import("zod").ZodTypeDef, import("@firebase/firestore-types").Timestamp>>;
690
+ externalId: import("zod").ZodOptional<import("zod").ZodString>;
691
+ channexId: import("zod").ZodOptional<import("zod").ZodString>;
692
+ checkIn: import("zod").ZodOptional<import("zod").ZodType<import("@firebase/firestore-types").Timestamp, import("zod").ZodTypeDef, import("@firebase/firestore-types").Timestamp>>;
693
+ checkOut: import("zod").ZodOptional<import("zod").ZodType<import("@firebase/firestore-types").Timestamp, import("zod").ZodTypeDef, import("@firebase/firestore-types").Timestamp>>;
694
+ status: import("zod").ZodOptional<import("zod").ZodString>;
695
+ statusDescription: import("zod").ZodOptional<import("zod").ZodString>;
696
+ guest: import("zod").ZodOptional<import("zod").ZodObject<{
697
+ id: import("zod").ZodOptional<import("zod").ZodString>;
698
+ externalId: import("zod").ZodOptional<import("zod").ZodString>;
699
+ fullName: import("zod").ZodOptional<import("zod").ZodString>;
700
+ email: import("zod").ZodOptional<import("zod").ZodString>;
701
+ ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
702
+ phone: import("zod").ZodOptional<import("zod").ZodString>;
703
+ avatarUrl: import("zod").ZodOptional<import("zod").ZodString>;
704
+ }, "strip", import("zod").ZodTypeAny, {
705
+ id?: string | undefined;
706
+ email?: string | undefined;
707
+ phone?: string | undefined;
708
+ fullName?: string | undefined;
709
+ externalId?: string | undefined;
710
+ ids?: string[] | undefined;
711
+ avatarUrl?: string | undefined;
712
+ }, {
713
+ id?: string | undefined;
714
+ email?: string | undefined;
715
+ phone?: string | undefined;
716
+ fullName?: string | undefined;
717
+ externalId?: string | undefined;
718
+ ids?: string[] | undefined;
719
+ avatarUrl?: string | undefined;
720
+ }>>;
721
+ listing: import("zod").ZodOptional<import("zod").ZodObject<{
722
+ id: import("zod").ZodOptional<import("zod").ZodString>;
723
+ externalId: import("zod").ZodOptional<import("zod").ZodString>;
724
+ title: import("zod").ZodOptional<import("zod").ZodString>;
725
+ picture: import("zod").ZodOptional<import("zod").ZodString>;
726
+ }, "strip", import("zod").ZodTypeAny, {
727
+ id?: string | undefined;
728
+ picture?: string | undefined;
729
+ title?: string | undefined;
730
+ externalId?: string | undefined;
731
+ }, {
732
+ id?: string | undefined;
733
+ picture?: string | undefined;
734
+ title?: string | undefined;
735
+ externalId?: string | undefined;
736
+ }>>;
737
+ klevio: import("zod").ZodOptional<import("zod").ZodObject<{
738
+ keyId: import("zod").ZodOptional<import("zod").ZodString>;
739
+ from: import("zod").ZodOptional<import("zod").ZodType<import("@firebase/firestore-types").Timestamp, import("zod").ZodTypeDef, import("@firebase/firestore-types").Timestamp>>;
740
+ to: import("zod").ZodOptional<import("zod").ZodType<import("@firebase/firestore-types").Timestamp, import("zod").ZodTypeDef, import("@firebase/firestore-types").Timestamp>>;
741
+ keyholderId: import("zod").ZodOptional<import("zod").ZodString>;
742
+ keyholderEmail: import("zod").ZodOptional<import("zod").ZodString>;
743
+ propertyId: import("zod").ZodOptional<import("zod").ZodString>;
744
+ }, "strip", import("zod").ZodTypeAny, {
745
+ keyId?: string | undefined;
746
+ from?: import("@firebase/firestore-types").Timestamp | undefined;
747
+ to?: import("@firebase/firestore-types").Timestamp | undefined;
748
+ keyholderId?: string | undefined;
749
+ keyholderEmail?: string | undefined;
750
+ propertyId?: string | undefined;
751
+ }, {
752
+ keyId?: string | undefined;
753
+ from?: import("@firebase/firestore-types").Timestamp | undefined;
754
+ to?: import("@firebase/firestore-types").Timestamp | undefined;
755
+ keyholderId?: string | undefined;
756
+ keyholderEmail?: string | undefined;
757
+ propertyId?: string | undefined;
758
+ }>>;
759
+ refNumber: import("zod").ZodOptional<import("zod").ZodString>;
760
+ money: import("zod").ZodOptional<import("zod").ZodAny>;
761
+ source: import("zod").ZodOptional<import("zod").ZodString>;
762
+ total: import("zod").ZodOptional<import("zod").ZodNumber>;
763
+ guests: import("zod").ZodOptional<import("zod").ZodNumber>;
764
+ adults: import("zod").ZodOptional<import("zod").ZodNumber>;
765
+ children: import("zod").ZodOptional<import("zod").ZodNumber>;
766
+ inboxId: import("zod").ZodOptional<import("zod").ZodNumber>;
767
+ checkedInMark: import("zod").ZodOptional<import("zod").ZodType<import("@firebase/firestore-types").Timestamp, import("zod").ZodTypeDef, import("@firebase/firestore-types").Timestamp>>;
768
+ checkedOutMark: import("zod").ZodOptional<import("zod").ZodType<import("@firebase/firestore-types").Timestamp, import("zod").ZodTypeDef, import("@firebase/firestore-types").Timestamp>>;
769
+ channexThreadId: import("zod").ZodOptional<import("zod").ZodString>;
770
+ notes: import("zod").ZodOptional<import("zod").ZodString>;
771
+ integrationSource: import("zod").ZodOptional<import("zod").ZodString>;
772
+ }, "id" | "source" | "listing" | "status" | "checkIn" | "checkOut" | "statusDescription" | "integrationSource">, "strip", import("zod").ZodTypeAny, {
773
+ id: string;
774
+ source?: string | undefined;
775
+ listing?: {
776
+ id?: string | undefined;
777
+ picture?: string | undefined;
778
+ title?: string | undefined;
779
+ externalId?: string | undefined;
780
+ } | undefined;
781
+ status?: string | undefined;
782
+ checkIn?: import("@firebase/firestore-types").Timestamp | undefined;
783
+ checkOut?: import("@firebase/firestore-types").Timestamp | undefined;
784
+ statusDescription?: string | undefined;
785
+ integrationSource?: string | undefined;
786
+ }, {
787
+ id: string;
788
+ source?: string | undefined;
789
+ listing?: {
790
+ id?: string | undefined;
791
+ picture?: string | undefined;
792
+ title?: string | undefined;
793
+ externalId?: string | undefined;
794
+ } | undefined;
795
+ status?: string | undefined;
796
+ checkIn?: import("@firebase/firestore-types").Timestamp | undefined;
797
+ checkOut?: import("@firebase/firestore-types").Timestamp | undefined;
798
+ statusDescription?: string | undefined;
799
+ integrationSource?: string | undefined;
800
+ }>>;
801
+ isInquiryThread: import("zod").ZodOptional<import("zod").ZodBoolean>;
687
802
  }, "strip", import("zod").ZodTypeAny, {
688
803
  type: "ONE_TO_ONE" | "GROUP";
689
804
  createdAt: import("@firebase/firestore-types").Timestamp;
@@ -695,6 +810,21 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
695
810
  id?: string | undefined;
696
811
  source?: string | undefined;
697
812
  title?: string | undefined;
813
+ reservation?: {
814
+ id: string;
815
+ source?: string | undefined;
816
+ listing?: {
817
+ id?: string | undefined;
818
+ picture?: string | undefined;
819
+ title?: string | undefined;
820
+ externalId?: string | undefined;
821
+ } | undefined;
822
+ status?: string | undefined;
823
+ checkIn?: import("@firebase/firestore-types").Timestamp | undefined;
824
+ checkOut?: import("@firebase/firestore-types").Timestamp | undefined;
825
+ statusDescription?: string | undefined;
826
+ integrationSource?: string | undefined;
827
+ } | undefined;
698
828
  lastMessage?: {
699
829
  id: string;
700
830
  body: string;
@@ -777,6 +907,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
777
907
  externalSource?: string | undefined;
778
908
  isImportant?: boolean | undefined;
779
909
  tags?: string[] | undefined;
910
+ isInquiryThread?: boolean | undefined;
780
911
  }, {
781
912
  type: "ONE_TO_ONE" | "GROUP";
782
913
  createdAt: import("@firebase/firestore-types").Timestamp;
@@ -788,6 +919,21 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
788
919
  id?: string | undefined;
789
920
  source?: string | undefined;
790
921
  title?: string | undefined;
922
+ reservation?: {
923
+ id: string;
924
+ source?: string | undefined;
925
+ listing?: {
926
+ id?: string | undefined;
927
+ picture?: string | undefined;
928
+ title?: string | undefined;
929
+ externalId?: string | undefined;
930
+ } | undefined;
931
+ status?: string | undefined;
932
+ checkIn?: import("@firebase/firestore-types").Timestamp | undefined;
933
+ checkOut?: import("@firebase/firestore-types").Timestamp | undefined;
934
+ statusDescription?: string | undefined;
935
+ integrationSource?: string | undefined;
936
+ } | undefined;
791
937
  lastMessage?: {
792
938
  id: string;
793
939
  body: string;
@@ -870,6 +1016,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
870
1016
  externalSource?: string | undefined;
871
1017
  isImportant?: boolean | undefined;
872
1018
  tags?: string[] | undefined;
1019
+ isInquiryThread?: boolean | undefined;
873
1020
  }>;
874
1021
  export declare const MessageAutomationTemplateSchema: import("zod").ZodObject<{
875
1022
  id: import("zod").ZodOptional<import("zod").ZodString>;
@@ -4,6 +4,7 @@ exports.SavedReplySchema = exports.MessageAutomationTemplateSchema = exports.Cha
4
4
  const zod_1 = require("zod");
5
5
  const helpers_1 = require("../helpers");
6
6
  const user_1 = require("./user");
7
+ const reservation_1 = require("./reservation");
7
8
  const SeenBySchema = (0, zod_1.record)((0, zod_1.string)(), helpers_1.firestoreTimestampSchema);
8
9
  exports.ChatMessageTypeSchema = (0, zod_1.union)([
9
10
  (0, zod_1.literal)("message"),
@@ -41,6 +42,17 @@ exports.ChatThreadSchema = (0, zod_1.object)({
41
42
  needsAttention: (0, zod_1.array)((0, zod_1.string)()),
42
43
  needsAttentionMap: (0, zod_1.record)((0, zod_1.string)(), (0, zod_1.boolean)()),
43
44
  tags: (0, zod_1.optional)((0, zod_1.array)((0, zod_1.string)())),
45
+ reservation: (0, zod_1.optional)(reservation_1.ReservationSchema.pick({
46
+ id: true,
47
+ checkIn: true,
48
+ checkOut: true,
49
+ listing: true,
50
+ status: true,
51
+ source: true,
52
+ integrationSource: true,
53
+ statusDescription: true,
54
+ })),
55
+ isInquiryThread: (0, zod_1.optional)((0, zod_1.boolean)()),
44
56
  });
45
57
  exports.MessageAutomationTemplateSchema = (0, zod_1.object)({
46
58
  id: (0, zod_1.optional)((0, zod_1.string)()),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hububb-models",
3
- "version": "1.1.13",
3
+ "version": "1.1.15",
4
4
  "description": "Models for Hububb application",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",