hububb-models 1.0.5 → 1.0.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hububb-models",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Models for Hububb application",
5
5
  "main": "index.js",
6
6
  "types": "./src/index.d.ts",
package/src/index.d.ts CHANGED
@@ -1 +1,3 @@
1
1
  export type { Listing, Picture, Address } from "./models/listing";
2
+
3
+ export type { Reservation } from "./models/reservation";
package/src/index.ts CHANGED
@@ -1 +1,4 @@
1
- export type { Listing, Picture, Address } from "./models/listing";
1
+ export type { Listing, Picture, Address } from "./models/listing/listing";
2
+
3
+ export type { Reservation } from "./models/reservation/reservation";
4
+ export type { User } from "./models/user/user";
@@ -0,0 +1,18 @@
1
+ import { Timestamp } from "@firebase/firestore-types";
2
+
3
+ export interface Reservation {
4
+ id: string;
5
+ guestyId?: string;
6
+ checkIn?: Timestamp;
7
+ checkOut?: Timestamp;
8
+ guest?: {
9
+ id?: string;
10
+ guestyId?: string;
11
+ fullName?: string;
12
+ };
13
+ listing?: {
14
+ id?: string;
15
+ guestyId?: string;
16
+ title?: string;
17
+ };
18
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ exports.__esModule = true;
@@ -0,0 +1,18 @@
1
+ import { Timestamp } from "@firebase/firestore-types";
2
+
3
+ export interface Reservation {
4
+ id: string;
5
+ guestyId?: string;
6
+ checkIn?: Timestamp;
7
+ checkOut?: Timestamp;
8
+ guest?: {
9
+ id?: string;
10
+ guestyId?: string;
11
+ fullName?: string;
12
+ };
13
+ listing?: {
14
+ id?: string;
15
+ guestyId?: string;
16
+ title?: string;
17
+ };
18
+ }
@@ -0,0 +1,6 @@
1
+ export interface User {
2
+ id: string;
3
+ phoneNumber: string;
4
+ bookingRefNumber: string;
5
+ email: string;
6
+ }
File without changes
File without changes