hububb-saas-shared 1.0.50 → 1.0.51
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.
|
@@ -284,6 +284,49 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
|
284
284
|
needsAttentionMap: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>;
|
|
285
285
|
propertyId: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
286
286
|
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
287
|
+
reservation: import("zod").ZodOptional<import("zod").ZodObject<import("zod").objectUtil.extendShape<Pick<{
|
|
288
|
+
id: import("zod").ZodNumber;
|
|
289
|
+
status: import("zod").ZodEnum<["CONFIRMED", "CANCELLED"]>;
|
|
290
|
+
currency: import("zod").ZodString;
|
|
291
|
+
amount: import("zod").ZodString;
|
|
292
|
+
createdAt: import("zod").ZodDate;
|
|
293
|
+
updatedAt: import("zod").ZodDate;
|
|
294
|
+
otaName: import("zod").ZodString;
|
|
295
|
+
channelId: import("zod").ZodString;
|
|
296
|
+
propertyId: import("zod").ZodNumber;
|
|
297
|
+
channexPropertyId: import("zod").ZodString;
|
|
298
|
+
children: import("zod").ZodNumber;
|
|
299
|
+
adults: import("zod").ZodNumber;
|
|
300
|
+
channexId: import("zod").ZodString;
|
|
301
|
+
checkIn: import("zod").ZodDate;
|
|
302
|
+
checkOut: import("zod").ZodDate;
|
|
303
|
+
notes: import("zod").ZodOptional<import("zod").ZodString>;
|
|
304
|
+
refNumber: import("zod").ZodString;
|
|
305
|
+
paymentType: import("zod").ZodString;
|
|
306
|
+
otaCommission: import("zod").ZodString;
|
|
307
|
+
checkedInMark: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
308
|
+
checkedOutMark: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
309
|
+
threadId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
310
|
+
}, "id" | "status" | "otaName" | "propertyId" | "checkIn" | "checkOut">, {
|
|
311
|
+
listingNickname: import("zod").ZodOptional<import("zod").ZodString>;
|
|
312
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
313
|
+
id: number;
|
|
314
|
+
status: "CONFIRMED" | "CANCELLED";
|
|
315
|
+
otaName: string;
|
|
316
|
+
propertyId: number;
|
|
317
|
+
checkIn: Date;
|
|
318
|
+
checkOut: Date;
|
|
319
|
+
listingNickname?: string | undefined;
|
|
320
|
+
}, {
|
|
321
|
+
id: number;
|
|
322
|
+
status: "CONFIRMED" | "CANCELLED";
|
|
323
|
+
otaName: string;
|
|
324
|
+
propertyId: number;
|
|
325
|
+
checkIn: Date;
|
|
326
|
+
checkOut: Date;
|
|
327
|
+
listingNickname?: string | undefined;
|
|
328
|
+
}>>;
|
|
329
|
+
isInquiryThread: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
287
330
|
}, "strip", import("zod").ZodTypeAny, {
|
|
288
331
|
type: "ONE_TO_ONE" | "GROUP";
|
|
289
332
|
createdAt: import("@firebase/firestore-types").Timestamp;
|
|
@@ -344,6 +387,16 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
|
344
387
|
externalSource?: string | undefined;
|
|
345
388
|
isImportant?: boolean | undefined;
|
|
346
389
|
tags?: string[] | undefined;
|
|
390
|
+
reservation?: {
|
|
391
|
+
id: number;
|
|
392
|
+
status: "CONFIRMED" | "CANCELLED";
|
|
393
|
+
otaName: string;
|
|
394
|
+
propertyId: number;
|
|
395
|
+
checkIn: Date;
|
|
396
|
+
checkOut: Date;
|
|
397
|
+
listingNickname?: string | undefined;
|
|
398
|
+
} | undefined;
|
|
399
|
+
isInquiryThread?: boolean | undefined;
|
|
347
400
|
}, {
|
|
348
401
|
type: "ONE_TO_ONE" | "GROUP";
|
|
349
402
|
createdAt: import("@firebase/firestore-types").Timestamp;
|
|
@@ -404,6 +457,16 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
|
404
457
|
externalSource?: string | undefined;
|
|
405
458
|
isImportant?: boolean | undefined;
|
|
406
459
|
tags?: string[] | undefined;
|
|
460
|
+
reservation?: {
|
|
461
|
+
id: number;
|
|
462
|
+
status: "CONFIRMED" | "CANCELLED";
|
|
463
|
+
otaName: string;
|
|
464
|
+
propertyId: number;
|
|
465
|
+
checkIn: Date;
|
|
466
|
+
checkOut: Date;
|
|
467
|
+
listingNickname?: string | undefined;
|
|
468
|
+
} | undefined;
|
|
469
|
+
isInquiryThread?: boolean | undefined;
|
|
407
470
|
}>;
|
|
408
471
|
export declare const MessageAutomationTemplateSchema: import("zod").ZodObject<{
|
|
409
472
|
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"),
|
|
@@ -42,6 +43,17 @@ exports.ChatThreadSchema = (0, zod_1.object)({
|
|
|
42
43
|
needsAttentionMap: (0, zod_1.record)((0, zod_1.string)(), (0, zod_1.boolean)()),
|
|
43
44
|
propertyId: (0, zod_1.optional)((0, zod_1.number)()),
|
|
44
45
|
tags: (0, zod_1.optional)((0, zod_1.array)((0, zod_1.string)())),
|
|
46
|
+
reservation: (0, zod_1.optional)(reservation_1.ReservationSchema.pick({
|
|
47
|
+
id: true,
|
|
48
|
+
checkIn: true,
|
|
49
|
+
checkOut: true,
|
|
50
|
+
propertyId: true,
|
|
51
|
+
status: true,
|
|
52
|
+
otaName: true,
|
|
53
|
+
}).extend({
|
|
54
|
+
listingNickname: (0, zod_1.optional)((0, zod_1.string)()),
|
|
55
|
+
})),
|
|
56
|
+
isInquiryThread: (0, zod_1.optional)((0, zod_1.boolean)()),
|
|
45
57
|
});
|
|
46
58
|
exports.MessageAutomationTemplateSchema = (0, zod_1.object)({
|
|
47
59
|
id: (0, zod_1.optional)((0, zod_1.string)()),
|