@uptrademedia/site-kit 1.0.3 → 1.0.4
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/dist/SetupWizard-Cki06kB0.d.mts +12 -0
- package/dist/SetupWizard-Cki06kB0.d.ts +12 -0
- package/dist/analytics/index.d.mts +87 -0
- package/dist/analytics/index.d.ts +87 -0
- package/dist/blog/index.d.mts +24 -0
- package/dist/blog/index.d.ts +24 -0
- package/dist/{chunk-6EXHT7PS.mjs → chunk-2IHTEKHU.mjs} +5 -3
- package/dist/chunk-2IHTEKHU.mjs.map +1 -0
- package/dist/{chunk-63JNO4QN.mjs → chunk-DOHML47I.mjs} +2 -2
- package/dist/chunk-DOHML47I.mjs.map +1 -0
- package/dist/{chunk-YKMCG3DS.js → chunk-GAJLEDRD.js} +5 -3
- package/dist/chunk-GAJLEDRD.js.map +1 -0
- package/dist/{chunk-PYYEPAHL.js → chunk-K2HWVOEO.js} +2 -2
- package/dist/chunk-K2HWVOEO.js.map +1 -0
- package/dist/{chunk-JG2K4S2I.js → chunk-O2OHHBUD.js} +9 -9
- package/dist/chunk-O2OHHBUD.js.map +1 -0
- package/dist/{chunk-P7LGOKGI.mjs → chunk-XQJX252G.mjs} +9 -9
- package/dist/chunk-XQJX252G.mjs.map +1 -0
- package/dist/commerce/index.d.mts +168 -0
- package/dist/commerce/index.d.ts +168 -0
- package/dist/commerce/index.js +38 -38
- package/dist/commerce/index.mjs +1 -1
- package/dist/commerce/server.d.mts +98 -0
- package/dist/commerce/server.d.ts +98 -0
- package/dist/engage/index.d.mts +27 -0
- package/dist/engage/index.d.ts +27 -0
- package/dist/forms/index.d.mts +437 -0
- package/dist/forms/index.d.ts +437 -0
- package/dist/images/index.d.mts +133 -0
- package/dist/images/index.d.ts +133 -0
- package/dist/images/index.js +8 -8
- package/dist/images/index.mjs +1 -1
- package/dist/index.d.mts +649 -0
- package/dist/index.d.ts +649 -0
- package/dist/index.js +46 -46
- package/dist/index.mjs +3 -3
- package/dist/redirects/index.d.mts +72 -0
- package/dist/redirects/index.d.ts +72 -0
- package/dist/routing-BWjUF7lp.d.ts +105 -0
- package/dist/routing-CgmRi9tD.d.mts +105 -0
- package/dist/seo/index.d.mts +273 -0
- package/dist/seo/index.d.ts +273 -0
- package/dist/seo/server.d.mts +89 -0
- package/dist/seo/server.d.ts +89 -0
- package/dist/setup/client.d.mts +60 -0
- package/dist/setup/client.d.ts +60 -0
- package/dist/setup/index.d.mts +5 -0
- package/dist/setup/index.d.ts +5 -0
- package/dist/setup/index.js +2 -2
- package/dist/setup/index.mjs +1 -1
- package/dist/setup/server.d.mts +14 -0
- package/dist/setup/server.d.ts +14 -0
- package/dist/setup/server.js +2 -2
- package/dist/setup/server.mjs +1 -1
- package/dist/sitemap/index.d.mts +78 -0
- package/dist/sitemap/index.d.ts +78 -0
- package/dist/types-BDojCvvL.d.mts +156 -0
- package/dist/types-BDojCvvL.d.ts +156 -0
- package/dist/types-BmzutFwy.d.mts +227 -0
- package/dist/types-BmzutFwy.d.ts +227 -0
- package/dist/types-C0pJGfbH.d.mts +155 -0
- package/dist/types-C0pJGfbH.d.ts +155 -0
- package/dist/types-DA_Kocle.d.mts +127 -0
- package/dist/types-DA_Kocle.d.ts +127 -0
- package/dist/types-lFLKKn0G.d.mts +163 -0
- package/dist/types-lFLKKn0G.d.ts +163 -0
- package/dist/types-nB206tPK.d.mts +309 -0
- package/dist/types-nB206tPK.d.ts +309 -0
- package/dist/useEventModal-6U1pF3_g.d.mts +209 -0
- package/dist/useEventModal-BA8g-1-P.d.ts +209 -0
- package/package.json +1 -1
- package/dist/chunk-63JNO4QN.mjs.map +0 -1
- package/dist/chunk-6EXHT7PS.mjs.map +0 -1
- package/dist/chunk-JG2K4S2I.js.map +0 -1
- package/dist/chunk-P7LGOKGI.mjs.map +0 -1
- package/dist/chunk-PYYEPAHL.js.map +0 -1
- package/dist/chunk-YKMCG3DS.js.map +0 -1
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @uptrade/site-kit/blog - Type definitions
|
|
3
|
+
*/
|
|
4
|
+
interface BlogPost {
|
|
5
|
+
id: string;
|
|
6
|
+
project_id: string;
|
|
7
|
+
/** URL slug */
|
|
8
|
+
slug: string;
|
|
9
|
+
/** Content */
|
|
10
|
+
title: string;
|
|
11
|
+
excerpt?: string;
|
|
12
|
+
content: string;
|
|
13
|
+
content_html?: string;
|
|
14
|
+
/** Featured image */
|
|
15
|
+
featured_image?: string;
|
|
16
|
+
featured_image_alt?: string;
|
|
17
|
+
/** Author */
|
|
18
|
+
author_id?: string;
|
|
19
|
+
author?: BlogAuthor;
|
|
20
|
+
/** Categorization */
|
|
21
|
+
category_id?: string;
|
|
22
|
+
category?: BlogCategory;
|
|
23
|
+
tags?: BlogTag[];
|
|
24
|
+
/** SEO */
|
|
25
|
+
meta_title?: string;
|
|
26
|
+
meta_description?: string;
|
|
27
|
+
og_image?: string;
|
|
28
|
+
canonical_url?: string;
|
|
29
|
+
/** Publishing */
|
|
30
|
+
status: 'draft' | 'published' | 'scheduled' | 'archived';
|
|
31
|
+
published_at?: string;
|
|
32
|
+
scheduled_at?: string;
|
|
33
|
+
/** Settings */
|
|
34
|
+
allow_comments: boolean;
|
|
35
|
+
is_featured: boolean;
|
|
36
|
+
/** Computed */
|
|
37
|
+
reading_time_minutes?: number;
|
|
38
|
+
view_count?: number;
|
|
39
|
+
/** Timestamps */
|
|
40
|
+
created_at: string;
|
|
41
|
+
updated_at: string;
|
|
42
|
+
}
|
|
43
|
+
interface BlogAuthor {
|
|
44
|
+
id: string;
|
|
45
|
+
project_id: string;
|
|
46
|
+
name: string;
|
|
47
|
+
slug: string;
|
|
48
|
+
bio?: string;
|
|
49
|
+
avatar_url?: string;
|
|
50
|
+
email?: string;
|
|
51
|
+
website?: string;
|
|
52
|
+
social_links?: {
|
|
53
|
+
twitter?: string;
|
|
54
|
+
linkedin?: string;
|
|
55
|
+
github?: string;
|
|
56
|
+
};
|
|
57
|
+
is_active: boolean;
|
|
58
|
+
}
|
|
59
|
+
interface BlogCategory {
|
|
60
|
+
id: string;
|
|
61
|
+
project_id: string;
|
|
62
|
+
name: string;
|
|
63
|
+
slug: string;
|
|
64
|
+
description?: string;
|
|
65
|
+
parent_id?: string;
|
|
66
|
+
post_count?: number;
|
|
67
|
+
}
|
|
68
|
+
interface BlogTag {
|
|
69
|
+
id: string;
|
|
70
|
+
project_id: string;
|
|
71
|
+
name: string;
|
|
72
|
+
slug: string;
|
|
73
|
+
post_count?: number;
|
|
74
|
+
}
|
|
75
|
+
interface BlogListOptions {
|
|
76
|
+
projectId: string;
|
|
77
|
+
/** Pagination */
|
|
78
|
+
page?: number;
|
|
79
|
+
perPage?: number;
|
|
80
|
+
/** Filters */
|
|
81
|
+
category?: string;
|
|
82
|
+
tag?: string;
|
|
83
|
+
author?: string;
|
|
84
|
+
search?: string;
|
|
85
|
+
featured?: boolean;
|
|
86
|
+
/** Sorting */
|
|
87
|
+
orderBy?: 'published_at' | 'title' | 'view_count';
|
|
88
|
+
order?: 'asc' | 'desc';
|
|
89
|
+
}
|
|
90
|
+
interface BlogListResult {
|
|
91
|
+
posts: BlogPost[];
|
|
92
|
+
pagination: {
|
|
93
|
+
page: number;
|
|
94
|
+
perPage: number;
|
|
95
|
+
total: number;
|
|
96
|
+
totalPages: number;
|
|
97
|
+
hasNext: boolean;
|
|
98
|
+
hasPrev: boolean;
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
interface BlogPostProps {
|
|
102
|
+
projectId: string;
|
|
103
|
+
slug: string;
|
|
104
|
+
children?: (props: BlogPostRenderProps) => React.ReactNode;
|
|
105
|
+
}
|
|
106
|
+
interface BlogPostRenderProps {
|
|
107
|
+
post: BlogPost;
|
|
108
|
+
content: string;
|
|
109
|
+
relatedPosts?: BlogPost[];
|
|
110
|
+
tableOfContents?: TocItem[];
|
|
111
|
+
}
|
|
112
|
+
interface BlogListProps {
|
|
113
|
+
projectId: string;
|
|
114
|
+
options?: Omit<BlogListOptions, 'projectId'>;
|
|
115
|
+
children?: (props: BlogListRenderProps) => React.ReactNode;
|
|
116
|
+
}
|
|
117
|
+
interface BlogListRenderProps {
|
|
118
|
+
posts: BlogPost[];
|
|
119
|
+
pagination: BlogListResult['pagination'];
|
|
120
|
+
categories: BlogCategory[];
|
|
121
|
+
tags: BlogTag[];
|
|
122
|
+
}
|
|
123
|
+
interface AuthorCardProps {
|
|
124
|
+
author: BlogAuthor;
|
|
125
|
+
showBio?: boolean;
|
|
126
|
+
showSocial?: boolean;
|
|
127
|
+
className?: string;
|
|
128
|
+
}
|
|
129
|
+
interface RelatedPostsProps {
|
|
130
|
+
projectId: string;
|
|
131
|
+
postId: string;
|
|
132
|
+
limit?: number;
|
|
133
|
+
className?: string;
|
|
134
|
+
}
|
|
135
|
+
interface TableOfContentsProps {
|
|
136
|
+
content: string;
|
|
137
|
+
maxDepth?: number;
|
|
138
|
+
className?: string;
|
|
139
|
+
}
|
|
140
|
+
interface TocItem {
|
|
141
|
+
id: string;
|
|
142
|
+
text: string;
|
|
143
|
+
level: number;
|
|
144
|
+
children?: TocItem[];
|
|
145
|
+
}
|
|
146
|
+
interface BlogAnalytics {
|
|
147
|
+
post_id: string;
|
|
148
|
+
session_id: string;
|
|
149
|
+
event_type: 'view' | 'scroll' | 'share' | 'comment';
|
|
150
|
+
scroll_depth?: number;
|
|
151
|
+
share_platform?: string;
|
|
152
|
+
time_on_page?: number;
|
|
153
|
+
created_at: string;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export type { AuthorCardProps as A, BlogPostProps as B, RelatedPostsProps as R, TableOfContentsProps as T, BlogListProps as a, BlogPost as b, BlogAuthor as c, BlogCategory as d, BlogTag as e, BlogListOptions as f, BlogListResult as g, BlogPostRenderProps as h, BlogListRenderProps as i, TocItem as j, BlogAnalytics as k };
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import { Metadata } from 'next';
|
|
2
|
+
|
|
3
|
+
interface UptradeSEOConfig {
|
|
4
|
+
projectId: string;
|
|
5
|
+
supabaseUrl?: string;
|
|
6
|
+
supabaseKey?: string;
|
|
7
|
+
}
|
|
8
|
+
interface SEOPageData {
|
|
9
|
+
id: string;
|
|
10
|
+
project_id: string;
|
|
11
|
+
path: string;
|
|
12
|
+
url?: string;
|
|
13
|
+
managed_title?: string;
|
|
14
|
+
managed_description?: string;
|
|
15
|
+
managed_og_title?: string;
|
|
16
|
+
managed_og_description?: string;
|
|
17
|
+
managed_og_image?: string;
|
|
18
|
+
managed_canonical?: string;
|
|
19
|
+
managed_robots?: string;
|
|
20
|
+
managed_keywords?: string[];
|
|
21
|
+
updated_at: string;
|
|
22
|
+
}
|
|
23
|
+
interface GetManagedMetadataOptions {
|
|
24
|
+
projectId: string;
|
|
25
|
+
path: string;
|
|
26
|
+
fallback?: Metadata;
|
|
27
|
+
/** Override specific fields even if managed values exist */
|
|
28
|
+
overrides?: Partial<Metadata>;
|
|
29
|
+
}
|
|
30
|
+
interface ManagedMetadataResult extends Metadata {
|
|
31
|
+
_managed: boolean;
|
|
32
|
+
_source: 'database' | 'fallback';
|
|
33
|
+
}
|
|
34
|
+
interface SchemaMarkup {
|
|
35
|
+
id: string;
|
|
36
|
+
project_id: string;
|
|
37
|
+
page_id?: string;
|
|
38
|
+
page_path?: string;
|
|
39
|
+
schema_type: string;
|
|
40
|
+
schema_json: Record<string, unknown>;
|
|
41
|
+
is_implemented: boolean;
|
|
42
|
+
validation_status: 'valid' | 'warning' | 'error';
|
|
43
|
+
}
|
|
44
|
+
interface ManagedSchemaProps {
|
|
45
|
+
projectId: string;
|
|
46
|
+
path: string;
|
|
47
|
+
/** Additional schemas to merge */
|
|
48
|
+
additionalSchemas?: Record<string, unknown>[];
|
|
49
|
+
/** Schema types to include (default: all) */
|
|
50
|
+
includeTypes?: string[];
|
|
51
|
+
/** Schema types to exclude */
|
|
52
|
+
excludeTypes?: string[];
|
|
53
|
+
}
|
|
54
|
+
interface FAQItem {
|
|
55
|
+
id: string;
|
|
56
|
+
question: string;
|
|
57
|
+
answer: string;
|
|
58
|
+
order: number;
|
|
59
|
+
is_visible: boolean;
|
|
60
|
+
}
|
|
61
|
+
interface ManagedFAQData {
|
|
62
|
+
id: string;
|
|
63
|
+
project_id: string;
|
|
64
|
+
path: string;
|
|
65
|
+
title?: string;
|
|
66
|
+
description?: string;
|
|
67
|
+
items: FAQItem[];
|
|
68
|
+
include_schema: boolean;
|
|
69
|
+
updated_at: string;
|
|
70
|
+
}
|
|
71
|
+
interface ManagedFAQProps {
|
|
72
|
+
projectId: string;
|
|
73
|
+
path: string;
|
|
74
|
+
/** Custom wrapper className */
|
|
75
|
+
className?: string;
|
|
76
|
+
/** Render FAQ item (custom rendering) */
|
|
77
|
+
renderItem?: (item: FAQItem, index: number) => React.ReactNode;
|
|
78
|
+
/** Include FAQ schema in page */
|
|
79
|
+
includeSchema?: boolean;
|
|
80
|
+
/** Show section title */
|
|
81
|
+
showTitle?: boolean;
|
|
82
|
+
}
|
|
83
|
+
interface ManagedLink {
|
|
84
|
+
id: string;
|
|
85
|
+
project_id: string;
|
|
86
|
+
source_path: string;
|
|
87
|
+
target_path: string;
|
|
88
|
+
target_url?: string;
|
|
89
|
+
anchor_text: string;
|
|
90
|
+
position: 'inline' | 'sidebar' | 'bottom' | 'related';
|
|
91
|
+
context?: string;
|
|
92
|
+
is_active: boolean;
|
|
93
|
+
priority: number;
|
|
94
|
+
}
|
|
95
|
+
interface ManagedInternalLinksProps {
|
|
96
|
+
projectId: string;
|
|
97
|
+
path: string;
|
|
98
|
+
position?: 'inline' | 'sidebar' | 'bottom' | 'related';
|
|
99
|
+
/** Maximum links to show */
|
|
100
|
+
limit?: number;
|
|
101
|
+
className?: string;
|
|
102
|
+
/** Custom link renderer */
|
|
103
|
+
renderLink?: (link: ManagedLink) => React.ReactNode;
|
|
104
|
+
}
|
|
105
|
+
interface ManagedContentBlock {
|
|
106
|
+
id: string;
|
|
107
|
+
project_id: string;
|
|
108
|
+
path: string;
|
|
109
|
+
section: string;
|
|
110
|
+
content_type: 'html' | 'markdown' | 'json' | 'react';
|
|
111
|
+
content: string | Record<string, unknown>;
|
|
112
|
+
is_published: boolean;
|
|
113
|
+
published_at?: string;
|
|
114
|
+
updated_at: string;
|
|
115
|
+
}
|
|
116
|
+
interface ManagedContentProps {
|
|
117
|
+
projectId: string;
|
|
118
|
+
path: string;
|
|
119
|
+
section: string;
|
|
120
|
+
/** Fallback content if none found */
|
|
121
|
+
fallback?: React.ReactNode;
|
|
122
|
+
className?: string;
|
|
123
|
+
/** For 'react' type, map of component names to components */
|
|
124
|
+
components?: Record<string, React.ComponentType<unknown>>;
|
|
125
|
+
}
|
|
126
|
+
interface ABTest {
|
|
127
|
+
id: string;
|
|
128
|
+
project_id: string;
|
|
129
|
+
path: string;
|
|
130
|
+
field: 'title' | 'description' | 'content';
|
|
131
|
+
variant_a: string;
|
|
132
|
+
variant_b: string;
|
|
133
|
+
traffic_split: number;
|
|
134
|
+
status: 'draft' | 'running' | 'paused' | 'completed';
|
|
135
|
+
winner?: 'a' | 'b';
|
|
136
|
+
started_at?: string;
|
|
137
|
+
ended_at?: string;
|
|
138
|
+
}
|
|
139
|
+
interface ABTestResult {
|
|
140
|
+
testId: string;
|
|
141
|
+
variant: 'a' | 'b';
|
|
142
|
+
value: string;
|
|
143
|
+
}
|
|
144
|
+
interface GetABVariantOptions {
|
|
145
|
+
projectId: string;
|
|
146
|
+
path: string;
|
|
147
|
+
field: 'title' | 'description' | 'content';
|
|
148
|
+
/** Session/visitor ID for consistent variant assignment */
|
|
149
|
+
sessionId?: string;
|
|
150
|
+
}
|
|
151
|
+
interface ManagedRedirect {
|
|
152
|
+
id: string;
|
|
153
|
+
project_id: string;
|
|
154
|
+
source_path: string;
|
|
155
|
+
destination_path: string;
|
|
156
|
+
destination_url?: string;
|
|
157
|
+
status_code: 301 | 302 | 307 | 308;
|
|
158
|
+
is_active: boolean;
|
|
159
|
+
is_regex: boolean;
|
|
160
|
+
priority: number;
|
|
161
|
+
expires_at?: string;
|
|
162
|
+
}
|
|
163
|
+
interface GetRedirectOptions {
|
|
164
|
+
projectId: string;
|
|
165
|
+
path: string;
|
|
166
|
+
}
|
|
167
|
+
interface RedirectResult {
|
|
168
|
+
destination: string;
|
|
169
|
+
statusCode: 301 | 302 | 307 | 308;
|
|
170
|
+
isExternal: boolean;
|
|
171
|
+
}
|
|
172
|
+
interface ManagedScript {
|
|
173
|
+
id: string;
|
|
174
|
+
project_id: string;
|
|
175
|
+
name: string;
|
|
176
|
+
script_type: 'inline' | 'external';
|
|
177
|
+
position: 'head' | 'body-start' | 'body-end';
|
|
178
|
+
content?: string;
|
|
179
|
+
src?: string;
|
|
180
|
+
async?: boolean;
|
|
181
|
+
defer?: boolean;
|
|
182
|
+
attributes?: Record<string, string>;
|
|
183
|
+
is_active: boolean;
|
|
184
|
+
load_on?: 'all' | 'specific';
|
|
185
|
+
paths?: string[];
|
|
186
|
+
priority: number;
|
|
187
|
+
}
|
|
188
|
+
interface ManagedScriptsProps {
|
|
189
|
+
projectId: string;
|
|
190
|
+
position: 'head' | 'body-start' | 'body-end';
|
|
191
|
+
/** Current path for path-specific scripts */
|
|
192
|
+
path?: string;
|
|
193
|
+
}
|
|
194
|
+
interface RobotsDirective {
|
|
195
|
+
index: boolean;
|
|
196
|
+
follow: boolean;
|
|
197
|
+
noarchive?: boolean;
|
|
198
|
+
nosnippet?: boolean;
|
|
199
|
+
noimageindex?: boolean;
|
|
200
|
+
max_snippet?: number;
|
|
201
|
+
max_image_preview?: 'none' | 'standard' | 'large';
|
|
202
|
+
max_video_preview?: number;
|
|
203
|
+
}
|
|
204
|
+
interface GetRobotsOptions {
|
|
205
|
+
projectId: string;
|
|
206
|
+
path: string;
|
|
207
|
+
}
|
|
208
|
+
interface SitemapEntry {
|
|
209
|
+
path: string;
|
|
210
|
+
url: string;
|
|
211
|
+
lastmod?: string;
|
|
212
|
+
changefreq?: 'always' | 'hourly' | 'daily' | 'weekly' | 'monthly' | 'yearly' | 'never';
|
|
213
|
+
priority?: number;
|
|
214
|
+
images?: Array<{
|
|
215
|
+
url: string;
|
|
216
|
+
title?: string;
|
|
217
|
+
caption?: string;
|
|
218
|
+
}>;
|
|
219
|
+
}
|
|
220
|
+
interface GetSitemapEntriesOptions {
|
|
221
|
+
projectId: string;
|
|
222
|
+
baseUrl: string;
|
|
223
|
+
/** Include only published/indexed pages */
|
|
224
|
+
publishedOnly?: boolean;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export type { ABTest as A, FAQItem as F, GetManagedMetadataOptions as G, ManagedMetadataResult as M, RedirectResult as R, SEOPageData as S, UptradeSEOConfig as U, SchemaMarkup as a, ManagedSchemaProps as b, ManagedFAQData as c, ManagedFAQProps as d, ManagedLink as e, ManagedInternalLinksProps as f, ManagedContentBlock as g, ManagedContentProps as h, ABTestResult as i, GetABVariantOptions as j, ManagedRedirect as k, GetRedirectOptions as l, ManagedScript as m, ManagedScriptsProps as n, RobotsDirective as o, GetRobotsOptions as p, SitemapEntry as q, GetSitemapEntriesOptions as r };
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import { Metadata } from 'next';
|
|
2
|
+
|
|
3
|
+
interface UptradeSEOConfig {
|
|
4
|
+
projectId: string;
|
|
5
|
+
supabaseUrl?: string;
|
|
6
|
+
supabaseKey?: string;
|
|
7
|
+
}
|
|
8
|
+
interface SEOPageData {
|
|
9
|
+
id: string;
|
|
10
|
+
project_id: string;
|
|
11
|
+
path: string;
|
|
12
|
+
url?: string;
|
|
13
|
+
managed_title?: string;
|
|
14
|
+
managed_description?: string;
|
|
15
|
+
managed_og_title?: string;
|
|
16
|
+
managed_og_description?: string;
|
|
17
|
+
managed_og_image?: string;
|
|
18
|
+
managed_canonical?: string;
|
|
19
|
+
managed_robots?: string;
|
|
20
|
+
managed_keywords?: string[];
|
|
21
|
+
updated_at: string;
|
|
22
|
+
}
|
|
23
|
+
interface GetManagedMetadataOptions {
|
|
24
|
+
projectId: string;
|
|
25
|
+
path: string;
|
|
26
|
+
fallback?: Metadata;
|
|
27
|
+
/** Override specific fields even if managed values exist */
|
|
28
|
+
overrides?: Partial<Metadata>;
|
|
29
|
+
}
|
|
30
|
+
interface ManagedMetadataResult extends Metadata {
|
|
31
|
+
_managed: boolean;
|
|
32
|
+
_source: 'database' | 'fallback';
|
|
33
|
+
}
|
|
34
|
+
interface SchemaMarkup {
|
|
35
|
+
id: string;
|
|
36
|
+
project_id: string;
|
|
37
|
+
page_id?: string;
|
|
38
|
+
page_path?: string;
|
|
39
|
+
schema_type: string;
|
|
40
|
+
schema_json: Record<string, unknown>;
|
|
41
|
+
is_implemented: boolean;
|
|
42
|
+
validation_status: 'valid' | 'warning' | 'error';
|
|
43
|
+
}
|
|
44
|
+
interface ManagedSchemaProps {
|
|
45
|
+
projectId: string;
|
|
46
|
+
path: string;
|
|
47
|
+
/** Additional schemas to merge */
|
|
48
|
+
additionalSchemas?: Record<string, unknown>[];
|
|
49
|
+
/** Schema types to include (default: all) */
|
|
50
|
+
includeTypes?: string[];
|
|
51
|
+
/** Schema types to exclude */
|
|
52
|
+
excludeTypes?: string[];
|
|
53
|
+
}
|
|
54
|
+
interface FAQItem {
|
|
55
|
+
id: string;
|
|
56
|
+
question: string;
|
|
57
|
+
answer: string;
|
|
58
|
+
order: number;
|
|
59
|
+
is_visible: boolean;
|
|
60
|
+
}
|
|
61
|
+
interface ManagedFAQData {
|
|
62
|
+
id: string;
|
|
63
|
+
project_id: string;
|
|
64
|
+
path: string;
|
|
65
|
+
title?: string;
|
|
66
|
+
description?: string;
|
|
67
|
+
items: FAQItem[];
|
|
68
|
+
include_schema: boolean;
|
|
69
|
+
updated_at: string;
|
|
70
|
+
}
|
|
71
|
+
interface ManagedFAQProps {
|
|
72
|
+
projectId: string;
|
|
73
|
+
path: string;
|
|
74
|
+
/** Custom wrapper className */
|
|
75
|
+
className?: string;
|
|
76
|
+
/** Render FAQ item (custom rendering) */
|
|
77
|
+
renderItem?: (item: FAQItem, index: number) => React.ReactNode;
|
|
78
|
+
/** Include FAQ schema in page */
|
|
79
|
+
includeSchema?: boolean;
|
|
80
|
+
/** Show section title */
|
|
81
|
+
showTitle?: boolean;
|
|
82
|
+
}
|
|
83
|
+
interface ManagedLink {
|
|
84
|
+
id: string;
|
|
85
|
+
project_id: string;
|
|
86
|
+
source_path: string;
|
|
87
|
+
target_path: string;
|
|
88
|
+
target_url?: string;
|
|
89
|
+
anchor_text: string;
|
|
90
|
+
position: 'inline' | 'sidebar' | 'bottom' | 'related';
|
|
91
|
+
context?: string;
|
|
92
|
+
is_active: boolean;
|
|
93
|
+
priority: number;
|
|
94
|
+
}
|
|
95
|
+
interface ManagedInternalLinksProps {
|
|
96
|
+
projectId: string;
|
|
97
|
+
path: string;
|
|
98
|
+
position?: 'inline' | 'sidebar' | 'bottom' | 'related';
|
|
99
|
+
/** Maximum links to show */
|
|
100
|
+
limit?: number;
|
|
101
|
+
className?: string;
|
|
102
|
+
/** Custom link renderer */
|
|
103
|
+
renderLink?: (link: ManagedLink) => React.ReactNode;
|
|
104
|
+
}
|
|
105
|
+
interface ManagedContentBlock {
|
|
106
|
+
id: string;
|
|
107
|
+
project_id: string;
|
|
108
|
+
path: string;
|
|
109
|
+
section: string;
|
|
110
|
+
content_type: 'html' | 'markdown' | 'json' | 'react';
|
|
111
|
+
content: string | Record<string, unknown>;
|
|
112
|
+
is_published: boolean;
|
|
113
|
+
published_at?: string;
|
|
114
|
+
updated_at: string;
|
|
115
|
+
}
|
|
116
|
+
interface ManagedContentProps {
|
|
117
|
+
projectId: string;
|
|
118
|
+
path: string;
|
|
119
|
+
section: string;
|
|
120
|
+
/** Fallback content if none found */
|
|
121
|
+
fallback?: React.ReactNode;
|
|
122
|
+
className?: string;
|
|
123
|
+
/** For 'react' type, map of component names to components */
|
|
124
|
+
components?: Record<string, React.ComponentType<unknown>>;
|
|
125
|
+
}
|
|
126
|
+
interface ABTest {
|
|
127
|
+
id: string;
|
|
128
|
+
project_id: string;
|
|
129
|
+
path: string;
|
|
130
|
+
field: 'title' | 'description' | 'content';
|
|
131
|
+
variant_a: string;
|
|
132
|
+
variant_b: string;
|
|
133
|
+
traffic_split: number;
|
|
134
|
+
status: 'draft' | 'running' | 'paused' | 'completed';
|
|
135
|
+
winner?: 'a' | 'b';
|
|
136
|
+
started_at?: string;
|
|
137
|
+
ended_at?: string;
|
|
138
|
+
}
|
|
139
|
+
interface ABTestResult {
|
|
140
|
+
testId: string;
|
|
141
|
+
variant: 'a' | 'b';
|
|
142
|
+
value: string;
|
|
143
|
+
}
|
|
144
|
+
interface GetABVariantOptions {
|
|
145
|
+
projectId: string;
|
|
146
|
+
path: string;
|
|
147
|
+
field: 'title' | 'description' | 'content';
|
|
148
|
+
/** Session/visitor ID for consistent variant assignment */
|
|
149
|
+
sessionId?: string;
|
|
150
|
+
}
|
|
151
|
+
interface ManagedRedirect {
|
|
152
|
+
id: string;
|
|
153
|
+
project_id: string;
|
|
154
|
+
source_path: string;
|
|
155
|
+
destination_path: string;
|
|
156
|
+
destination_url?: string;
|
|
157
|
+
status_code: 301 | 302 | 307 | 308;
|
|
158
|
+
is_active: boolean;
|
|
159
|
+
is_regex: boolean;
|
|
160
|
+
priority: number;
|
|
161
|
+
expires_at?: string;
|
|
162
|
+
}
|
|
163
|
+
interface GetRedirectOptions {
|
|
164
|
+
projectId: string;
|
|
165
|
+
path: string;
|
|
166
|
+
}
|
|
167
|
+
interface RedirectResult {
|
|
168
|
+
destination: string;
|
|
169
|
+
statusCode: 301 | 302 | 307 | 308;
|
|
170
|
+
isExternal: boolean;
|
|
171
|
+
}
|
|
172
|
+
interface ManagedScript {
|
|
173
|
+
id: string;
|
|
174
|
+
project_id: string;
|
|
175
|
+
name: string;
|
|
176
|
+
script_type: 'inline' | 'external';
|
|
177
|
+
position: 'head' | 'body-start' | 'body-end';
|
|
178
|
+
content?: string;
|
|
179
|
+
src?: string;
|
|
180
|
+
async?: boolean;
|
|
181
|
+
defer?: boolean;
|
|
182
|
+
attributes?: Record<string, string>;
|
|
183
|
+
is_active: boolean;
|
|
184
|
+
load_on?: 'all' | 'specific';
|
|
185
|
+
paths?: string[];
|
|
186
|
+
priority: number;
|
|
187
|
+
}
|
|
188
|
+
interface ManagedScriptsProps {
|
|
189
|
+
projectId: string;
|
|
190
|
+
position: 'head' | 'body-start' | 'body-end';
|
|
191
|
+
/** Current path for path-specific scripts */
|
|
192
|
+
path?: string;
|
|
193
|
+
}
|
|
194
|
+
interface RobotsDirective {
|
|
195
|
+
index: boolean;
|
|
196
|
+
follow: boolean;
|
|
197
|
+
noarchive?: boolean;
|
|
198
|
+
nosnippet?: boolean;
|
|
199
|
+
noimageindex?: boolean;
|
|
200
|
+
max_snippet?: number;
|
|
201
|
+
max_image_preview?: 'none' | 'standard' | 'large';
|
|
202
|
+
max_video_preview?: number;
|
|
203
|
+
}
|
|
204
|
+
interface GetRobotsOptions {
|
|
205
|
+
projectId: string;
|
|
206
|
+
path: string;
|
|
207
|
+
}
|
|
208
|
+
interface SitemapEntry {
|
|
209
|
+
path: string;
|
|
210
|
+
url: string;
|
|
211
|
+
lastmod?: string;
|
|
212
|
+
changefreq?: 'always' | 'hourly' | 'daily' | 'weekly' | 'monthly' | 'yearly' | 'never';
|
|
213
|
+
priority?: number;
|
|
214
|
+
images?: Array<{
|
|
215
|
+
url: string;
|
|
216
|
+
title?: string;
|
|
217
|
+
caption?: string;
|
|
218
|
+
}>;
|
|
219
|
+
}
|
|
220
|
+
interface GetSitemapEntriesOptions {
|
|
221
|
+
projectId: string;
|
|
222
|
+
baseUrl: string;
|
|
223
|
+
/** Include only published/indexed pages */
|
|
224
|
+
publishedOnly?: boolean;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export type { ABTest as A, FAQItem as F, GetManagedMetadataOptions as G, ManagedMetadataResult as M, RedirectResult as R, SEOPageData as S, UptradeSEOConfig as U, SchemaMarkup as a, ManagedSchemaProps as b, ManagedFAQData as c, ManagedFAQProps as d, ManagedLink as e, ManagedInternalLinksProps as f, ManagedContentBlock as g, ManagedContentProps as h, ABTestResult as i, GetABVariantOptions as j, ManagedRedirect as k, GetRedirectOptions as l, ManagedScript as m, ManagedScriptsProps as n, RobotsDirective as o, GetRobotsOptions as p, SitemapEntry as q, GetSitemapEntriesOptions as r };
|