hububb-models 1.0.61 → 1.0.63

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. package/dist/helpers/index.d.ts +3 -0
  2. package/dist/helpers/index.js +6 -0
  3. package/dist/index.d.ts +14 -0
  4. package/dist/index.js +30 -0
  5. package/dist/models/apaleo/offer.d.ts +3 -0
  6. package/dist/models/apaleo/offer.js +2 -0
  7. package/dist/models/blog.d.ts +3 -0
  8. package/dist/models/blog.js +2 -0
  9. package/dist/models/calendar.d.ts +4 -0
  10. package/dist/models/calendar.js +2 -0
  11. package/dist/models/listing.d.ts +6 -0
  12. package/dist/models/listing.js +2 -0
  13. package/dist/models/reservation.d.ts +3 -0
  14. package/dist/models/reservation.js +2 -0
  15. package/dist/models/thread.d.ts +4 -0
  16. package/dist/models/thread.js +2 -0
  17. package/dist/models/user.d.ts +3 -0
  18. package/dist/models/user.js +2 -0
  19. package/dist/schemas/apaleo/offer.d.ts +675 -0
  20. package/dist/schemas/apaleo/offer.js +111 -0
  21. package/dist/schemas/blog.d.ts +102 -0
  22. package/dist/schemas/blog.js +33 -0
  23. package/dist/schemas/calendar.d.ts +68 -0
  24. package/dist/schemas/calendar.js +17 -0
  25. package/dist/schemas/listing.d.ts +758 -0
  26. package/dist/schemas/listing.js +122 -0
  27. package/dist/schemas/reservation.d.ts +148 -0
  28. package/dist/schemas/reservation.js +46 -0
  29. package/dist/schemas/thread.d.ts +779 -0
  30. package/dist/schemas/thread.js +27 -0
  31. package/dist/schemas/user.d.ts +148 -0
  32. package/dist/schemas/user.js +42 -0
  33. package/package.json +17 -8
  34. package/src/index.d.ts +0 -6
  35. package/src/index.js +0 -2
  36. package/src/index.ts +0 -9
  37. package/src/models/blog/blog.d.ts +0 -25
  38. package/src/models/blog/blog.js +0 -2
  39. package/src/models/blog/blog.ts +0 -26
  40. package/src/models/listing/listing.d.ts +0 -117
  41. package/src/models/listing/listing.js +0 -2
  42. package/src/models/listing/listing.ts +0 -121
  43. package/src/models/reservation/reservation.d.ts +0 -39
  44. package/src/models/reservation/reservation.js +0 -2
  45. package/src/models/reservation/reservation.ts +0 -40
  46. package/src/models/thread/message.d.ts +0 -15
  47. package/src/models/thread/message.js +0 -2
  48. package/src/models/thread/message.ts +0 -16
  49. package/src/models/thread/thread.d.ts +0 -12
  50. package/src/models/thread/thread.js +0 -2
  51. package/src/models/thread/thread.ts +0 -13
  52. package/src/models/user/user.d.ts +0 -30
  53. package/src/models/user/user.js +0 -2
  54. package/src/models/user/user.ts +0 -30
  55. package/tsconfig.json +0 -10
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChatThreadSchema = exports.ChatMessageSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const helpers_1 = require("../helpers");
6
+ const user_1 = require("./user");
7
+ const SeenBySchema = (0, zod_1.record)((0, zod_1.string)(), helpers_1.firestoreTimestampSchema);
8
+ exports.ChatMessageSchema = (0, zod_1.object)({
9
+ id: (0, zod_1.string)(),
10
+ createdAt: helpers_1.firestoreTimestampSchema,
11
+ threadId: (0, zod_1.string)(),
12
+ authorId: (0, zod_1.string)(),
13
+ author: (0, zod_1.optional)(user_1.UserSchema),
14
+ contentType: (0, zod_1.string)(),
15
+ body: (0, zod_1.string)(),
16
+ seen: SeenBySchema,
17
+ lastSeen: (0, zod_1.optional)(helpers_1.firestoreTimestampSchema),
18
+ });
19
+ exports.ChatThreadSchema = (0, zod_1.object)({
20
+ id: (0, zod_1.optional)((0, zod_1.string)()),
21
+ createdAt: helpers_1.firestoreTimestampSchema,
22
+ updatedAt: helpers_1.firestoreTimestampSchema,
23
+ lastMessage: (0, zod_1.optional)(exports.ChatMessageSchema),
24
+ participantIds: (0, zod_1.array)((0, zod_1.string)()),
25
+ participants: (0, zod_1.optional)((0, zod_1.array)(user_1.UserSchema)),
26
+ type: (0, zod_1.union)([(0, zod_1.literal)("ONE_TO_ONE"), (0, zod_1.literal)("GROUP")]),
27
+ });
@@ -0,0 +1,148 @@
1
+ export declare const UserSchema: import("zod").ZodObject<{
2
+ id: import("zod").ZodString;
3
+ phoneNumber: import("zod").ZodString;
4
+ fullName: import("zod").ZodString;
5
+ firstName: import("zod").ZodOptional<import("zod").ZodString>;
6
+ lastName: import("zod").ZodOptional<import("zod").ZodString>;
7
+ dateOfBirth: import("zod").ZodOptional<import("zod").ZodString>;
8
+ profilePicture: import("zod").ZodOptional<import("zod").ZodString>;
9
+ email: import("zod").ZodString;
10
+ verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
11
+ kyc: import("zod").ZodOptional<import("zod").ZodObject<{
12
+ verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
13
+ state: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodLiteral<"processing">, import("zod").ZodLiteral<"success">, import("zod").ZodLiteral<"declined">]>>;
14
+ declinedReason: import("zod").ZodOptional<import("zod").ZodString>;
15
+ form: import("zod").ZodObject<{
16
+ firstName: import("zod").ZodOptional<import("zod").ZodString>;
17
+ lastName: import("zod").ZodOptional<import("zod").ZodString>;
18
+ dob: import("zod").ZodOptional<import("zod").ZodString>;
19
+ document: import("zod").ZodOptional<import("zod").ZodString>;
20
+ face: import("zod").ZodOptional<import("zod").ZodString>;
21
+ country: import("zod").ZodOptional<import("zod").ZodObject<{
22
+ code: import("zod").ZodOptional<import("zod").ZodString>;
23
+ name: import("zod").ZodOptional<import("zod").ZodString>;
24
+ }, "strip", import("zod").ZodTypeAny, {
25
+ code?: string | undefined;
26
+ name?: string | undefined;
27
+ }, {
28
+ code?: string | undefined;
29
+ name?: string | undefined;
30
+ }>>;
31
+ documentType: import("zod").ZodOptional<import("zod").ZodString>;
32
+ }, "strip", import("zod").ZodTypeAny, {
33
+ document?: string | undefined;
34
+ firstName?: string | undefined;
35
+ lastName?: string | undefined;
36
+ dob?: string | undefined;
37
+ face?: string | undefined;
38
+ country?: {
39
+ code?: string | undefined;
40
+ name?: string | undefined;
41
+ } | undefined;
42
+ documentType?: string | undefined;
43
+ }, {
44
+ document?: string | undefined;
45
+ firstName?: string | undefined;
46
+ lastName?: string | undefined;
47
+ dob?: string | undefined;
48
+ face?: string | undefined;
49
+ country?: {
50
+ code?: string | undefined;
51
+ name?: string | undefined;
52
+ } | undefined;
53
+ documentType?: string | undefined;
54
+ }>;
55
+ }, "strip", import("zod").ZodTypeAny, {
56
+ form: {
57
+ document?: string | undefined;
58
+ firstName?: string | undefined;
59
+ lastName?: string | undefined;
60
+ dob?: string | undefined;
61
+ face?: string | undefined;
62
+ country?: {
63
+ code?: string | undefined;
64
+ name?: string | undefined;
65
+ } | undefined;
66
+ documentType?: string | undefined;
67
+ };
68
+ state?: string | undefined;
69
+ verified?: boolean | undefined;
70
+ declinedReason?: string | undefined;
71
+ }, {
72
+ form: {
73
+ document?: string | undefined;
74
+ firstName?: string | undefined;
75
+ lastName?: string | undefined;
76
+ dob?: string | undefined;
77
+ face?: string | undefined;
78
+ country?: {
79
+ code?: string | undefined;
80
+ name?: string | undefined;
81
+ } | undefined;
82
+ documentType?: string | undefined;
83
+ };
84
+ state?: string | undefined;
85
+ verified?: boolean | undefined;
86
+ declinedReason?: string | undefined;
87
+ }>>;
88
+ klevioId: import("zod").ZodOptional<import("zod").ZodString>;
89
+ favorites: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
90
+ }, "strip", import("zod").ZodTypeAny, {
91
+ id: string;
92
+ email: string;
93
+ phoneNumber: string;
94
+ fullName: string;
95
+ firstName?: string | undefined;
96
+ lastName?: string | undefined;
97
+ verified?: boolean | undefined;
98
+ dateOfBirth?: string | undefined;
99
+ profilePicture?: string | undefined;
100
+ kyc?: {
101
+ form: {
102
+ document?: string | undefined;
103
+ firstName?: string | undefined;
104
+ lastName?: string | undefined;
105
+ dob?: string | undefined;
106
+ face?: string | undefined;
107
+ country?: {
108
+ code?: string | undefined;
109
+ name?: string | undefined;
110
+ } | undefined;
111
+ documentType?: string | undefined;
112
+ };
113
+ state?: string | undefined;
114
+ verified?: boolean | undefined;
115
+ declinedReason?: string | undefined;
116
+ } | undefined;
117
+ klevioId?: string | undefined;
118
+ favorites?: string[] | undefined;
119
+ }, {
120
+ id: string;
121
+ email: string;
122
+ phoneNumber: string;
123
+ fullName: string;
124
+ firstName?: string | undefined;
125
+ lastName?: string | undefined;
126
+ verified?: boolean | undefined;
127
+ dateOfBirth?: string | undefined;
128
+ profilePicture?: string | undefined;
129
+ kyc?: {
130
+ form: {
131
+ document?: string | undefined;
132
+ firstName?: string | undefined;
133
+ lastName?: string | undefined;
134
+ dob?: string | undefined;
135
+ face?: string | undefined;
136
+ country?: {
137
+ code?: string | undefined;
138
+ name?: string | undefined;
139
+ } | undefined;
140
+ documentType?: string | undefined;
141
+ };
142
+ state?: string | undefined;
143
+ verified?: boolean | undefined;
144
+ declinedReason?: string | undefined;
145
+ } | undefined;
146
+ klevioId?: string | undefined;
147
+ favorites?: string[] | undefined;
148
+ }>;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const CountrySchema = (0, zod_1.object)({
6
+ code: (0, zod_1.optional)((0, zod_1.string)()),
7
+ name: (0, zod_1.optional)((0, zod_1.string)()),
8
+ });
9
+ const KYCFormSchema = (0, zod_1.object)({
10
+ firstName: (0, zod_1.optional)((0, zod_1.string)()),
11
+ lastName: (0, zod_1.optional)((0, zod_1.string)()),
12
+ dob: (0, zod_1.optional)((0, zod_1.string)()),
13
+ document: (0, zod_1.optional)((0, zod_1.string)()),
14
+ face: (0, zod_1.optional)((0, zod_1.string)()),
15
+ country: (0, zod_1.optional)(CountrySchema),
16
+ documentType: (0, zod_1.optional)((0, zod_1.string)()),
17
+ });
18
+ const KycSchema = (0, zod_1.object)({
19
+ verified: (0, zod_1.optional)((0, zod_1.boolean)()),
20
+ state: (0, zod_1.optional)((0, zod_1.union)([
21
+ (0, zod_1.string)(),
22
+ (0, zod_1.literal)("processing"),
23
+ (0, zod_1.literal)("success"),
24
+ (0, zod_1.literal)("declined"),
25
+ ])),
26
+ declinedReason: (0, zod_1.optional)((0, zod_1.string)()),
27
+ form: KYCFormSchema,
28
+ });
29
+ exports.UserSchema = (0, zod_1.object)({
30
+ id: (0, zod_1.string)(),
31
+ phoneNumber: (0, zod_1.string)(),
32
+ fullName: (0, zod_1.string)(),
33
+ firstName: (0, zod_1.optional)((0, zod_1.string)()),
34
+ lastName: (0, zod_1.optional)((0, zod_1.string)()),
35
+ dateOfBirth: (0, zod_1.optional)((0, zod_1.string)()),
36
+ profilePicture: (0, zod_1.optional)((0, zod_1.string)()),
37
+ email: (0, zod_1.string)(),
38
+ verified: (0, zod_1.optional)((0, zod_1.boolean)()),
39
+ kyc: (0, zod_1.optional)(KycSchema),
40
+ klevioId: (0, zod_1.optional)((0, zod_1.string)()),
41
+ favorites: (0, zod_1.optional)((0, zod_1.array)((0, zod_1.string)())),
42
+ });
package/package.json CHANGED
@@ -1,21 +1,30 @@
1
1
  {
2
2
  "name": "hububb-models",
3
- "version": "1.0.61",
3
+ "version": "1.0.63",
4
4
  "description": "Models for Hububb application",
5
- "main": "index.js",
6
- "types": "./src/index.d.ts",
5
+ "types": "./dist/index.d.ts",
6
+ "main": "./dist/index.js",
7
+ "files": [
8
+ "dist/**"
9
+ ],
7
10
  "scripts": {
8
11
  "test": "echo \"Error: no test specified\" && exit 1",
9
- "prepublishOnly": "tsc src/index.ts -d",
10
- "build": "tsc src/index.ts -d"
12
+ "prepublishOnly": "tsc",
13
+ "build": "tsc"
11
14
  },
12
15
  "author": "Exelerate",
13
16
  "license": "ISC",
14
17
  "dependencies": {
15
- "@firebase/firestore-types": "^2.5.0",
16
- "@firebase/util": "^1.2.0"
18
+ "@firebase/app": "^0.9.25",
19
+ "@firebase/firestore": "^4.4.0",
20
+ "@firebase/firestore-types": "^3.0.0",
21
+ "@firebase/util": "^1.5.1",
22
+ "lodash": "^4.17.21",
23
+ "moment": "^2.29.4",
24
+ "zod": "^3.22.4"
17
25
  },
18
26
  "devDependencies": {
19
- "typescript": "^4.3.5"
27
+ "@types/lodash": "^4.14.197",
28
+ "typescript": "^4.5.2"
20
29
  }
21
30
  }
