hububb-models 1.0.58 → 1.0.60
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.ts +1 -0
- package/src/models/blog/blog.d.ts +25 -0
- package/src/models/blog/blog.js +2 -0
- package/src/models/blog/blog.ts +26 -0
package/package.json
CHANGED
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
@@ -0,0 +1,25 @@
|
|
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
|
+
}
|
@@ -0,0 +1,26 @@
|
|
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
|
+
}
|