narou 0.5.0 → 0.6.2
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/index.browser.d.ts +30 -0
- package/dist/index.browser.d.ts.map +1 -0
- package/dist/index.browser.js +119 -0
- package/dist/index.browser.js.map +1 -0
- package/dist/index.common.d.ts +8 -0
- package/dist/index.common.d.ts.map +1 -0
- package/dist/index.common.js +17 -0
- package/dist/index.common.js.map +1 -0
- package/dist/index.d.ts +30 -31
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +120 -113
- package/dist/index.js.map +1 -1
- package/dist/narou-fetch.d.ts +13 -0
- package/dist/narou-fetch.d.ts.map +1 -0
- package/dist/narou-fetch.js +130 -0
- package/dist/narou-fetch.js.map +1 -0
- package/dist/narou-jsonp.d.ts +10 -0
- package/dist/narou-jsonp.d.ts.map +1 -0
- package/dist/narou-jsonp.js +102 -0
- package/dist/narou-jsonp.js.map +1 -0
- package/dist/narou-ranking-results.d.ts +8 -8
- package/dist/narou-ranking-results.js +2 -2
- package/dist/narou-search-results.d.ts +90 -89
- package/dist/narou-search-results.d.ts.map +1 -1
- package/dist/narou-search-results.js +51 -51
- package/dist/narou-search-results.js.map +1 -1
- package/dist/narou.d.ts +24 -25
- package/dist/narou.d.ts.map +1 -1
- package/dist/narou.js +104 -142
- package/dist/narou.js.map +1 -1
- package/dist/params.d.ts +230 -230
- package/dist/params.js +173 -173
- package/dist/ranking-history.d.ts +13 -13
- package/dist/ranking-history.js +13 -13
- package/dist/ranking-history.js.map +1 -1
- package/dist/ranking.d.ts +47 -45
- package/dist/ranking.d.ts.map +1 -1
- package/dist/ranking.js +167 -165
- package/dist/ranking.js.map +1 -1
- package/dist/search-builder-r18.d.ts +21 -21
- package/dist/search-builder-r18.d.ts.map +1 -1
- package/dist/search-builder-r18.js +64 -63
- package/dist/search-builder-r18.js.map +1 -1
- package/dist/search-builder.d.ts +228 -226
- package/dist/search-builder.d.ts.map +1 -1
- package/dist/search-builder.js +412 -412
- package/dist/search-builder.js.map +1 -1
- package/dist/util/jsonp.d.ts +14 -0
- package/dist/util/jsonp.d.ts.map +1 -0
- package/dist/util/jsonp.js +48 -0
- package/dist/util/jsonp.js.map +1 -0
- package/dist/util/unzipp.d.ts +3 -3
- package/dist/util/unzipp.js +56 -56
- package/dist/util/unzipp.js.map +1 -1
- package/dist/util/url.d.ts +10 -0
- package/dist/util/url.d.ts.map +1 -0
- package/dist/util/url.js +9 -0
- package/dist/util/url.js.map +1 -0
- package/dist.es2015/index.browser.js +50 -0
- package/dist.es2015/index.browser.js.map +1 -0
- package/dist.es2015/index.common.js +5 -0
- package/dist.es2015/index.common.js.map +1 -0
- package/dist.es2015/index.js +50 -49
- package/dist.es2015/index.js.map +1 -1
- package/dist.es2015/narou-fetch.js +44 -0
- package/dist.es2015/narou-fetch.js.map +1 -0
- package/dist.es2015/narou-jsonp.js +22 -0
- package/dist.es2015/narou-jsonp.js.map +1 -0
- package/dist.es2015/narou-ranking-results.js +1 -1
- package/dist.es2015/narou-search-results.js +46 -46
- package/dist.es2015/narou-search-results.js.map +1 -1
- package/dist.es2015/narou.js +23 -60
- package/dist.es2015/narou.js.map +1 -1
- package/dist.es2015/params.js +170 -170
- package/dist.es2015/ranking-history.js +9 -9
- package/dist.es2015/ranking.js +90 -90
- package/dist.es2015/ranking.js.map +1 -1
- package/dist.es2015/search-builder-r18.js +41 -42
- package/dist.es2015/search-builder-r18.js.map +1 -1
- package/dist.es2015/search-builder.js +383 -383
- package/dist.es2015/search-builder.js.map +1 -1
- package/dist.es2015/util/jsonp.js +43 -0
- package/dist.es2015/util/jsonp.js.map +1 -0
- package/dist.es2015/util/unzipp.js +7 -7
- package/dist.es2015/util/url.js +7 -0
- package/dist.es2015/util/url.js.map +1 -0
- package/dist.esm/index.browser.js +102 -0
- package/dist.esm/index.browser.js.map +1 -0
- package/dist.esm/index.common.js +5 -0
- package/dist.esm/index.common.js.map +1 -0
- package/dist.esm/index.js +102 -97
- package/dist.esm/index.js.map +1 -1
- package/dist.esm/narou-fetch.js +128 -0
- package/dist.esm/narou-fetch.js.map +1 -0
- package/dist.esm/narou-jsonp.js +100 -0
- package/dist.esm/narou-jsonp.js.map +1 -0
- package/dist.esm/narou-ranking-results.js +1 -1
- package/dist.esm/narou-search-results.js +49 -49
- package/dist.esm/narou-search-results.js.map +1 -1
- package/dist.esm/narou.js +102 -140
- package/dist.esm/narou.js.map +1 -1
- package/dist.esm/params.js +170 -170
- package/dist.esm/ranking-history.js +9 -9
- package/dist.esm/ranking.js +164 -162
- package/dist.esm/ranking.js.map +1 -1
- package/dist.esm/search-builder-r18.js +62 -61
- package/dist.esm/search-builder-r18.js.map +1 -1
- package/dist.esm/search-builder.js +410 -410
- package/dist.esm/search-builder.js.map +1 -1
- package/dist.esm/util/jsonp.js +44 -0
- package/dist.esm/util/jsonp.js.map +1 -0
- package/dist.esm/util/unzipp.js +52 -52
- package/dist.esm/util/url.js +7 -0
- package/dist.esm/util/url.js.map +1 -0
- package/package-lock.json +3328 -4289
- package/package.json +8 -9
- package/src/index.browser.ts +63 -0
- package/src/index.common.ts +17 -0
- package/src/index.ts +22 -23
- package/src/narou-fetch.ts +51 -0
- package/src/narou-jsonp.ts +29 -0
- package/src/narou-ranking-results.ts +9 -9
- package/src/narou-search-results.ts +11 -10
- package/src/narou.ts +21 -49
- package/src/params.ts +280 -280
- package/src/ranking.ts +111 -107
- package/src/search-builder-r18.ts +1 -2
- package/src/search-builder.ts +5 -3
- package/src/util/jsonp.ts +66 -0
- package/src/util/unzipp.ts +9 -9
- package/src/util/url.ts +7 -0
package/src/params.ts
CHANGED
|
@@ -1,280 +1,280 @@
|
|
|
1
|
-
export type booleanNumber = 0 | 1;
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* {@link SearchBuilder#Fields}メソッドにパラメータを指定する際のヘルパー。
|
|
5
|
-
* @typedef {Object} Fields
|
|
6
|
-
* @property {string} title 小説名
|
|
7
|
-
* @property {string} ncode Nコード
|
|
8
|
-
* @property {string} userid 作者のユーザID(数値)
|
|
9
|
-
* @property {string} writer 作者名
|
|
10
|
-
* @property {string} story 小説のあらすじ
|
|
11
|
-
* @property {string} genre ジャンル
|
|
12
|
-
* @property {string} keyword キーワード
|
|
13
|
-
* @property {string} general_firstup 初回掲載日
|
|
14
|
-
* @property {string} general_lastup 最終掲載日
|
|
15
|
-
* @property {string} noveltype 連載の場合は1、短編の場合は2
|
|
16
|
-
* @property {string} end 連載の場合は1、短編の場合は2
|
|
17
|
-
* @property {string} general_all_no 全掲載話数です。短編の場合は1です。
|
|
18
|
-
* @property {string} length 全掲載話数です。短編の場合は1です。
|
|
19
|
-
* @property {string} time 読了時間(分単位)です。読了時間は小説文字数÷500を切り上げした数値です。
|
|
20
|
-
* @property {string} isstop 長期連載中は1、それ以外は0です。
|
|
21
|
-
* @property {string} pc_or_k 1はケータイのみ、2はPCのみ、3はPCとケータイで投稿された作品です。対象は投稿と次話投稿時のみで、どの端末で執筆されたかを表すものではありません。
|
|
22
|
-
* @property {string} global_point 総合得点(=(ブックマーク数×2)+評価点)
|
|
23
|
-
* @property {string} fav_novel_cnt ブックマーク数
|
|
24
|
-
* @property {string} review_cnt レビュー数
|
|
25
|
-
* @property {string} all_point 評価点
|
|
26
|
-
* @property {string} all_hyoka_cnt 評価者数
|
|
27
|
-
* @property {string} sasie_cnt 挿絵の数
|
|
28
|
-
* @property {string} kaiwaritu 会話率
|
|
29
|
-
* @property {string} novelupdated_at 小説の更新日時
|
|
30
|
-
* @property {string} updated_at 最終更新日時(注意:システム用で小説更新時とは関係ありません)
|
|
31
|
-
*/
|
|
32
|
-
export interface SearchParams {
|
|
33
|
-
gzip?: GzipLevel;
|
|
34
|
-
out?: "json";
|
|
35
|
-
of?: string;
|
|
36
|
-
lim?: number;
|
|
37
|
-
st?: number;
|
|
38
|
-
order?: Order;
|
|
39
|
-
|
|
40
|
-
word?: string;
|
|
41
|
-
notword?: string;
|
|
42
|
-
title?: booleanNumber;
|
|
43
|
-
ex?: booleanNumber;
|
|
44
|
-
keyword?: booleanNumber;
|
|
45
|
-
wname?: booleanNumber;
|
|
46
|
-
|
|
47
|
-
biggenre?: string | BigGenre;
|
|
48
|
-
notbiggenre?: string | BigGenre;
|
|
49
|
-
genre?: string | Genre;
|
|
50
|
-
notgenre?: string | Genre;
|
|
51
|
-
userid?: string | number;
|
|
52
|
-
|
|
53
|
-
nocgenre?: string | number;
|
|
54
|
-
notnocgenre?: string | number;
|
|
55
|
-
xid?: string | number;
|
|
56
|
-
|
|
57
|
-
isr15?: booleanNumber;
|
|
58
|
-
isbl?: booleanNumber;
|
|
59
|
-
isgl?: booleanNumber;
|
|
60
|
-
iszankoku?: booleanNumber;
|
|
61
|
-
istensei?: booleanNumber;
|
|
62
|
-
istenni?: booleanNumber;
|
|
63
|
-
istt?: booleanNumber;
|
|
64
|
-
|
|
65
|
-
notr15?: booleanNumber;
|
|
66
|
-
notbl?: booleanNumber;
|
|
67
|
-
notgl?: booleanNumber;
|
|
68
|
-
notzankoku?: booleanNumber;
|
|
69
|
-
nottensei?: booleanNumber;
|
|
70
|
-
nottenni?: booleanNumber;
|
|
71
|
-
nottt?: booleanNumber;
|
|
72
|
-
|
|
73
|
-
minlen?: number;
|
|
74
|
-
maxlen?: number;
|
|
75
|
-
length?: number | string;
|
|
76
|
-
|
|
77
|
-
kaiwaritu?: number | string;
|
|
78
|
-
sasie?: number | string;
|
|
79
|
-
|
|
80
|
-
mintime?: number;
|
|
81
|
-
maxtime?: number;
|
|
82
|
-
time?: number | string;
|
|
83
|
-
|
|
84
|
-
ncode?: string;
|
|
85
|
-
|
|
86
|
-
type?: NovelType;
|
|
87
|
-
|
|
88
|
-
buntai?: Buntai | string;
|
|
89
|
-
|
|
90
|
-
stop?: Stop;
|
|
91
|
-
|
|
92
|
-
ispickup?: booleanNumber;
|
|
93
|
-
lastup?: string;
|
|
94
|
-
|
|
95
|
-
opt?: string;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export interface RankingParams {
|
|
99
|
-
rtype: string;
|
|
100
|
-
gzip?: GzipLevel;
|
|
101
|
-
out?: "json";
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export interface RankingHistoryParams {
|
|
105
|
-
ncode: string;
|
|
106
|
-
gzip?: GzipLevel;
|
|
107
|
-
out?: "json";
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export enum Fields {
|
|
111
|
-
title = "t",
|
|
112
|
-
ncode = "n",
|
|
113
|
-
userid = "u",
|
|
114
|
-
writer = "w",
|
|
115
|
-
story = "s",
|
|
116
|
-
genre = "g",
|
|
117
|
-
keyword = "k",
|
|
118
|
-
general_firstup = "gf",
|
|
119
|
-
general_lastup = "gl",
|
|
120
|
-
noveltype = "nt",
|
|
121
|
-
end = "e",
|
|
122
|
-
general_all_no = "ga",
|
|
123
|
-
length = "l",
|
|
124
|
-
time = "ti",
|
|
125
|
-
isstop = "i",
|
|
126
|
-
pc_or_k = "p",
|
|
127
|
-
global_point = "gp",
|
|
128
|
-
fav_novel_cnt = "f",
|
|
129
|
-
review_cnt = "r",
|
|
130
|
-
all_point = "a",
|
|
131
|
-
all_hyoka_cnt = "ah",
|
|
132
|
-
sasie_cnt = "sa",
|
|
133
|
-
kaiwaritu = "ka",
|
|
134
|
-
novelupdated_at = "nu",
|
|
135
|
-
updated_at = "ua"
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/*
|
|
139
|
-
* new 新着更新順
|
|
140
|
-
* favnovelcnt ブックマーク数の多い順
|
|
141
|
-
* reviewcnt レビュー数の多い順
|
|
142
|
-
* hyoka 総合ポイントの高い順
|
|
143
|
-
* hyokaasc 総合ポイントの低い順
|
|
144
|
-
* dailypoint 日間ポイントの高い順
|
|
145
|
-
* weeklypoint 週間ポイントの高い順
|
|
146
|
-
* monthlypoint 月間ポイントの高い順
|
|
147
|
-
* quarterpoint 四半期ポイントの高い順
|
|
148
|
-
* yearlypoint 年間ポイントの高い順
|
|
149
|
-
* impressioncnt 感想の多い順
|
|
150
|
-
* hyokacnt 評価者数の多い順
|
|
151
|
-
* hyokacntasc 評価者数の少ない順
|
|
152
|
-
* weekly 週間ユニークユーザの多い順 毎週火曜日早朝リセット
|
|
153
|
-
* (前週の日曜日から土曜日分)
|
|
154
|
-
* lengthdesc 小説本文の文字数が多い順
|
|
155
|
-
* lengthasc 小説本文の文字数が少ない順
|
|
156
|
-
* ncodedesc Nコードが新しい順
|
|
157
|
-
* old 古い順
|
|
158
|
-
*/
|
|
159
|
-
export enum Order {
|
|
160
|
-
FavoriteNovelCount = "favnovelcnt",
|
|
161
|
-
ReviewCount = "favnovelcnt",
|
|
162
|
-
HyokaDesc = "hyoka",
|
|
163
|
-
HyokaAsc = "hyokaasc",
|
|
164
|
-
ImpressionCount = "impressioncnt",
|
|
165
|
-
HyokaCountDesc = "hyokacnt",
|
|
166
|
-
HyokaCountAsc = "hyokacntasc",
|
|
167
|
-
Weekly = "weekly",
|
|
168
|
-
LengthDesc = "lengthdesc",
|
|
169
|
-
LengthAsc = "lengthasc",
|
|
170
|
-
NCodeDesc = "ncodedesc",
|
|
171
|
-
New = "new",
|
|
172
|
-
Old = "old",
|
|
173
|
-
DailyPoint = "dailypoint",
|
|
174
|
-
WeeklyPoint = "weeklypoint",
|
|
175
|
-
MonthlyPoint = "monthlypoint",
|
|
176
|
-
QuarterPoint = "quarterpoint",
|
|
177
|
-
YearlyPoint = "yearlypoint"
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
export enum R18Site {
|
|
181
|
-
Nocturne = 1,
|
|
182
|
-
MoonLight = 2,
|
|
183
|
-
MoonLightBL = 3,
|
|
184
|
-
Midnight = 4
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
export enum R18SiteNotation {
|
|
188
|
-
"ノクターンノベルズ(男性向け)" = R18Site.Nocturne,
|
|
189
|
-
"ムーンライトノベルズ(女性向け)" = R18Site.MoonLight,
|
|
190
|
-
"ムーンライトノベルズ(BL)" = R18Site.MoonLightBL,
|
|
191
|
-
"ミッドナイトノベルズ(大人向け)" = R18Site.Midnight
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
export enum BigGenre {
|
|
195
|
-
Renai = 1,
|
|
196
|
-
Fantasy = 2,
|
|
197
|
-
Bungei = 3,
|
|
198
|
-
Sf = 4,
|
|
199
|
-
Sonota = 99,
|
|
200
|
-
NonGenre = 98
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
export enum BigGenreNotation {
|
|
204
|
-
"恋愛" = BigGenre.Renai,
|
|
205
|
-
"ファンタジー" = BigGenre.Fantasy,
|
|
206
|
-
"文芸" = BigGenre.Bungei,
|
|
207
|
-
"SF" = BigGenre.Sf,
|
|
208
|
-
"その他" = BigGenre.Sonota,
|
|
209
|
-
"ノンジャンル" = BigGenre.NonGenre
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
export enum Genre {
|
|
213
|
-
RenaiIsekai = 101,
|
|
214
|
-
RenaiGenjitsusekai = 102,
|
|
215
|
-
FantasyHigh = 201,
|
|
216
|
-
FantasyLow = 202,
|
|
217
|
-
BungeiJyunbungei = 301,
|
|
218
|
-
BungeiHumanDrama = 302,
|
|
219
|
-
BungeiHistory = 303,
|
|
220
|
-
BungeiSuiri = 304,
|
|
221
|
-
BungeiHorror = 305,
|
|
222
|
-
BungeiAction = 306,
|
|
223
|
-
BungeiComedy = 307,
|
|
224
|
-
SfVrgame = 401,
|
|
225
|
-
SfSpace = 402,
|
|
226
|
-
SfKuusoukagaku = 403,
|
|
227
|
-
SfPanic = 404,
|
|
228
|
-
SonotaDouwa = 9901,
|
|
229
|
-
SonotaShi = 9902,
|
|
230
|
-
SonotaEssei = 9903,
|
|
231
|
-
SonotaReplay = 9904,
|
|
232
|
-
SonotaSonota = 9999,
|
|
233
|
-
NonGenre = 9801
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
export enum GenreNotation {
|
|
237
|
-
"異世界〔恋愛〕" = Genre.RenaiIsekai,
|
|
238
|
-
"現実世界〔恋愛〕" = Genre.RenaiGenjitsusekai,
|
|
239
|
-
"ハイファンタジー〔ファンタジー〕" = Genre.FantasyHigh,
|
|
240
|
-
"ローファンタジー〔ファンタジー〕" = Genre.FantasyLow,
|
|
241
|
-
"純文学〔文芸〕" = Genre.BungeiJyunbungei,
|
|
242
|
-
"ヒューマンドラマ〔文芸〕" = Genre.BungeiHumanDrama,
|
|
243
|
-
"歴史〔文芸〕" = Genre.BungeiHistory,
|
|
244
|
-
"推理〔文芸〕" = Genre.BungeiSuiri,
|
|
245
|
-
"ホラー〔文芸〕" = Genre.BungeiHorror,
|
|
246
|
-
"アクション〔文芸〕" = Genre.BungeiAction,
|
|
247
|
-
"コメディー〔文芸〕" = Genre.BungeiComedy,
|
|
248
|
-
"VRゲーム〔SF〕" = Genre.SfVrgame,
|
|
249
|
-
"宇宙〔SF〕" = Genre.SfSpace,
|
|
250
|
-
"空想科学〔SF〕" = Genre.SfKuusoukagaku,
|
|
251
|
-
"パニック〔SF〕" = Genre.SfPanic,
|
|
252
|
-
"童話〔その他〕" = Genre.SonotaDouwa,
|
|
253
|
-
"詩〔その他〕" = Genre.SonotaShi,
|
|
254
|
-
"エッセイ〔その他〕" = Genre.SonotaEssei,
|
|
255
|
-
"リプレイ〔その他〕" = Genre.SonotaReplay,
|
|
256
|
-
"その他〔その他〕" = Genre.SonotaSonota,
|
|
257
|
-
"ノンジャンル〔ノンジャンル〕" = Genre.NonGenre
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
export enum Buntai {
|
|
261
|
-
NoJisageKaigyouOoi = 1,
|
|
262
|
-
NoJisageKaigyoHutsuu = 2,
|
|
263
|
-
JisageKaigyoOoi = 4,
|
|
264
|
-
JisageKaigyoHutsuu = 6
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
export enum Stop {
|
|
268
|
-
NoStopping = 1,
|
|
269
|
-
Stopping = 2
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
export enum NovelType {
|
|
273
|
-
Short = "t",
|
|
274
|
-
RensaiNow = "r",
|
|
275
|
-
RensaiEnd = "er",
|
|
276
|
-
Rensai = "re",
|
|
277
|
-
ShortAndRensai = "ter"
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
export type GzipLevel = 0 | 1 | 2 | 3 | 4 | 5;
|
|
1
|
+
export type booleanNumber = 0 | 1;
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* {@link SearchBuilder#Fields}メソッドにパラメータを指定する際のヘルパー。
|
|
5
|
+
* @typedef {Object} Fields
|
|
6
|
+
* @property {string} title 小説名
|
|
7
|
+
* @property {string} ncode Nコード
|
|
8
|
+
* @property {string} userid 作者のユーザID(数値)
|
|
9
|
+
* @property {string} writer 作者名
|
|
10
|
+
* @property {string} story 小説のあらすじ
|
|
11
|
+
* @property {string} genre ジャンル
|
|
12
|
+
* @property {string} keyword キーワード
|
|
13
|
+
* @property {string} general_firstup 初回掲載日
|
|
14
|
+
* @property {string} general_lastup 最終掲載日
|
|
15
|
+
* @property {string} noveltype 連載の場合は1、短編の場合は2
|
|
16
|
+
* @property {string} end 連載の場合は1、短編の場合は2
|
|
17
|
+
* @property {string} general_all_no 全掲載話数です。短編の場合は1です。
|
|
18
|
+
* @property {string} length 全掲載話数です。短編の場合は1です。
|
|
19
|
+
* @property {string} time 読了時間(分単位)です。読了時間は小説文字数÷500を切り上げした数値です。
|
|
20
|
+
* @property {string} isstop 長期連載中は1、それ以外は0です。
|
|
21
|
+
* @property {string} pc_or_k 1はケータイのみ、2はPCのみ、3はPCとケータイで投稿された作品です。対象は投稿と次話投稿時のみで、どの端末で執筆されたかを表すものではありません。
|
|
22
|
+
* @property {string} global_point 総合得点(=(ブックマーク数×2)+評価点)
|
|
23
|
+
* @property {string} fav_novel_cnt ブックマーク数
|
|
24
|
+
* @property {string} review_cnt レビュー数
|
|
25
|
+
* @property {string} all_point 評価点
|
|
26
|
+
* @property {string} all_hyoka_cnt 評価者数
|
|
27
|
+
* @property {string} sasie_cnt 挿絵の数
|
|
28
|
+
* @property {string} kaiwaritu 会話率
|
|
29
|
+
* @property {string} novelupdated_at 小説の更新日時
|
|
30
|
+
* @property {string} updated_at 最終更新日時(注意:システム用で小説更新時とは関係ありません)
|
|
31
|
+
*/
|
|
32
|
+
export interface SearchParams {
|
|
33
|
+
gzip?: GzipLevel;
|
|
34
|
+
out?: "json";
|
|
35
|
+
of?: string;
|
|
36
|
+
lim?: number;
|
|
37
|
+
st?: number;
|
|
38
|
+
order?: Order;
|
|
39
|
+
|
|
40
|
+
word?: string;
|
|
41
|
+
notword?: string;
|
|
42
|
+
title?: booleanNumber;
|
|
43
|
+
ex?: booleanNumber;
|
|
44
|
+
keyword?: booleanNumber;
|
|
45
|
+
wname?: booleanNumber;
|
|
46
|
+
|
|
47
|
+
biggenre?: string | BigGenre;
|
|
48
|
+
notbiggenre?: string | BigGenre;
|
|
49
|
+
genre?: string | Genre;
|
|
50
|
+
notgenre?: string | Genre;
|
|
51
|
+
userid?: string | number;
|
|
52
|
+
|
|
53
|
+
nocgenre?: string | number;
|
|
54
|
+
notnocgenre?: string | number;
|
|
55
|
+
xid?: string | number;
|
|
56
|
+
|
|
57
|
+
isr15?: booleanNumber;
|
|
58
|
+
isbl?: booleanNumber;
|
|
59
|
+
isgl?: booleanNumber;
|
|
60
|
+
iszankoku?: booleanNumber;
|
|
61
|
+
istensei?: booleanNumber;
|
|
62
|
+
istenni?: booleanNumber;
|
|
63
|
+
istt?: booleanNumber;
|
|
64
|
+
|
|
65
|
+
notr15?: booleanNumber;
|
|
66
|
+
notbl?: booleanNumber;
|
|
67
|
+
notgl?: booleanNumber;
|
|
68
|
+
notzankoku?: booleanNumber;
|
|
69
|
+
nottensei?: booleanNumber;
|
|
70
|
+
nottenni?: booleanNumber;
|
|
71
|
+
nottt?: booleanNumber;
|
|
72
|
+
|
|
73
|
+
minlen?: number;
|
|
74
|
+
maxlen?: number;
|
|
75
|
+
length?: number | string;
|
|
76
|
+
|
|
77
|
+
kaiwaritu?: number | string;
|
|
78
|
+
sasie?: number | string;
|
|
79
|
+
|
|
80
|
+
mintime?: number;
|
|
81
|
+
maxtime?: number;
|
|
82
|
+
time?: number | string;
|
|
83
|
+
|
|
84
|
+
ncode?: string;
|
|
85
|
+
|
|
86
|
+
type?: NovelType;
|
|
87
|
+
|
|
88
|
+
buntai?: Buntai | string;
|
|
89
|
+
|
|
90
|
+
stop?: Stop;
|
|
91
|
+
|
|
92
|
+
ispickup?: booleanNumber;
|
|
93
|
+
lastup?: string;
|
|
94
|
+
|
|
95
|
+
opt?: string;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export interface RankingParams {
|
|
99
|
+
rtype: string;
|
|
100
|
+
gzip?: GzipLevel;
|
|
101
|
+
out?: "json";
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export interface RankingHistoryParams {
|
|
105
|
+
ncode: string;
|
|
106
|
+
gzip?: GzipLevel;
|
|
107
|
+
out?: "json";
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export enum Fields {
|
|
111
|
+
title = "t",
|
|
112
|
+
ncode = "n",
|
|
113
|
+
userid = "u",
|
|
114
|
+
writer = "w",
|
|
115
|
+
story = "s",
|
|
116
|
+
genre = "g",
|
|
117
|
+
keyword = "k",
|
|
118
|
+
general_firstup = "gf",
|
|
119
|
+
general_lastup = "gl",
|
|
120
|
+
noveltype = "nt",
|
|
121
|
+
end = "e",
|
|
122
|
+
general_all_no = "ga",
|
|
123
|
+
length = "l",
|
|
124
|
+
time = "ti",
|
|
125
|
+
isstop = "i",
|
|
126
|
+
pc_or_k = "p",
|
|
127
|
+
global_point = "gp",
|
|
128
|
+
fav_novel_cnt = "f",
|
|
129
|
+
review_cnt = "r",
|
|
130
|
+
all_point = "a",
|
|
131
|
+
all_hyoka_cnt = "ah",
|
|
132
|
+
sasie_cnt = "sa",
|
|
133
|
+
kaiwaritu = "ka",
|
|
134
|
+
novelupdated_at = "nu",
|
|
135
|
+
updated_at = "ua",
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/*
|
|
139
|
+
* new 新着更新順
|
|
140
|
+
* favnovelcnt ブックマーク数の多い順
|
|
141
|
+
* reviewcnt レビュー数の多い順
|
|
142
|
+
* hyoka 総合ポイントの高い順
|
|
143
|
+
* hyokaasc 総合ポイントの低い順
|
|
144
|
+
* dailypoint 日間ポイントの高い順
|
|
145
|
+
* weeklypoint 週間ポイントの高い順
|
|
146
|
+
* monthlypoint 月間ポイントの高い順
|
|
147
|
+
* quarterpoint 四半期ポイントの高い順
|
|
148
|
+
* yearlypoint 年間ポイントの高い順
|
|
149
|
+
* impressioncnt 感想の多い順
|
|
150
|
+
* hyokacnt 評価者数の多い順
|
|
151
|
+
* hyokacntasc 評価者数の少ない順
|
|
152
|
+
* weekly 週間ユニークユーザの多い順 毎週火曜日早朝リセット
|
|
153
|
+
* (前週の日曜日から土曜日分)
|
|
154
|
+
* lengthdesc 小説本文の文字数が多い順
|
|
155
|
+
* lengthasc 小説本文の文字数が少ない順
|
|
156
|
+
* ncodedesc Nコードが新しい順
|
|
157
|
+
* old 古い順
|
|
158
|
+
*/
|
|
159
|
+
export enum Order {
|
|
160
|
+
FavoriteNovelCount = "favnovelcnt",
|
|
161
|
+
ReviewCount = "favnovelcnt",
|
|
162
|
+
HyokaDesc = "hyoka",
|
|
163
|
+
HyokaAsc = "hyokaasc",
|
|
164
|
+
ImpressionCount = "impressioncnt",
|
|
165
|
+
HyokaCountDesc = "hyokacnt",
|
|
166
|
+
HyokaCountAsc = "hyokacntasc",
|
|
167
|
+
Weekly = "weekly",
|
|
168
|
+
LengthDesc = "lengthdesc",
|
|
169
|
+
LengthAsc = "lengthasc",
|
|
170
|
+
NCodeDesc = "ncodedesc",
|
|
171
|
+
New = "new",
|
|
172
|
+
Old = "old",
|
|
173
|
+
DailyPoint = "dailypoint",
|
|
174
|
+
WeeklyPoint = "weeklypoint",
|
|
175
|
+
MonthlyPoint = "monthlypoint",
|
|
176
|
+
QuarterPoint = "quarterpoint",
|
|
177
|
+
YearlyPoint = "yearlypoint",
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export enum R18Site {
|
|
181
|
+
Nocturne = 1,
|
|
182
|
+
MoonLight = 2,
|
|
183
|
+
MoonLightBL = 3,
|
|
184
|
+
Midnight = 4,
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export enum R18SiteNotation {
|
|
188
|
+
"ノクターンノベルズ(男性向け)" = R18Site.Nocturne,
|
|
189
|
+
"ムーンライトノベルズ(女性向け)" = R18Site.MoonLight,
|
|
190
|
+
"ムーンライトノベルズ(BL)" = R18Site.MoonLightBL,
|
|
191
|
+
"ミッドナイトノベルズ(大人向け)" = R18Site.Midnight,
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export enum BigGenre {
|
|
195
|
+
Renai = 1,
|
|
196
|
+
Fantasy = 2,
|
|
197
|
+
Bungei = 3,
|
|
198
|
+
Sf = 4,
|
|
199
|
+
Sonota = 99,
|
|
200
|
+
NonGenre = 98,
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export enum BigGenreNotation {
|
|
204
|
+
"恋愛" = BigGenre.Renai,
|
|
205
|
+
"ファンタジー" = BigGenre.Fantasy,
|
|
206
|
+
"文芸" = BigGenre.Bungei,
|
|
207
|
+
"SF" = BigGenre.Sf,
|
|
208
|
+
"その他" = BigGenre.Sonota,
|
|
209
|
+
"ノンジャンル" = BigGenre.NonGenre,
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export enum Genre {
|
|
213
|
+
RenaiIsekai = 101,
|
|
214
|
+
RenaiGenjitsusekai = 102,
|
|
215
|
+
FantasyHigh = 201,
|
|
216
|
+
FantasyLow = 202,
|
|
217
|
+
BungeiJyunbungei = 301,
|
|
218
|
+
BungeiHumanDrama = 302,
|
|
219
|
+
BungeiHistory = 303,
|
|
220
|
+
BungeiSuiri = 304,
|
|
221
|
+
BungeiHorror = 305,
|
|
222
|
+
BungeiAction = 306,
|
|
223
|
+
BungeiComedy = 307,
|
|
224
|
+
SfVrgame = 401,
|
|
225
|
+
SfSpace = 402,
|
|
226
|
+
SfKuusoukagaku = 403,
|
|
227
|
+
SfPanic = 404,
|
|
228
|
+
SonotaDouwa = 9901,
|
|
229
|
+
SonotaShi = 9902,
|
|
230
|
+
SonotaEssei = 9903,
|
|
231
|
+
SonotaReplay = 9904,
|
|
232
|
+
SonotaSonota = 9999,
|
|
233
|
+
NonGenre = 9801,
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export enum GenreNotation {
|
|
237
|
+
"異世界〔恋愛〕" = Genre.RenaiIsekai,
|
|
238
|
+
"現実世界〔恋愛〕" = Genre.RenaiGenjitsusekai,
|
|
239
|
+
"ハイファンタジー〔ファンタジー〕" = Genre.FantasyHigh,
|
|
240
|
+
"ローファンタジー〔ファンタジー〕" = Genre.FantasyLow,
|
|
241
|
+
"純文学〔文芸〕" = Genre.BungeiJyunbungei,
|
|
242
|
+
"ヒューマンドラマ〔文芸〕" = Genre.BungeiHumanDrama,
|
|
243
|
+
"歴史〔文芸〕" = Genre.BungeiHistory,
|
|
244
|
+
"推理〔文芸〕" = Genre.BungeiSuiri,
|
|
245
|
+
"ホラー〔文芸〕" = Genre.BungeiHorror,
|
|
246
|
+
"アクション〔文芸〕" = Genre.BungeiAction,
|
|
247
|
+
"コメディー〔文芸〕" = Genre.BungeiComedy,
|
|
248
|
+
"VRゲーム〔SF〕" = Genre.SfVrgame,
|
|
249
|
+
"宇宙〔SF〕" = Genre.SfSpace,
|
|
250
|
+
"空想科学〔SF〕" = Genre.SfKuusoukagaku,
|
|
251
|
+
"パニック〔SF〕" = Genre.SfPanic,
|
|
252
|
+
"童話〔その他〕" = Genre.SonotaDouwa,
|
|
253
|
+
"詩〔その他〕" = Genre.SonotaShi,
|
|
254
|
+
"エッセイ〔その他〕" = Genre.SonotaEssei,
|
|
255
|
+
"リプレイ〔その他〕" = Genre.SonotaReplay,
|
|
256
|
+
"その他〔その他〕" = Genre.SonotaSonota,
|
|
257
|
+
"ノンジャンル〔ノンジャンル〕" = Genre.NonGenre,
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export enum Buntai {
|
|
261
|
+
NoJisageKaigyouOoi = 1,
|
|
262
|
+
NoJisageKaigyoHutsuu = 2,
|
|
263
|
+
JisageKaigyoOoi = 4,
|
|
264
|
+
JisageKaigyoHutsuu = 6,
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export enum Stop {
|
|
268
|
+
NoStopping = 1,
|
|
269
|
+
Stopping = 2,
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export enum NovelType {
|
|
273
|
+
Short = "t",
|
|
274
|
+
RensaiNow = "r",
|
|
275
|
+
RensaiEnd = "er",
|
|
276
|
+
Rensai = "re",
|
|
277
|
+
ShortAndRensai = "ter",
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
export type GzipLevel = 0 | 1 | 2 | 3 | 4 | 5;
|