package/src/index.d.ts DELETED
@@ -1,6 +0,0 @@
1
- export type { Listing, Picture, Address } from "./models/listing/listing";
2
- export type { Reservation } from "./models/reservation/reservation";
3
- export type { User } from "./models/user/user";
4
- export type { ChatMessage } from "./models/thread/message";
5
- export type { ChatThread } from "./models/thread/thread";
6
- export type { Blog } from "./models/blog/blog";
package/src/index.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- exports.__esModule = true;
package/src/index.ts DELETED
@@ -1,9 +0,0 @@
1
- export type { Listing, Picture, Address } from "./models/listing/listing";
2
-
3
- export type { Reservation } from "./models/reservation/reservation";
4
-
5
- export type { User } from "./models/user/user";
6
-
7
- export type { ChatMessage } from "./models/thread/message";
8
- export type { ChatThread } from "./models/thread/thread";
9
- export type { Blog } from "./models/blog/blog";
@@ -1,25 +0,0 @@
1
- import { Timestamp } from "@firebase/firestore-types";
2
- export interface Blog {
3
- id: string;
4
- metaTitle: string;
5
- metaDescription: string;
6
- createdAt: Timestamp;
7
- title: string;
8
- subtitle: string;
9
- contentSections: {
10
- title: string;
11
- content: string;
12
- subcontent?: {
13
- title: string;
14
- content: string;
15
- }[];
16
- }[];
17
- faqs?: {
18
- question: string;
19
- answer: string;
20
- }[];
21
- pictures?: {
22
- downloadUrl: string;
23
- sortOrder: number;
24
- }[];
25
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- exports.__esModule = true;
@@ -1,26 +0,0 @@
1
- import { Timestamp } from "@firebase/firestore-types";
2
-
3
- export interface Blog {
4
- id: string;
5
- metaTitle: string;
6
- metaDescription: string;
7
- createdAt: Timestamp;
8
- title: string;
9
- subtitle: string;
10
- contentSections: {
11
- title: string;
12
- content: string;
13
- subcontent?: {
14
- title: string;
15
- content: string;
16
- }[];
17
- }[];
18
- faqs?: {
19
- question: string;
20
- answer: string;
21
- }[];
22
- pictures?: {
23
- downloadUrl: string;
24
- sortOrder: number;
25
- }[];
26
- }
@@ -1,117 +0,0 @@
1
- import { Timestamp } from "@firebase/firestore-types";
2
- export interface Listing {
3
- id?: string;
4
- _geo: {
5
- lat: number;
6
- lng: number;
7
- };
8
- guestyId?: string;
9
- accountId?: string;
10
- createdAt: Timestamp;
11
- isVirtual?: boolean;
12
- isListed: boolean;
13
- title?: string;
14
- propertyType?: string;
15
- roomType?: string;
16
- bedType?: string;
17
- accommodates?: number;
18
- bedrooms?: number;
19
- bathrooms?: number;
20
- bathroomShared?: number;
21
- bathroomPrivate?: number;
22
- beds?: number;
23
- areaSquareFeet?: number;
24
- address: Address;
25
- publishedAddress?: {
26
- full: string;
27
- lng: number;
28
- lat: number;
29
- street: string;
30
- city: string;
31
- country: string;
32
- };
33
- timezone?: string;
34
- defaultCheckInTime?: string;
35
- defaultCheckOutTime?: string;
36
- picture?: Picture;
37
- pictures: Picture[];
38
- amenities: string[];
39
- terms: {
40
- minNights: number;
41
- maxNights: number;
42
- cancellation: string;
43
- };
44
- prices: {
45
- guestsIncludedInRegularFee?: number;
46
- extraPersonFee?: number;
47
- basePrice: number;
48
- basePriceUSD?: number;
49
- monthlyPriceFactor?: number;
50
- weeklyPriceFactor?: number;
51
- weekendBasePrice?: number;
52
- securityDepositFee?: number;
53
- currency: string;
54
- cleaningFee: number;
55
- };
56
- netIncomeFormula?: string;
57
- commissionFormula?: string;
58
- commissionTaxPrecentage?: string;
59
- paymentProcessing?: {
60
- active: boolean;
61
- paymentProviders: {
62
- stripe: {
63
- active: boolean;
64
- status: string;
65
- accountName: string;
66
- defaultCurrency: string;
67
- syncedAt: Timestamp;
68
- payload: {
69
- id: string;
70
- livemode: boolean;
71
- token_type: string;
72
- stripe_publishable_key: string;
73
- stripe_user_id: string;
74
- scope: string;
75
- };
76
- };
77
- };
78
- };
79
- active: boolean;
80
- publicDescription: any;
81
- frontDoor?: Door;
82
- mainDoor?: Door;
83
- noAptKey?: boolean;
84
- aptKey?: string;
85
- keyMethod?: "unlock" | "open";
86
- externalId?: string;
87
- requestToBook?: boolean;
88
- nickname?: string;
89
- listingType?: "parent" | "child" | "shared";
90
- parentId?: string;
91
- childIds?: string[];
92
- city?: string;
93
- }
94
- export interface Door {
95
- id?: string;
96
- method?: "unlock" | "open";
97
- }
98
- export interface Address {
99
- full: string;
100
- lng: number;
101
- lat: number;
102
- street: string;
103
- city: string;
104
- country: string;
105
- state?: string;
106
- zipcode?: string;
107
- }
108
- export interface Picture {
109
- regular?: string;
110
- thumbnail?: string;
111
- large?: string;
112
- caption?: string;
113
- original?: string;
114
- height?: number;
115
- size?: number;
116
- width?: number;
117
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- exports.__esModule = true;
@@ -1,121 +0,0 @@
1
- import { Timestamp } from "@firebase/firestore-types";
2
-
3
- export interface Listing {
4
- id?: string;
5
- _geo: {
6
- lat: number;
7
- lng: number;
8
- };
9
- guestyId?: string;
10
- accountId?: string;
11
- createdAt: Timestamp;
12
- isVirtual?: boolean;
13
- isListed: boolean;
14
- title?: string;
15
- propertyType?: string;
16
- roomType?: string;
17
- bedType?: string;
18
- accommodates?: number;
19
- bedrooms?: number;
20
- bathrooms?: number;
21
- bathroomShared?: number;
22
- bathroomPrivate?: number;
23
- beds?: number;
24
- areaSquareFeet?: number;
25
- address: Address;
26
- publishedAddress?: {
27
- full: string;
28
- lng: number;
29
- lat: number;
30
- street: string;
31
- city: string;
32
- country: string;
33
- };
34
- timezone?: string;
35
- defaultCheckInTime?: string;
36
- defaultCheckOutTime?: string;
37
-
38
- picture?: Picture;
39
- pictures: Picture[];
40
- amenities: string[];
41
-
42
- terms: {
43
- minNights: number;
44
- maxNights: number;
45
- cancellation: string;
46
- };
47
- prices: {
48
- guestsIncludedInRegularFee?: number;
49
- extraPersonFee?: number;
50
- basePrice: number;
51
- basePriceUSD?: number;
52
- monthlyPriceFactor?: number;
53
- weeklyPriceFactor?: number;
54
- weekendBasePrice?: number;
55
- securityDepositFee?: number;
56
- currency: string;
57
- cleaningFee: number;
58
- };
59
- netIncomeFormula?: string;
60
- commissionFormula?: string;
61
- commissionTaxPrecentage?: string;
62
-
63
- paymentProcessing?: {
64
- active: boolean;
65
- paymentProviders: {
66
- stripe: {
67
- active: boolean;
68
- status: string;
69
- accountName: string;
70
- defaultCurrency: string;
71
- syncedAt: Timestamp;
72
- payload: {
73
- id: string;
74
- livemode: boolean;
75
- token_type: string;
76
- stripe_publishable_key: string;
77
- stripe_user_id: string;
78
- scope: string;
79
- };
80
- };
81
- };
82
- };
83
- active: boolean;
84
- publicDescription: any;
85
- frontDoor?: Door;
86
- mainDoor?: Door;
87
- noAptKey?: boolean;
88
- aptKey?: string;
89
- keyMethod?: "unlock" | "open";
90
- externalId?: string;
91
- requestToBook?: boolean;
92
- nickname?: string;
93
- listingType?: "parent" | "child" | "shared";
94
- parentId?: string;
95
- childIds?: string[];
96
- city?: string;
97
- }
98
- export interface Door {
99
- id?: string;
100
- method?: "unlock" | "open";
101
- }
102
- export interface Address {
103
- full: string;
104
- lng: number;
105
- lat: number;
106
- street: string;
107
- city: string;
108
- country: string;
109
- state?: string;
110
- zipcode?: string;
111
- }
112
- export interface Picture {
113
- regular?: string;
114
- thumbnail?: string;
115
- large?: string;
116
- caption?: string;
117
- original?: string;
118
- height?: number;
119
- size?: number;
120
- width?: number;
121
- }
@@ -1,39 +0,0 @@
1
- import { Timestamp } from "@firebase/firestore-types";
2
- export interface Reservation {
3
- id: string;
4
- createdAt?: Timestamp;
5
- externalId?: string;
6
- checkIn?: Timestamp;
7
- checkOut?: Timestamp;
8
- status?: string;
9
- statusDescription?: string;
10
- guest?: {
11
- id?: string;
12
- externalId?: string;
13
- fullName?: string;
14
- email?: string;
15
- ids?: string[];
16
- };
17
- listing?: {
18
- id?: string;
19
- externalId?: string;
20
- title?: string;
21
- picture?: string;
22
- };
23
- klevio?: {
24
- keyId?: string;
25
- from?: Timestamp;
26
- to?: Timestamp;
27
- keyholderId?: string;
28
- keyholderEmail?: string;
29
- propertyId?: string;
30
- };
31
- refNumber?: string;
32
- money?: any;
33
- source?: string;
34
- total?: number;
35
- guests?: number;
36
- adults?: number;
37
- children?: number;
38
- inboxId?: number;
39
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- exports.__esModule = true;
@@ -1,40 +0,0 @@
1
- import { Timestamp } from "@firebase/firestore-types";
2
-
3
- export interface Reservation {
4
- id: string;
5
- createdAt?: Timestamp;
6
- externalId?: string;
7
- checkIn?: Timestamp;
8
- checkOut?: Timestamp;
9
- status?: string;
10
- statusDescription?: string;
11
- guest?: {
12
- id?: string;
13
- externalId?: string;
14
- fullName?: string;
15
- email?: string;
16
- ids?: string[];
17
- };
18
- listing?: {
19
- id?: string;
20
- externalId?: string;
21
- title?: string;
22
- picture?: string;
23
- };
24
- klevio?: {
25
- keyId?: string;
26
- from?: Timestamp;
27
- to?: Timestamp;
28
- keyholderId?: string;
29
- keyholderEmail?: string;
30
- propertyId?: string;
31
- };
32
- refNumber?: string;
33
- money?: any;
34
- source?: string;
35
- total?: number;
36
- guests?: number;
37
- adults?: number;
38
- children?: number;
39
- inboxId?: number;
40
- }
@@ -1,15 +0,0 @@
1
- import { Timestamp } from '@firebase/firestore-types';
2
- import { User } from '../user/user';
3
- declare type SeenBy = Record<string, Timestamp>;
4
- export interface ChatMessage {
5
- id: string;
6
- createdAt: Timestamp;
7
- threadId: string;
8
- authorId: string;
9
- author?: User;
10
- contentType: string;
11
- body: string;
12
- seen: SeenBy;
13
- lastSeen?: Timestamp;
14
- }
15
- export {};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- exports.__esModule = true;