@dsaplatform/content-sdk 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +54 -0
- package/dist/headless.d.mts +23 -0
- package/dist/headless.d.ts +23 -0
- package/dist/index.d.mts +27 -3
- package/dist/index.d.ts +27 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/server.d.mts +23 -0
- package/dist/server.d.ts +23 -0
- package/package.json +1 -1
package/dist/server.d.mts
CHANGED
|
@@ -42,6 +42,10 @@ interface Article {
|
|
|
42
42
|
pillar_name?: string;
|
|
43
43
|
cluster_name?: string;
|
|
44
44
|
content_type?: string;
|
|
45
|
+
/** Author info from site settings (E-E-A-T) */
|
|
46
|
+
author?: ArticleAuthor | null;
|
|
47
|
+
/** Publisher info from site settings (E-E-A-T) */
|
|
48
|
+
publisher?: ArticlePublisher | null;
|
|
45
49
|
}
|
|
46
50
|
/**
|
|
47
51
|
* Abbreviated article for lists
|
|
@@ -85,6 +89,25 @@ interface InternalLink {
|
|
|
85
89
|
slug: string;
|
|
86
90
|
anchor_text: string;
|
|
87
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* Author information (E-E-A-T) — populated from site settings
|
|
94
|
+
*/
|
|
95
|
+
interface ArticleAuthor {
|
|
96
|
+
name: string;
|
|
97
|
+
url?: string | null;
|
|
98
|
+
bio?: string | null;
|
|
99
|
+
image_url?: string | null;
|
|
100
|
+
job_title?: string | null;
|
|
101
|
+
socials?: Record<string, string>;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Publisher information (E-E-A-T) — populated from site settings
|
|
105
|
+
*/
|
|
106
|
+
interface ArticlePublisher {
|
|
107
|
+
name: string;
|
|
108
|
+
logo_url?: string | null;
|
|
109
|
+
url?: string | null;
|
|
110
|
+
}
|
|
88
111
|
/**
|
|
89
112
|
* Category with clusters
|
|
90
113
|
*/
|
package/dist/server.d.ts
CHANGED
|
@@ -42,6 +42,10 @@ interface Article {
|
|
|
42
42
|
pillar_name?: string;
|
|
43
43
|
cluster_name?: string;
|
|
44
44
|
content_type?: string;
|
|
45
|
+
/** Author info from site settings (E-E-A-T) */
|
|
46
|
+
author?: ArticleAuthor | null;
|
|
47
|
+
/** Publisher info from site settings (E-E-A-T) */
|
|
48
|
+
publisher?: ArticlePublisher | null;
|
|
45
49
|
}
|
|
46
50
|
/**
|
|
47
51
|
* Abbreviated article for lists
|
|
@@ -85,6 +89,25 @@ interface InternalLink {
|
|
|
85
89
|
slug: string;
|
|
86
90
|
anchor_text: string;
|
|
87
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* Author information (E-E-A-T) — populated from site settings
|
|
94
|
+
*/
|
|
95
|
+
interface ArticleAuthor {
|
|
96
|
+
name: string;
|
|
97
|
+
url?: string | null;
|
|
98
|
+
bio?: string | null;
|
|
99
|
+
image_url?: string | null;
|
|
100
|
+
job_title?: string | null;
|
|
101
|
+
socials?: Record<string, string>;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Publisher information (E-E-A-T) — populated from site settings
|
|
105
|
+
*/
|
|
106
|
+
interface ArticlePublisher {
|
|
107
|
+
name: string;
|
|
108
|
+
logo_url?: string | null;
|
|
109
|
+
url?: string | null;
|
|
110
|
+
}
|
|
88
111
|
/**
|
|
89
112
|
* Category with clusters
|
|
90
113
|
*/
|
package/package.json
CHANGED