hububb-models 1.0.72 → 1.0.74

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.
@@ -155,6 +155,8 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
155
155
  body: import("zod").ZodString;
156
156
  seen: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("@firebase/firestore").Timestamp, import("zod").ZodTypeDef, import("@firebase/firestore").Timestamp>>;
157
157
  lastSeen: import("zod").ZodOptional<import("zod").ZodType<import("@firebase/firestore").Timestamp, import("zod").ZodTypeDef, import("@firebase/firestore").Timestamp>>;
158
+ source: import("zod").ZodOptional<import("zod").ZodString>;
159
+ externalMessageId: import("zod").ZodOptional<import("zod").ZodString>;
158
160
  }, "strip", import("zod").ZodTypeAny, {
159
161
  id: string;
160
162
  body: string;
@@ -163,6 +165,7 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
163
165
  authorId: string;
164
166
  contentType: string;
165
167
  seen: Record<string, import("@firebase/firestore").Timestamp>;
168
+ source?: string | undefined;
166
169
  author?: {
167
170
  id: string;
168
171
  email: string;
@@ -194,6 +197,7 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
194
197
  favorites?: string[] | undefined;
195
198
  } | undefined;
196
199
  lastSeen?: import("@firebase/firestore").Timestamp | undefined;
200
+ externalMessageId?: string | undefined;
197
201
  }, {
198
202
  id: string;
199
203
  body: string;
@@ -202,6 +206,7 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
202
206
  authorId: string;
203
207
  contentType: string;
204
208
  seen: Record<string, import("@firebase/firestore").Timestamp>;
209
+ source?: string | undefined;
205
210
  author?: {
206
211
  id: string;
207
212
  email: string;
@@ -233,6 +238,7 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
233
238
  favorites?: string[] | undefined;
234
239
  } | undefined;
235
240
  lastSeen?: import("@firebase/firestore").Timestamp | undefined;
241
+ externalMessageId?: string | undefined;
236
242
  }>;
237
243
  export declare const ChatThreadSchema: import("zod").ZodObject<{
238
244
  id: import("zod").ZodOptional<import("zod").ZodString>;
@@ -395,6 +401,8 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
395
401
  body: import("zod").ZodString;
396
402
  seen: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("@firebase/firestore").Timestamp, import("zod").ZodTypeDef, import("@firebase/firestore").Timestamp>>;
397
403
  lastSeen: import("zod").ZodOptional<import("zod").ZodType<import("@firebase/firestore").Timestamp, import("zod").ZodTypeDef, import("@firebase/firestore").Timestamp>>;
404
+ source: import("zod").ZodOptional<import("zod").ZodString>;
405
+ externalMessageId: import("zod").ZodOptional<import("zod").ZodString>;
398
406
  }, "strip", import("zod").ZodTypeAny, {
399
407
  id: string;
400
408
  body: string;
@@ -403,6 +411,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
403
411
  authorId: string;
404
412
  contentType: string;
405
413
  seen: Record<string, import("@firebase/firestore").Timestamp>;
414
+ source?: string | undefined;
406
415
  author?: {
407
416
  id: string;
408
417
  email: string;
@@ -434,6 +443,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
434
443
  favorites?: string[] | undefined;
435
444
  } | undefined;
436
445
  lastSeen?: import("@firebase/firestore").Timestamp | undefined;
446
+ externalMessageId?: string | undefined;
437
447
  }, {
438
448
  id: string;
439
449
  body: string;
@@ -442,6 +452,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
442
452
  authorId: string;
443
453
  contentType: string;
444
454
  seen: Record<string, import("@firebase/firestore").Timestamp>;
455
+ source?: string | undefined;
445
456
  author?: {
446
457
  id: string;
447
458
  email: string;
@@ -473,6 +484,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
473
484
  favorites?: string[] | undefined;
474
485
  } | undefined;
475
486
  lastSeen?: import("@firebase/firestore").Timestamp | undefined;
487
+ externalMessageId?: string | undefined;
476
488
  }>>;
477
489
  participantIds: import("zod").ZodArray<import("zod").ZodString, "many">;
478
490
  participants: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
@@ -624,12 +636,16 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
624
636
  favorites?: string[] | undefined;
625
637
  }>, "many">>;
626
638
  type: import("zod").ZodUnion<[import("zod").ZodLiteral<"ONE_TO_ONE">, import("zod").ZodLiteral<"GROUP">]>;
