@nuxtjs/sitemap 7.0.2 → 7.2.1
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/content.d.ts +1 -0
- package/dist/client/200.html +9 -9
- package/dist/client/404.html +9 -9
- package/dist/client/_nuxt/{B5lI3vl2.js → B-Cf5GGq.js} +1 -1
- package/dist/client/_nuxt/{BLDCaNbg.js → B2vK47Ag.js} +1 -1
- package/dist/client/_nuxt/CBErYmNG.js +32 -0
- package/dist/client/_nuxt/{BCt9_I41.js → CxhUe2GG.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/b551cdd3-b342-41ea-8265-0fb9c87a6b0b.json +1 -0
- package/dist/client/_nuxt/{entry.WCUheyaE.css → entry.CJ2Eg9q-.css} +1 -1
- package/dist/client/_nuxt/error-404.DWO74KKP.css +1 -0
- package/dist/client/_nuxt/error-500.DVC0lzO_.css +1 -0
- package/dist/client/index.html +9 -9
- package/dist/content.cjs +48 -0
- package/dist/content.d.cts +231 -0
- package/dist/content.d.mts +231 -0
- package/dist/content.d.ts +231 -0
- package/dist/content.mjs +45 -0
- package/dist/module.cjs +1270 -4
- package/dist/module.d.cts +8 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +169 -71
- package/dist/runtime/server/plugins/{nuxt-content.js → nuxt-content-v2.js} +2 -10
- package/dist/runtime/server/routes/__sitemap__/debug.d.ts +1 -1
- package/dist/runtime/server/routes/__sitemap__/nuxt-content-urls-v3.d.ts +2 -0
- package/dist/runtime/server/routes/__sitemap__/nuxt-content-urls-v3.js +17 -0
- package/dist/runtime/server/routes/sitemap/[sitemap].xml.js +1 -1
- package/dist/runtime/server/routes/sitemap_index.xml.js +2 -2
- package/dist/runtime/server/sitemap/builder/sitemap-index.d.ts +2 -1
- package/dist/runtime/server/sitemap/builder/sitemap-index.js +8 -3
- package/dist/runtime/server/sitemap/builder/sitemap.d.ts +4 -3
- package/dist/runtime/server/sitemap/builder/sitemap.js +12 -7
- package/dist/runtime/server/sitemap/nitro.js +6 -2
- package/dist/runtime/server/sitemap/urlset/sources.js +16 -7
- package/dist/runtime/server/sitemap/utils/extractSitemapXML.d.ts +2 -0
- package/dist/runtime/server/sitemap/utils/extractSitemapXML.js +75 -0
- package/dist/runtime/types.d.ts +5 -1
- package/package.json +27 -22
- package/dist/client/_nuxt/BZ4NIl-o.js +0 -32
- package/dist/client/_nuxt/builds/meta/286d11d8-5fae-4d47-bddf-64b0ae9fc73d.json +0 -1
- package/dist/client/_nuxt/error-404.vQ0SaaqA.css +0 -1
- package/dist/client/_nuxt/error-500.ayRVCnRF.css +0 -1
- /package/dist/runtime/server/plugins/{nuxt-content.d.ts → nuxt-content-v2.d.ts} +0 -0
- /package/dist/runtime/server/routes/__sitemap__/{nuxt-content-urls.d.ts → nuxt-content-urls-v2.d.ts} +0 -0
- /package/dist/runtime/server/routes/__sitemap__/{nuxt-content-urls.js → nuxt-content-urls-v2.js} +0 -0
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import * as zod from 'zod';
|
|
2
|
+
import { TypeOf, ZodRawShape } from 'zod';
|
|
3
|
+
import { Collection } from '@nuxt/content';
|
|
4
|
+
|
|
5
|
+
declare const schema: zod.ZodObject<{
|
|
6
|
+
sitemap: zod.ZodOptional<zod.ZodObject<{
|
|
7
|
+
loc: zod.ZodOptional<zod.ZodString>;
|
|
8
|
+
lastmod: zod.ZodOptional<zod.ZodDate>;
|
|
9
|
+
changefreq: zod.ZodOptional<zod.ZodUnion<[zod.ZodLiteral<"always">, zod.ZodLiteral<"hourly">, zod.ZodLiteral<"daily">, zod.ZodLiteral<"weekly">, zod.ZodLiteral<"monthly">, zod.ZodLiteral<"yearly">, zod.ZodLiteral<"never">]>>;
|
|
10
|
+
priority: zod.ZodOptional<zod.ZodNumber>;
|
|
11
|
+
images: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
12
|
+
loc: zod.ZodString;
|
|
13
|
+
caption: zod.ZodOptional<zod.ZodString>;
|
|
14
|
+
geo_location: zod.ZodOptional<zod.ZodString>;
|
|
15
|
+
title: zod.ZodOptional<zod.ZodString>;
|
|
16
|
+
license: zod.ZodOptional<zod.ZodString>;
|
|
17
|
+
}, "strip", zod.ZodTypeAny, {
|
|
18
|
+
loc: string;
|
|
19
|
+
caption?: string | undefined;
|
|
20
|
+
geo_location?: string | undefined;
|
|
21
|
+
title?: string | undefined;
|
|
22
|
+
license?: string | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
loc: string;
|
|
25
|
+
caption?: string | undefined;
|
|
26
|
+
geo_location?: string | undefined;
|
|
27
|
+
title?: string | undefined;
|
|
28
|
+
license?: string | undefined;
|
|
29
|
+
}>, "many">>;
|
|
30
|
+
videos: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
31
|
+
content_loc: zod.ZodString;
|
|
32
|
+
player_loc: zod.ZodOptional<zod.ZodString>;
|
|
33
|
+
duration: zod.ZodOptional<zod.ZodString>;
|
|
34
|
+
expiration_date: zod.ZodOptional<zod.ZodDate>;
|
|
35
|
+
rating: zod.ZodOptional<zod.ZodNumber>;
|
|
36
|
+
view_count: zod.ZodOptional<zod.ZodNumber>;
|
|
37
|
+
publication_date: zod.ZodOptional<zod.ZodDate>;
|
|
38
|
+
family_friendly: zod.ZodOptional<zod.ZodBoolean>;
|
|
39
|
+
tag: zod.ZodOptional<zod.ZodString>;
|
|
40
|
+
category: zod.ZodOptional<zod.ZodString>;
|
|
41
|
+
restriction: zod.ZodOptional<zod.ZodObject<{
|
|
42
|
+
relationship: zod.ZodOptional<zod.ZodLiteral<"allow">>;
|
|
43
|
+
value: zod.ZodOptional<zod.ZodString>;
|
|
44
|
+
}, "strip", zod.ZodTypeAny, {
|
|
45
|
+
value?: string | undefined;
|
|
46
|
+
relationship?: "allow" | undefined;
|
|
47
|
+
}, {
|
|
48
|
+
value?: string | undefined;
|
|
49
|
+
relationship?: "allow" | undefined;
|
|
50
|
+
}>>;
|
|
51
|
+
gallery_loc: zod.ZodOptional<zod.ZodString>;
|
|
52
|
+
price: zod.ZodOptional<zod.ZodString>;
|
|
53
|
+
requires_subscription: zod.ZodOptional<zod.ZodBoolean>;
|
|
54
|
+
uploader: zod.ZodOptional<zod.ZodString>;
|
|
55
|
+
}, "strip", zod.ZodTypeAny, {
|
|
56
|
+
content_loc: string;
|
|
57
|
+
player_loc?: string | undefined;
|
|
58
|
+
duration?: string | undefined;
|
|
59
|
+
expiration_date?: Date | undefined;
|
|
60
|
+
rating?: number | undefined;
|
|
61
|
+
view_count?: number | undefined;
|
|
62
|
+
publication_date?: Date | undefined;
|
|
63
|
+
family_friendly?: boolean | undefined;
|
|
64
|
+
tag?: string | undefined;
|
|
65
|
+
category?: string | undefined;
|
|
66
|
+
restriction?: {
|
|
67
|
+
value?: string | undefined;
|
|
68
|
+
relationship?: "allow" | undefined;
|
|
69
|
+
} | undefined;
|
|
70
|
+
gallery_loc?: string | undefined;
|
|
71
|
+
price?: string | undefined;
|
|
72
|
+
requires_subscription?: boolean | undefined;
|
|
73
|
+
uploader?: string | undefined;
|
|
74
|
+
}, {
|
|
75
|
+
content_loc: string;
|
|
76
|
+
player_loc?: string | undefined;
|
|
77
|
+
duration?: string | undefined;
|
|
78
|
+
expiration_date?: Date | undefined;
|
|
79
|
+
rating?: number | undefined;
|
|
80
|
+
view_count?: number | undefined;
|
|
81
|
+
publication_date?: Date | undefined;
|
|
82
|
+
family_friendly?: boolean | undefined;
|
|
83
|
+
tag?: string | undefined;
|
|
84
|
+
category?: string | undefined;
|
|
85
|
+
restriction?: {
|
|
86
|
+
value?: string | undefined;
|
|
87
|
+
relationship?: "allow" | undefined;
|
|
88
|
+
} | undefined;
|
|
89
|
+
gallery_loc?: string | undefined;
|
|
90
|
+
price?: string | undefined;
|
|
91
|
+
requires_subscription?: boolean | undefined;
|
|
92
|
+
uploader?: string | undefined;
|
|
93
|
+
}>, "many">>;
|
|
94
|
+
}, "strip", zod.ZodTypeAny, {
|
|
95
|
+
loc?: string | undefined;
|
|
96
|
+
lastmod?: Date | undefined;
|
|
97
|
+
changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
|
|
98
|
+
priority?: number | undefined;
|
|
99
|
+
images?: {
|
|
100
|
+
loc: string;
|
|
101
|
+
caption?: string | undefined;
|
|
102
|
+
geo_location?: string | undefined;
|
|
103
|
+
title?: string | undefined;
|
|
104
|
+
license?: string | undefined;
|
|
105
|
+
}[] | undefined;
|
|
106
|
+
videos?: {
|
|
107
|
+
content_loc: string;
|
|
108
|
+
player_loc?: string | undefined;
|
|
109
|
+
duration?: string | undefined;
|
|
110
|
+
expiration_date?: Date | undefined;
|
|
111
|
+
rating?: number | undefined;
|
|
112
|
+
view_count?: number | undefined;
|
|
113
|
+
publication_date?: Date | undefined;
|
|
114
|
+
family_friendly?: boolean | undefined;
|
|
115
|
+
tag?: string | undefined;
|
|
116
|
+
category?: string | undefined;
|
|
117
|
+
restriction?: {
|
|
118
|
+
value?: string | undefined;
|
|
119
|
+
relationship?: "allow" | undefined;
|
|
120
|
+
} | undefined;
|
|
121
|
+
gallery_loc?: string | undefined;
|
|
122
|
+
price?: string | undefined;
|
|
123
|
+
requires_subscription?: boolean | undefined;
|
|
124
|
+
uploader?: string | undefined;
|
|
125
|
+
}[] | undefined;
|
|
126
|
+
}, {
|
|
127
|
+
loc?: string | undefined;
|
|
128
|
+
lastmod?: Date | undefined;
|
|
129
|
+
changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
|
|
130
|
+
priority?: number | undefined;
|
|
131
|
+
images?: {
|
|
132
|
+
loc: string;
|
|
133
|
+
caption?: string | undefined;
|
|
134
|
+
geo_location?: string | undefined;
|
|
135
|
+
title?: string | undefined;
|
|
136
|
+
license?: string | undefined;
|
|
137
|
+
}[] | undefined;
|
|
138
|
+
videos?: {
|
|
139
|
+
content_loc: string;
|
|
140
|
+
player_loc?: string | undefined;
|
|
141
|
+
duration?: string | undefined;
|
|
142
|
+
expiration_date?: Date | undefined;
|
|
143
|
+
rating?: number | undefined;
|
|
144
|
+
view_count?: number | undefined;
|
|
145
|
+
publication_date?: Date | undefined;
|
|
146
|
+
family_friendly?: boolean | undefined;
|
|
147
|
+
tag?: string | undefined;
|
|
148
|
+
category?: string | undefined;
|
|
149
|
+
restriction?: {
|
|
150
|
+
value?: string | undefined;
|
|
151
|
+
relationship?: "allow" | undefined;
|
|
152
|
+
} | undefined;
|
|
153
|
+
gallery_loc?: string | undefined;
|
|
154
|
+
price?: string | undefined;
|
|
155
|
+
requires_subscription?: boolean | undefined;
|
|
156
|
+
uploader?: string | undefined;
|
|
157
|
+
}[] | undefined;
|
|
158
|
+
}>>;
|
|
159
|
+
}, "strip", zod.ZodTypeAny, {
|
|
160
|
+
sitemap?: {
|
|
161
|
+
loc?: string | undefined;
|
|
162
|
+
lastmod?: Date | undefined;
|
|
163
|
+
changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
|
|
164
|
+
priority?: number | undefined;
|
|
165
|
+
images?: {
|
|
166
|
+
loc: string;
|
|
167
|
+
caption?: string | undefined;
|
|
168
|
+
geo_location?: string | undefined;
|
|
169
|
+
title?: string | undefined;
|
|
170
|
+
license?: string | undefined;
|
|
171
|
+
}[] | undefined;
|
|
172
|
+
videos?: {
|
|
173
|
+
content_loc: string;
|
|
174
|
+
player_loc?: string | undefined;
|
|
175
|
+
duration?: string | undefined;
|
|
176
|
+
expiration_date?: Date | undefined;
|
|
177
|
+
rating?: number | undefined;
|
|
178
|
+
view_count?: number | undefined;
|
|
179
|
+
publication_date?: Date | undefined;
|
|
180
|
+
family_friendly?: boolean | undefined;
|
|
181
|
+
tag?: string | undefined;
|
|
182
|
+
category?: string | undefined;
|
|
183
|
+
restriction?: {
|
|
184
|
+
value?: string | undefined;
|
|
185
|
+
relationship?: "allow" | undefined;
|
|
186
|
+
} | undefined;
|
|
187
|
+
gallery_loc?: string | undefined;
|
|
188
|
+
price?: string | undefined;
|
|
189
|
+
requires_subscription?: boolean | undefined;
|
|
190
|
+
uploader?: string | undefined;
|
|
191
|
+
}[] | undefined;
|
|
192
|
+
} | undefined;
|
|
193
|
+
}, {
|
|
194
|
+
sitemap?: {
|
|
195
|
+
loc?: string | undefined;
|
|
196
|
+
lastmod?: Date | undefined;
|
|
197
|
+
changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
|
|
198
|
+
priority?: number | undefined;
|
|
199
|
+
images?: {
|
|
200
|
+
loc: string;
|
|
201
|
+
caption?: string | undefined;
|
|
202
|
+
geo_location?: string | undefined;
|
|
203
|
+
title?: string | undefined;
|
|
204
|
+
license?: string | undefined;
|
|
205
|
+
}[] | undefined;
|
|
206
|
+
videos?: {
|
|
207
|
+
content_loc: string;
|
|
208
|
+
player_loc?: string | undefined;
|
|
209
|
+
duration?: string | undefined;
|
|
210
|
+
expiration_date?: Date | undefined;
|
|
211
|
+
rating?: number | undefined;
|
|
212
|
+
view_count?: number | undefined;
|
|
213
|
+
publication_date?: Date | undefined;
|
|
214
|
+
family_friendly?: boolean | undefined;
|
|
215
|
+
tag?: string | undefined;
|
|
216
|
+
category?: string | undefined;
|
|
217
|
+
restriction?: {
|
|
218
|
+
value?: string | undefined;
|
|
219
|
+
relationship?: "allow" | undefined;
|
|
220
|
+
} | undefined;
|
|
221
|
+
gallery_loc?: string | undefined;
|
|
222
|
+
price?: string | undefined;
|
|
223
|
+
requires_subscription?: boolean | undefined;
|
|
224
|
+
uploader?: string | undefined;
|
|
225
|
+
}[] | undefined;
|
|
226
|
+
} | undefined;
|
|
227
|
+
}>;
|
|
228
|
+
type SitemapSchema = TypeOf<typeof schema>;
|
|
229
|
+
declare function asSitemapCollection<T extends ZodRawShape>(collection: Collection<T>): Collection<T>;
|
|
230
|
+
|
|
231
|
+
export { type SitemapSchema, asSitemapCollection, schema };
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import * as zod from 'zod';
|
|
2
|
+
import { TypeOf, ZodRawShape } from 'zod';
|
|
3
|
+
import { Collection } from '@nuxt/content';
|
|
4
|
+
|
|
5
|
+
declare const schema: zod.ZodObject<{
|
|
6
|
+
sitemap: zod.ZodOptional<zod.ZodObject<{
|
|
7
|
+
loc: zod.ZodOptional<zod.ZodString>;
|
|
8
|
+
lastmod: zod.ZodOptional<zod.ZodDate>;
|
|
9
|
+
changefreq: zod.ZodOptional<zod.ZodUnion<[zod.ZodLiteral<"always">, zod.ZodLiteral<"hourly">, zod.ZodLiteral<"daily">, zod.ZodLiteral<"weekly">, zod.ZodLiteral<"monthly">, zod.ZodLiteral<"yearly">, zod.ZodLiteral<"never">]>>;
|
|
10
|
+
priority: zod.ZodOptional<zod.ZodNumber>;
|
|
11
|
+
images: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
12
|
+
loc: zod.ZodString;
|
|
13
|
+
caption: zod.ZodOptional<zod.ZodString>;
|
|
14
|
+
geo_location: zod.ZodOptional<zod.ZodString>;
|
|
15
|
+
title: zod.ZodOptional<zod.ZodString>;
|
|
16
|
+
license: zod.ZodOptional<zod.ZodString>;
|
|
17
|
+
}, "strip", zod.ZodTypeAny, {
|
|
18
|
+
loc: string;
|
|
19
|
+
caption?: string | undefined;
|
|
20
|
+
geo_location?: string | undefined;
|
|
21
|
+
title?: string | undefined;
|
|
22
|
+
license?: string | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
loc: string;
|
|
25
|
+
caption?: string | undefined;
|
|
26
|
+
geo_location?: string | undefined;
|
|
27
|
+
title?: string | undefined;
|
|
28
|
+
license?: string | undefined;
|
|
29
|
+
}>, "many">>;
|
|
30
|
+
videos: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
31
|
+
content_loc: zod.ZodString;
|
|
32
|
+
player_loc: zod.ZodOptional<zod.ZodString>;
|
|
33
|
+
duration: zod.ZodOptional<zod.ZodString>;
|
|
34
|
+
expiration_date: zod.ZodOptional<zod.ZodDate>;
|
|
35
|
+
rating: zod.ZodOptional<zod.ZodNumber>;
|
|
36
|
+
view_count: zod.ZodOptional<zod.ZodNumber>;
|
|
37
|
+
publication_date: zod.ZodOptional<zod.ZodDate>;
|
|
38
|
+
family_friendly: zod.ZodOptional<zod.ZodBoolean>;
|
|
39
|
+
tag: zod.ZodOptional<zod.ZodString>;
|
|
40
|
+
category: zod.ZodOptional<zod.ZodString>;
|
|
41
|
+
restriction: zod.ZodOptional<zod.ZodObject<{
|
|
42
|
+
relationship: zod.ZodOptional<zod.ZodLiteral<"allow">>;
|
|
43
|
+
value: zod.ZodOptional<zod.ZodString>;
|
|
44
|
+
}, "strip", zod.ZodTypeAny, {
|
|
45
|
+
value?: string | undefined;
|
|
46
|
+
relationship?: "allow" | undefined;
|
|
47
|
+
}, {
|
|
48
|
+
value?: string | undefined;
|
|
49
|
+
relationship?: "allow" | undefined;
|
|
50
|
+
}>>;
|
|
51
|
+
gallery_loc: zod.ZodOptional<zod.ZodString>;
|
|
52
|
+
price: zod.ZodOptional<zod.ZodString>;
|
|
53
|
+
requires_subscription: zod.ZodOptional<zod.ZodBoolean>;
|
|
54
|
+
uploader: zod.ZodOptional<zod.ZodString>;
|
|
55
|
+
}, "strip", zod.ZodTypeAny, {
|
|
56
|
+
content_loc: string;
|
|
57
|
+
player_loc?: string | undefined;
|
|
58
|
+
duration?: string | undefined;
|
|
59
|
+
expiration_date?: Date | undefined;
|
|
60
|
+
rating?: number | undefined;
|
|
61
|
+
view_count?: number | undefined;
|
|
62
|
+
publication_date?: Date | undefined;
|
|
63
|
+
family_friendly?: boolean | undefined;
|
|
64
|
+
tag?: string | undefined;
|
|
65
|
+
category?: string | undefined;
|
|
66
|
+
restriction?: {
|
|
67
|
+
value?: string | undefined;
|
|
68
|
+
relationship?: "allow" | undefined;
|
|
69
|
+
} | undefined;
|
|
70
|
+
gallery_loc?: string | undefined;
|
|
71
|
+
price?: string | undefined;
|
|
72
|
+
requires_subscription?: boolean | undefined;
|
|
73
|
+
uploader?: string | undefined;
|
|
74
|
+
}, {
|
|
75
|
+
content_loc: string;
|
|
76
|
+
player_loc?: string | undefined;
|
|
77
|
+
duration?: string | undefined;
|
|
78
|
+
expiration_date?: Date | undefined;
|
|
79
|
+
rating?: number | undefined;
|
|
80
|
+
view_count?: number | undefined;
|
|
81
|
+
publication_date?: Date | undefined;
|
|
82
|
+
family_friendly?: boolean | undefined;
|
|
83
|
+
tag?: string | undefined;
|
|
84
|
+
category?: string | undefined;
|
|
85
|
+
restriction?: {
|
|
86
|
+
value?: string | undefined;
|
|
87
|
+
relationship?: "allow" | undefined;
|
|
88
|
+
} | undefined;
|
|
89
|
+
gallery_loc?: string | undefined;
|
|
90
|
+
price?: string | undefined;
|
|
91
|
+
requires_subscription?: boolean | undefined;
|
|
92
|
+
uploader?: string | undefined;
|
|
93
|
+
}>, "many">>;
|
|
94
|
+
}, "strip", zod.ZodTypeAny, {
|
|
95
|
+
loc?: string | undefined;
|
|
96
|
+
lastmod?: Date | undefined;
|
|
97
|
+
changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
|
|
98
|
+
priority?: number | undefined;
|
|
99
|
+
images?: {
|
|
100
|
+
loc: string;
|
|
101
|
+
caption?: string | undefined;
|
|
102
|
+
geo_location?: string | undefined;
|
|
103
|
+
title?: string | undefined;
|
|
104
|
+
license?: string | undefined;
|
|
105
|
+
}[] | undefined;
|
|
106
|
+
videos?: {
|
|
107
|
+
content_loc: string;
|
|
108
|
+
player_loc?: string | undefined;
|
|
109
|
+
duration?: string | undefined;
|
|
110
|
+
expiration_date?: Date | undefined;
|
|
111
|
+
rating?: number | undefined;
|
|
112
|
+
view_count?: number | undefined;
|
|
113
|
+
publication_date?: Date | undefined;
|
|
114
|
+
family_friendly?: boolean | undefined;
|
|
115
|
+
tag?: string | undefined;
|
|
116
|
+
category?: string | undefined;
|
|
117
|
+
restriction?: {
|
|
118
|
+
value?: string | undefined;
|
|
119
|
+
relationship?: "allow" | undefined;
|
|
120
|
+
} | undefined;
|
|
121
|
+
gallery_loc?: string | undefined;
|
|
122
|
+
price?: string | undefined;
|
|
123
|
+
requires_subscription?: boolean | undefined;
|
|
124
|
+
uploader?: string | undefined;
|
|
125
|
+
}[] | undefined;
|
|
126
|
+
}, {
|
|
127
|
+
loc?: string | undefined;
|
|
128
|
+
lastmod?: Date | undefined;
|
|
129
|
+
changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
|
|
130
|
+
priority?: number | undefined;
|
|
131
|
+
images?: {
|
|
132
|
+
loc: string;
|
|
133
|
+
caption?: string | undefined;
|
|
134
|
+
geo_location?: string | undefined;
|
|
135
|
+
title?: string | undefined;
|
|
136
|
+
license?: string | undefined;
|
|
137
|
+
}[] | undefined;
|
|
138
|
+
videos?: {
|
|
139
|
+
content_loc: string;
|
|
140
|
+
player_loc?: string | undefined;
|
|
141
|
+
duration?: string | undefined;
|
|
142
|
+
expiration_date?: Date | undefined;
|
|
143
|
+
rating?: number | undefined;
|
|
144
|
+
view_count?: number | undefined;
|
|
145
|
+
publication_date?: Date | undefined;
|
|
146
|
+
family_friendly?: boolean | undefined;
|
|
147
|
+
tag?: string | undefined;
|
|
148
|
+
category?: string | undefined;
|
|
149
|
+
restriction?: {
|
|
150
|
+
value?: string | undefined;
|
|
151
|
+
relationship?: "allow" | undefined;
|
|
152
|
+
} | undefined;
|
|
153
|
+
gallery_loc?: string | undefined;
|
|
154
|
+
price?: string | undefined;
|
|
155
|
+
requires_subscription?: boolean | undefined;
|
|
156
|
+
uploader?: string | undefined;
|
|
157
|
+
}[] | undefined;
|
|
158
|
+
}>>;
|
|
159
|
+
}, "strip", zod.ZodTypeAny, {
|
|
160
|
+
sitemap?: {
|
|
161
|
+
loc?: string | undefined;
|
|
162
|
+
lastmod?: Date | undefined;
|
|
163
|
+
changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
|
|
164
|
+
priority?: number | undefined;
|
|
165
|
+
images?: {
|
|
166
|
+
loc: string;
|
|
167
|
+
caption?: string | undefined;
|
|
168
|
+
geo_location?: string | undefined;
|
|
169
|
+
title?: string | undefined;
|
|
170
|
+
license?: string | undefined;
|
|
171
|
+
}[] | undefined;
|
|
172
|
+
videos?: {
|
|
173
|
+
content_loc: string;
|
|
174
|
+
player_loc?: string | undefined;
|
|
175
|
+
duration?: string | undefined;
|
|
176
|
+
expiration_date?: Date | undefined;
|
|
177
|
+
rating?: number | undefined;
|
|
178
|
+
view_count?: number | undefined;
|
|
179
|
+
publication_date?: Date | undefined;
|
|
180
|
+
family_friendly?: boolean | undefined;
|
|
181
|
+
tag?: string | undefined;
|
|
182
|
+
category?: string | undefined;
|
|
183
|
+
restriction?: {
|
|
184
|
+
value?: string | undefined;
|
|
185
|
+
relationship?: "allow" | undefined;
|
|
186
|
+
} | undefined;
|
|
187
|
+
gallery_loc?: string | undefined;
|
|
188
|
+
price?: string | undefined;
|
|
189
|
+
requires_subscription?: boolean | undefined;
|
|
190
|
+
uploader?: string | undefined;
|
|
191
|
+
}[] | undefined;
|
|
192
|
+
} | undefined;
|
|
193
|
+
}, {
|
|
194
|
+
sitemap?: {
|
|
195
|
+
loc?: string | undefined;
|
|
196
|
+
lastmod?: Date | undefined;
|
|
197
|
+
changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
|
|
198
|
+
priority?: number | undefined;
|
|
199
|
+
images?: {
|
|
200
|
+
loc: string;
|
|
201
|
+
caption?: string | undefined;
|
|
202
|
+
geo_location?: string | undefined;
|
|
203
|
+
title?: string | undefined;
|
|
204
|
+
license?: string | undefined;
|
|
205
|
+
}[] | undefined;
|
|
206
|
+
videos?: {
|
|
207
|
+
content_loc: string;
|
|
208
|
+
player_loc?: string | undefined;
|
|
209
|
+
duration?: string | undefined;
|
|
210
|
+
expiration_date?: Date | undefined;
|
|
211
|
+
rating?: number | undefined;
|
|
212
|
+
view_count?: number | undefined;
|
|
213
|
+
publication_date?: Date | undefined;
|
|
214
|
+
family_friendly?: boolean | undefined;
|
|
215
|
+
tag?: string | undefined;
|
|
216
|
+
category?: string | undefined;
|
|
217
|
+
restriction?: {
|
|
218
|
+
value?: string | undefined;
|
|
219
|
+
relationship?: "allow" | undefined;
|
|
220
|
+
} | undefined;
|
|
221
|
+
gallery_loc?: string | undefined;
|
|
222
|
+
price?: string | undefined;
|
|
223
|
+
requires_subscription?: boolean | undefined;
|
|
224
|
+
uploader?: string | undefined;
|
|
225
|
+
}[] | undefined;
|
|
226
|
+
} | undefined;
|
|
227
|
+
}>;
|
|
228
|
+
type SitemapSchema = TypeOf<typeof schema>;
|
|
229
|
+
declare function asSitemapCollection<T extends ZodRawShape>(collection: Collection<T>): Collection<T>;
|
|
230
|
+
|
|
231
|
+
export { type SitemapSchema, asSitemapCollection, schema };
|
package/dist/content.mjs
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { z } from '@nuxt/content';
|
|
2
|
+
|
|
3
|
+
const schema = z.object({
|
|
4
|
+
sitemap: z.object({
|
|
5
|
+
loc: z.string().optional(),
|
|
6
|
+
lastmod: z.date().optional(),
|
|
7
|
+
changefreq: z.union([z.literal("always"), z.literal("hourly"), z.literal("daily"), z.literal("weekly"), z.literal("monthly"), z.literal("yearly"), z.literal("never")]).optional(),
|
|
8
|
+
priority: z.number().optional(),
|
|
9
|
+
images: z.array(z.object({
|
|
10
|
+
loc: z.string(),
|
|
11
|
+
caption: z.string().optional(),
|
|
12
|
+
geo_location: z.string().optional(),
|
|
13
|
+
title: z.string().optional(),
|
|
14
|
+
license: z.string().optional()
|
|
15
|
+
})).optional(),
|
|
16
|
+
videos: z.array(z.object({
|
|
17
|
+
content_loc: z.string(),
|
|
18
|
+
player_loc: z.string().optional(),
|
|
19
|
+
duration: z.string().optional(),
|
|
20
|
+
expiration_date: z.date().optional(),
|
|
21
|
+
rating: z.number().optional(),
|
|
22
|
+
view_count: z.number().optional(),
|
|
23
|
+
publication_date: z.date().optional(),
|
|
24
|
+
family_friendly: z.boolean().optional(),
|
|
25
|
+
tag: z.string().optional(),
|
|
26
|
+
category: z.string().optional(),
|
|
27
|
+
restriction: z.object({
|
|
28
|
+
relationship: z.literal("allow").optional(),
|
|
29
|
+
value: z.string().optional()
|
|
30
|
+
}).optional(),
|
|
31
|
+
gallery_loc: z.string().optional(),
|
|
32
|
+
price: z.string().optional(),
|
|
33
|
+
requires_subscription: z.boolean().optional(),
|
|
34
|
+
uploader: z.string().optional()
|
|
35
|
+
})).optional()
|
|
36
|
+
}).optional()
|
|
37
|
+
});
|
|
38
|
+
function asSitemapCollection(collection) {
|
|
39
|
+
if (collection.type === "page") {
|
|
40
|
+
collection.schema = collection.schema ? schema.extend(collection.schema.shape) : schema;
|
|
41
|
+
}
|
|
42
|
+
return collection;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { asSitemapCollection, schema };
|