hububb-models 1.0.77 → 1.0.79
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.
- package/dist/helpers/index.d.ts +1 -1
- package/dist/helpers/index.js +1 -1
- package/dist/schemas/apaleo/offer.d.ts +12 -12
- package/dist/schemas/apaleo/reservation.d.ts +8 -8
- package/dist/schemas/blog.d.ts +3 -3
- package/dist/schemas/channex/booking.d.ts +6 -6
- package/dist/schemas/channex/property.d.ts +12 -12
- package/dist/schemas/channex/thread.d.ts +10 -10
- package/dist/schemas/listing.d.ts +49 -49
- package/dist/schemas/reservation.d.ts +19 -19
- package/dist/schemas/thread.d.ts +38 -30
- package/dist/schemas/thread.js +1 -0
- package/package.json +2 -1
package/dist/helpers/index.d.ts
CHANGED
package/dist/helpers/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.firestoreTimestampSchema = void 0;
|
4
|
-
const firestore_1 = require("
|
4
|
+
const firestore_1 = require("firebase-admin/firestore");
|
5
5
|
const zod_1 = require("zod");
|
6
6
|
exports.firestoreTimestampSchema = zod_1.z.instanceof(firestore_1.Timestamp);
|
@@ -270,23 +270,23 @@ export declare const ApaleoOfferSchema: import("zod").ZodObject<{
|
|
270
270
|
amount: number;
|
271
271
|
}>;
|
272
272
|
}, "strip", import("zod").ZodTypeAny, {
|
273
|
-
vatType: string;
|
274
|
-
vatPercent: number;
|
275
273
|
net: {
|
276
274
|
currency: string;
|
277
275
|
amount: number;
|
278
276
|
};
|
277
|
+
vatType: string;
|
278
|
+
vatPercent: number;
|
279
279
|
tax: {
|
280
280
|
currency: string;
|
281
281
|
amount: number;
|
282
282
|
};
|
283
283
|
}, {
|
284
|
-
vatType: string;
|
285
|
-
vatPercent: number;
|
286
284
|
net: {
|
287
285
|
currency: string;
|
288
286
|
amount: number;
|
289
287
|
};
|
288
|
+
vatType: string;
|
289
|
+
vatPercent: number;
|
290
290
|
tax: {
|
291
291
|
currency: string;
|
292
292
|
amount: number;
|
@@ -380,12 +380,12 @@ export declare const ApaleoOfferSchema: import("zod").ZodObject<{
|
|
380
380
|
};
|
381
381
|
}[] | undefined;
|
382
382
|
taxDetails?: {
|
383
|
-
vatType: string;
|
384
|
-
vatPercent: number;
|
385
383
|
net: {
|
386
384
|
currency: string;
|
387
385
|
amount: number;
|
388
386
|
};
|
387
|
+
vatType: string;
|
388
|
+
vatPercent: number;
|
389
389
|
tax: {
|
390
390
|
currency: string;
|
391
391
|
amount: number;
|
@@ -468,12 +468,12 @@ export declare const ApaleoOfferSchema: import("zod").ZodObject<{
|
|
468
468
|
};
|
469
469
|
}[] | undefined;
|
470
470
|
taxDetails?: {
|
471
|
-
vatType: string;
|
472
|
-
vatPercent: number;
|
473
471
|
net: {
|
474
472
|
currency: string;
|
475
473
|
amount: number;
|
476
474
|
};
|
475
|
+
vatType: string;
|
476
|
+
vatPercent: number;
|
477
477
|
tax: {
|
478
478
|
currency: string;
|
479
479
|
amount: number;
|
@@ -564,12 +564,12 @@ export declare const ApaleoOfferSchema: import("zod").ZodObject<{
|
|
564
564
|
};
|
565
565
|
}[] | undefined;
|
566
566
|
taxDetails?: {
|
567
|
-
vatType: string;
|
568
|
-
vatPercent: number;
|
569
567
|
net: {
|
570
568
|
currency: string;
|
571
569
|
amount: number;
|
572
570
|
};
|
571
|
+
vatType: string;
|
572
|
+
vatPercent: number;
|
573
573
|
tax: {
|
574
574
|
currency: string;
|
575
575
|
amount: number;
|
@@ -660,12 +660,12 @@ export declare const ApaleoOfferSchema: import("zod").ZodObject<{
|
|
660
660
|
};
|
661
661
|
}[] | undefined;
|
662
662
|
taxDetails?: {
|
663
|
-
vatType: string;
|
664
|
-
vatPercent: number;
|
665
663
|
net: {
|
666
664
|
currency: string;
|
667
665
|
amount: number;
|
668
666
|
};
|
667
|
+
vatType: string;
|
668
|
+
vatPercent: number;
|
669
669
|
tax: {
|
670
670
|
currency: string;
|
671
671
|
amount: number;
|
@@ -196,23 +196,23 @@ declare const apaleoReservationSchema: import("zod").ZodObject<{
|
|
196
196
|
amount: number;
|
197
197
|
}>;
|
198
198
|
}, "strip", import("zod").ZodTypeAny, {
|
199
|
-
vatType: string;
|
200
|
-
vatPercent: number;
|
201
199
|
net: {
|
202
200
|
currency: string;
|
203
201
|
amount: number;
|
204
202
|
};
|
203
|
+
vatType: string;
|
204
|
+
vatPercent: number;
|
205
205
|
tax: {
|
206
206
|
currency: string;
|
207
207
|
amount: number;
|
208
208
|
};
|
209
209
|
}, {
|
210
|
-
vatType: string;
|
211
|
-
vatPercent: number;
|
212
210
|
net: {
|
213
211
|
currency: string;
|
214
212
|
amount: number;
|
215
213
|
};
|
214
|
+
vatType: string;
|
215
|
+
vatPercent: number;
|
216
216
|
tax: {
|
217
217
|
currency: string;
|
218
218
|
amount: number;
|
@@ -268,12 +268,12 @@ declare const apaleoReservationSchema: import("zod").ZodObject<{
|
|
268
268
|
isSubjectToCityTax: boolean;
|
269
269
|
};
|
270
270
|
taxDetails: {
|
271
|
-
vatType: string;
|
272
|
-
vatPercent: number;
|
273
271
|
net: {
|
274
272
|
currency: string;
|
275
273
|
amount: number;
|
276
274
|
};
|
275
|
+
vatType: string;
|
276
|
+
vatPercent: number;
|
277
277
|
tax: {
|
278
278
|
currency: string;
|
279
279
|
amount: number;
|
@@ -356,12 +356,12 @@ declare const apaleoReservationSchema: import("zod").ZodObject<{
|
|
356
356
|
isSubjectToCityTax: boolean;
|
357
357
|
};
|
358
358
|
taxDetails: {
|
359
|
-
vatType: string;
|
360
|
-
vatPercent: number;
|
361
359
|
net: {
|
362
360
|
currency: string;
|
363
361
|
amount: number;
|
364
362
|
};
|
363
|
+
vatType: string;
|
364
|
+
vatPercent: number;
|
365
365
|
tax: {
|
366
366
|
currency: string;
|
367
367
|
amount: number;
|
package/dist/schemas/blog.d.ts
CHANGED
@@ -2,7 +2,7 @@ export declare const BlogSchema: import("zod").ZodObject<{
|
|
2
2
|
id: import("zod").ZodString;
|
3
3
|
metaTitle: import("zod").ZodString;
|
4
4
|
metaDescription: import("zod").ZodString;
|
5
|
-
createdAt: import("zod").ZodType<
|
5
|
+
createdAt: import("zod").ZodType<FirebaseFirestore.Timestamp, import("zod").ZodTypeDef, FirebaseFirestore.Timestamp>;
|
6
6
|
title: import("zod").ZodString;
|
7
7
|
subtitle: import("zod").ZodString;
|
8
8
|
contentSections: import("zod").ZodArray<import("zod").ZodObject<{
|
@@ -58,7 +58,7 @@ export declare const BlogSchema: import("zod").ZodObject<{
|
|
58
58
|
title: string;
|
59
59
|
metaTitle: string;
|
60
60
|
metaDescription: string;
|
61
|
-
createdAt:
|
61
|
+
createdAt: FirebaseFirestore.Timestamp;
|
62
62
|
subtitle: string;
|
63
63
|
contentSections: {
|
64
64
|
content: string;
|
@@ -81,7 +81,7 @@ export declare const BlogSchema: import("zod").ZodObject<{
|
|
81
81
|
title: string;
|
82
82
|
metaTitle: string;
|
83
83
|
metaDescription: string;
|
84
|
-
createdAt:
|
84
|
+
createdAt: FirebaseFirestore.Timestamp;
|
85
85
|
subtitle: string;
|
86
86
|
contentSections: {
|
87
87
|
content: string;
|
@@ -42,8 +42,8 @@ export declare const ChannexBookingSchema: import("zod").ZodObject<{
|
|
42
42
|
address?: string | null | undefined;
|
43
43
|
language?: string | null | undefined;
|
44
44
|
country?: string | null | undefined;
|
45
|
-
phone?: string | null | undefined;
|
46
45
|
city?: string | null | undefined;
|
46
|
+
phone?: string | null | undefined;
|
47
47
|
zip?: string | null | undefined;
|
48
48
|
mail?: string | null | undefined;
|
49
49
|
}, {
|
@@ -52,8 +52,8 @@ export declare const ChannexBookingSchema: import("zod").ZodObject<{
|
|
52
52
|
address?: string | null | undefined;
|
53
53
|
language?: string | null | undefined;
|
54
54
|
country?: string | null | undefined;
|
55
|
-
phone?: string | null | undefined;
|
56
55
|
city?: string | null | undefined;
|
56
|
+
phone?: string | null | undefined;
|
57
57
|
zip?: string | null | undefined;
|
58
58
|
mail?: string | null | undefined;
|
59
59
|
}>;
|
@@ -220,8 +220,8 @@ export declare const ChannexBookingSchema: import("zod").ZodObject<{
|
|
220
220
|
address?: string | null | undefined;
|
221
221
|
language?: string | null | undefined;
|
222
222
|
country?: string | null | undefined;
|
223
|
-
phone?: string | null | undefined;
|
224
223
|
city?: string | null | undefined;
|
224
|
+
phone?: string | null | undefined;
|
225
225
|
zip?: string | null | undefined;
|
226
226
|
mail?: string | null | undefined;
|
227
227
|
};
|
@@ -297,8 +297,8 @@ export declare const ChannexBookingSchema: import("zod").ZodObject<{
|
|
297
297
|
address?: string | null | undefined;
|
298
298
|
language?: string | null | undefined;
|
299
299
|
country?: string | null | undefined;
|
300
|
-
phone?: string | null | undefined;
|
301
300
|
city?: string | null | undefined;
|
301
|
+
phone?: string | null | undefined;
|
302
302
|
zip?: string | null | undefined;
|
303
303
|
mail?: string | null | undefined;
|
304
304
|
};
|
@@ -378,8 +378,8 @@ export declare const ChannexBookingSchema: import("zod").ZodObject<{
|
|
378
378
|
address?: string | null | undefined;
|
379
379
|
language?: string | null | undefined;
|
380
380
|
country?: string | null | undefined;
|
381
|
-
phone?: string | null | undefined;
|
382
381
|
city?: string | null | undefined;
|
382
|
+
phone?: string | null | undefined;
|
383
383
|
zip?: string | null | undefined;
|
384
384
|
mail?: string | null | undefined;
|
385
385
|
};
|
@@ -459,8 +459,8 @@ export declare const ChannexBookingSchema: import("zod").ZodObject<{
|
|
459
459
|
address?: string | null | undefined;
|
460
460
|
language?: string | null | undefined;
|
461
461
|
country?: string | null | undefined;
|
462
|
-
phone?: string | null | undefined;
|
463
462
|
city?: string | null | undefined;
|
463
|
+
phone?: string | null | undefined;
|
464
464
|
zip?: string | null | undefined;
|
465
465
|
mail?: string | null | undefined;
|
466
466
|
};
|
@@ -88,9 +88,6 @@ export declare const ChannexPropertySchema: import("zod").ZodObject<{
|
|
88
88
|
title: string;
|
89
89
|
currency: string;
|
90
90
|
country: string;
|
91
|
-
city: string;
|
92
|
-
timezone: string;
|
93
|
-
min_stay_type: string;
|
94
91
|
settings: {
|
95
92
|
min_stay_type: string;
|
96
93
|
allow_availability_autoupdate: boolean;
|
@@ -103,6 +100,9 @@ export declare const ChannexPropertySchema: import("zod").ZodObject<{
|
|
103
100
|
max_price?: number | null | undefined;
|
104
101
|
min_price?: number | null | undefined;
|
105
102
|
};
|
103
|
+
city: string;
|
104
|
+
timezone: string;
|
105
|
+
min_stay_type: string;
|
106
106
|
is_active: boolean;
|
107
107
|
max_count_of_occupancies: number;
|
108
108
|
max_count_of_rate_plans: number;
|
@@ -134,9 +134,6 @@ export declare const ChannexPropertySchema: import("zod").ZodObject<{
|
|
134
134
|
title: string;
|
135
135
|
currency: string;
|
136
136
|
country: string;
|
137
|
-
city: string;
|
138
|
-
timezone: string;
|
139
|
-
min_stay_type: string;
|
140
137
|
settings: {
|
141
138
|
min_stay_type: string;
|
142
139
|
allow_availability_autoupdate: boolean;
|
@@ -149,6 +146,9 @@ export declare const ChannexPropertySchema: import("zod").ZodObject<{
|
|
149
146
|
max_price?: number | null | undefined;
|
150
147
|
min_price?: number | null | undefined;
|
151
148
|
};
|
149
|
+
city: string;
|
150
|
+
timezone: string;
|
151
|
+
min_stay_type: string;
|
152
152
|
is_active: boolean;
|
153
153
|
max_count_of_occupancies: number;
|
154
154
|
max_count_of_rate_plans: number;
|
@@ -385,9 +385,6 @@ export declare const ChannexPropertySchema: import("zod").ZodObject<{
|
|
385
385
|
title: string;
|
386
386
|
currency: string;
|
387
387
|
country: string;
|
388
|
-
city: string;
|
389
|
-
timezone: string;
|
390
|
-
min_stay_type: string;
|
391
388
|
settings: {
|
392
389
|
min_stay_type: string;
|
393
390
|
allow_availability_autoupdate: boolean;
|
@@ -400,6 +397,9 @@ export declare const ChannexPropertySchema: import("zod").ZodObject<{
|
|
400
397
|
max_price?: number | null | undefined;
|
401
398
|
min_price?: number | null | undefined;
|
402
399
|
};
|
400
|
+
city: string;
|
401
|
+
timezone: string;
|
402
|
+
min_stay_type: string;
|
403
403
|
is_active: boolean;
|
404
404
|
max_count_of_occupancies: number;
|
405
405
|
max_count_of_rate_plans: number;
|
@@ -470,9 +470,6 @@ export declare const ChannexPropertySchema: import("zod").ZodObject<{
|
|
470
470
|
title: string;
|
471
471
|
currency: string;
|
472
472
|
country: string;
|
473
|
-
city: string;
|
474
|
-
timezone: string;
|
475
|
-
min_stay_type: string;
|
476
473
|
settings: {
|
477
474
|
min_stay_type: string;
|
478
475
|
allow_availability_autoupdate: boolean;
|
@@ -485,6 +482,9 @@ export declare const ChannexPropertySchema: import("zod").ZodObject<{
|
|
485
482
|
max_price?: number | null | undefined;
|
486
483
|
min_price?: number | null | undefined;
|
487
484
|
};
|
485
|
+
city: string;
|
486
|
+
timezone: string;
|
487
|
+
min_stay_type: string;
|
488
488
|
is_active: boolean;
|
489
489
|
max_count_of_occupancies: number;
|
490
490
|
max_count_of_rate_plans: number;
|
@@ -13,13 +13,13 @@ export declare const ChannexMessageThreadSchema: import("zod").ZodObject<{
|
|
13
13
|
sender: import("zod").ZodString;
|
14
14
|
}, "strip", import("zod").ZodTypeAny, {
|
15
15
|
message: string;
|
16
|
-
inserted_at: string;
|
17
16
|
attachments: string[];
|
17
|
+
inserted_at: string;
|
18
18
|
sender: string;
|
19
19
|
}, {
|
20
20
|
message: string;
|
21
|
-
inserted_at: string;
|
22
21
|
attachments: string[];
|
22
|
+
inserted_at: string;
|
23
23
|
sender: string;
|
24
24
|
}>>;
|
25
25
|
last_message_received_at: import("zod").ZodString;
|
@@ -35,8 +35,8 @@ export declare const ChannexMessageThreadSchema: import("zod").ZodObject<{
|
|
35
35
|
updated_at: string;
|
36
36
|
last_message?: {
|
37
37
|
message: string;
|
38
|
-
inserted_at: string;
|
39
38
|
attachments: string[];
|
39
|
+
inserted_at: string;
|
40
40
|
sender: string;
|
41
41
|
} | undefined;
|
42
42
|
}, {
|
@@ -49,8 +49,8 @@ export declare const ChannexMessageThreadSchema: import("zod").ZodObject<{
|
|
49
49
|
updated_at: string;
|
50
50
|
last_message?: {
|
51
51
|
message: string;
|
52
|
-
inserted_at: string;
|
53
52
|
attachments: string[];
|
53
|
+
inserted_at: string;
|
54
54
|
sender: string;
|
55
55
|
} | undefined;
|
56
56
|
}>;
|
@@ -173,8 +173,8 @@ export declare const ChannexMessageThreadSchema: import("zod").ZodObject<{
|
|
173
173
|
updated_at: string;
|
174
174
|
last_message?: {
|
175
175
|
message: string;
|
176
|
-
inserted_at: string;
|
177
176
|
attachments: string[];
|
177
|
+
inserted_at: string;
|
178
178
|
sender: string;
|
179
179
|
} | undefined;
|
180
180
|
};
|
@@ -211,8 +211,8 @@ export declare const ChannexMessageThreadSchema: import("zod").ZodObject<{
|
|
211
211
|
updated_at: string;
|
212
212
|
last_message?: {
|
213
213
|
message: string;
|
214
|
-
inserted_at: string;
|
215
214
|
attachments: string[];
|
215
|
+
inserted_at: string;
|
216
216
|
sender: string;
|
217
217
|
} | undefined;
|
218
218
|
};
|
@@ -255,9 +255,9 @@ export declare const WebhookChannexMessageSchema: import("zod").ZodObject<{
|
|
255
255
|
}, "strip", import("zod").ZodTypeAny, {
|
256
256
|
message: string;
|
257
257
|
id: string;
|
258
|
+
attachments: string[];
|
258
259
|
property_id: string;
|
259
260
|
booking_id: string;
|
260
|
-
attachments: string[];
|
261
261
|
sender: string;
|
262
262
|
message_thread_id: string;
|
263
263
|
live_feed_event_id: string;
|
@@ -266,9 +266,9 @@ export declare const WebhookChannexMessageSchema: import("zod").ZodObject<{
|
|
266
266
|
}, {
|
267
267
|
message: string;
|
268
268
|
id: string;
|
269
|
+
attachments: string[];
|
269
270
|
property_id: string;
|
270
271
|
booking_id: string;
|
271
|
-
attachments: string[];
|
272
272
|
sender: string;
|
273
273
|
message_thread_id: string;
|
274
274
|
live_feed_event_id: string;
|
@@ -281,9 +281,9 @@ export declare const WebhookChannexMessageSchema: import("zod").ZodObject<{
|
|
281
281
|
payload: {
|
282
282
|
message: string;
|
283
283
|
id: string;
|
284
|
+
attachments: string[];
|
284
285
|
property_id: string;
|
285
286
|
booking_id: string;
|
286
|
-
attachments: string[];
|
287
287
|
sender: string;
|
288
288
|
message_thread_id: string;
|
289
289
|
live_feed_event_id: string;
|
@@ -298,9 +298,9 @@ export declare const WebhookChannexMessageSchema: import("zod").ZodObject<{
|
|
298
298
|
payload: {
|
299
299
|
message: string;
|
300
300
|
id: string;
|
301
|
+
attachments: string[];
|
301
302
|
property_id: string;
|
302
303
|
booking_id: string;
|
303
|
-
attachments: string[];
|
304
304
|
sender: string;
|
305
305
|
message_thread_id: string;
|
306
306
|
live_feed_event_id: string;
|
@@ -70,7 +70,7 @@ export declare const PaymentProvidersSchema: import("zod").ZodObject<{
|
|
70
70
|
status: import("zod").ZodString;
|
71
71
|
accountName: import("zod").ZodString;
|
72
72
|
defaultCurrency: import("zod").ZodString;
|
73
|
-
syncedAt: import("zod").ZodType<
|
73
|
+
syncedAt: import("zod").ZodType<FirebaseFirestore.Timestamp, import("zod").ZodTypeDef, FirebaseFirestore.Timestamp>;
|
74
74
|
payload: import("zod").ZodObject<{
|
75
75
|
id: import("zod").ZodString;
|
76
76
|
livemode: import("zod").ZodBoolean;
|
@@ -80,46 +80,46 @@ export declare const PaymentProvidersSchema: import("zod").ZodObject<{
|
|
80
80
|
scope: import("zod").ZodString;
|
81
81
|
}, "strip", import("zod").ZodTypeAny, {
|
82
82
|
id: string;
|
83
|
-
|
83
|
+
scope: string;
|
84
84
|
token_type: string;
|
85
|
+
livemode: boolean;
|
85
86
|
stripe_publishable_key: string;
|
86
87
|
stripe_user_id: string;
|
87
|
-
scope: string;
|
88
88
|
}, {
|
89
89
|
id: string;
|
90
|
-
|
90
|
+
scope: string;
|
91
91
|
token_type: string;
|
92
|
+
livemode: boolean;
|
92
93
|
stripe_publishable_key: string;
|
93
94
|
stripe_user_id: string;
|
94
|
-
scope: string;
|
95
95
|
}>;
|
96
96
|
}, "strip", import("zod").ZodTypeAny, {
|
97
97
|
active: boolean;
|
98
98
|
status: string;
|
99
99
|
accountName: string;
|
100
100
|
defaultCurrency: string;
|
101
|
-
syncedAt:
|
101
|
+
syncedAt: FirebaseFirestore.Timestamp;
|
102
102
|
payload: {
|
103
103
|
id: string;
|
104
|
-
|
104
|
+
scope: string;
|
105
105
|
token_type: string;
|
106
|
+
livemode: boolean;
|
106
107
|
stripe_publishable_key: string;
|
107
108
|
stripe_user_id: string;
|
108
|
-
scope: string;
|
109
109
|
};
|
110
110
|
}, {
|
111
111
|
active: boolean;
|
112
112
|
status: string;
|
113
113
|
accountName: string;
|
114
114
|
defaultCurrency: string;
|
115
|
-
syncedAt:
|
115
|
+
syncedAt: FirebaseFirestore.Timestamp;
|
116
116
|
payload: {
|
117
117
|
id: string;
|
118
|
-
|
118
|
+
scope: string;
|
119
119
|
token_type: string;
|
120
|
+
livemode: boolean;
|
120
121
|
stripe_publishable_key: string;
|
121
122
|
stripe_user_id: string;
|
122
|
-
scope: string;
|
123
123
|
};
|
124
124
|
}>;
|
125
125
|
}, "strip", import("zod").ZodTypeAny, {
|
@@ -128,14 +128,14 @@ export declare const PaymentProvidersSchema: import("zod").ZodObject<{
|
|
128
128
|
status: string;
|
129
129
|
accountName: string;
|
130
130
|
defaultCurrency: string;
|
131
|
-
syncedAt:
|
131
|
+
syncedAt: FirebaseFirestore.Timestamp;
|
132
132
|
payload: {
|
133
133
|
id: string;
|
134
|
-
|
134
|
+
scope: string;
|
135
135
|
token_type: string;
|
136
|
+
livemode: boolean;
|
136
137
|
stripe_publishable_key: string;
|
137
138
|
stripe_user_id: string;
|
138
|
-
scope: string;
|
139
139
|
};
|
140
140
|
};
|
141
141
|
}, {
|
@@ -144,14 +144,14 @@ export declare const PaymentProvidersSchema: import("zod").ZodObject<{
|
|
144
144
|
status: string;
|
145
145
|
accountName: string;
|
146
146
|
defaultCurrency: string;
|
147
|
-
syncedAt:
|
147
|
+
syncedAt: FirebaseFirestore.Timestamp;
|
148
148
|
payload: {
|
149
149
|
id: string;
|
150
|
-
|
150
|
+
scope: string;
|
151
151
|
token_type: string;
|
152
|
+
livemode: boolean;
|
152
153
|
stripe_publishable_key: string;
|
153
154
|
stripe_user_id: string;
|
154
|
-
scope: string;
|
155
155
|
};
|
156
156
|
};
|
157
157
|
}>;
|
@@ -169,7 +169,7 @@ export declare const ListingSchema: import("zod").ZodObject<{
|
|
169
169
|
}>;
|
170
170
|
guestyId: import("zod").ZodOptional<import("zod").ZodString>;
|
171
171
|
accountId: import("zod").ZodOptional<import("zod").ZodString>;
|
172
|
-
createdAt: import("zod").ZodType<
|
172
|
+
createdAt: import("zod").ZodType<FirebaseFirestore.Timestamp, import("zod").ZodTypeDef, FirebaseFirestore.Timestamp>;
|
173
173
|
isVirtual: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
174
174
|
isListed: import("zod").ZodBoolean;
|
175
175
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
@@ -351,7 +351,7 @@ export declare const ListingSchema: import("zod").ZodObject<{
|
|
351
351
|
status: import("zod").ZodString;
|
352
352
|
accountName: import("zod").ZodString;
|
353
353
|
defaultCurrency: import("zod").ZodString;
|
354
|
-
syncedAt: import("zod").ZodType<
|
354
|
+
syncedAt: import("zod").ZodType<FirebaseFirestore.Timestamp, import("zod").ZodTypeDef, FirebaseFirestore.Timestamp>;
|
355
355
|
payload: import("zod").ZodObject<{
|
356
356
|
id: import("zod").ZodString;
|
357
357
|
livemode: import("zod").ZodBoolean;
|
@@ -361,46 +361,46 @@ export declare const ListingSchema: import("zod").ZodObject<{
|
|
361
361
|
scope: import("zod").ZodString;
|
362
362
|
}, "strip", import("zod").ZodTypeAny, {
|
363
363
|
id: string;
|
364
|
-
|
364
|
+
scope: string;
|
365
365
|
token_type: string;
|
366
|
+
livemode: boolean;
|
366
367
|
stripe_publishable_key: string;
|
367
368
|
stripe_user_id: string;
|
368
|
-
scope: string;
|
369
369
|
}, {
|
370
370
|
id: string;
|
371
|
-
|
371
|
+
scope: string;
|
372
372
|
token_type: string;
|
373
|
+
livemode: boolean;
|
373
374
|
stripe_publishable_key: string;
|
374
375
|
stripe_user_id: string;
|
375
|
-
scope: string;
|
376
376
|
}>;
|
377
377
|
}, "strip", import("zod").ZodTypeAny, {
|
378
378
|
active: boolean;
|
379
379
|
status: string;
|
380
380
|
accountName: string;
|
381
381
|
defaultCurrency: string;
|
382
|
-
syncedAt:
|
382
|
+
syncedAt: FirebaseFirestore.Timestamp;
|
383
383
|
payload: {
|
384
384
|
id: string;
|
385
|
-
|
385
|
+
scope: string;
|
386
386
|
token_type: string;
|
387
|
+
livemode: boolean;
|
387
388
|
stripe_publishable_key: string;
|
388
389
|
stripe_user_id: string;
|
389
|
-
scope: string;
|
390
390
|
};
|
391
391
|
}, {
|
392
392
|
active: boolean;
|
393
393
|
status: string;
|
394
394
|
accountName: string;
|
395
395
|
defaultCurrency: string;
|
396
|
-
syncedAt:
|
396
|
+
syncedAt: FirebaseFirestore.Timestamp;
|
397
397
|
payload: {
|
398
398
|
id: string;
|
399
|
-
|
399
|
+
scope: string;
|
400
400
|
token_type: string;
|
401
|
+
livemode: boolean;
|
401
402
|
stripe_publishable_key: string;
|
402
403
|
stripe_user_id: string;
|
403
|
-
scope: string;
|
404
404
|
};
|
405
405
|
}>;
|
406
406
|
}, "strip", import("zod").ZodTypeAny, {
|
@@ -409,14 +409,14 @@ export declare const ListingSchema: import("zod").ZodObject<{
|
|
409
409
|
status: string;
|
410
410
|
accountName: string;
|
411
411
|
defaultCurrency: string;
|
412
|
-
syncedAt:
|
412
|
+
syncedAt: FirebaseFirestore.Timestamp;
|
413
413
|
payload: {
|
414
414
|
id: string;
|
415
|
-
|
415
|
+
scope: string;
|
416
416
|
token_type: string;
|
417
|
+
livemode: boolean;
|
417
418
|
stripe_publishable_key: string;
|
418
419
|
stripe_user_id: string;
|
419
|
-
scope: string;
|
420
420
|
};
|
421
421
|
};
|
422
422
|
}, {
|
@@ -425,14 +425,14 @@ export declare const ListingSchema: import("zod").ZodObject<{
|
|
425
425
|
status: string;
|
426
426
|
accountName: string;
|
427
427
|
defaultCurrency: string;
|
428
|
-
syncedAt:
|
428
|
+
syncedAt: FirebaseFirestore.Timestamp;
|
429
429
|
payload: {
|
430
430
|
id: string;
|
431
|
-
|
431
|
+
scope: string;
|
432
432
|
token_type: string;
|
433
|
+
livemode: boolean;
|
433
434
|
stripe_publishable_key: string;
|
434
435
|
stripe_user_id: string;
|
435
|
-
scope: string;
|
436
436
|
};
|
437
437
|
};
|
438
438
|
}>;
|
@@ -444,14 +444,14 @@ export declare const ListingSchema: import("zod").ZodObject<{
|
|
444
444
|
status: string;
|
445
445
|
accountName: string;
|
446
446
|
defaultCurrency: string;
|
447
|
-
syncedAt:
|
447
|
+
syncedAt: FirebaseFirestore.Timestamp;
|
448
448
|
payload: {
|
449
449
|
id: string;
|
450
|
-
|
450
|
+
scope: string;
|
451
451
|
token_type: string;
|
452
|
+
livemode: boolean;
|
452
453
|
stripe_publishable_key: string;
|
453
454
|
stripe_user_id: string;
|
454
|
-
scope: string;
|
455
455
|
};
|
456
456
|
};
|
457
457
|
};
|
@@ -463,14 +463,14 @@ export declare const ListingSchema: import("zod").ZodObject<{
|
|
463
463
|
status: string;
|
464
464
|
accountName: string;
|
465
465
|
defaultCurrency: string;
|
466
|
-
syncedAt:
|
466
|
+
syncedAt: FirebaseFirestore.Timestamp;
|
467
467
|
payload: {
|
468
468
|
id: string;
|
469
|
-
|
469
|
+
scope: string;
|
470
470
|
token_type: string;
|
471
|
+
livemode: boolean;
|
471
472
|
stripe_publishable_key: string;
|
472
473
|
stripe_user_id: string;
|
473
|
-
scope: string;
|
474
474
|
};
|
475
475
|
};
|
476
476
|
};
|
@@ -519,7 +519,7 @@ export declare const ListingSchema: import("zod").ZodObject<{
|
|
519
519
|
zipcode?: string | undefined;
|
520
520
|
};
|
521
521
|
active: boolean;
|
522
|
-
createdAt:
|
522
|
+
createdAt: FirebaseFirestore.Timestamp;
|
523
523
|
pictures: {
|
524
524
|
height?: number | undefined;
|
525
525
|
width?: number | undefined;
|
@@ -602,14 +602,14 @@ export declare const ListingSchema: import("zod").ZodObject<{
|
|
602
602
|
status: string;
|
603
603
|
accountName: string;
|
604
604
|
defaultCurrency: string;
|
605
|
-
syncedAt:
|
605
|
+
syncedAt: FirebaseFirestore.Timestamp;
|
606
606
|
payload: {
|
607
607
|
id: string;
|
608
|
-
|
608
|
+
scope: string;
|
609
609
|
token_type: string;
|
610
|
+
livemode: boolean;
|
610
611
|
stripe_publishable_key: string;
|
611
612
|
stripe_user_id: string;
|
612
|
-
scope: string;
|
613
613
|
};
|
614
614
|
};
|
615
615
|
};
|
@@ -643,7 +643,7 @@ export declare const ListingSchema: import("zod").ZodObject<{
|
|
643
643
|
zipcode?: string | undefined;
|
644
644
|
};
|
645
645
|
active: boolean;
|
646
|
-
createdAt:
|
646
|
+
createdAt: FirebaseFirestore.Timestamp;
|
647
647
|
pictures: {
|
648
648
|
height?: number | undefined;
|
649
649
|
width?: number | undefined;
|
@@ -726,14 +726,14 @@ export declare const ListingSchema: import("zod").ZodObject<{
|
|
726
726
|
status: string;
|
727
727
|
accountName: string;
|
728
728
|
defaultCurrency: string;
|
729
|
-
syncedAt:
|
729
|
+
syncedAt: FirebaseFirestore.Timestamp;
|
730
730
|
payload: {
|
731
731
|
id: string;
|
732
|
-
|
732
|
+
scope: string;
|
733
733
|
token_type: string;
|
734
|
+
livemode: boolean;
|
734
735
|
stripe_publishable_key: string;
|
735
736
|
stripe_user_id: string;
|
736
|
-
scope: string;
|
737
737
|
};
|
738
738
|
};
|
739
739
|
};
|
@@ -1,10 +1,10 @@
|
|
1
1
|
export declare const ReservationSchema: import("zod").ZodObject<{
|
2
2
|
id: import("zod").ZodString;
|
3
|
-
createdAt: import("zod").ZodOptional<import("zod").ZodType<
|
3
|
+
createdAt: import("zod").ZodOptional<import("zod").ZodType<FirebaseFirestore.Timestamp, import("zod").ZodTypeDef, FirebaseFirestore.Timestamp>>;
|
4
4
|
externalId: import("zod").ZodOptional<import("zod").ZodString>;
|
5
5
|
channexId: import("zod").ZodOptional<import("zod").ZodString>;
|
6
|
-
checkIn: import("zod").ZodOptional<import("zod").ZodType<
|
7
|
-
checkOut: import("zod").ZodOptional<import("zod").ZodType<
|
6
|
+
checkIn: import("zod").ZodOptional<import("zod").ZodType<FirebaseFirestore.Timestamp, import("zod").ZodTypeDef, FirebaseFirestore.Timestamp>>;
|
7
|
+
checkOut: import("zod").ZodOptional<import("zod").ZodType<FirebaseFirestore.Timestamp, import("zod").ZodTypeDef, FirebaseFirestore.Timestamp>>;
|
8
8
|
status: import("zod").ZodOptional<import("zod").ZodString>;
|
9
9
|
statusDescription: import("zod").ZodOptional<import("zod").ZodString>;
|
10
10
|
guest: import("zod").ZodOptional<import("zod").ZodObject<{
|
@@ -44,22 +44,22 @@ export declare const ReservationSchema: import("zod").ZodObject<{
|
|
44
44
|
}>>;
|
45
45
|
klevio: import("zod").ZodOptional<import("zod").ZodObject<{
|
46
46
|
keyId: import("zod").ZodOptional<import("zod").ZodString>;
|
47
|
-
from: import("zod").ZodOptional<import("zod").ZodType<
|
48
|
-
to: import("zod").ZodOptional<import("zod").ZodType<
|
47
|
+
from: import("zod").ZodOptional<import("zod").ZodType<FirebaseFirestore.Timestamp, import("zod").ZodTypeDef, FirebaseFirestore.Timestamp>>;
|
48
|
+
to: import("zod").ZodOptional<import("zod").ZodType<FirebaseFirestore.Timestamp, import("zod").ZodTypeDef, FirebaseFirestore.Timestamp>>;
|
49
49
|
keyholderId: import("zod").ZodOptional<import("zod").ZodString>;
|
50
50
|
keyholderEmail: import("zod").ZodOptional<import("zod").ZodString>;
|
51
51
|
propertyId: import("zod").ZodOptional<import("zod").ZodString>;
|
52
52
|
}, "strip", import("zod").ZodTypeAny, {
|
53
|
+
from?: FirebaseFirestore.Timestamp | undefined;
|
53
54
|
keyId?: string | undefined;
|
54
|
-
|
55
|
-
to?: import("@firebase/firestore").Timestamp | undefined;
|
55
|
+
to?: FirebaseFirestore.Timestamp | undefined;
|
56
56
|
keyholderId?: string | undefined;
|
57
57
|
keyholderEmail?: string | undefined;
|
58
58
|
propertyId?: string | undefined;
|
59
59
|
}, {
|
60
|
+
from?: FirebaseFirestore.Timestamp | undefined;
|
60
61
|
keyId?: string | undefined;
|
61
|
-
|
62
|
-
to?: import("@firebase/firestore").Timestamp | undefined;
|
62
|
+
to?: FirebaseFirestore.Timestamp | undefined;
|
63
63
|
keyholderId?: string | undefined;
|
64
64
|
keyholderEmail?: string | undefined;
|
65
65
|
propertyId?: string | undefined;
|
@@ -84,11 +84,11 @@ export declare const ReservationSchema: import("zod").ZodObject<{
|
|
84
84
|
} | undefined;
|
85
85
|
children?: number | undefined;
|
86
86
|
status?: string | undefined;
|
87
|
-
createdAt?:
|
87
|
+
createdAt?: FirebaseFirestore.Timestamp | undefined;
|
88
88
|
externalId?: string | undefined;
|
89
89
|
channexId?: string | undefined;
|
90
|
-
checkIn?:
|
91
|
-
checkOut?:
|
90
|
+
checkIn?: FirebaseFirestore.Timestamp | undefined;
|
91
|
+
checkOut?: FirebaseFirestore.Timestamp | undefined;
|
92
92
|
statusDescription?: string | undefined;
|
93
93
|
guest?: {
|
94
94
|
id?: string | undefined;
|
@@ -98,9 +98,9 @@ export declare const ReservationSchema: import("zod").ZodObject<{
|
|
98
98
|
ids?: string[] | undefined;
|
99
99
|
} | undefined;
|
100
100
|
klevio?: {
|
101
|
+
from?: FirebaseFirestore.Timestamp | undefined;
|
101
102
|
keyId?: string | undefined;
|
102
|
-
|
103
|
-
to?: import("@firebase/firestore").Timestamp | undefined;
|
103
|
+
to?: FirebaseFirestore.Timestamp | undefined;
|
104
104
|
keyholderId?: string | undefined;
|
105
105
|
keyholderEmail?: string | undefined;
|
106
106
|
propertyId?: string | undefined;
|
@@ -122,11 +122,11 @@ export declare const ReservationSchema: import("zod").ZodObject<{
|
|
122
122
|
} | undefined;
|
123
123
|
children?: number | undefined;
|
124
124
|
status?: string | undefined;
|
125
|
-
createdAt?:
|
125
|
+
createdAt?: FirebaseFirestore.Timestamp | undefined;
|
126
126
|
externalId?: string | undefined;
|
127
127
|
channexId?: string | undefined;
|
128
|
-
checkIn?:
|
129
|
-
checkOut?:
|
128
|
+
checkIn?: FirebaseFirestore.Timestamp | undefined;
|
129
|
+
checkOut?: FirebaseFirestore.Timestamp | undefined;
|
130
130
|
statusDescription?: string | undefined;
|
131
131
|
guest?: {
|
132
132
|
id?: string | undefined;
|
@@ -136,9 +136,9 @@ export declare const ReservationSchema: import("zod").ZodObject<{
|
|
136
136
|
ids?: string[] | undefined;
|
137
137
|
} | undefined;
|
138
138
|
klevio?: {
|
139
|
+
from?: FirebaseFirestore.Timestamp | undefined;
|
139
140
|
keyId?: string | undefined;
|
140
|
-
|
141
|
-
to?: import("@firebase/firestore").Timestamp | undefined;
|
141
|
+
to?: FirebaseFirestore.Timestamp | undefined;
|
142
142
|
keyholderId?: string | undefined;
|
143
143
|
keyholderEmail?: string | undefined;
|
144
144
|
propertyId?: string | undefined;
|
package/dist/schemas/thread.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
export declare const ChatMessageSchema: import("zod").ZodObject<{
|
2
2
|
id: import("zod").ZodString;
|
3
|
-
createdAt: import("zod").ZodType<
|
3
|
+
createdAt: import("zod").ZodType<FirebaseFirestore.Timestamp, import("zod").ZodTypeDef, FirebaseFirestore.Timestamp>;
|
4
4
|
threadId: import("zod").ZodString;
|
5
5
|
authorId: import("zod").ZodString;
|
6
6
|
author: import("zod").ZodOptional<import("zod").ZodObject<{
|
@@ -153,18 +153,19 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
|
|
153
153
|
}>>;
|
154
154
|
contentType: import("zod").ZodString;
|
155
155
|
body: import("zod").ZodString;
|
156
|
-
seen: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<
|
157
|
-
lastSeen: import("zod").ZodOptional<import("zod").ZodType<
|
156
|
+
seen: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<FirebaseFirestore.Timestamp, import("zod").ZodTypeDef, FirebaseFirestore.Timestamp>>;
|
157
|
+
lastSeen: import("zod").ZodOptional<import("zod").ZodType<FirebaseFirestore.Timestamp, import("zod").ZodTypeDef, FirebaseFirestore.Timestamp>>;
|
158
158
|
source: import("zod").ZodOptional<import("zod").ZodString>;
|
159
159
|
externalMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
160
|
+
attachments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
160
161
|
}, "strip", import("zod").ZodTypeAny, {
|
161
162
|
id: string;
|
162
163
|
body: string;
|
163
|
-
createdAt:
|
164
|
+
createdAt: FirebaseFirestore.Timestamp;
|
164
165
|
threadId: string;
|
165
166
|
authorId: string;
|
166
167
|
contentType: string;
|
167
|
-
seen: Record<string,
|
168
|
+
seen: Record<string, FirebaseFirestore.Timestamp>;
|
168
169
|
source?: string | undefined;
|
169
170
|
author?: {
|
170
171
|
id: string;
|
@@ -196,16 +197,17 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
|
|
196
197
|
klevioId?: string | undefined;
|
197
198
|
favorites?: string[] | undefined;
|
198
199
|
} | undefined;
|
199
|
-
lastSeen?:
|
200
|
+
lastSeen?: FirebaseFirestore.Timestamp | undefined;
|
200
201
|
externalMessageId?: string | undefined;
|
202
|
+
attachments?: string[] | undefined;
|
201
203
|
}, {
|
202
204
|
id: string;
|
203
205
|
body: string;
|
204
|
-
createdAt:
|
206
|
+
createdAt: FirebaseFirestore.Timestamp;
|
205
207
|
threadId: string;
|
206
208
|
authorId: string;
|
207
209
|
contentType: string;
|
208
|
-
seen: Record<string,
|
210
|
+
seen: Record<string, FirebaseFirestore.Timestamp>;
|
209
211
|
source?: string | undefined;
|
210
212
|
author?: {
|
211
213
|
id: string;
|
@@ -237,16 +239,17 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
|
|
237
239
|
klevioId?: string | undefined;
|
238
240
|
favorites?: string[] | undefined;
|
239
241
|
} | undefined;
|
240
|
-
lastSeen?:
|
242
|
+
lastSeen?: FirebaseFirestore.Timestamp | undefined;
|
241
243
|
externalMessageId?: string | undefined;
|
244
|
+
attachments?: string[] | undefined;
|
242
245
|
}>;
|
243
246
|
export declare const ChatThreadSchema: import("zod").ZodObject<{
|
244
247
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
245
|
-
createdAt: import("zod").ZodType<
|
246
|
-
updatedAt: import("zod").ZodType<
|
248
|
+
createdAt: import("zod").ZodType<FirebaseFirestore.Timestamp, import("zod").ZodTypeDef, FirebaseFirestore.Timestamp>;
|
249
|
+
updatedAt: import("zod").ZodType<FirebaseFirestore.Timestamp, import("zod").ZodTypeDef, FirebaseFirestore.Timestamp>;
|
247
250
|
lastMessage: import("zod").ZodOptional<import("zod").ZodObject<{
|
248
251
|
id: import("zod").ZodString;
|
249
|
-
createdAt: import("zod").ZodType<
|
252
|
+
createdAt: import("zod").ZodType<FirebaseFirestore.Timestamp, import("zod").ZodTypeDef, FirebaseFirestore.Timestamp>;
|
250
253
|
threadId: import("zod").ZodString;
|
251
254
|
authorId: import("zod").ZodString;
|
252
255
|
author: import("zod").ZodOptional<import("zod").ZodObject<{
|
@@ -399,18 +402,19 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
399
402
|
}>>;
|
400
403
|
contentType: import("zod").ZodString;
|
401
404
|
body: import("zod").ZodString;
|
402
|
-
seen: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<
|
403
|
-
lastSeen: import("zod").ZodOptional<import("zod").ZodType<
|
405
|
+
seen: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<FirebaseFirestore.Timestamp, import("zod").ZodTypeDef, FirebaseFirestore.Timestamp>>;
|
406
|
+
lastSeen: import("zod").ZodOptional<import("zod").ZodType<FirebaseFirestore.Timestamp, import("zod").ZodTypeDef, FirebaseFirestore.Timestamp>>;
|
404
407
|
source: import("zod").ZodOptional<import("zod").ZodString>;
|
405
408
|
externalMessageId: import("zod").ZodOptional<import("zod").ZodString>;
|
409
|
+
attachments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
406
410
|
}, "strip", import("zod").ZodTypeAny, {
|
407
411
|
id: string;
|
408
412
|
body: string;
|
409
|
-
createdAt:
|
413
|
+
createdAt: FirebaseFirestore.Timestamp;
|
410
414
|
threadId: string;
|
411
415
|
authorId: string;
|
412
416
|
contentType: string;
|
413
|
-
seen: Record<string,
|
417
|
+
seen: Record<string, FirebaseFirestore.Timestamp>;
|
414
418
|
source?: string | undefined;
|
415
419
|
author?: {
|
416
420
|
id: string;
|
@@ -442,16 +446,17 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
442
446
|
klevioId?: string | undefined;
|
443
447
|
favorites?: string[] | undefined;
|
444
448
|
} | undefined;
|
445
|
-
lastSeen?:
|
449
|
+
lastSeen?: FirebaseFirestore.Timestamp | undefined;
|
446
450
|
externalMessageId?: string | undefined;
|
451
|
+
attachments?: string[] | undefined;
|
447
452
|
}, {
|
448
453
|
id: string;
|
449
454
|
body: string;
|
450
|
-
createdAt:
|
455
|
+
createdAt: FirebaseFirestore.Timestamp;
|
451
456
|
threadId: string;
|
452
457
|
authorId: string;
|
453
458
|
contentType: string;
|
454
|
-
seen: Record<string,
|
459
|
+
seen: Record<string, FirebaseFirestore.Timestamp>;
|
455
460
|
source?: string | undefined;
|
456
461
|
author?: {
|
457
462
|
id: string;
|
@@ -483,8 +488,9 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
483
488
|
klevioId?: string | undefined;
|
484
489
|
favorites?: string[] | undefined;
|
485
490
|
} | undefined;
|
486
|
-
lastSeen?:
|
491
|
+
lastSeen?: FirebaseFirestore.Timestamp | undefined;
|
487
492
|
externalMessageId?: string | undefined;
|
493
|
+
attachments?: string[] | undefined;
|
488
494
|
}>>;
|
489
495
|
participantIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
490
496
|
participants: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
@@ -642,8 +648,8 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
642
648
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
643
649
|
}, "strip", import("zod").ZodTypeAny, {
|
644
650
|
type: "ONE_TO_ONE" | "GROUP";
|
645
|
-
createdAt:
|
646
|
-
updatedAt:
|
651
|
+
createdAt: FirebaseFirestore.Timestamp;
|
652
|
+
updatedAt: FirebaseFirestore.Timestamp;
|
647
653
|
participantIds: string[];
|
648
654
|
id?: string | undefined;
|
649
655
|
source?: string | undefined;
|
@@ -651,11 +657,11 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
651
657
|
lastMessage?: {
|
652
658
|
id: string;
|
653
659
|
body: string;
|
654
|
-
createdAt:
|
660
|
+
createdAt: FirebaseFirestore.Timestamp;
|
655
661
|
threadId: string;
|
656
662
|
authorId: string;
|
657
663
|
contentType: string;
|
658
|
-
seen: Record<string,
|
664
|
+
seen: Record<string, FirebaseFirestore.Timestamp>;
|
659
665
|
source?: string | undefined;
|
660
666
|
author?: {
|
661
667
|
id: string;
|
@@ -687,8 +693,9 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
687
693
|
klevioId?: string | undefined;
|
688
694
|
favorites?: string[] | undefined;
|
689
695
|
} | undefined;
|
690
|
-
lastSeen?:
|
696
|
+
lastSeen?: FirebaseFirestore.Timestamp | undefined;
|
691
697
|
externalMessageId?: string | undefined;
|
698
|
+
attachments?: string[] | undefined;
|
692
699
|
} | undefined;
|
693
700
|
participants?: {
|
694
701
|
id: string;
|
@@ -724,8 +731,8 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
724
731
|
externalSource?: string | undefined;
|
725
732
|
}, {
|
726
733
|
type: "ONE_TO_ONE" | "GROUP";
|
727
|
-
createdAt:
|
728
|
-
updatedAt:
|
734
|
+
createdAt: FirebaseFirestore.Timestamp;
|
735
|
+
updatedAt: FirebaseFirestore.Timestamp;
|
729
736
|
participantIds: string[];
|
730
737
|
id?: string | undefined;
|
731
738
|
source?: string | undefined;
|
@@ -733,11 +740,11 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
733
740
|
lastMessage?: {
|
734
741
|
id: string;
|
735
742
|
body: string;
|
736
|
-
createdAt:
|
743
|
+
createdAt: FirebaseFirestore.Timestamp;
|
737
744
|
threadId: string;
|
738
745
|
authorId: string;
|
739
746
|
contentType: string;
|
740
|
-
seen: Record<string,
|
747
|
+
seen: Record<string, FirebaseFirestore.Timestamp>;
|
741
748
|
source?: string | undefined;
|
742
749
|
author?: {
|
743
750
|
id: string;
|
@@ -769,8 +776,9 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
769
776
|
klevioId?: string | undefined;
|
770
777
|
favorites?: string[] | undefined;
|
771
778
|
} | undefined;
|
772
|
-
lastSeen?:
|
779
|
+
lastSeen?: FirebaseFirestore.Timestamp | undefined;
|
773
780
|
externalMessageId?: string | undefined;
|
781
|
+
attachments?: string[] | undefined;
|
774
782
|
} | undefined;
|
775
783
|
participants?: {
|
776
784
|
id: string;
|
package/dist/schemas/thread.js
CHANGED
@@ -17,6 +17,7 @@ exports.ChatMessageSchema = (0, zod_1.object)({
|
|
17
17
|
lastSeen: (0, zod_1.optional)(helpers_1.firestoreTimestampSchema),
|
18
18
|
source: (0, zod_1.optional)((0, zod_1.string)()),
|
19
19
|
externalMessageId: (0, zod_1.optional)((0, zod_1.string)()),
|
20
|
+
attachments: (0, zod_1.optional)((0, zod_1.array)((0, zod_1.string)())),
|
20
21
|
});
|
21
22
|
exports.ChatThreadSchema = (0, zod_1.object)({
|
22
23
|
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.0.
|
3
|
+
"version": "1.0.79",
|
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
|
+
"firebase-admin": "^12.5.0",
|
22
23
|
"hububb-models": "^1.0.72",
|
23
24
|
"lodash": "^4.17.21",
|
24
25
|
"moment": "^2.29.4",
|