hububb-models 1.0.3 → 1.0.5

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.3",
3
+ "version": "1.0.5",
4
4
  "description": "Models for Hububb application",
5
5
  "main": "index.js",
6
6
  "types": "./src/index.d.ts",
@@ -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;
@@ -16,7 +17,7 @@ export interface Listing {
16
17
  beds?: number;
17
18
  areaSquareFeet?: number;
18
19
  address: Address;
19
- publishedAddress: {
20
+ publishedAddress?: {
20
21
  full: string;
21
22
  lng: number;
22
23
  lat: number;
@@ -49,11 +50,11 @@ export interface Listing {
49
50
  currency: string;
50
51
  cleaningFee: number;
51
52
  };
52
- netIncomeFormula: string;
53
- commissionFormula: string;
54
- commissionTaxPrecentage: string;
53
+ netIncomeFormula?: string;
54
+ commissionFormula?: string;
55
+ commissionTaxPrecentage?: string;
55
56
 
56
- paymentProcessing: {
57
+ paymentProcessing?: {
57
58
  active: boolean;
58
59
  paymentProviders: {
59
60
  stripe: {
@@ -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;
@@ -16,7 +17,7 @@ export interface Listing {
16
17
  beds?: number;
17
18
  areaSquareFeet?: number;
18
19
  address: Address;
19
- publishedAddress: {
20
+ publishedAddress?: {
20
21
  full: string;
21
22
  lng: number;
22
23
  lat: number;
@@ -49,11 +50,11 @@ export interface Listing {
49
50
  currency: string;
50
51
  cleaningFee: number;
51
52
  };
52
- netIncomeFormula: string;
53
- commissionFormula: string;
54
- commissionTaxPrecentage: string;
53
+ netIncomeFormula?: string;
54
+ commissionFormula?: string;
55
+ commissionTaxPrecentage?: string;
55
56
 
56
- paymentProcessing: {
57
+ paymentProcessing?: {
57
58
  active: boolean;
58
59
  paymentProviders: {
59
60
  stripe: {