kizlo 0.1.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/LICENSE +21 -0
- package/README.md +74 -0
- package/dist/adapters/auth.d.ts +18 -0
- package/dist/adapters/auth.js +15 -0
- package/dist/adapters/captcha.d.ts +28 -0
- package/dist/adapters/captcha.js +86 -0
- package/dist/adapters/geo.d.ts +18 -0
- package/dist/adapters/geo.js +18 -0
- package/dist/adapters/geo.vercel.d.ts +6 -0
- package/dist/adapters/geo.vercel.js +41 -0
- package/dist/adapters/logger.d.ts +31 -0
- package/dist/adapters/logger.js +30 -0
- package/dist/cli/banner.js +26 -0
- package/dist/cli/commands/generate.js +34 -0
- package/dist/cli/commands/init.js +313 -0
- package/dist/cli/commands/test.js +68 -0
- package/dist/cli/commands/watch.js +53 -0
- package/dist/cli/commands/wp.js +66 -0
- package/dist/cli/daemon/config.js +87 -0
- package/dist/cli/daemon/generate.js +40 -0
- package/dist/cli/daemon/lock.js +31 -0
- package/dist/cli/daemon/logger.js +8 -0
- package/dist/cli/daemon/watch.js +37 -0
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +22 -0
- package/dist/cli/presets/base.js +23 -0
- package/dist/cli/presets/index.js +16 -0
- package/dist/cli/presets/nextjs.js +39 -0
- package/dist/cli/utils.js +182 -0
- package/dist/cli/wp/bootstrap.js +114 -0
- package/dist/cli/wp/compose/docker-compose.yml +73 -0
- package/dist/cli/wp/constants.js +52 -0
- package/dist/cli/wp/docker.d.ts +24 -0
- package/dist/cli/wp/docker.js +69 -0
- package/dist/cli/wp/setup.js +39 -0
- package/dist/cli/wp/types.d.ts +72 -0
- package/dist/cli/wp/types.js +8 -0
- package/dist/cli/wp/utils.d.ts +39 -0
- package/dist/cli/wp/utils.js +105 -0
- package/dist/client.d.ts +24 -0
- package/dist/client.js +55 -0
- package/dist/comment/errors.js +47 -0
- package/dist/comment/index.js +138 -0
- package/dist/comment/schema.js +72 -0
- package/dist/comment/utils.js +35 -0
- package/dist/config.d.ts +39 -0
- package/dist/config.js +7 -0
- package/dist/context.d.ts +73 -0
- package/dist/context.js +145 -0
- package/dist/cookie.d.ts +19 -0
- package/dist/cookie.js +25 -0
- package/dist/email/service.d.ts +11 -0
- package/dist/email/service.interface.d.ts +8 -0
- package/dist/email/service.js +20 -0
- package/dist/index.d.ts +39 -0
- package/dist/index.js +31 -0
- package/dist/integrations/nextjs/kizlo.client.d.ts +10 -0
- package/dist/integrations/nextjs/kizlo.client.js +13 -0
- package/dist/integrations/nextjs/kizlo.server.d.ts +12 -0
- package/dist/integrations/nextjs/kizlo.server.js +13 -0
- package/dist/integrations/nextjs/utils.js +11 -0
- package/dist/kizlo.d.ts +73 -0
- package/dist/kizlo.js +144 -0
- package/dist/menu/errors.js +16 -0
- package/dist/menu/fixture.d.ts +8 -0
- package/dist/menu/fixture.js +62 -0
- package/dist/menu/index.js +70 -0
- package/dist/menu/schema.js +70 -0
- package/dist/menu/utils.js +57 -0
- package/dist/nextjs/server.d.ts +2 -0
- package/dist/nextjs/server.js +3 -0
- package/dist/nextjs.d.ts +2 -0
- package/dist/nextjs.js +3 -0
- package/dist/package.js +5 -0
- package/dist/post/error.js +30 -0
- package/dist/post/fixture.d.ts +8 -0
- package/dist/post/fixture.js +71 -0
- package/dist/post/index.js +123 -0
- package/dist/post/schema.js +120 -0
- package/dist/post/utils.js +42 -0
- package/dist/post-type/service.js +48 -0
- package/dist/router.d.ts +624 -0
- package/dist/router.js +15 -0
- package/dist/seo/index.js +54 -0
- package/dist/seo/schema.d.ts +196 -0
- package/dist/seo/schema.js +96 -0
- package/dist/seo/types.d.ts +80 -0
- package/dist/seo/utils.js +44 -0
- package/dist/service.d.ts +17 -0
- package/dist/service.js +17 -0
- package/dist/shared/constants.js +10 -0
- package/dist/shared/contract.d.ts +21 -0
- package/dist/shared/contract.js +43 -0
- package/dist/shared/crypto.d.ts +28 -0
- package/dist/shared/crypto.js +34 -0
- package/dist/shared/error.d.ts +128 -0
- package/dist/shared/error.js +147 -0
- package/dist/shared/extension.d.ts +25 -0
- package/dist/shared/extension.js +7 -0
- package/dist/shared/identifier.d.ts +11 -0
- package/dist/shared/identifier.js +26 -0
- package/dist/shared/middleware.d.ts +29 -0
- package/dist/shared/procedure.d.ts +114 -0
- package/dist/shared/procedure.js +114 -0
- package/dist/shared/result.d.ts +24 -0
- package/dist/shared/result.js +49 -0
- package/dist/shared/router.d.ts +7 -0
- package/dist/shared/router.js +26 -0
- package/dist/shared/schema.d.ts +55 -0
- package/dist/shared/schema.js +43 -0
- package/dist/shared/serialize.d.ts +12 -0
- package/dist/shared/serialize.js +51 -0
- package/dist/shared/types.d.ts +35 -0
- package/dist/shared/utils.js +17 -0
- package/dist/test/auth.d.ts +7 -0
- package/dist/test/auth.js +15 -0
- package/dist/test/captcha.d.ts +7 -0
- package/dist/test/captcha.js +8 -0
- package/dist/test/client.d.ts +11 -0
- package/dist/test/client.js +14 -0
- package/dist/test/fixtures.d.ts +14 -0
- package/dist/test/fixtures.js +13 -0
- package/dist/test/server.d.ts +10 -0
- package/dist/test/server.js +32 -0
- package/dist/test/users.d.ts +14 -0
- package/dist/test/users.js +17 -0
- package/dist/test.d.ts +12 -0
- package/dist/test.js +13 -0
- package/dist/webhook/index.d.ts +38 -0
- package/dist/webhook/index.js +44 -0
- package/dist/webhook/schema.d.ts +45 -0
- package/dist/webhook/schema.js +72 -0
- package/dist/webhook/utils.js +21 -0
- package/dist/wordpress/comment/service.d.ts +28 -0
- package/dist/wordpress/comment/service.js +55 -0
- package/dist/wordpress/comment/types.d.ts +206 -0
- package/dist/wordpress/constants.d.ts +14 -0
- package/dist/wordpress/constants.js +13 -0
- package/dist/wordpress/error.d.ts +9 -0
- package/dist/wordpress/error.js +12 -0
- package/dist/wordpress/index.d.ts +15 -0
- package/dist/wordpress/menu/items/service.d.ts +28 -0
- package/dist/wordpress/menu/items/service.js +55 -0
- package/dist/wordpress/menu/items/types.d.ts +214 -0
- package/dist/wordpress/menu/service.d.ts +30 -0
- package/dist/wordpress/menu/service.js +58 -0
- package/dist/wordpress/menu/types.d.ts +115 -0
- package/dist/wordpress/post/service.d.ts +28 -0
- package/dist/wordpress/post/service.js +55 -0
- package/dist/wordpress/post/types.d.ts +290 -0
- package/dist/wordpress/service.d.ts +77 -0
- package/dist/wordpress/service.js +180 -0
- package/dist/wordpress/types.d.ts +67 -0
- package/dist/wordpress/user/service.d.ts +28 -0
- package/dist/wordpress/user/service.js +55 -0
- package/dist/wordpress/user/types.d.ts +221 -0
- package/dist/wordpress/utils.d.ts +7 -0
- package/dist/wordpress/utils.js +9 -0
- package/package.json +109 -0
package/dist/router.d.ts
ADDED
|
@@ -0,0 +1,624 @@
|
|
|
1
|
+
import { DefinedErrorMapLike } from "./shared/error.js";
|
|
2
|
+
import { Procedure } from "./shared/procedure.js";
|
|
3
|
+
import "./index.js";
|
|
4
|
+
|
|
5
|
+
//#region src/router.d.ts
|
|
6
|
+
declare const ROUTER_MAP: {
|
|
7
|
+
posts: {
|
|
8
|
+
get: Procedure<"api", {
|
|
9
|
+
params: {
|
|
10
|
+
identifier: string | number;
|
|
11
|
+
};
|
|
12
|
+
query?: {
|
|
13
|
+
password?: string | undefined;
|
|
14
|
+
previewToken?: string | undefined;
|
|
15
|
+
} | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
id: number;
|
|
18
|
+
slug: string;
|
|
19
|
+
title: string | null;
|
|
20
|
+
content: string | null;
|
|
21
|
+
excerpt: string | null;
|
|
22
|
+
commentsEnabled: boolean;
|
|
23
|
+
protected: boolean;
|
|
24
|
+
format: "standard" | "aside" | "chat" | "gallery" | "link" | "image" | "quote" | "status" | "video" | "audio";
|
|
25
|
+
sticky: boolean;
|
|
26
|
+
author: {
|
|
27
|
+
id: number;
|
|
28
|
+
name: string;
|
|
29
|
+
avatar: {
|
|
30
|
+
id: number;
|
|
31
|
+
name: string;
|
|
32
|
+
alt: string;
|
|
33
|
+
src: string;
|
|
34
|
+
} | null;
|
|
35
|
+
} | null;
|
|
36
|
+
featuredMedia: {
|
|
37
|
+
id: number;
|
|
38
|
+
name: string;
|
|
39
|
+
alt: string;
|
|
40
|
+
src: string;
|
|
41
|
+
} | null;
|
|
42
|
+
categories: {
|
|
43
|
+
id: number;
|
|
44
|
+
name: string;
|
|
45
|
+
slug: string;
|
|
46
|
+
}[];
|
|
47
|
+
tags: {
|
|
48
|
+
id: number;
|
|
49
|
+
name: string;
|
|
50
|
+
slug: string;
|
|
51
|
+
}[];
|
|
52
|
+
seo: {
|
|
53
|
+
head: {
|
|
54
|
+
title: string;
|
|
55
|
+
canonical: string;
|
|
56
|
+
robots: {
|
|
57
|
+
index: string;
|
|
58
|
+
follow: string;
|
|
59
|
+
maxSnippet: string;
|
|
60
|
+
maxImagePreview: string;
|
|
61
|
+
maxVideoPreview: string;
|
|
62
|
+
};
|
|
63
|
+
og: {
|
|
64
|
+
locale: string;
|
|
65
|
+
type: string;
|
|
66
|
+
title: string;
|
|
67
|
+
url: string;
|
|
68
|
+
siteName: string;
|
|
69
|
+
description: string;
|
|
70
|
+
image: {
|
|
71
|
+
url: string;
|
|
72
|
+
width: string;
|
|
73
|
+
height: string;
|
|
74
|
+
type: string;
|
|
75
|
+
alt: string | null;
|
|
76
|
+
} | null;
|
|
77
|
+
};
|
|
78
|
+
twitter: {
|
|
79
|
+
card: "summary" | "summary_large_image";
|
|
80
|
+
title: string;
|
|
81
|
+
site: string | null;
|
|
82
|
+
creator: string | null;
|
|
83
|
+
description: string;
|
|
84
|
+
image: string | null;
|
|
85
|
+
};
|
|
86
|
+
article: {
|
|
87
|
+
publishedTime: string;
|
|
88
|
+
modifiedTime: string;
|
|
89
|
+
author: string;
|
|
90
|
+
authorUrl: string;
|
|
91
|
+
section: string;
|
|
92
|
+
} | null;
|
|
93
|
+
};
|
|
94
|
+
schema: {
|
|
95
|
+
"@context": "https://schema.org";
|
|
96
|
+
"@graph": {
|
|
97
|
+
[x: string]: unknown;
|
|
98
|
+
}[];
|
|
99
|
+
};
|
|
100
|
+
} | null;
|
|
101
|
+
createdAt: number;
|
|
102
|
+
updatedAt: number;
|
|
103
|
+
meta: {
|
|
104
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | {
|
|
105
|
+
[x: string]: string | number | boolean | /*elided*/any | /*elided*/any | null;
|
|
106
|
+
} | null)[] | {
|
|
107
|
+
[x: string]: string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null;
|
|
108
|
+
} | null)[] | {
|
|
109
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
|
|
110
|
+
} | null)[] | {
|
|
111
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
|
|
112
|
+
} | null)[] | {
|
|
113
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
|
|
114
|
+
} | null)[] | {
|
|
115
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
|
|
116
|
+
} | null)[] | {
|
|
117
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
|
|
118
|
+
} | null)[] | {
|
|
119
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
|
|
120
|
+
} | null)[] | {
|
|
121
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
|
|
122
|
+
} | null)[] | {
|
|
123
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
|
|
124
|
+
} | null)[] | {
|
|
125
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
|
|
126
|
+
} | null)[] | {
|
|
127
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
|
|
128
|
+
} | null;
|
|
129
|
+
};
|
|
130
|
+
}, {
|
|
131
|
+
readonly POST_NOT_FOUND: {
|
|
132
|
+
readonly status: 404;
|
|
133
|
+
readonly message: "Post not found";
|
|
134
|
+
};
|
|
135
|
+
readonly POST_PASSWORD_INVALID: {
|
|
136
|
+
readonly status: 400;
|
|
137
|
+
readonly message: "Invalid post password.";
|
|
138
|
+
};
|
|
139
|
+
}>;
|
|
140
|
+
list: Procedure<"api", {
|
|
141
|
+
query?: {
|
|
142
|
+
page?: string | number | undefined;
|
|
143
|
+
perPage?: string | number | undefined;
|
|
144
|
+
search?: string | undefined;
|
|
145
|
+
after?: string | undefined;
|
|
146
|
+
before?: string | undefined;
|
|
147
|
+
author?: string | number | (string | number)[] | undefined;
|
|
148
|
+
authorExclude?: string | number | (string | number)[] | undefined;
|
|
149
|
+
exclude?: string | number | (string | number)[] | undefined;
|
|
150
|
+
include?: string | number | (string | number)[] | undefined;
|
|
151
|
+
offset?: string | number | undefined;
|
|
152
|
+
order?: "asc" | "desc" | undefined;
|
|
153
|
+
orderby?: "date" | "id" | "slug" | "title" | "author" | "include" | "parent" | "relevance" | "include_slugs" | undefined;
|
|
154
|
+
searchColumns?: string[] | undefined;
|
|
155
|
+
slug?: string | string[] | undefined;
|
|
156
|
+
taxRelation?: "AND" | "OR" | undefined;
|
|
157
|
+
categories?: string | number | (string | number)[] | undefined;
|
|
158
|
+
categoriesExclude?: string | number | (string | number)[] | undefined;
|
|
159
|
+
tags?: string | number | (string | number)[] | undefined;
|
|
160
|
+
tagsExclude?: string | number | (string | number)[] | undefined;
|
|
161
|
+
sticky?: string | boolean | undefined;
|
|
162
|
+
} | undefined;
|
|
163
|
+
}, {
|
|
164
|
+
items: {
|
|
165
|
+
id: number;
|
|
166
|
+
slug: string;
|
|
167
|
+
title: string | null;
|
|
168
|
+
content: string | null;
|
|
169
|
+
excerpt: string | null;
|
|
170
|
+
commentsEnabled: boolean;
|
|
171
|
+
protected: boolean;
|
|
172
|
+
format: "standard" | "aside" | "chat" | "gallery" | "link" | "image" | "quote" | "status" | "video" | "audio";
|
|
173
|
+
sticky: boolean;
|
|
174
|
+
author: {
|
|
175
|
+
id: number;
|
|
176
|
+
name: string;
|
|
177
|
+
avatar: {
|
|
178
|
+
id: number;
|
|
179
|
+
name: string;
|
|
180
|
+
alt: string;
|
|
181
|
+
src: string;
|
|
182
|
+
} | null;
|
|
183
|
+
} | null;
|
|
184
|
+
featuredMedia: {
|
|
185
|
+
id: number;
|
|
186
|
+
name: string;
|
|
187
|
+
alt: string;
|
|
188
|
+
src: string;
|
|
189
|
+
} | null;
|
|
190
|
+
categories: {
|
|
191
|
+
id: number;
|
|
192
|
+
name: string;
|
|
193
|
+
slug: string;
|
|
194
|
+
}[];
|
|
195
|
+
tags: {
|
|
196
|
+
id: number;
|
|
197
|
+
name: string;
|
|
198
|
+
slug: string;
|
|
199
|
+
}[];
|
|
200
|
+
seo: {
|
|
201
|
+
head: {
|
|
202
|
+
title: string;
|
|
203
|
+
canonical: string;
|
|
204
|
+
robots: {
|
|
205
|
+
index: string;
|
|
206
|
+
follow: string;
|
|
207
|
+
maxSnippet: string;
|
|
208
|
+
maxImagePreview: string;
|
|
209
|
+
maxVideoPreview: string;
|
|
210
|
+
};
|
|
211
|
+
og: {
|
|
212
|
+
locale: string;
|
|
213
|
+
type: string;
|
|
214
|
+
title: string;
|
|
215
|
+
url: string;
|
|
216
|
+
siteName: string;
|
|
217
|
+
description: string;
|
|
218
|
+
image: {
|
|
219
|
+
url: string;
|
|
220
|
+
width: string;
|
|
221
|
+
height: string;
|
|
222
|
+
type: string;
|
|
223
|
+
alt: string | null;
|
|
224
|
+
} | null;
|
|
225
|
+
};
|
|
226
|
+
twitter: {
|
|
227
|
+
card: "summary" | "summary_large_image";
|
|
228
|
+
title: string;
|
|
229
|
+
site: string | null;
|
|
230
|
+
creator: string | null;
|
|
231
|
+
description: string;
|
|
232
|
+
image: string | null;
|
|
233
|
+
};
|
|
234
|
+
article: {
|
|
235
|
+
publishedTime: string;
|
|
236
|
+
modifiedTime: string;
|
|
237
|
+
author: string;
|
|
238
|
+
authorUrl: string;
|
|
239
|
+
section: string;
|
|
240
|
+
} | null;
|
|
241
|
+
};
|
|
242
|
+
schema: {
|
|
243
|
+
"@context": "https://schema.org";
|
|
244
|
+
"@graph": {
|
|
245
|
+
[x: string]: unknown;
|
|
246
|
+
}[];
|
|
247
|
+
};
|
|
248
|
+
} | null;
|
|
249
|
+
createdAt: number;
|
|
250
|
+
updatedAt: number;
|
|
251
|
+
meta: {
|
|
252
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | {
|
|
253
|
+
[x: string]: string | number | boolean | /*elided*/any | /*elided*/any | null;
|
|
254
|
+
} | null)[] | {
|
|
255
|
+
[x: string]: string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null;
|
|
256
|
+
} | null)[] | {
|
|
257
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
|
|
258
|
+
} | null)[] | {
|
|
259
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
|
|
260
|
+
} | null)[] | {
|
|
261
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
|
|
262
|
+
} | null)[] | {
|
|
263
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
|
|
264
|
+
} | null)[] | {
|
|
265
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
|
|
266
|
+
} | null)[] | {
|
|
267
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
|
|
268
|
+
} | null)[] | {
|
|
269
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
|
|
270
|
+
} | null)[] | {
|
|
271
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
|
|
272
|
+
} | null)[] | {
|
|
273
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
|
|
274
|
+
} | null;
|
|
275
|
+
};
|
|
276
|
+
}[];
|
|
277
|
+
meta: {
|
|
278
|
+
page: number;
|
|
279
|
+
totalItems: number;
|
|
280
|
+
totalPages: number;
|
|
281
|
+
nextPage: number | null;
|
|
282
|
+
prevPage: number | null;
|
|
283
|
+
hasNextPage: boolean;
|
|
284
|
+
hasPrevPage: boolean;
|
|
285
|
+
};
|
|
286
|
+
}, {
|
|
287
|
+
readonly POST_INVALID_PAGE: {
|
|
288
|
+
readonly status: 400;
|
|
289
|
+
readonly message: "The requested page does not exist.";
|
|
290
|
+
};
|
|
291
|
+
readonly POST_SEARCH_REQUIRED: {
|
|
292
|
+
readonly status: 400;
|
|
293
|
+
readonly message: "A search term is required.";
|
|
294
|
+
};
|
|
295
|
+
readonly POST_ORDERBY_INCLUDE_MISSING: {
|
|
296
|
+
readonly status: 400;
|
|
297
|
+
readonly message: "Ordering by 'include' requires the include parameter.";
|
|
298
|
+
};
|
|
299
|
+
}>;
|
|
300
|
+
};
|
|
301
|
+
seo: {
|
|
302
|
+
sitemaps: Procedure<"internal", {}, {
|
|
303
|
+
key: string;
|
|
304
|
+
type: "author" | "post_type" | "taxonomy";
|
|
305
|
+
pages: number;
|
|
306
|
+
lastmod: string;
|
|
307
|
+
}[], DefinedErrorMapLike>;
|
|
308
|
+
robots: Procedure<"internal", {}, {
|
|
309
|
+
sitemaps: string[];
|
|
310
|
+
rules: {
|
|
311
|
+
userAgent: string;
|
|
312
|
+
allow: string[];
|
|
313
|
+
disallow: string[];
|
|
314
|
+
}[];
|
|
315
|
+
}, DefinedErrorMapLike>;
|
|
316
|
+
urls: Procedure<"internal", {
|
|
317
|
+
type: "post_type" | "taxonomy";
|
|
318
|
+
key: string;
|
|
319
|
+
page?: string | number | undefined;
|
|
320
|
+
} | {
|
|
321
|
+
type: "author";
|
|
322
|
+
page?: string | number | undefined;
|
|
323
|
+
}, {
|
|
324
|
+
loc: string;
|
|
325
|
+
lastmod: string;
|
|
326
|
+
images: {
|
|
327
|
+
loc: string;
|
|
328
|
+
title: string;
|
|
329
|
+
}[];
|
|
330
|
+
}[], DefinedErrorMapLike>;
|
|
331
|
+
};
|
|
332
|
+
menus: {
|
|
333
|
+
items: {
|
|
334
|
+
list: Procedure<"api", {
|
|
335
|
+
query?: {
|
|
336
|
+
page?: string | number | undefined;
|
|
337
|
+
perPage?: string | number | undefined;
|
|
338
|
+
search?: string | undefined;
|
|
339
|
+
after?: string | undefined;
|
|
340
|
+
before?: string | undefined;
|
|
341
|
+
exclude?: string | number | (string | number)[] | undefined;
|
|
342
|
+
include?: string | number | (string | number)[] | undefined;
|
|
343
|
+
offset?: string | number | undefined;
|
|
344
|
+
order?: "asc" | "desc" | undefined;
|
|
345
|
+
orderby?: "date" | "id" | "slug" | "title" | "author" | "include" | "parent" | "relevance" | "include_slugs" | "menu_order" | undefined;
|
|
346
|
+
searchColumns?: string[] | undefined;
|
|
347
|
+
slug?: string | string[] | undefined;
|
|
348
|
+
taxRelation?: "AND" | "OR" | undefined;
|
|
349
|
+
menus?: string | number | (string | number)[] | undefined;
|
|
350
|
+
menusExclude?: string | number | (string | number)[] | undefined;
|
|
351
|
+
menuOrder?: string | number | undefined;
|
|
352
|
+
} | undefined;
|
|
353
|
+
}, {
|
|
354
|
+
items: {
|
|
355
|
+
id: number;
|
|
356
|
+
href: string;
|
|
357
|
+
name: string;
|
|
358
|
+
type: "custom" | "post" | "page" | "category" | "product" | "product_cat" | "product_tag";
|
|
359
|
+
description: string;
|
|
360
|
+
meta: {
|
|
361
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | {
|
|
362
|
+
[x: string]: string | number | boolean | /*elided*/any | /*elided*/any | null;
|
|
363
|
+
} | null)[] | {
|
|
364
|
+
[x: string]: string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null;
|
|
365
|
+
} | null)[] | {
|
|
366
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
|
|
367
|
+
} | null)[] | {
|
|
368
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
|
|
369
|
+
} | null)[] | {
|
|
370
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
|
|
371
|
+
} | null)[] | {
|
|
372
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
|
|
373
|
+
} | null)[] | {
|
|
374
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
|
|
375
|
+
} | null)[] | {
|
|
376
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
|
|
377
|
+
} | null)[] | {
|
|
378
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
|
|
379
|
+
} | null)[] | {
|
|
380
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
|
|
381
|
+
} | null)[] | {
|
|
382
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/any | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null)[] | /*elided*/any | null;
|
|
383
|
+
} | null;
|
|
384
|
+
};
|
|
385
|
+
}[];
|
|
386
|
+
meta: {
|
|
387
|
+
page: number;
|
|
388
|
+
totalItems: number;
|
|
389
|
+
totalPages: number;
|
|
390
|
+
nextPage: number | null;
|
|
391
|
+
prevPage: number | null;
|
|
392
|
+
hasNextPage: boolean;
|
|
393
|
+
hasPrevPage: boolean;
|
|
394
|
+
};
|
|
395
|
+
}, {
|
|
396
|
+
readonly MENU_ITEM_INVALID_PAGE: {
|
|
397
|
+
readonly status: 400;
|
|
398
|
+
readonly message: "The requested page does not exist.";
|
|
399
|
+
};
|
|
400
|
+
readonly MENU_ITEM_FORBIDDEN: {
|
|
401
|
+
readonly status: 403;
|
|
402
|
+
readonly message: "You are not allowed to view menu items.";
|
|
403
|
+
};
|
|
404
|
+
}>;
|
|
405
|
+
groupList: Procedure<"api", {
|
|
406
|
+
query?: {
|
|
407
|
+
page?: string | number | undefined;
|
|
408
|
+
perPage?: string | number | undefined;
|
|
409
|
+
search?: string | undefined;
|
|
410
|
+
after?: string | undefined;
|
|
411
|
+
before?: string | undefined;
|
|
412
|
+
exclude?: string | number | (string | number)[] | undefined;
|
|
413
|
+
include?: string | number | (string | number)[] | undefined;
|
|
414
|
+
offset?: string | number | undefined;
|
|
415
|
+
order?: "asc" | "desc" | undefined;
|
|
416
|
+
orderby?: "date" | "id" | "slug" | "title" | "author" | "include" | "parent" | "relevance" | "include_slugs" | "menu_order" | undefined;
|
|
417
|
+
searchColumns?: string[] | undefined;
|
|
418
|
+
slug?: string | string[] | undefined;
|
|
419
|
+
taxRelation?: "AND" | "OR" | undefined;
|
|
420
|
+
menus?: string | number | (string | number)[] | undefined;
|
|
421
|
+
menusExclude?: string | number | (string | number)[] | undefined;
|
|
422
|
+
menuOrder?: string | number | undefined;
|
|
423
|
+
} | undefined;
|
|
424
|
+
}, {
|
|
425
|
+
items: unknown[];
|
|
426
|
+
meta: {
|
|
427
|
+
page: number;
|
|
428
|
+
totalItems: number;
|
|
429
|
+
totalPages: number;
|
|
430
|
+
nextPage: number | null;
|
|
431
|
+
prevPage: number | null;
|
|
432
|
+
hasNextPage: boolean;
|
|
433
|
+
hasPrevPage: boolean;
|
|
434
|
+
};
|
|
435
|
+
}, {
|
|
436
|
+
readonly MENU_ITEM_INVALID_PAGE: {
|
|
437
|
+
readonly status: 400;
|
|
438
|
+
readonly message: "The requested page does not exist.";
|
|
439
|
+
};
|
|
440
|
+
readonly MENU_ITEM_FORBIDDEN: {
|
|
441
|
+
readonly status: 403;
|
|
442
|
+
readonly message: "You are not allowed to view menu items.";
|
|
443
|
+
};
|
|
444
|
+
}>;
|
|
445
|
+
};
|
|
446
|
+
};
|
|
447
|
+
comments: {
|
|
448
|
+
get: Procedure<"api", {
|
|
449
|
+
params: {
|
|
450
|
+
id: string | number;
|
|
451
|
+
};
|
|
452
|
+
query?: {
|
|
453
|
+
password?: string | undefined;
|
|
454
|
+
} | undefined;
|
|
455
|
+
}, {
|
|
456
|
+
id: number;
|
|
457
|
+
parentId: number;
|
|
458
|
+
author: {
|
|
459
|
+
id: number;
|
|
460
|
+
name: string;
|
|
461
|
+
avatar: {
|
|
462
|
+
id: number;
|
|
463
|
+
name: string;
|
|
464
|
+
alt: string;
|
|
465
|
+
src: string;
|
|
466
|
+
} | null;
|
|
467
|
+
} | null;
|
|
468
|
+
content: string;
|
|
469
|
+
post: {
|
|
470
|
+
id: number;
|
|
471
|
+
slug: string;
|
|
472
|
+
title: string;
|
|
473
|
+
image: {
|
|
474
|
+
id: number;
|
|
475
|
+
name: string;
|
|
476
|
+
alt: string;
|
|
477
|
+
src: string;
|
|
478
|
+
} | null;
|
|
479
|
+
};
|
|
480
|
+
replyCount: number;
|
|
481
|
+
postedAt: number;
|
|
482
|
+
isApproved: boolean;
|
|
483
|
+
}, {
|
|
484
|
+
readonly COMMENT_NOT_FOUND: {
|
|
485
|
+
readonly status: 404;
|
|
486
|
+
readonly message: "Comment not found.";
|
|
487
|
+
};
|
|
488
|
+
readonly COMMENT_FORBIDDEN: {
|
|
489
|
+
readonly status: 403;
|
|
490
|
+
readonly message: "You are not allowed to read this comment.";
|
|
491
|
+
};
|
|
492
|
+
}>;
|
|
493
|
+
list: Procedure<"api", {
|
|
494
|
+
query?: {
|
|
495
|
+
page?: string | number | undefined;
|
|
496
|
+
perPage?: string | number | undefined;
|
|
497
|
+
search?: string | undefined;
|
|
498
|
+
after?: string | undefined;
|
|
499
|
+
author?: string | number | (string | number)[] | undefined;
|
|
500
|
+
authorExclude?: string | number | (string | number)[] | undefined;
|
|
501
|
+
before?: string | undefined;
|
|
502
|
+
exclude?: string | number | (string | number)[] | undefined;
|
|
503
|
+
include?: string | number | (string | number)[] | undefined;
|
|
504
|
+
offset?: string | number | undefined;
|
|
505
|
+
order?: "asc" | "desc" | undefined;
|
|
506
|
+
orderby?: "date" | "id" | "post" | "include" | "parent" | undefined;
|
|
507
|
+
parent?: string | number | (string | number)[] | undefined;
|
|
508
|
+
parentExclude?: string | number | (string | number)[] | undefined;
|
|
509
|
+
post?: string | number | (string | number)[] | undefined;
|
|
510
|
+
password?: string | undefined;
|
|
511
|
+
} | undefined;
|
|
512
|
+
}, {
|
|
513
|
+
items: {
|
|
514
|
+
id: number;
|
|
515
|
+
parentId: number;
|
|
516
|
+
author: {
|
|
517
|
+
id: number;
|
|
518
|
+
name: string;
|
|
519
|
+
avatar: {
|
|
520
|
+
id: number;
|
|
521
|
+
name: string;
|
|
522
|
+
alt: string;
|
|
523
|
+
src: string;
|
|
524
|
+
} | null;
|
|
525
|
+
} | null;
|
|
526
|
+
content: string;
|
|
527
|
+
post: {
|
|
528
|
+
id: number;
|
|
529
|
+
slug: string;
|
|
530
|
+
title: string;
|
|
531
|
+
image: {
|
|
532
|
+
id: number;
|
|
533
|
+
name: string;
|
|
534
|
+
alt: string;
|
|
535
|
+
src: string;
|
|
536
|
+
} | null;
|
|
537
|
+
};
|
|
538
|
+
replyCount: number;
|
|
539
|
+
postedAt: number;
|
|
540
|
+
isApproved: boolean;
|
|
541
|
+
}[];
|
|
542
|
+
meta: {
|
|
543
|
+
page: number;
|
|
544
|
+
totalItems: number;
|
|
545
|
+
totalPages: number;
|
|
546
|
+
nextPage: number | null;
|
|
547
|
+
prevPage: number | null;
|
|
548
|
+
hasNextPage: boolean;
|
|
549
|
+
hasPrevPage: boolean;
|
|
550
|
+
};
|
|
551
|
+
}, {
|
|
552
|
+
readonly COMMENT_FORBIDDEN: {
|
|
553
|
+
readonly status: 403;
|
|
554
|
+
readonly message: "You are not allowed to read comments.";
|
|
555
|
+
};
|
|
556
|
+
readonly COMMENT_POST_TYPE_NOT_SUPPORTED: {
|
|
557
|
+
readonly status: 400;
|
|
558
|
+
readonly message: "The post type does not support comments.";
|
|
559
|
+
};
|
|
560
|
+
}>;
|
|
561
|
+
submit: Procedure<"api", {
|
|
562
|
+
body: {
|
|
563
|
+
postId: number;
|
|
564
|
+
content: string;
|
|
565
|
+
parentId?: number | undefined;
|
|
566
|
+
authorEmail?: string | undefined;
|
|
567
|
+
authorName?: string | undefined;
|
|
568
|
+
authorUrl?: string | undefined;
|
|
569
|
+
captchaToken?: string | undefined;
|
|
570
|
+
};
|
|
571
|
+
}, {
|
|
572
|
+
id: number;
|
|
573
|
+
parentId: number;
|
|
574
|
+
author: {
|
|
575
|
+
id: number;
|
|
576
|
+
name: string;
|
|
577
|
+
avatar: {
|
|
578
|
+
id: number;
|
|
579
|
+
name: string;
|
|
580
|
+
alt: string;
|
|
581
|
+
src: string;
|
|
582
|
+
} | null;
|
|
583
|
+
} | null;
|
|
584
|
+
content: string;
|
|
585
|
+
post: {
|
|
586
|
+
id: number;
|
|
587
|
+
slug: string;
|
|
588
|
+
title: string;
|
|
589
|
+
image: {
|
|
590
|
+
id: number;
|
|
591
|
+
name: string;
|
|
592
|
+
alt: string;
|
|
593
|
+
src: string;
|
|
594
|
+
} | null;
|
|
595
|
+
};
|
|
596
|
+
replyCount: number;
|
|
597
|
+
postedAt: number;
|
|
598
|
+
isApproved: boolean;
|
|
599
|
+
}, {
|
|
600
|
+
readonly COMMENT_USER_NOT_FOUND: {};
|
|
601
|
+
readonly COMMENT_ID_NOT_FOUND: {};
|
|
602
|
+
readonly COMMENT_CLOSED: {};
|
|
603
|
+
readonly COMMENT_LOGIN_REQUIRED: {};
|
|
604
|
+
readonly COMMENT_NAME_EMAIL_REQUIRED: {};
|
|
605
|
+
readonly COMMENT_INVALID_EMAIL: {};
|
|
606
|
+
readonly COMMENT_EMPTY_CONTENT: {};
|
|
607
|
+
readonly COMMENT_FIELD_TOO_LONG: {};
|
|
608
|
+
readonly COMMENT_DUPLICATE: {};
|
|
609
|
+
readonly COMMENT_RATE_LIMITED: {};
|
|
610
|
+
readonly COMMENT_PARENT_UNAPPROVED: {};
|
|
611
|
+
readonly COMMENT_CAPTCHA_REQUIRED: {
|
|
612
|
+
readonly status: 400;
|
|
613
|
+
readonly message: "Comment captcha is required.";
|
|
614
|
+
};
|
|
615
|
+
readonly COMMENT_CAPTCHA_INVALID: {
|
|
616
|
+
readonly status: 400;
|
|
617
|
+
readonly message: "Comment captcha is invalid.";
|
|
618
|
+
};
|
|
619
|
+
}>;
|
|
620
|
+
};
|
|
621
|
+
};
|
|
622
|
+
type RouterMap = typeof ROUTER_MAP;
|
|
623
|
+
//#endregion
|
|
624
|
+
export { RouterMap };
|
package/dist/router.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { COMMENT_ROUTER_MAP } from "./comment/index.js";
|
|
2
|
+
import { MENU_ROUTER_MAP } from "./menu/index.js";
|
|
3
|
+
import { POST_ROUTER_MAP } from "./post/index.js";
|
|
4
|
+
import { SEO_ROUTER_MAP } from "./seo/index.js";
|
|
5
|
+
|
|
6
|
+
//#region src/router.ts
|
|
7
|
+
const ROUTER_MAP = {
|
|
8
|
+
posts: POST_ROUTER_MAP,
|
|
9
|
+
seo: SEO_ROUTER_MAP,
|
|
10
|
+
menus: MENU_ROUTER_MAP,
|
|
11
|
+
comments: COMMENT_ROUTER_MAP
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { ROUTER_MAP };
|