hububb-models 1.0.91 → 1.0.93

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.
@@ -56,9 +56,9 @@ export declare const BlogSchema: import("zod").ZodObject<{
56
56
  }, "strip", import("zod").ZodTypeAny, {
57
57
  id: string;
58
58
  title: string;
59
+ createdAt: FirebaseFirestore.Timestamp;
59
60
  metaTitle: string;
60
61
  metaDescription: string;
61
- createdAt: FirebaseFirestore.Timestamp;
62
62
  subtitle: string;
63
63
  contentSections: {
64
64
  content: string;
@@ -79,9 +79,9 @@ export declare const BlogSchema: import("zod").ZodObject<{
79
79
  }, {
80
80
  id: string;
81
81
  title: string;
82
+ createdAt: FirebaseFirestore.Timestamp;
82
83
  metaTitle: string;
83
84
  metaDescription: string;
84
- createdAt: FirebaseFirestore.Timestamp;
85
85
  subtitle: string;
86
86
  contentSections: {
87
87
  content: string;
@@ -87,7 +87,6 @@ export declare const ChannexPropertySchema: import("zod").ZodObject<{
87
87
  };
88
88
  title: string;
89
89
  currency: string;
90
- country: string;
91
90
  settings: {
92
91
  min_stay_type: string;
93
92
  allow_availability_autoupdate: boolean;
@@ -100,6 +99,7 @@ export declare const ChannexPropertySchema: import("zod").ZodObject<{
100
99
  max_price?: number | null | undefined;
101
100
  min_price?: number | null | undefined;
102
101
  };
102
+ country: string;
103
103
  city: string;
104
104
  timezone: string;
105
105
  min_stay_type: string;
@@ -133,7 +133,6 @@ export declare const ChannexPropertySchema: import("zod").ZodObject<{
133
133
  };
134
134
  title: string;
135
135
  currency: string;
136
- country: string;
137
136
  settings: {
138
137
  min_stay_type: string;
139
138
  allow_availability_autoupdate: boolean;
@@ -146,6 +145,7 @@ export declare const ChannexPropertySchema: import("zod").ZodObject<{
146
145
  max_price?: number | null | undefined;
147
146
  min_price?: number | null | undefined;
148
147
  };
148
+ country: string;
149
149
  city: string;
150
150
  timezone: string;
151
151
  min_stay_type: string;
@@ -384,7 +384,6 @@ export declare const ChannexPropertySchema: import("zod").ZodObject<{
384
384
  };
385
385
  title: string;
386
386
  currency: string;
387
- country: string;
388
387
  settings: {
389
388
  min_stay_type: string;
390
389
  allow_availability_autoupdate: boolean;
@@ -397,6 +396,7 @@ export declare const ChannexPropertySchema: import("zod").ZodObject<{
397
396
  max_price?: number | null | undefined;
398
397
  min_price?: number | null | undefined;
399
398
  };
399
+ country: string;
400
400
  city: string;
401
401
  timezone: string;
402
402
  min_stay_type: string;
@@ -469,7 +469,6 @@ export declare const ChannexPropertySchema: import("zod").ZodObject<{
469
469
  };
470
470
  title: string;
471
471
  currency: string;
472
- country: string;
473
472
  settings: {
474
473
  min_stay_type: string;
475
474
  allow_availability_autoupdate: boolean;
@@ -482,6 +481,7 @@ export declare const ChannexPropertySchema: import("zod").ZodObject<{
482
481
  max_price?: number | null | undefined;
483
482
  min_price?: number | null | undefined;
484
483
  };
484
+ country: string;
485
485
  city: string;
486
486
  timezone: string;
487
487
  min_stay_type: string;
@@ -92,6 +92,7 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
92
92
  }>>;
93
93
  klevioId: import("zod").ZodOptional<import("zod").ZodString>;
94
94
  favorites: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
95
+ createdAt: import("zod").ZodOptional<import("zod").ZodType<FirebaseFirestore.Timestamp, import("zod").ZodTypeDef, FirebaseFirestore.Timestamp>>;
95
96
  }, "strip", import("zod").ZodTypeAny, {
96
97
  id: string;
97
98
  email: string;
@@ -121,6 +122,7 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
121
122
  } | undefined;
122
123
  klevioId?: string | undefined;
123
124
  favorites?: string[] | undefined;
125
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
124
126
  }, {
125
127
  id: string;
126
128
  email: string;
@@ -150,6 +152,7 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
150
152
  } | undefined;
151
153
  klevioId?: string | undefined;
152
154
  favorites?: string[] | undefined;
155
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
153
156
  }>>;
154
157
  contentType: import("zod").ZodString;
155
158
  body: import("zod").ZodString;
@@ -196,6 +199,7 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
196
199
  } | undefined;
197
200
  klevioId?: string | undefined;
198
201
  favorites?: string[] | undefined;
202
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
199
203
  } | undefined;
200
204
  lastSeen?: FirebaseFirestore.Timestamp | undefined;
201
205
  externalMessageId?: string | undefined;
@@ -238,6 +242,7 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
238
242
  } | undefined;
239
243
  klevioId?: string | undefined;
240
244
  favorites?: string[] | undefined;
245
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
241
246
  } | undefined;
242
247
  lastSeen?: FirebaseFirestore.Timestamp | undefined;
243
248
  externalMessageId?: string | undefined;
@@ -341,6 +346,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
341
346
  }>>;
342
347
  klevioId: import("zod").ZodOptional<import("zod").ZodString>;
343
348
  favorites: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
349
+ createdAt: import("zod").ZodOptional<import("zod").ZodType<FirebaseFirestore.Timestamp, import("zod").ZodTypeDef, FirebaseFirestore.Timestamp>>;
344
350
  }, "strip", import("zod").ZodTypeAny, {
345
351
  id: string;
346
352
  email: string;
@@ -370,6 +376,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
370
376
  } | undefined;
