hububb-models 1.0.59 → 1.0.61

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.59",
3
+ "version": "1.0.61",
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
@@ -3,3 +3,4 @@ export type { Reservation } from "./models/reservation/reservation";
3
3
  export type { User } from "./models/user/user";
4
4
  export type { ChatMessage } from "./models/thread/message";
5
5
  export type { ChatThread } from "./models/thread/thread";
6
+ export type { Blog } from "./models/blog/blog";
package/src/index.ts CHANGED
@@ -6,3 +6,4 @@ export type { User } from "./models/user/user";
6
6
 
7
7
  export type { ChatMessage } from "./models/thread/message";
8
8
  export type { ChatThread } from "./models/thread/thread";
9
+ export type { Blog } from "./models/blog/blog";
@@ -1,26 +1,25 @@
1
1
  import { Timestamp } from "@firebase/firestore-types";
2
-
3
2
  export interface Blog {
4
- id: string;
5
- metaTitle: string;
6
- metaDescription: string;
7
- createdAt: Timestamp;
8
- title: string;
9
- subtitle: string;
10
- contentSections: {
3
+ id: string;
4
+ metaTitle: string;
5
+ metaDescription: string;
6
+ createdAt: Timestamp;
11
7
  title: string;
12
- content: string;
13
- subcontent?: {
14
- title: string;
15
- content: 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;
16
24
  }[];
17
- }[];
18
- faqs?: {
19
- question: string;
20
- answer: string;
21
- }[];
22
- pictures?: {
23
- downloadURL: string;
24
- sortOrder: number;
25
- }[];
26
25
  }
@@ -20,7 +20,7 @@ export interface Blog {
20
20
  answer: string;
21
21
  }[];
22
22
  pictures?: {
23
- downloadURL: string;
23
+ downloadUrl: string;
24
24
  sortOrder: number;
25
25
  }[];
26
26
  }