hububb-models 1.0.92 → 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.
@@ -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,7 +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").ZodString>;
95
+ createdAt: import("zod").ZodOptional<import("zod").ZodType<FirebaseFirestore.Timestamp, import("zod").ZodTypeDef, FirebaseFirestore.Timestamp>>;
96
96
  }, "strip", import("zod").ZodTypeAny, {
97
97
  id: string;
98
98
  email: string;
@@ -122,7 +122,7 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
122
122
  } | undefined;
123
123
  klevioId?: string | undefined;
124
124
  favorites?: string[] | undefined;
125
- createdAt?: string | undefined;
125
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
126
126
  }, {
127
127
  id: string;
128
128
  email: string;
@@ -152,7 +152,7 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
152
152
  } | undefined;
153
153
  klevioId?: string | undefined;
154
154
  favorites?: string[] | undefined;
155
- createdAt?: string | undefined;
155
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
156
156
  }>>;
157
157
  contentType: import("zod").ZodString;
158
158
  body: import("zod").ZodString;
@@ -199,7 +199,7 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
199
199
  } | undefined;
200
200
  klevioId?: string | undefined;
201
201
  favorites?: string[] | undefined;
202
- createdAt?: string | undefined;
202
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
203
203
  } | undefined;
204
204
  lastSeen?: FirebaseFirestore.Timestamp | undefined;
205
205
  externalMessageId?: string | undefined;
@@ -242,7 +242,7 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
242
242
  } | undefined;
243
243
  klevioId?: string | undefined;
244
244
  favorites?: string[] | undefined;
245
- createdAt?: string | undefined;
245
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
246
246
  } | undefined;
247
247
  lastSeen?: FirebaseFirestore.Timestamp | undefined;
248
248
  externalMessageId?: string | undefined;
@@ -346,7 +346,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
346
346
  }>>;
347
347
  klevioId: import("zod").ZodOptional<import("zod").ZodString>;
348
348
  favorites: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
349
- createdAt: import("zod").ZodOptional<import("zod").ZodString>;
349
+ createdAt: import("zod").ZodOptional<import("zod").ZodType<FirebaseFirestore.Timestamp, import("zod").ZodTypeDef, FirebaseFirestore.Timestamp>>;
350
350
  }, "strip", import("zod").ZodTypeAny, {
351
351
  id: string;
352
352
  email: string;
@@ -376,7 +376,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
376
376
  } | undefined;
377
377
  klevioId?: string | undefined;
378
378
  favorites?: string[] | undefined;
379
- createdAt?: string | undefined;
379
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
380
380
  }, {
381
381
  id: string;
382
382
  email: string;
@@ -406,7 +406,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
406
406
  } | undefined;
407
407
  klevioId?: string | undefined;
408
408
  favorites?: string[] | undefined;
409
- createdAt?: string | undefined;
409
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
410
410
  }>>;
411
411
  contentType: import("zod").ZodString;
412
412
  body: import("zod").ZodString;
@@ -453,7 +453,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
453
453
  } | undefined;
454
454
  klevioId?: string | undefined;
455
455
  favorites?: string[] | undefined;
456
- createdAt?: string | undefined;
456
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
457
457
  } | undefined;
458
458
  lastSeen?: FirebaseFirestore.Timestamp | undefined;
459
459
  externalMessageId?: string | undefined;
@@ -496,7 +496,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
496
496
  } | undefined;
497
497
  klevioId?: string | undefined;
498
498
  favorites?: string[] | undefined;
499
- createdAt?: string | undefined;
499
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
500
500
  } | undefined;
501
501
  lastSeen?: FirebaseFirestore.Timestamp | undefined;
502
502
  externalMessageId?: string | undefined;
@@ -592,7 +592,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
592
592
  }>>;
593
593
  klevioId: import("zod").ZodOptional<import("zod").ZodString>;
594
594
  favorites: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
