hububb-models 1.0.4 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hububb-models",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
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,3 @@
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";
@@ -2,6 +2,7 @@ import { Timestamp } from "@firebase/firestore-types";
2
2
 
3
3
  export interface Listing {
4
4
  id?: string;
5
+ guestyId?: string;
5
6
  accountId?: string;
6
7
  createdAt: Timestamp;
7
8
  isVirtual?: boolean;
@@ -2,6 +2,7 @@ import { Timestamp } from "@firebase/firestore-types";
2
2
 
3
3
  export interface Listing {
4
4
  id?: string;
5
+ guestyId?: string;
5
6
  accountId?: string;
6
7
  createdAt: Timestamp;
7
8
  isVirtual?: boolean;
@@ -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
+ }
File without changes