hububb-saas-shared 1.0.55 → 1.0.57
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const ReservationStatusEnum: z.ZodEnum<["CONFIRMED", "CANCELLED"]>;
|
|
2
|
+
export declare const ReservationStatusEnum: z.ZodEnum<["CONFIRMED", "CANCELLED", "PENDING"]>;
|
|
3
3
|
export declare const ReservationCustomerSchema: z.ZodObject<{
|
|
4
4
|
id: z.ZodString;
|
|
5
5
|
firstName: z.ZodString;
|
|
@@ -43,7 +43,7 @@ export declare const ReservationServiceSchema: z.ZodObject<{
|
|
|
43
43
|
}>;
|
|
44
44
|
export declare const ReservationSchema: z.ZodObject<{
|
|
45
45
|
id: z.ZodNumber;
|
|
46
|
-
status: z.ZodEnum<["CONFIRMED", "CANCELLED"]>;
|
|
46
|
+
status: z.ZodEnum<["CONFIRMED", "CANCELLED", "PENDING"]>;
|
|
47
47
|
currency: z.ZodString;
|
|
48
48
|
amount: z.ZodString;
|
|
49
49
|
createdAt: z.ZodDate;
|
|
@@ -69,7 +69,7 @@ export declare const ReservationSchema: z.ZodObject<{
|
|
|
69
69
|
currency: string;
|
|
70
70
|
id: number;
|
|
71
71
|
children: number;
|
|
72
|
-
status: "CONFIRMED" | "CANCELLED";
|
|
72
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED";
|
|
73
73
|
createdAt: Date;
|
|
74
74
|
updatedAt: Date;
|
|
75
75
|
channexId: string;
|
|
@@ -93,7 +93,7 @@ export declare const ReservationSchema: z.ZodObject<{
|
|
|
93
93
|
currency: string;
|
|
94
94
|
id: number;
|
|
95
95
|
children: number;
|
|
96
|
-
status: "CONFIRMED" | "CANCELLED";
|
|
96
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED";
|
|
97
97
|
createdAt: Date;
|
|
98
98
|
updatedAt: Date;
|
|
99
99
|
channexId: string;
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ReservationSchema = exports.ReservationServiceSchema = exports.ReservationCustomerSchema = exports.ReservationStatusEnum = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports.ReservationStatusEnum = zod_1.z.enum([
|
|
5
|
+
exports.ReservationStatusEnum = zod_1.z.enum([
|
|
6
|
+
"CONFIRMED",
|
|
7
|
+
"CANCELLED",
|
|
8
|
+
"PENDING",
|
|
9
|
+
]);
|
|
6
10
|
exports.ReservationCustomerSchema = zod_1.z.object({
|
|
7
11
|
id: zod_1.z.string().uuid(),
|
|
8
12
|
firstName: zod_1.z.string(),
|
|
@@ -286,7 +286,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
|
286
286
|
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
287
287
|
reservation: import("zod").ZodOptional<import("zod").ZodObject<import("zod").objectUtil.extendShape<Pick<{
|
|
288
288
|
id: import("zod").ZodNumber;
|
|
289
|
-
status: import("zod").ZodEnum<["CONFIRMED", "CANCELLED"]>;
|
|
289
|
+
status: import("zod").ZodEnum<["CONFIRMED", "CANCELLED", "PENDING"]>;
|
|
290
290
|
currency: import("zod").ZodString;
|
|
291
291
|
amount: import("zod").ZodString;
|
|
292
292
|
createdAt: import("zod").ZodDate;
|
|
@@ -379,7 +379,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
|
379
379
|
}>>;
|
|
380
380
|
}>, "strip", import("zod").ZodTypeAny, {
|
|
381
381
|
id: number;
|
|
382
|
-
status: "CONFIRMED" | "CANCELLED";
|
|
382
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED";
|
|
383
383
|
otaName: string;
|
|
384
384
|
propertyId: number;
|
|
385
385
|
checkIn: Date;
|
|
@@ -410,7 +410,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
|
410
410
|
propertyNickname?: string | undefined;
|
|
411
411
|
}, {
|
|
412
412
|
id: number;
|
|
413
|
-
status: "CONFIRMED" | "CANCELLED";
|
|
413
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED";
|
|
414
414
|
otaName: string;
|
|
415
415
|
propertyId: number;
|
|
416
416
|
checkIn: Date;
|
|
@@ -441,6 +441,8 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
|
441
441
|
propertyNickname?: string | undefined;
|
|
442
442
|
}>>;
|
|
443
443
|
isInquiryThread: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
444
|
+
whatsappTemplateSent: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
445
|
+
whatsappUserReplied: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
444
446
|
}, "strip", import("zod").ZodTypeAny, {
|
|
445
447
|
type: "ONE_TO_ONE" | "GROUP";
|
|
446
448
|
createdAt: import("@firebase/firestore-types").Timestamp;
|
|
@@ -503,7 +505,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
|
503
505
|
tags?: string[] | undefined;
|
|
504
506
|
reservation?: {
|
|
505
507
|
id: number;
|
|
506
|
-
status: "CONFIRMED" | "CANCELLED";
|
|
508
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED";
|
|
507
509
|
otaName: string;
|
|
508
510
|
propertyId: number;
|
|
509
511
|
checkIn: Date;
|
|
@@ -534,6 +536,8 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
|
534
536
|
propertyNickname?: string | undefined;
|
|
535
537
|
} | undefined;
|
|
536
538
|
isInquiryThread?: boolean | undefined;
|
|
539
|
+
whatsappTemplateSent?: boolean | undefined;
|
|
540
|
+
whatsappUserReplied?: boolean | undefined;
|
|
537
541
|
}, {
|
|
538
542
|
type: "ONE_TO_ONE" | "GROUP";
|
|
539
543
|
createdAt: import("@firebase/firestore-types").Timestamp;
|
|
@@ -596,7 +600,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
|
596
600
|
tags?: string[] | undefined;
|
|
597
601
|
reservation?: {
|
|
598
602
|
id: number;
|
|
599
|
-
status: "CONFIRMED" | "CANCELLED";
|
|
603
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED";
|
|
600
604
|
otaName: string;
|
|
601
605
|
propertyId: number;
|
|
602
606
|
checkIn: Date;
|
|
@@ -627,6 +631,8 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
|
627
631
|
propertyNickname?: string | undefined;
|
|
628
632
|
} | undefined;
|
|
629
633
|
isInquiryThread?: boolean | undefined;
|
|
634
|
+
whatsappTemplateSent?: boolean | undefined;
|
|
635
|
+
whatsappUserReplied?: boolean | undefined;
|
|
630
636
|
}>;
|
|
631
637
|
export declare const MessageAutomationTemplateSchema: import("zod").ZodObject<{
|
|
632
638
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -57,6 +57,8 @@ exports.ChatThreadSchema = (0, zod_1.object)({
|
|
|
57
57
|
property: (0, zod_1.optional)(property_1.propertySchema),
|
|
58
58
|
})),
|
|
59
59
|
isInquiryThread: (0, zod_1.optional)((0, zod_1.boolean)()),
|
|
60
|
+
whatsappTemplateSent: (0, zod_1.optional)((0, zod_1.boolean)()),
|
|
61
|
+
whatsappUserReplied: (0, zod_1.optional)((0, zod_1.boolean)()),
|
|
60
62
|
});
|
|
61
63
|
exports.MessageAutomationTemplateSchema = (0, zod_1.object)({
|
|
62
64
|
id: (0, zod_1.optional)((0, zod_1.string)()),
|