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
@@ -1,16 +0,0 @@
1
- import { Timestamp } from '@firebase/firestore-types';
2
- import { User } from '../user/user';
3
-
4
- declare type SeenBy = Record<string, Timestamp>;
5
-
6
- export interface ChatMessage {
7
- id: string;
8
- createdAt: Timestamp;
9
- threadId: string;
10
- authorId: string;
11
- author?: User;
12
- contentType: string;
13
- body: string;
14
- seen: SeenBy;
15
- lastSeen?: Timestamp;
16
- }
@@ -1,12 +0,0 @@
1
- import { Timestamp } from "@firebase/firestore-types";
2
- import { ChatMessage } from "./message";
3
- import { User } from "../user/user";
4
- export interface ChatThread {
5
- id?: string;
6
- createdAt: Timestamp;
7
- updatedAt: Timestamp;
8
- lastMessage?: ChatMessage;
9
- participantIds: string[];
10
- participants?: User[];
11
- type: "ONE_TO_ONE" | "GROUP";
12
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- exports.__esModule = true;
@@ -1,13 +0,0 @@
1
- import { Timestamp } from "@firebase/firestore-types";
2
- import { ChatMessage } from "./message";
3
- import { User } from "../user/user";
4
-
5
- export interface ChatThread {
6
- id?: string;
7
- createdAt: Timestamp;
8
- updatedAt: Timestamp;
9
- lastMessage?: ChatMessage;
10
- participantIds: string[];
11
- participants?: User[];
12
- type: "ONE_TO_ONE" | "GROUP";
13
- }
@@ -1,30 +0,0 @@
1
- export interface User {
2
- id: string;
3
- phoneNumber: string;
4
- fullName: string;
5
- firstName?: string;
6
- lastName?: string;
7
- dateOfBirth?: string;
8
- profilePicture?: string;
9
- email: string;
10
- verified?: boolean;
11
- kyc?: {
12
- verified?: boolean;
13
- state?: "processing" | "success" | "declined";
14
- declinedReason?: string;
15
- form: {
16
- firstName?: string;
17
- lastName?: string;
18
- dob?: string;
19
- document?: string;
20
- face?: string;
21
- country?: {
22
- code?: string;
23
- name?: string;
24
- };
25
- documentType?: string;
26
- };
27
- };
28
- klevioId?: string;
29
- favorites?: string[];
30
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- exports.__esModule = true;
@@ -1,30 +0,0 @@
1
- export interface User {
2
- id: string;
3
- phoneNumber: string;
4
- fullName: string;
5
- firstName?: string;
6
- lastName?: string;
7
- dateOfBirth?: string;
8
- profilePicture?: string;
9
- email: string;
10
- verified?: boolean;
11
- kyc?: {
12
- verified?: boolean;
13
- state?: "processing" | "success" | "declined";
14
- declinedReason?: string;
15
- form: {
16
- firstName?: string;
17
- lastName?: string;
18
- dob?: string;
19
- document?: string;
20
- face?: string;
21
- country?: {
22
- code?: string;
23
- name?: string;
24
- };
25
- documentType?: string;
26
- };
27
- };
28
- klevioId?: string;
29
- favorites?: string[];
30
- }
package/tsconfig.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es6",
4
- "module": "commonjs",
5
- "declaration": true,
6
- "outDir": "./dist",
7
- "rootDir": "./src",
8
- "strict": true
9
- }
10
- }