595
- createdAt: import("zod").ZodOptional<import("zod").ZodString>;
595
+ createdAt: import("zod").ZodOptional<import("zod").ZodType<FirebaseFirestore.Timestamp, import("zod").ZodTypeDef, FirebaseFirestore.Timestamp>>;
596
596
  }, "strip", import("zod").ZodTypeAny, {
597
597
  id: string;
598
598
  email: string;
@@ -622,7 +622,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
622
622
  } | undefined;
623
623
  klevioId?: string | undefined;
624
624
  favorites?: string[] | undefined;
625
- createdAt?: string | undefined;
625
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
626
626
  }, {
627
627
  id: string;
628
628
  email: string;
@@ -652,7 +652,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
652
652
  } | undefined;
653
653
  klevioId?: string | undefined;
654
654
  favorites?: string[] | undefined;
655
- createdAt?: string | undefined;
655
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
656
656
  }>, "many">>;
657
657
  type: import("zod").ZodUnion<[import("zod").ZodLiteral<"ONE_TO_ONE">, import("zod").ZodLiteral<"GROUP">]>;
658
658
  source: import("zod").ZodOptional<import("zod").ZodString>;
@@ -705,7 +705,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
705
705
  } | undefined;
706
706
  klevioId?: string | undefined;
707
707
  favorites?: string[] | undefined;
708
- createdAt?: string | undefined;
708
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
709
709
  } | undefined;
710
710
  lastSeen?: FirebaseFirestore.Timestamp | undefined;
711
711
  externalMessageId?: string | undefined;
@@ -740,7 +740,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
740
740
  } | undefined;
741
741
  klevioId?: string | undefined;
742
742
  favorites?: string[] | undefined;
743
- createdAt?: string | undefined;
743
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
744
744
  }[] | undefined;
745
745
  externalThreadId?: string | undefined;
746
746
  externalSource?: string | undefined;
@@ -790,7 +790,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
790
790
  } | undefined;
791
791
  klevioId?: string | undefined;
792
792
  favorites?: string[] | undefined;
793
- createdAt?: string | undefined;
793
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
794
794
  } | undefined;
795
795
  lastSeen?: FirebaseFirestore.Timestamp | undefined;
796
796
  externalMessageId?: string | undefined;
@@ -825,7 +825,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
825
825
  } | undefined;
826
826
  klevioId?: string | undefined;
827
827
  favorites?: string[] | undefined;
828
- createdAt?: string | undefined;
828
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
829
829
  }[] | undefined;
830
830
  externalThreadId?: string | undefined;
831
831
  externalSource?: string | undefined;
@@ -87,7 +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").ZodString>;
90
+ createdAt: import("zod").ZodOptional<import("zod").ZodType<FirebaseFirestore.Timestamp, import("zod").ZodTypeDef, FirebaseFirestore.Timestamp>>;
91
91
  }, "strip", import("zod").ZodTypeAny, {
92
92
  id: string;
93
93
  email: string;
@@ -117,7 +117,7 @@ export declare const UserSchema: import("zod").ZodObject<{
117
117
  } | undefined;
118
118
  klevioId?: string | undefined;
119
119
  favorites?: string[] | undefined;
120
- createdAt?: string | undefined;
120
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
121
121
  }, {
122
122
  id: string;
123
123
  email: string;
@@ -147,5 +147,5 @@ export declare const UserSchema: import("zod").ZodObject<{
147
147
  } | undefined;
148
148
  klevioId?: string | undefined;
149
149
  favorites?: string[] | undefined;
150
- createdAt?: string | undefined;
150
+ createdAt?: FirebaseFirestore.Timestamp | undefined;
151
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,5 +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)())),
42
- createdAt: (0, zod_1.optional)((0, zod_1.string)()),
43
+ createdAt: (0, zod_1.optional)(helpers_1.firestoreTimestampSchema),
43
44
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hububb-models",
3
- "version": "1.0.92",
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",