hububb-models 1.0.111 → 1.0.113

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,16 @@ export declare const landlordAnalytics: import("zod").ZodObject<{
5
5
  averageReservationValue: import("zod").ZodNumber;
6
6
  totalReservations: import("zod").ZodNumber;
7
7
  revenueByMonth: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
8
- reservationStatus: import("zod").ZodArray<import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>, "many">;
8
+ reservationStatus: import("zod").ZodArray<import("zod").ZodObject<{
9
+ status: import("zod").ZodString;
10
+ count: import("zod").ZodNumber;
11
+ }, "strip", import("zod").ZodTypeAny, {
12
+ status: string;
13
+ count: number;
14
+ }, {
15
+ status: string;
16
+ count: number;
17
+ }>, "many">;
9
18
  occupancyRateByMonth: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
10
19
  currentReservations: import("zod").ZodNumber;
11
20
  upcomingReservations: import("zod").ZodNumber;
@@ -16,7 +25,10 @@ export declare const landlordAnalytics: import("zod").ZodObject<{
16
25
  averageReservationValue: number;
17
26
  totalReservations: number;
18
27
  revenueByMonth: {};
19
- reservationStatus: {}[];
28
+ reservationStatus: {
29
+ status: string;
30
+ count: number;
31
+ }[];
20
32
  occupancyRateByMonth: {};
21
33
  currentReservations: number;
22
34
  upcomingReservations: number;
@@ -27,7 +39,10 @@ export declare const landlordAnalytics: import("zod").ZodObject<{
27
39
  averageReservationValue: number;
28
40
  totalReservations: number;
29
41
  revenueByMonth: {};
30
- reservationStatus: {}[];
42
+ reservationStatus: {
43
+ status: string;
44
+ count: number;
45
+ }[];
31
46
  occupancyRateByMonth: {};
32
47
  currentReservations: number;
33
48
  upcomingReservations: number;
@@ -9,7 +9,10 @@ exports.landlordAnalytics = (0, zod_1.object)({
9
9
  averageReservationValue: (0, zod_1.number)(),
10
10
  totalReservations: (0, zod_1.number)(),
11
11
  revenueByMonth: (0, zod_1.object)({}),
12
- reservationStatus: (0, zod_1.array)((0, zod_1.object)({})),
12
+ reservationStatus: (0, zod_1.array)((0, zod_1.object)({
13
+ status: (0, zod_1.string)(),
14
+ count: (0, zod_1.number)(),
15
+ })),
13
16
  occupancyRateByMonth: (0, zod_1.object)({}),
14
17
  currentReservations: (0, zod_1.number)(),
15
18
  upcomingReservations: (0, zod_1.number)(),
@@ -75,6 +75,8 @@ export declare const ReservationSchema: import("zod").ZodObject<{
75
75
  adults: import("zod").ZodOptional<import("zod").ZodNumber>;
76
76
  children: import("zod").ZodOptional<import("zod").ZodNumber>;
77
77
  inboxId: import("zod").ZodOptional<import("zod").ZodNumber>;
78
+ checkedInMark: import("zod").ZodOptional<import("zod").ZodType<import("@firebase/firestore-types").Timestamp, import("zod").ZodTypeDef, import("@firebase/firestore-types").Timestamp>>;
79
+ checkedOutMark: import("zod").ZodOptional<import("zod").ZodType<import("@firebase/firestore-types").Timestamp, import("zod").ZodTypeDef, import("@firebase/firestore-types").Timestamp>>;
78
80
  }, "strip", import("zod").ZodTypeAny, {
79
81
  id: string;
80
82
  source?: string | undefined;
@@ -114,6 +116,8 @@ export declare const ReservationSchema: import("zod").ZodObject<{
114
116
  guests?: number | undefined;
115
117
  adults?: number | undefined;
116
118
  inboxId?: number | undefined;
119
+ checkedInMark?: import("@firebase/firestore-types").Timestamp | undefined;
120
+ checkedOutMark?: import("@firebase/firestore-types").Timestamp | undefined;
117
121
  }, {
118
122
  id: string;
119
123
  source?: string | undefined;
@@ -153,6 +157,8 @@ export declare const ReservationSchema: import("zod").ZodObject<{
153
157
  guests?: number | undefined;
154
158
  adults?: number | undefined;
155
159
  inboxId?: number | undefined;
160
+ checkedInMark?: import("@firebase/firestore-types").Timestamp | undefined;
161
+ checkedOutMark?: import("@firebase/firestore-types").Timestamp | undefined;
156
162
  }>;
157
163
  export declare const reservationCreateSchema: import("zod").ZodObject<{
158
164
  booker: import("zod").ZodObject<{
@@ -45,6 +45,8 @@ exports.ReservationSchema = (0, zod_1.object)({
45
45
  adults: (0, zod_1.optional)((0, zod_1.number)()),
46
46
  children: (0, zod_1.optional)((0, zod_1.number)()),
47
47
  inboxId: (0, zod_1.optional)((0, zod_1.number)()),
48
+ checkedInMark: (0, zod_1.optional)(helpers_1.firestoreTimestampSchema),
49
+ checkedOutMark: (0, zod_1.optional)(helpers_1.firestoreTimestampSchema),
48
50
  });
49
51
  const bookerSchema = (0, zod_1.object)({
50
52
  firstName: (0, zod_1.string)().min(1, "First name is required"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hububb-models",
3
- "version": "1.0.111",
3
+ "version": "1.0.113",
4
4
  "description": "Models for Hububb application",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",