narou 0.8.0 → 0.8.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/dist/index.browser.d.ts +35 -35
- package/dist/index.browser.js +82 -82
- package/dist/index.common.d.ts +14 -14
- package/dist/index.common.js +34 -34
- package/dist/index.d.ts +42 -42
- package/dist/index.js +90 -90
- package/dist/narou-fetch.d.ts +12 -12
- package/dist/narou-fetch.js +45 -45
- package/dist/narou-jsonp.d.ts +9 -9
- package/dist/narou-jsonp.js +23 -23
- package/dist/narou-ranking-results.d.ts +9 -9
- package/dist/narou-ranking-results.js +2 -2
- package/dist/narou-search-results.d.ts +130 -130
- package/dist/narou-search-results.js +62 -62
- package/dist/narou.d.ts +25 -25
- package/dist/narou.js +29 -29
- package/dist/params.d.ts +323 -323
- package/dist/params.js +246 -246
- package/dist/ranking-history.d.ts +13 -13
- package/dist/ranking-history.js +13 -13
- package/dist/ranking.d.ts +45 -45
- package/dist/ranking.js +86 -86
- package/dist/search-builder-r18.d.ts +28 -28
- package/dist/search-builder-r18.js +44 -44
- package/dist/search-builder.d.ts +219 -219
- package/dist/search-builder.js +380 -380
- package/dist/user-search.d.ts +62 -62
- package/dist/user-search.js +93 -93
- package/dist/util/jsonp.d.ts +16 -16
- package/dist/util/jsonp.js +45 -45
- package/dist/util/type.d.ts +3 -3
- package/dist/util/type.js +2 -2
- package/dist/util/unzipp.d.ts +3 -3
- package/dist/util/unzipp.js +11 -11
- package/dist.esm/index.browser.js +86 -0
- package/dist.esm/index.browser.js.map +1 -0
- package/dist.esm/index.common.js +38 -0
- package/dist.esm/index.common.js.map +1 -0
- package/dist.esm/index.js +94 -0
- package/dist.esm/index.js.map +1 -0
- package/dist.esm/narou-fetch.js +49 -0
- package/dist.esm/narou-fetch.js.map +1 -0
- package/dist.esm/narou-jsonp.js +27 -0
- package/dist.esm/narou-jsonp.js.map +1 -0
- package/dist.esm/narou-ranking-results.js +3 -0
- package/dist.esm/narou-ranking-results.js.map +1 -0
- package/dist.esm/narou-search-results.js +63 -0
- package/dist.esm/narou-search-results.js.map +1 -0
- package/dist.esm/narou.js +33 -0
- package/dist.esm/narou.js.map +1 -0
- package/dist.esm/params.js +247 -0
- package/dist.esm/params.js.map +1 -0
- package/dist.esm/ranking-history.js +14 -0
- package/dist.esm/ranking-history.js.map +1 -0
- package/dist.esm/ranking.js +90 -0
- package/dist.esm/ranking.js.map +1 -0
- package/dist.esm/search-builder-r18.js +45 -0
- package/dist.esm/search-builder-r18.js.map +1 -0
- package/dist.esm/search-builder.js +381 -0
- package/dist.esm/search-builder.js.map +1 -0
- package/dist.esm/user-search.js +94 -0
- package/dist.esm/user-search.js.map +1 -0
- package/dist.esm/util/jsonp.js +46 -0
- package/dist.esm/util/jsonp.js.map +1 -0
- package/dist.esm/util/type.js +3 -0
- package/dist.esm/util/type.js.map +1 -0
- package/dist.esm/util/unzipp.js +12 -0
- package/dist.esm/util/unzipp.js.map +1 -0
- package/package.json +1 -1
- package/src/user-search.ts +109 -109
package/dist/params.js
CHANGED
|
@@ -1,247 +1,247 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserOrder = exports.NovelTypeParam = exports.StopParam = exports.BuntaiParam = exports.GenreNotation = exports.Genre = exports.BigGenreNotation = exports.BigGenre = exports.R18SiteNotation = exports.R18Site = exports.Order = exports.OptionalFields = exports.UserFields = exports.R18Fields = exports.Fields = exports.BooleanNumber = exports.RankingType = void 0;
|
|
4
|
-
exports.RankingType = {
|
|
5
|
-
Daily: "d",
|
|
6
|
-
Weekly: "w",
|
|
7
|
-
Monthly: "m",
|
|
8
|
-
Quarterly: "q",
|
|
9
|
-
};
|
|
10
|
-
exports.BooleanNumber = {
|
|
11
|
-
True: 1,
|
|
12
|
-
False: 0,
|
|
13
|
-
};
|
|
14
|
-
exports.Fields = {
|
|
15
|
-
title: "t",
|
|
16
|
-
ncode: "n",
|
|
17
|
-
userid: "u",
|
|
18
|
-
writer: "w",
|
|
19
|
-
story: "s",
|
|
20
|
-
biggenre: "bg",
|
|
21
|
-
genre: "g",
|
|
22
|
-
nocgenre: "ng",
|
|
23
|
-
keyword: "k",
|
|
24
|
-
general_firstup: "gf",
|
|
25
|
-
general_lastup: "gl",
|
|
26
|
-
noveltype: "nt",
|
|
27
|
-
end: "e",
|
|
28
|
-
general_all_no: "ga",
|
|
29
|
-
length: "l",
|
|
30
|
-
time: "ti",
|
|
31
|
-
isstop: "i",
|
|
32
|
-
isr15: "isr",
|
|
33
|
-
isbl: "ibl",
|
|
34
|
-
isgl: "igl",
|
|
35
|
-
iszankoku: "izk",
|
|
36
|
-
istensei: "its",
|
|
37
|
-
istenni: "iti",
|
|
38
|
-
pc_or_k: "p",
|
|
39
|
-
global_point: "gp",
|
|
40
|
-
daily_point: "dp",
|
|
41
|
-
weekly_point: "wp",
|
|
42
|
-
monthly_point: "mp",
|
|
43
|
-
quarter_point: "qp",
|
|
44
|
-
yearly_point: "yp",
|
|
45
|
-
fav_novel_cnt: "f",
|
|
46
|
-
impression_cnt: "imp",
|
|
47
|
-
review_cnt: "r",
|
|
48
|
-
all_point: "a",
|
|
49
|
-
all_hyoka_cnt: "ah",
|
|
50
|
-
sasie_cnt: "sa",
|
|
51
|
-
kaiwaritu: "ka",
|
|
52
|
-
novelupdated_at: "nu",
|
|
53
|
-
updated_at: "ua",
|
|
54
|
-
};
|
|
55
|
-
exports.R18Fields = {
|
|
56
|
-
title: "t",
|
|
57
|
-
ncode: "n",
|
|
58
|
-
userid: "u",
|
|
59
|
-
writer: "w",
|
|
60
|
-
story: "s",
|
|
61
|
-
nocgenre: "ng",
|
|
62
|
-
keyword: "k",
|
|
63
|
-
general_firstup: "gf",
|
|
64
|
-
general_lastup: "gl",
|
|
65
|
-
noveltype: "nt",
|
|
66
|
-
end: "e",
|
|
67
|
-
general_all_no: "ga",
|
|
68
|
-
length: "l",
|
|
69
|
-
time: "ti",
|
|
70
|
-
isstop: "i",
|
|
71
|
-
isr15: "isr",
|
|
72
|
-
isbl: "ibl",
|
|
73
|
-
isgl: "igl",
|
|
74
|
-
iszankoku: "izk",
|
|
75
|
-
istensei: "its",
|
|
76
|
-
istenni: "iti",
|
|
77
|
-
pc_or_k: "p",
|
|
78
|
-
global_point: "gp",
|
|
79
|
-
daily_point: "dp",
|
|
80
|
-
weekly_point: "wp",
|
|
81
|
-
monthly_point: "mp",
|
|
82
|
-
quarter_point: "qp",
|
|
83
|
-
yearly_point: "yp",
|
|
84
|
-
fav_novel_cnt: "f",
|
|
85
|
-
impression_cnt: "imp",
|
|
86
|
-
review_cnt: "r",
|
|
87
|
-
all_point: "a",
|
|
88
|
-
all_hyoka_cnt: "ah",
|
|
89
|
-
sasie_cnt: "sa",
|
|
90
|
-
kaiwaritu: "ka",
|
|
91
|
-
novelupdated_at: "nu",
|
|
92
|
-
updated_at: "ua",
|
|
93
|
-
};
|
|
94
|
-
exports.UserFields = {
|
|
95
|
-
userid: "u",
|
|
96
|
-
name: "n",
|
|
97
|
-
yomikata: "y",
|
|
98
|
-
name1st: "1",
|
|
99
|
-
novel_cnt: "nc",
|
|
100
|
-
review_cnt: "rc",
|
|
101
|
-
novel_length: "nl",
|
|
102
|
-
sum_global_point: "sg",
|
|
103
|
-
};
|
|
104
|
-
exports.OptionalFields = {
|
|
105
|
-
weekly_unique: "weekly",
|
|
106
|
-
};
|
|
107
|
-
/*
|
|
108
|
-
* new 新着更新順
|
|
109
|
-
* favnovelcnt ブックマーク数の多い順
|
|
110
|
-
* reviewcnt レビュー数の多い順
|
|
111
|
-
* hyoka 総合ポイントの高い順
|
|
112
|
-
* hyokaasc 総合ポイントの低い順
|
|
113
|
-
* dailypoint 日間ポイントの高い順
|
|
114
|
-
* weeklypoint 週間ポイントの高い順
|
|
115
|
-
* monthlypoint 月間ポイントの高い順
|
|
116
|
-
* quarterpoint 四半期ポイントの高い順
|
|
117
|
-
* yearlypoint 年間ポイントの高い順
|
|
118
|
-
* impressioncnt 感想の多い順
|
|
119
|
-
* hyokacnt 評価者数の多い順
|
|
120
|
-
* hyokacntasc 評価者数の少ない順
|
|
121
|
-
* weekly 週間ユニークユーザの多い順 毎週火曜日早朝リセット
|
|
122
|
-
* (前週の日曜日から土曜日分)
|
|
123
|
-
* lengthdesc 小説本文の文字数が多い順
|
|
124
|
-
* lengthasc 小説本文の文字数が少ない順
|
|
125
|
-
* ncodedesc Nコードが新しい順
|
|
126
|
-
* old 古い順
|
|
127
|
-
*/
|
|
128
|
-
exports.Order = {
|
|
129
|
-
FavoriteNovelCount: "favnovelcnt",
|
|
130
|
-
ReviewCount: "favnovelcnt",
|
|
131
|
-
HyokaDesc: "hyoka",
|
|
132
|
-
HyokaAsc: "hyokaasc",
|
|
133
|
-
ImpressionCount: "impressioncnt",
|
|
134
|
-
HyokaCountDesc: "hyokacnt",
|
|
135
|
-
HyokaCountAsc: "hyokacntasc",
|
|
136
|
-
Weekly: "weekly",
|
|
137
|
-
LengthDesc: "lengthdesc",
|
|
138
|
-
LengthAsc: "lengthasc",
|
|
139
|
-
NCodeDesc: "ncodedesc",
|
|
140
|
-
New: "new",
|
|
141
|
-
Old: "old",
|
|
142
|
-
DailyPoint: "dailypoint",
|
|
143
|
-
WeeklyPoint: "weeklypoint",
|
|
144
|
-
MonthlyPoint: "monthlypoint",
|
|
145
|
-
QuarterPoint: "quarterpoint",
|
|
146
|
-
YearlyPoint: "yearlypoint",
|
|
147
|
-
};
|
|
148
|
-
exports.R18Site = {
|
|
149
|
-
Nocturne: 1,
|
|
150
|
-
MoonLight: 2,
|
|
151
|
-
MoonLightBL: 3,
|
|
152
|
-
Midnight: 4,
|
|
153
|
-
};
|
|
154
|
-
exports.R18SiteNotation = {
|
|
155
|
-
[exports.R18Site.Nocturne]: "ノクターンノベルズ(男性向け)",
|
|
156
|
-
[exports.R18Site.MoonLight]: "ムーンライトノベルズ(女性向け)",
|
|
157
|
-
[exports.R18Site.MoonLightBL]: "ムーンライトノベルズ(BL)",
|
|
158
|
-
[exports.R18Site.Midnight]: "ミッドナイトノベルズ(大人向け)",
|
|
159
|
-
};
|
|
160
|
-
exports.BigGenre = {
|
|
161
|
-
Renai: 1,
|
|
162
|
-
Fantasy: 2,
|
|
163
|
-
Bungei: 3,
|
|
164
|
-
Sf: 4,
|
|
165
|
-
Sonota: 99,
|
|
166
|
-
NonGenre: 98,
|
|
167
|
-
};
|
|
168
|
-
exports.BigGenreNotation = {
|
|
169
|
-
[exports.BigGenre.Renai]: "恋愛",
|
|
170
|
-
[exports.BigGenre.Fantasy]: "ファンタジー",
|
|
171
|
-
[exports.BigGenre.Bungei]: "文芸",
|
|
172
|
-
[exports.BigGenre.Sf]: "SF",
|
|
173
|
-
[exports.BigGenre.Sonota]: "その他",
|
|
174
|
-
[exports.BigGenre.NonGenre]: "ノンジャンル",
|
|
175
|
-
};
|
|
176
|
-
exports.Genre = {
|
|
177
|
-
RenaiIsekai: 101,
|
|
178
|
-
RenaiGenjitsusekai: 102,
|
|
179
|
-
FantasyHigh: 201,
|
|
180
|
-
FantasyLow: 202,
|
|
181
|
-
BungeiJyunbungei: 301,
|
|
182
|
-
BungeiHumanDrama: 302,
|
|
183
|
-
BungeiHistory: 303,
|
|
184
|
-
BungeiSuiri: 304,
|
|
185
|
-
BungeiHorror: 305,
|
|
186
|
-
BungeiAction: 306,
|
|
187
|
-
BungeiComedy: 307,
|
|
188
|
-
SfVrgame: 401,
|
|
189
|
-
SfSpace: 402,
|
|
190
|
-
SfKuusoukagaku: 403,
|
|
191
|
-
SfPanic: 404,
|
|
192
|
-
SonotaDouwa: 9901,
|
|
193
|
-
SonotaShi: 9902,
|
|
194
|
-
SonotaEssei: 9903,
|
|
195
|
-
SonotaReplay: 9904,
|
|
196
|
-
SonotaSonota: 9999,
|
|
197
|
-
NonGenre: 9801,
|
|
198
|
-
};
|
|
199
|
-
exports.GenreNotation = {
|
|
200
|
-
[exports.Genre.RenaiIsekai]: "異世界〔恋愛〕",
|
|
201
|
-
[exports.Genre.RenaiGenjitsusekai]: "現実世界〔恋愛〕",
|
|
202
|
-
[exports.Genre.FantasyHigh]: "ハイファンタジー〔ファンタジー〕",
|
|
203
|
-
[exports.Genre.FantasyLow]: "ローファンタジー〔ファンタジー〕",
|
|
204
|
-
[exports.Genre.BungeiJyunbungei]: "純文学〔文芸〕",
|
|
205
|
-
[exports.Genre.BungeiHumanDrama]: "ヒューマンドラマ〔文芸〕",
|
|
206
|
-
[exports.Genre.BungeiHistory]: "歴史〔文芸〕",
|
|
207
|
-
[exports.Genre.BungeiSuiri]: "推理〔文芸〕",
|
|
208
|
-
[exports.Genre.BungeiHorror]: "ホラー〔文芸〕",
|
|
209
|
-
[exports.Genre.BungeiAction]: "アクション〔文芸〕",
|
|
210
|
-
[exports.Genre.BungeiComedy]: "コメディー〔文芸〕",
|
|
211
|
-
[exports.Genre.SfVrgame]: "VRゲーム〔SF〕",
|
|
212
|
-
[exports.Genre.SfSpace]: "宇宙〔SF〕",
|
|
213
|
-
[exports.Genre.SfKuusoukagaku]: "空想科学〔SF〕",
|
|
214
|
-
[exports.Genre.SfPanic]: "パニック〔SF〕",
|
|
215
|
-
[exports.Genre.SonotaDouwa]: "童話〔その他〕",
|
|
216
|
-
[exports.Genre.SonotaShi]: "詩〔その他〕",
|
|
217
|
-
[exports.Genre.SonotaEssei]: "エッセイ〔その他〕",
|
|
218
|
-
[exports.Genre.SonotaReplay]: "リプレイ〔その他〕",
|
|
219
|
-
[exports.Genre.SonotaSonota]: "その他〔その他〕",
|
|
220
|
-
[exports.Genre.NonGenre]: "ノンジャンル〔ノンジャンル〕",
|
|
221
|
-
};
|
|
222
|
-
exports.BuntaiParam = {
|
|
223
|
-
NoJisageKaigyouOoi: 1,
|
|
224
|
-
NoJisageKaigyoHutsuu: 2,
|
|
225
|
-
JisageKaigyoOoi: 4,
|
|
226
|
-
JisageKaigyoHutsuu: 6,
|
|
227
|
-
};
|
|
228
|
-
exports.StopParam = {
|
|
229
|
-
NoStopping: 1,
|
|
230
|
-
Stopping: 2,
|
|
231
|
-
};
|
|
232
|
-
exports.NovelTypeParam = {
|
|
233
|
-
Short: "t",
|
|
234
|
-
RensaiNow: "r",
|
|
235
|
-
RensaiEnd: "er",
|
|
236
|
-
Rensai: "re",
|
|
237
|
-
ShortAndRensai: "ter",
|
|
238
|
-
};
|
|
239
|
-
exports.UserOrder = {
|
|
240
|
-
New: "new",
|
|
241
|
-
NovelCount: "novelcnt",
|
|
242
|
-
ReviewCount: "reviewcnt",
|
|
243
|
-
NovelLength: "novellength",
|
|
244
|
-
SumGlobalPoint: "sumglobalpoint",
|
|
245
|
-
Old: "old",
|
|
246
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserOrder = exports.NovelTypeParam = exports.StopParam = exports.BuntaiParam = exports.GenreNotation = exports.Genre = exports.BigGenreNotation = exports.BigGenre = exports.R18SiteNotation = exports.R18Site = exports.Order = exports.OptionalFields = exports.UserFields = exports.R18Fields = exports.Fields = exports.BooleanNumber = exports.RankingType = void 0;
|
|
4
|
+
exports.RankingType = {
|
|
5
|
+
Daily: "d",
|
|
6
|
+
Weekly: "w",
|
|
7
|
+
Monthly: "m",
|
|
8
|
+
Quarterly: "q",
|
|
9
|
+
};
|
|
10
|
+
exports.BooleanNumber = {
|
|
11
|
+
True: 1,
|
|
12
|
+
False: 0,
|
|
13
|
+
};
|
|
14
|
+
exports.Fields = {
|
|
15
|
+
title: "t",
|
|
16
|
+
ncode: "n",
|
|
17
|
+
userid: "u",
|
|
18
|
+
writer: "w",
|
|
19
|
+
story: "s",
|
|
20
|
+
biggenre: "bg",
|
|
21
|
+
genre: "g",
|
|
22
|
+
nocgenre: "ng",
|
|
23
|
+
keyword: "k",
|
|
24
|
+
general_firstup: "gf",
|
|
25
|
+
general_lastup: "gl",
|
|
26
|
+
noveltype: "nt",
|
|
27
|
+
end: "e",
|
|
28
|
+
general_all_no: "ga",
|
|
29
|
+
length: "l",
|
|
30
|
+
time: "ti",
|
|
31
|
+
isstop: "i",
|
|
32
|
+
isr15: "isr",
|
|
33
|
+
isbl: "ibl",
|
|
34
|
+
isgl: "igl",
|
|
35
|
+
iszankoku: "izk",
|
|
36
|
+
istensei: "its",
|
|
37
|
+
istenni: "iti",
|
|
38
|
+
pc_or_k: "p",
|
|
39
|
+
global_point: "gp",
|
|
40
|
+
daily_point: "dp",
|
|
41
|
+
weekly_point: "wp",
|
|
42
|
+
monthly_point: "mp",
|
|
43
|
+
quarter_point: "qp",
|
|
44
|
+
yearly_point: "yp",
|
|
45
|
+
fav_novel_cnt: "f",
|
|
46
|
+
impression_cnt: "imp",
|
|
47
|
+
review_cnt: "r",
|
|
48
|
+
all_point: "a",
|
|
49
|
+
all_hyoka_cnt: "ah",
|
|
50
|
+
sasie_cnt: "sa",
|
|
51
|
+
kaiwaritu: "ka",
|
|
52
|
+
novelupdated_at: "nu",
|
|
53
|
+
updated_at: "ua",
|
|
54
|
+
};
|
|
55
|
+
exports.R18Fields = {
|
|
56
|
+
title: "t",
|
|
57
|
+
ncode: "n",
|
|
58
|
+
userid: "u",
|
|
59
|
+
writer: "w",
|
|
60
|
+
story: "s",
|
|
61
|
+
nocgenre: "ng",
|
|
62
|
+
keyword: "k",
|
|
63
|
+
general_firstup: "gf",
|
|
64
|
+
general_lastup: "gl",
|
|
65
|
+
noveltype: "nt",
|
|
66
|
+
end: "e",
|
|
67
|
+
general_all_no: "ga",
|
|
68
|
+
length: "l",
|
|
69
|
+
time: "ti",
|
|
70
|
+
isstop: "i",
|
|
71
|
+
isr15: "isr",
|
|
72
|
+
isbl: "ibl",
|
|
73
|
+
isgl: "igl",
|
|
74
|
+
iszankoku: "izk",
|
|
75
|
+
istensei: "its",
|
|
76
|
+
istenni: "iti",
|
|
77
|
+
pc_or_k: "p",
|
|
78
|
+
global_point: "gp",
|
|
79
|
+
daily_point: "dp",
|
|
80
|
+
weekly_point: "wp",
|
|
81
|
+
monthly_point: "mp",
|
|
82
|
+
quarter_point: "qp",
|
|
83
|
+
yearly_point: "yp",
|
|
84
|
+
fav_novel_cnt: "f",
|
|
85
|
+
impression_cnt: "imp",
|
|
86
|
+
review_cnt: "r",
|
|
87
|
+
all_point: "a",
|
|
88
|
+
all_hyoka_cnt: "ah",
|
|
89
|
+
sasie_cnt: "sa",
|
|
90
|
+
kaiwaritu: "ka",
|
|
91
|
+
novelupdated_at: "nu",
|
|
92
|
+
updated_at: "ua",
|
|
93
|
+
};
|
|
94
|
+
exports.UserFields = {
|
|
95
|
+
userid: "u",
|
|
96
|
+
name: "n",
|
|
97
|
+
yomikata: "y",
|
|
98
|
+
name1st: "1",
|
|
99
|
+
novel_cnt: "nc",
|
|
100
|
+
review_cnt: "rc",
|
|
101
|
+
novel_length: "nl",
|
|
102
|
+
sum_global_point: "sg",
|
|
103
|
+
};
|
|
104
|
+
exports.OptionalFields = {
|
|
105
|
+
weekly_unique: "weekly",
|
|
106
|
+
};
|
|
107
|
+
/*
|
|
108
|
+
* new 新着更新順
|
|
109
|
+
* favnovelcnt ブックマーク数の多い順
|
|
110
|
+
* reviewcnt レビュー数の多い順
|
|
111
|
+
* hyoka 総合ポイントの高い順
|
|
112
|
+
* hyokaasc 総合ポイントの低い順
|
|
113
|
+
* dailypoint 日間ポイントの高い順
|
|
114
|
+
* weeklypoint 週間ポイントの高い順
|
|
115
|
+
* monthlypoint 月間ポイントの高い順
|
|
116
|
+
* quarterpoint 四半期ポイントの高い順
|
|
117
|
+
* yearlypoint 年間ポイントの高い順
|
|
118
|
+
* impressioncnt 感想の多い順
|
|
119
|
+
* hyokacnt 評価者数の多い順
|
|
120
|
+
* hyokacntasc 評価者数の少ない順
|
|
121
|
+
* weekly 週間ユニークユーザの多い順 毎週火曜日早朝リセット
|
|
122
|
+
* (前週の日曜日から土曜日分)
|
|
123
|
+
* lengthdesc 小説本文の文字数が多い順
|
|
124
|
+
* lengthasc 小説本文の文字数が少ない順
|
|
125
|
+
* ncodedesc Nコードが新しい順
|
|
126
|
+
* old 古い順
|
|
127
|
+
*/
|
|
128
|
+
exports.Order = {
|
|
129
|
+
FavoriteNovelCount: "favnovelcnt",
|
|
130
|
+
ReviewCount: "favnovelcnt",
|
|
131
|
+
HyokaDesc: "hyoka",
|
|
132
|
+
HyokaAsc: "hyokaasc",
|
|
133
|
+
ImpressionCount: "impressioncnt",
|
|
134
|
+
HyokaCountDesc: "hyokacnt",
|
|
135
|
+
HyokaCountAsc: "hyokacntasc",
|
|
136
|
+
Weekly: "weekly",
|
|
137
|
+
LengthDesc: "lengthdesc",
|
|
138
|
+
LengthAsc: "lengthasc",
|
|
139
|
+
NCodeDesc: "ncodedesc",
|
|
140
|
+
New: "new",
|
|
141
|
+
Old: "old",
|
|
142
|
+
DailyPoint: "dailypoint",
|
|
143
|
+
WeeklyPoint: "weeklypoint",
|
|
144
|
+
MonthlyPoint: "monthlypoint",
|
|
145
|
+
QuarterPoint: "quarterpoint",
|
|
146
|
+
YearlyPoint: "yearlypoint",
|
|
147
|
+
};
|
|
148
|
+
exports.R18Site = {
|
|
149
|
+
Nocturne: 1,
|
|
150
|
+
MoonLight: 2,
|
|
151
|
+
MoonLightBL: 3,
|
|
152
|
+
Midnight: 4,
|
|
153
|
+
};
|
|
154
|
+
exports.R18SiteNotation = {
|
|
155
|
+
[exports.R18Site.Nocturne]: "ノクターンノベルズ(男性向け)",
|
|
156
|
+
[exports.R18Site.MoonLight]: "ムーンライトノベルズ(女性向け)",
|
|
157
|
+
[exports.R18Site.MoonLightBL]: "ムーンライトノベルズ(BL)",
|
|
158
|
+
[exports.R18Site.Midnight]: "ミッドナイトノベルズ(大人向け)",
|
|
159
|
+
};
|
|
160
|
+
exports.BigGenre = {
|
|
161
|
+
Renai: 1,
|
|
162
|
+
Fantasy: 2,
|
|
163
|
+
Bungei: 3,
|
|
164
|
+
Sf: 4,
|
|
165
|
+
Sonota: 99,
|
|
166
|
+
NonGenre: 98,
|
|
167
|
+
};
|
|
168
|
+
exports.BigGenreNotation = {
|
|
169
|
+
[exports.BigGenre.Renai]: "恋愛",
|
|
170
|
+
[exports.BigGenre.Fantasy]: "ファンタジー",
|
|
171
|
+
[exports.BigGenre.Bungei]: "文芸",
|
|
172
|
+
[exports.BigGenre.Sf]: "SF",
|
|
173
|
+
[exports.BigGenre.Sonota]: "その他",
|
|
174
|
+
[exports.BigGenre.NonGenre]: "ノンジャンル",
|
|
175
|
+
};
|
|
176
|
+
exports.Genre = {
|
|
177
|
+
RenaiIsekai: 101,
|
|
178
|
+
RenaiGenjitsusekai: 102,
|
|
179
|
+
FantasyHigh: 201,
|
|
180
|
+
FantasyLow: 202,
|
|
181
|
+
BungeiJyunbungei: 301,
|
|
182
|
+
BungeiHumanDrama: 302,
|
|
183
|
+
BungeiHistory: 303,
|
|
184
|
+
BungeiSuiri: 304,
|
|
185
|
+
BungeiHorror: 305,
|
|
186
|
+
BungeiAction: 306,
|
|
187
|
+
BungeiComedy: 307,
|
|
188
|
+
SfVrgame: 401,
|
|
189
|
+
SfSpace: 402,
|
|
190
|
+
SfKuusoukagaku: 403,
|
|
191
|
+
SfPanic: 404,
|
|
192
|
+
SonotaDouwa: 9901,
|
|
193
|
+
SonotaShi: 9902,
|
|
194
|
+
SonotaEssei: 9903,
|
|
195
|
+
SonotaReplay: 9904,
|
|
196
|
+
SonotaSonota: 9999,
|
|
197
|
+
NonGenre: 9801,
|
|
198
|
+
};
|
|
199
|
+
exports.GenreNotation = {
|
|
200
|
+
[exports.Genre.RenaiIsekai]: "異世界〔恋愛〕",
|
|
201
|
+
[exports.Genre.RenaiGenjitsusekai]: "現実世界〔恋愛〕",
|
|
202
|
+
[exports.Genre.FantasyHigh]: "ハイファンタジー〔ファンタジー〕",
|
|
203
|
+
[exports.Genre.FantasyLow]: "ローファンタジー〔ファンタジー〕",
|
|
204
|
+
[exports.Genre.BungeiJyunbungei]: "純文学〔文芸〕",
|
|
205
|
+
[exports.Genre.BungeiHumanDrama]: "ヒューマンドラマ〔文芸〕",
|
|
206
|
+
[exports.Genre.BungeiHistory]: "歴史〔文芸〕",
|
|
207
|
+
[exports.Genre.BungeiSuiri]: "推理〔文芸〕",
|
|
208
|
+
[exports.Genre.BungeiHorror]: "ホラー〔文芸〕",
|
|
209
|
+
[exports.Genre.BungeiAction]: "アクション〔文芸〕",
|
|
210
|
+
[exports.Genre.BungeiComedy]: "コメディー〔文芸〕",
|
|
211
|
+
[exports.Genre.SfVrgame]: "VRゲーム〔SF〕",
|
|
212
|
+
[exports.Genre.SfSpace]: "宇宙〔SF〕",
|
|
213
|
+
[exports.Genre.SfKuusoukagaku]: "空想科学〔SF〕",
|
|
214
|
+
[exports.Genre.SfPanic]: "パニック〔SF〕",
|
|
215
|
+
[exports.Genre.SonotaDouwa]: "童話〔その他〕",
|
|
216
|
+
[exports.Genre.SonotaShi]: "詩〔その他〕",
|
|
217
|
+
[exports.Genre.SonotaEssei]: "エッセイ〔その他〕",
|
|
218
|
+
[exports.Genre.SonotaReplay]: "リプレイ〔その他〕",
|
|
219
|
+
[exports.Genre.SonotaSonota]: "その他〔その他〕",
|
|
220
|
+
[exports.Genre.NonGenre]: "ノンジャンル〔ノンジャンル〕",
|
|
221
|
+
};
|
|
222
|
+
exports.BuntaiParam = {
|
|
223
|
+
NoJisageKaigyouOoi: 1,
|
|
224
|
+
NoJisageKaigyoHutsuu: 2,
|
|
225
|
+
JisageKaigyoOoi: 4,
|
|
226
|
+
JisageKaigyoHutsuu: 6,
|
|
227
|
+
};
|
|
228
|
+
exports.StopParam = {
|
|
229
|
+
NoStopping: 1,
|
|
230
|
+
Stopping: 2,
|
|
231
|
+
};
|
|
232
|
+
exports.NovelTypeParam = {
|
|
233
|
+
Short: "t",
|
|
234
|
+
RensaiNow: "r",
|
|
235
|
+
RensaiEnd: "er",
|
|
236
|
+
Rensai: "re",
|
|
237
|
+
ShortAndRensai: "ter",
|
|
238
|
+
};
|
|
239
|
+
exports.UserOrder = {
|
|
240
|
+
New: "new",
|
|
241
|
+
NovelCount: "novelcnt",
|
|
242
|
+
ReviewCount: "reviewcnt",
|
|
243
|
+
NovelLength: "novellength",
|
|
244
|
+
SumGlobalPoint: "sumglobalpoint",
|
|
245
|
+
Old: "old",
|
|
246
|
+
};
|
|
247
247
|
//# sourceMappingURL=params.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { RankingType } from "./params";
|
|
2
|
-
export interface RankingHistoryRawResult {
|
|
3
|
-
rtype: `${string}-${RankingType}`;
|
|
4
|
-
pt: number;
|
|
5
|
-
rank: number;
|
|
6
|
-
}
|
|
7
|
-
export interface RankingHistoryResult {
|
|
8
|
-
type: RankingType;
|
|
9
|
-
date: Date;
|
|
10
|
-
pt: number;
|
|
11
|
-
rank: number;
|
|
12
|
-
}
|
|
13
|
-
export declare function formatRankingHistory(rankin: RankingHistoryRawResult): RankingHistoryResult;
|
|
1
|
+
import { RankingType } from "./params";
|
|
2
|
+
export interface RankingHistoryRawResult {
|
|
3
|
+
rtype: `${string}-${RankingType}`;
|
|
4
|
+
pt: number;
|
|
5
|
+
rank: number;
|
|
6
|
+
}
|
|
7
|
+
export interface RankingHistoryResult {
|
|
8
|
+
type: RankingType;
|
|
9
|
+
date: Date;
|
|
10
|
+
pt: number;
|
|
11
|
+
rank: number;
|
|
12
|
+
}
|
|
13
|
+
export declare function formatRankingHistory(rankin: RankingHistoryRawResult): RankingHistoryResult;
|
|
14
14
|
//# sourceMappingURL=ranking-history.d.ts.map
|
package/dist/ranking-history.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.formatRankingHistory = void 0;
|
|
4
|
-
const date_fns_1 = require("date-fns");
|
|
5
|
-
const dateFormat = "yyyyMMdd";
|
|
6
|
-
function formatRankingHistory(rankin) {
|
|
7
|
-
const { rtype, pt, rank } = rankin;
|
|
8
|
-
const [_date, _type] = rtype.split("-");
|
|
9
|
-
const date = (0, date_fns_1.parse)(_date, dateFormat, new Date());
|
|
10
|
-
const type = _type;
|
|
11
|
-
return { type, date, pt, rank };
|
|
12
|
-
}
|
|
13
|
-
exports.formatRankingHistory = formatRankingHistory;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.formatRankingHistory = void 0;
|
|
4
|
+
const date_fns_1 = require("date-fns");
|
|
5
|
+
const dateFormat = "yyyyMMdd";
|
|
6
|
+
function formatRankingHistory(rankin) {
|
|
7
|
+
const { rtype, pt, rank } = rankin;
|
|
8
|
+
const [_date, _type] = rtype.split("-");
|
|
9
|
+
const date = (0, date_fns_1.parse)(_date, dateFormat, new Date());
|
|
10
|
+
const type = _type;
|
|
11
|
+
return { type, date, pt, rank };
|
|
12
|
+
}
|
|
13
|
+
exports.formatRankingHistory = formatRankingHistory;
|
|
14
14
|
//# sourceMappingURL=ranking-history.js.map
|
package/dist/ranking.d.ts
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { NarouRankingResult, RankingResult } from "./narou-ranking-results";
|
|
2
|
-
import { DefaultSearchResultFields } from "./search-builder";
|
|
3
|
-
import { Fields, GzipLevel, OptionalFields, RankingParams, RankingType } from "./params";
|
|
4
|
-
import NarouNovel from "./narou";
|
|
5
|
-
import { SearchResultFields } from "./narou-search-results";
|
|
6
|
-
/**
|
|
7
|
-
* ランキングヘルパー
|
|
8
|
-
* @class Ranking
|
|
9
|
-
*/
|
|
10
|
-
export default class RankingBuilder {
|
|
11
|
-
protected params: Partial<RankingParams>;
|
|
12
|
-
protected api: NarouNovel;
|
|
13
|
-
protected date$: Date;
|
|
14
|
-
protected type$: RankingType;
|
|
15
|
-
/**
|
|
16
|
-
* constructor
|
|
17
|
-
* @private
|
|
18
|
-
*/
|
|
19
|
-
constructor(params: Partial<RankingParams>, api: NarouNovel);
|
|
20
|
-
date(date: Date): this;
|
|
21
|
-
type(type: RankingType): this;
|
|
22
|
-
/**
|
|
23
|
-
* gzip圧縮する。
|
|
24
|
-
*
|
|
25
|
-
* 転送量上限を減らすためにも推奨
|
|
26
|
-
* @param {GzipLevel} level gzip圧縮レベル(1~5)
|
|
27
|
-
* @return {RankingBuilder} this
|
|
28
|
-
*/
|
|
29
|
-
gzip(level: GzipLevel): this;
|
|
30
|
-
/**
|
|
31
|
-
* クエリパラメータをセットする
|
|
32
|
-
* @private
|
|
33
|
-
* @return {RankingBuilder} this
|
|
34
|
-
*/
|
|
35
|
-
protected set(obj: Partial<RankingParams>): this;
|
|
36
|
-
/**
|
|
37
|
-
* なろう小説APIへのリクエストを実行する
|
|
38
|
-
* @returns ランキング
|
|
39
|
-
*/
|
|
40
|
-
execute(): Promise<NarouRankingResult[]>;
|
|
41
|
-
executeWithFields(): Promise<RankingResult<DefaultSearchResultFields>[]>;
|
|
42
|
-
executeWithFields<TFields extends Fields>(fields: TFields | TFields[]): Promise<RankingResult<SearchResultFields<TFields>>[]>;
|
|
43
|
-
executeWithFields(fields: never[], opt: OptionalFields | OptionalFields[]): Promise<RankingResult<DefaultSearchResultFields | "weekly_unique">[]>;
|
|
44
|
-
executeWithFields<TFields extends Fields>(fields: TFields | TFields[], opt: OptionalFields | OptionalFields[]): Promise<RankingResult<SearchResultFields<TFields> | "weekly_unique">[]>;
|
|
45
|
-
}
|
|
1
|
+
import { NarouRankingResult, RankingResult } from "./narou-ranking-results";
|
|
2
|
+
import { DefaultSearchResultFields } from "./search-builder";
|
|
3
|
+
import { Fields, GzipLevel, OptionalFields, RankingParams, RankingType } from "./params";
|
|
4
|
+
import NarouNovel from "./narou";
|
|
5
|
+
import { SearchResultFields } from "./narou-search-results";
|
|
6
|
+
/**
|
|
7
|
+
* ランキングヘルパー
|
|
8
|
+
* @class Ranking
|
|
9
|
+
*/
|
|
10
|
+
export default class RankingBuilder {
|
|
11
|
+
protected params: Partial<RankingParams>;
|
|
12
|
+
protected api: NarouNovel;
|
|
13
|
+
protected date$: Date;
|
|
14
|
+
protected type$: RankingType;
|
|
15
|
+
/**
|
|
16
|
+
* constructor
|
|
17
|
+
* @private
|
|
18
|
+
*/
|
|
19
|
+
constructor(params: Partial<RankingParams>, api: NarouNovel);
|
|
20
|
+
date(date: Date): this;
|
|
21
|
+
type(type: RankingType): this;
|
|
22
|
+
/**
|
|
23
|
+
* gzip圧縮する。
|
|
24
|
+
*
|
|
25
|
+
* 転送量上限を減らすためにも推奨
|
|
26
|
+
* @param {GzipLevel} level gzip圧縮レベル(1~5)
|
|
27
|
+
* @return {RankingBuilder} this
|
|
28
|
+
*/
|
|
29
|
+
gzip(level: GzipLevel): this;
|
|
30
|
+
/**
|
|
31
|
+
* クエリパラメータをセットする
|
|
32
|
+
* @private
|
|
33
|
+
* @return {RankingBuilder} this
|
|
34
|
+
*/
|
|
35
|
+
protected set(obj: Partial<RankingParams>): this;
|
|
36
|
+
/**
|
|
37
|
+
* なろう小説APIへのリクエストを実行する
|
|
38
|
+
* @returns ランキング
|
|
39
|
+
*/
|
|
40
|
+
execute(): Promise<NarouRankingResult[]>;
|
|
41
|
+
executeWithFields(): Promise<RankingResult<DefaultSearchResultFields>[]>;
|
|
42
|
+
executeWithFields<TFields extends Fields>(fields: TFields | TFields[]): Promise<RankingResult<SearchResultFields<TFields>>[]>;
|
|
43
|
+
executeWithFields(fields: never[], opt: OptionalFields | OptionalFields[]): Promise<RankingResult<DefaultSearchResultFields | "weekly_unique">[]>;
|
|
44
|
+
executeWithFields<TFields extends Fields>(fields: TFields | TFields[], opt: OptionalFields | OptionalFields[]): Promise<RankingResult<SearchResultFields<TFields> | "weekly_unique">[]>;
|
|
45
|
+
}
|
|
46
46
|
//# sourceMappingURL=ranking.d.ts.map
|