639
+ source: import("zod").ZodOptional<import("zod").ZodString>;
640
+ externalThreadId: import("zod").ZodOptional<import("zod").ZodString>;
641
+ externalSource: import("zod").ZodOptional<import("zod").ZodString>;
627
642
  }, "strip", import("zod").ZodTypeAny, {
628
643
  type: "ONE_TO_ONE" | "GROUP";
629
644
  createdAt: import("@firebase/firestore").Timestamp;
630
645
  updatedAt: import("@firebase/firestore").Timestamp;
631
646
  participantIds: string[];
632
647
  id?: string | undefined;
648
+ source?: string | undefined;
633
649
  lastMessage?: {
634
650
  id: string;
635
651
  body: string;
@@ -638,6 +654,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
638
654
  authorId: string;
639
655
  contentType: string;
640
656
  seen: Record<string, import("@firebase/firestore").Timestamp>;
657
+ source?: string | undefined;
641
658
  author?: {
642
659
  id: string;
643
660
  email: string;
@@ -669,6 +686,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
669
686
  favorites?: string[] | undefined;
670
687
  } | undefined;
671
688
  lastSeen?: import("@firebase/firestore").Timestamp | undefined;
689
+ externalMessageId?: string | undefined;
672
690
  } | undefined;
673
691
  participants?: {
674
692
  id: string;
@@ -700,12 +718,15 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
700
718
  klevioId?: string | undefined;
701
719
  favorites?: string[] | undefined;
702
720
  }[] | undefined;
721
+ externalThreadId?: string | undefined;
722
+ externalSource?: string | undefined;
703
723
  }, {
704
724
  type: "ONE_TO_ONE" | "GROUP";
705
725
  createdAt: import("@firebase/firestore").Timestamp;
706
726
  updatedAt: import("@firebase/firestore").Timestamp;
707
727
  participantIds: string[];
708
728
  id?: string | undefined;
729
+ source?: string | undefined;
709
730
  lastMessage?: {
710
731
  id: string;
711
732
  body: string;
@@ -714,6 +735,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
714
735
  authorId: string;
715
736
  contentType: string;
716
737
  seen: Record<string, import("@firebase/firestore").Timestamp>;
738
+ source?: string | undefined;
717
739
  author?: {
718
740
  id: string;
719
741
  email: string;
@@ -745,6 +767,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
745
767
  favorites?: string[] | undefined;
746
768
  } | undefined;
747
769
  lastSeen?: import("@firebase/firestore").Timestamp | undefined;
770
+ externalMessageId?: string | undefined;
748
771
  } | undefined;
749
772
  participants?: {
750
773
  id: string;
@@ -776,4 +799,6 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
776
799
  klevioId?: string | undefined;
777
800
  favorites?: string[] | undefined;
778
801
  }[] | undefined;
802
+ externalThreadId?: string | undefined;
803
+ externalSource?: string | undefined;
779
804
  }>;
@@ -15,6 +15,8 @@ exports.ChatMessageSchema = (0, zod_1.object)({
15
15
  body: (0, zod_1.string)(),
16
16
  seen: SeenBySchema,
17
17
  lastSeen: (0, zod_1.optional)(helpers_1.firestoreTimestampSchema),
18
+ source: (0, zod_1.optional)((0, zod_1.string)()),
19
+ externalMessageId: (0, zod_1.optional)((0, zod_1.string)()),
18
20
  });
19
21
  exports.ChatThreadSchema = (0, zod_1.object)({
20
22
  id: (0, zod_1.optional)((0, zod_1.string)()),
@@ -24,4 +26,7 @@ exports.ChatThreadSchema = (0, zod_1.object)({
24
26
  participantIds: (0, zod_1.array)((0, zod_1.string)()),
25
27
  participants: (0, zod_1.optional)((0, zod_1.array)(user_1.UserSchema)),
26
28
  type: (0, zod_1.union)([(0, zod_1.literal)("ONE_TO_ONE"), (0, zod_1.literal)("GROUP")]),
29
+ source: (0, zod_1.optional)((0, zod_1.string)()),
30
+ externalThreadId: (0, zod_1.optional)((0, zod_1.string)()),
31
+ externalSource: (0, zod_1.optional)((0, zod_1.string)()),
27
32
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hububb-models",
3
- "version": "1.0.72",
3
+ "version": "1.0.74",
4
4
  "description": "Models for Hububb application",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",
@@ -19,6 +19,7 @@
19
19
  "@firebase/firestore": "^4.4.0",
20
20
  "@firebase/firestore-types": "^3.0.0",
21
21
  "@firebase/util": "^1.5.1",
22
+ "hububb-models": "^1.0.72",
22
23
  "lodash": "^4.17.21",
23
24
  "moment": "^2.29.4",
24
25
  "zod": "^3.22.4"