371
377
  klevioId?: string | undefined;
372
378
  favorites?: string[] | undefined;
379
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
373
380
  }, {
374
381
  id: string;
375
382
  email: string;
@@ -399,6 +406,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
399
406
  } | undefined;
400
407
  klevioId?: string | undefined;
401
408
  favorites?: string[] | undefined;
409
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
402
410
  }>>;
403
411
  contentType: import("zod").ZodString;
404
412
  body: import("zod").ZodString;
@@ -445,6 +453,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
445
453
  } | undefined;
446
454
  klevioId?: string | undefined;
447
455
  favorites?: string[] | undefined;
456
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
448
457
  } | undefined;
449
458
  lastSeen?: FirebaseFirestore.Timestamp | undefined;
450
459
  externalMessageId?: string | undefined;
@@ -487,6 +496,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
487
496
  } | undefined;
488
497
  klevioId?: string | undefined;
489
498
  favorites?: string[] | undefined;
499
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
490
500
  } | undefined;
491
501
  lastSeen?: FirebaseFirestore.Timestamp | undefined;
492
502
  externalMessageId?: string | undefined;
@@ -582,6 +592,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
582
592
  }>>;
583
593
  klevioId: import("zod").ZodOptional<import("zod").ZodString>;
584
594
  favorites: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
595
+ createdAt: import("zod").ZodOptional<import("zod").ZodType<FirebaseFirestore.Timestamp, import("zod").ZodTypeDef, FirebaseFirestore.Timestamp>>;
585
596
  }, "strip", import("zod").ZodTypeAny, {
586
597
  id: string;
587
598
  email: string;
@@ -611,6 +622,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
611
622
  } | undefined;
612
623
  klevioId?: string | undefined;
613
624
  favorites?: string[] | undefined;
625
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
614
626
  }, {
615
627
  id: string;
616
628
  email: string;
@@ -640,6 +652,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
640
652
  } | undefined;
641
653
  klevioId?: string | undefined;
642
654
  favorites?: string[] | undefined;
655
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
643
656
  }>, "many">>;
644
657
  type: import("zod").ZodUnion<[import("zod").ZodLiteral<"ONE_TO_ONE">, import("zod").ZodLiteral<"GROUP">]>;
645
658
  source: import("zod").ZodOptional<import("zod").ZodString>;
@@ -692,6 +705,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
692
705
  } | undefined;
693
706
  klevioId?: string | undefined;
694
707
  favorites?: string[] | undefined;
708
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
695
709
  } | undefined;
696
710
  lastSeen?: FirebaseFirestore.Timestamp | undefined;
697
711
  externalMessageId?: string | undefined;
@@ -726,6 +740,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
726
740
  } | undefined;
727
741
  klevioId?: string | undefined;
728
742
  favorites?: string[] | undefined;
743
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
729
744
  }[] | undefined;
730
745
  externalThreadId?: string | undefined;
731
746
  externalSource?: string | undefined;
@@ -775,6 +790,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
775
790
  } | undefined;
776
791
  klevioId?: string | undefined;
777
792
  favorites?: string[] | undefined;
793
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
778
794
  } | undefined;
779
795
  lastSeen?: FirebaseFirestore.Timestamp | undefined;
780
796
  externalMessageId?: string | undefined;
@@ -809,6 +825,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
809
825
  } | undefined;
810
826
  klevioId?: string | undefined;
811
827
  favorites?: string[] | undefined;
828
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
812
829
  }[] | undefined;
813
830
  externalThreadId?: string | undefined;
814
831
  externalSource?: string | undefined;
@@ -87,6 +87,7 @@ export declare const UserSchema: import("zod").ZodObject<{
87
87
  }>>;
88
88
  klevioId: import("zod").ZodOptional<import("zod").ZodString>;
89
89
  favorites: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
90
+ createdAt: import("zod").ZodOptional<import("zod").ZodType<FirebaseFirestore.Timestamp, import("zod").ZodTypeDef, FirebaseFirestore.Timestamp>>;
90
91
  }, "strip", import("zod").ZodTypeAny, {
91
92
  id: string;
92
93
  email: string;
@@ -116,6 +117,7 @@ export declare const UserSchema: import("zod").ZodObject<{
116
117
  } | undefined;
117
118
  klevioId?: string | undefined;
118
119
  favorites?: string[] | undefined;
120
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
119
121
  }, {
120
122
  id: string;
121
123
  email: string;
@@ -145,4 +147,5 @@ export declare const UserSchema: import("zod").ZodObject<{
145
147
  } | undefined;
146
148
  klevioId?: string | undefined;
147
149
  favorites?: string[] | undefined;
150
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
148
151
  }>;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UserSchema = void 0;
4
4
  const zod_1 = require("zod");
5
+ const helpers_1 = require("../helpers");
5
6
  const CountrySchema = (0, zod_1.object)({
6
7
  code: (0, zod_1.optional)((0, zod_1.string)()),
7
8
  name: (0, zod_1.optional)((0, zod_1.string)()),
@@ -39,4 +40,5 @@ exports.UserSchema = (0, zod_1.object)({
39
40
  kyc: (0, zod_1.optional)(KycSchema),
40
41
  klevioId: (0, zod_1.optional)((0, zod_1.string)()),
41
42
  favorites: (0, zod_1.optional)((0, zod_1.array)((0, zod_1.string)())),
43
+ createdAt: (0, zod_1.optional)(helpers_1.firestoreTimestampSchema),
42
44
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hububb-models",
3
- "version": "1.0.91",
3
+ "version": "1.0.93",
4
4
  "description": "Models for Hububb application",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",