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.d.ts
CHANGED
|
@@ -1,324 +1,324 @@
|
|
|
1
|
-
import { NarouSearchResult, UserSearchResult } from "./narou-search-results";
|
|
2
|
-
import { Join } from "./util/type";
|
|
3
|
-
export declare const RankingType: {
|
|
4
|
-
readonly Daily: "d";
|
|
5
|
-
readonly Weekly: "w";
|
|
6
|
-
readonly Monthly: "m";
|
|
7
|
-
readonly Quarterly: "q";
|
|
8
|
-
};
|
|
9
|
-
export declare type RankingType = typeof RankingType[keyof typeof RankingType];
|
|
10
|
-
export interface ParamsBase {
|
|
11
|
-
gzip?: GzipLevel;
|
|
12
|
-
out?: "json" | "jsonp";
|
|
13
|
-
}
|
|
14
|
-
export interface ParamsBaseWithOrder<TOrder extends string> extends ParamsBase {
|
|
15
|
-
of?: string;
|
|
16
|
-
lim?: number;
|
|
17
|
-
st?: number;
|
|
18
|
-
order?: TOrder;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* {@link SearchBuilder#Fields}メソッドにパラメータを指定する際のヘルパー。
|
|
22
|
-
* @typedef {Object} Fields
|
|
23
|
-
* @property {string} title 小説名
|
|
24
|
-
* @property {string} ncode Nコード
|
|
25
|
-
* @property {string} userid 作者のユーザID(数値)
|
|
26
|
-
* @property {string} writer 作者名
|
|
27
|
-
* @property {string} story 小説のあらすじ
|
|
28
|
-
* @property {string} genre ジャンル
|
|
29
|
-
* @property {string} keyword キーワード
|
|
30
|
-
* @property {string} general_firstup 初回掲載日
|
|
31
|
-
* @property {string} general_lastup 最終掲載日
|
|
32
|
-
* @property {string} noveltype 連載の場合は1、短編の場合は2
|
|
33
|
-
* @property {string} end 連載の場合は1、短編の場合は2
|
|
34
|
-
* @property {string} general_all_no 全掲載話数です。短編の場合は1です。
|
|
35
|
-
* @property {string} length 全掲載話数です。短編の場合は1です。
|
|
36
|
-
* @property {string} time 読了時間(分単位)です。読了時間は小説文字数÷500を切り上げした数値です。
|
|
37
|
-
* @property {string} isstop 長期連載中は1、それ以外は0です。
|
|
38
|
-
* @property {string} pc_or_k 1はケータイのみ、2はPCのみ、3はPCとケータイで投稿された作品です。対象は投稿と次話投稿時のみで、どの端末で執筆されたかを表すものではありません。
|
|
39
|
-
* @property {string} global_point 総合得点(=(ブックマーク数×2)+評価点)
|
|
40
|
-
* @property {string} fav_novel_cnt ブックマーク数
|
|
41
|
-
* @property {string} review_cnt レビュー数
|
|
42
|
-
* @property {string} all_point 評価点
|
|
43
|
-
* @property {string} all_hyoka_cnt 評価者数
|
|
44
|
-
* @property {string} sasie_cnt 挿絵の数
|
|
45
|
-
* @property {string} kaiwaritu 会話率
|
|
46
|
-
* @property {string} novelupdated_at 小説の更新日時
|
|
47
|
-
* @property {string} updated_at 最終更新日時(注意:システム用で小説更新時とは関係ありません)
|
|
48
|
-
*/
|
|
49
|
-
export interface SearchParams extends ParamsBaseWithOrder<Order> {
|
|
50
|
-
word?: string;
|
|
51
|
-
notword?: string;
|
|
52
|
-
title?: BooleanNumber;
|
|
53
|
-
ex?: BooleanNumber;
|
|
54
|
-
keyword?: BooleanNumber;
|
|
55
|
-
wname?: BooleanNumber;
|
|
56
|
-
biggenre?: Join<BigGenre> | BigGenre;
|
|
57
|
-
notbiggenre?: Join<BigGenre> | BigGenre;
|
|
58
|
-
genre?: Join<Genre> | Genre;
|
|
59
|
-
notgenre?: Join<Genre> | Genre;
|
|
60
|
-
userid?: Join<number> | number;
|
|
61
|
-
nocgenre?: Join<R18Site> | R18Site;
|
|
62
|
-
notnocgenre?: Join<R18Site> | R18Site;
|
|
63
|
-
xid?: Join<number> | number;
|
|
64
|
-
isr15?: BooleanNumber;
|
|
65
|
-
isbl?: BooleanNumber;
|
|
66
|
-
isgl?: BooleanNumber;
|
|
67
|
-
iszankoku?: BooleanNumber;
|
|
68
|
-
istensei?: BooleanNumber;
|
|
69
|
-
istenni?: BooleanNumber;
|
|
70
|
-
istt?: BooleanNumber;
|
|
71
|
-
notr15?: BooleanNumber;
|
|
72
|
-
notbl?: BooleanNumber;
|
|
73
|
-
notgl?: BooleanNumber;
|
|
74
|
-
notzankoku?: BooleanNumber;
|
|
75
|
-
nottensei?: BooleanNumber;
|
|
76
|
-
nottenni?: BooleanNumber;
|
|
77
|
-
nottt?: BooleanNumber;
|
|
78
|
-
minlen?: number;
|
|
79
|
-
maxlen?: number;
|
|
80
|
-
length?: number | Join<number>;
|
|
81
|
-
kaiwaritu?: number | string;
|
|
82
|
-
sasie?: number | string;
|
|
83
|
-
mintime?: number;
|
|
84
|
-
maxtime?: number;
|
|
85
|
-
time?: number | string;
|
|
86
|
-
ncode?: string | Join<string>;
|
|
87
|
-
type?: NovelTypeParam;
|
|
88
|
-
buntai?: BuntaiParam | Join<BuntaiParam>;
|
|
89
|
-
stop?: StopParam;
|
|
90
|
-
ispickup?: BooleanNumber;
|
|
91
|
-
lastup?: string;
|
|
92
|
-
opt?: Join<OptionalFields>;
|
|
93
|
-
}
|
|
94
|
-
export interface RankingParams extends ParamsBase {
|
|
95
|
-
rtype: `${string}-${RankingType}`;
|
|
96
|
-
}
|
|
97
|
-
export interface RankingHistoryParams extends ParamsBase {
|
|
98
|
-
ncode: string;
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* ユーザー検索パラメータ
|
|
102
|
-
*/
|
|
103
|
-
export interface UserSearchParams extends ParamsBaseWithOrder<UserOrder> {
|
|
104
|
-
/** 単語を指定できます。半角または全角スペースで区切るとAND抽出になります。部分一致でHITします。検索の対象はユーザ名とユーザ名のフリガナです。 */
|
|
105
|
-
word?: string;
|
|
106
|
-
/** 含みたくない単語を指定できます。スペースで区切ることにより含ませない単語を増やせます。部分一致で除外されます。除外の対象はユーザ名とユーザ名のフリガナです。 */
|
|
107
|
-
notword?: string;
|
|
108
|
-
/** ユーザIDで抽出可能。 */
|
|
109
|
-
userid?: number;
|
|
110
|
-
/** 抽出するユーザのユーザ名のフリガナの頭文字を指定できます。頭文字はユーザ名のフリガナをひらがなに変換し、最初の1文字が「ぁ」~「ん」の場合に対象となります。 */
|
|
111
|
-
name1st?: string;
|
|
112
|
-
/** 抽出するユーザの小説投稿数の下限を指定できます。小説投稿件数が指定された数値以上のユーザを抽出します。 */
|
|
113
|
-
minnovel?: number;
|
|
114
|
-
/** 抽出するユーザの小説投稿数の上限を指定できます。小説投稿件数が指定された数値以下のユーザを抽出します。 */
|
|
115
|
-
maxnovel?: number;
|
|
116
|
-
/** 抽出するユーザのレビュー投稿数の下限を指定できます。レビュー投稿件数が指定された数値以上のユーザを抽出します。 */
|
|
117
|
-
minreview?: number;
|
|
118
|
-
/** 抽出するユーザのレビュー投稿数の上限を指定できます。レビュー投稿件数が指定された数値以下のユーザを抽出します。 */
|
|
119
|
-
maxreview?: number;
|
|
120
|
-
}
|
|
121
|
-
export declare const BooleanNumber: {
|
|
122
|
-
readonly True: 1;
|
|
123
|
-
readonly False: 0;
|
|
124
|
-
};
|
|
125
|
-
export declare type BooleanNumber = typeof BooleanNumber[keyof typeof BooleanNumber];
|
|
126
|
-
export declare type SearchResultFieldNames = keyof NarouSearchResult;
|
|
127
|
-
export declare const Fields: {
|
|
128
|
-
readonly title: "t";
|
|
129
|
-
readonly ncode: "n";
|
|
130
|
-
readonly userid: "u";
|
|
131
|
-
readonly writer: "w";
|
|
132
|
-
readonly story: "s";
|
|
133
|
-
readonly biggenre: "bg";
|
|
134
|
-
readonly genre: "g";
|
|
135
|
-
readonly nocgenre: "ng";
|
|
136
|
-
readonly keyword: "k";
|
|
137
|
-
readonly general_firstup: "gf";
|
|
138
|
-
readonly general_lastup: "gl";
|
|
139
|
-
readonly noveltype: "nt";
|
|
140
|
-
readonly end: "e";
|
|
141
|
-
readonly general_all_no: "ga";
|
|
142
|
-
readonly length: "l";
|
|
143
|
-
readonly time: "ti";
|
|
144
|
-
readonly isstop: "i";
|
|
145
|
-
readonly isr15: "isr";
|
|
146
|
-
readonly isbl: "ibl";
|
|
147
|
-
readonly isgl: "igl";
|
|
148
|
-
readonly iszankoku: "izk";
|
|
149
|
-
readonly istensei: "its";
|
|
150
|
-
readonly istenni: "iti";
|
|
151
|
-
readonly pc_or_k: "p";
|
|
152
|
-
readonly global_point: "gp";
|
|
153
|
-
readonly daily_point: "dp";
|
|
154
|
-
readonly weekly_point: "wp";
|
|
155
|
-
readonly monthly_point: "mp";
|
|
156
|
-
readonly quarter_point: "qp";
|
|
157
|
-
readonly yearly_point: "yp";
|
|
158
|
-
readonly fav_novel_cnt: "f";
|
|
159
|
-
readonly impression_cnt: "imp";
|
|
160
|
-
readonly review_cnt: "r";
|
|
161
|
-
readonly all_point: "a";
|
|
162
|
-
readonly all_hyoka_cnt: "ah";
|
|
163
|
-
readonly sasie_cnt: "sa";
|
|
164
|
-
readonly kaiwaritu: "ka";
|
|
165
|
-
readonly novelupdated_at: "nu";
|
|
166
|
-
readonly updated_at: "ua";
|
|
167
|
-
};
|
|
168
|
-
export declare type Fields = typeof Fields[keyof Omit<NarouSearchResult, "novel_type" | "weekly_unique" | "nocgenre">];
|
|
169
|
-
export declare const R18Fields: {
|
|
170
|
-
readonly title: "t";
|
|
171
|
-
readonly ncode: "n";
|
|
172
|
-
readonly userid: "u";
|
|
173
|
-
readonly writer: "w";
|
|
174
|
-
readonly story: "s";
|
|
175
|
-
readonly nocgenre: "ng";
|
|
176
|
-
readonly keyword: "k";
|
|
177
|
-
readonly general_firstup: "gf";
|
|
178
|
-
readonly general_lastup: "gl";
|
|
179
|
-
readonly noveltype: "nt";
|
|
180
|
-
readonly end: "e";
|
|
181
|
-
readonly general_all_no: "ga";
|
|
182
|
-
readonly length: "l";
|
|
183
|
-
readonly time: "ti";
|
|
184
|
-
readonly isstop: "i";
|
|
185
|
-
readonly isr15: "isr";
|
|
186
|
-
readonly isbl: "ibl";
|
|
187
|
-
readonly isgl: "igl";
|
|
188
|
-
readonly iszankoku: "izk";
|
|
189
|
-
readonly istensei: "its";
|
|
190
|
-
readonly istenni: "iti";
|
|
191
|
-
readonly pc_or_k: "p";
|
|
192
|
-
readonly global_point: "gp";
|
|
193
|
-
readonly daily_point: "dp";
|
|
194
|
-
readonly weekly_point: "wp";
|
|
195
|
-
readonly monthly_point: "mp";
|
|
196
|
-
readonly quarter_point: "qp";
|
|
197
|
-
readonly yearly_point: "yp";
|
|
198
|
-
readonly fav_novel_cnt: "f";
|
|
199
|
-
readonly impression_cnt: "imp";
|
|
200
|
-
readonly review_cnt: "r";
|
|
201
|
-
readonly all_point: "a";
|
|
202
|
-
readonly all_hyoka_cnt: "ah";
|
|
203
|
-
readonly sasie_cnt: "sa";
|
|
204
|
-
readonly kaiwaritu: "ka";
|
|
205
|
-
readonly novelupdated_at: "nu";
|
|
206
|
-
readonly updated_at: "ua";
|
|
207
|
-
};
|
|
208
|
-
export declare type R18Fields = typeof R18Fields[keyof Omit<NarouSearchResult, "novel_type" | "weekly_unique" | "biggenre" | "genre">];
|
|
209
|
-
export declare const UserFields: {
|
|
210
|
-
readonly userid: "u";
|
|
211
|
-
readonly name: "n";
|
|
212
|
-
readonly yomikata: "y";
|
|
213
|
-
readonly name1st: "1";
|
|
214
|
-
readonly novel_cnt: "nc";
|
|
215
|
-
readonly review_cnt: "rc";
|
|
216
|
-
readonly novel_length: "nl";
|
|
217
|
-
readonly sum_global_point: "sg";
|
|
218
|
-
};
|
|
219
|
-
export declare type UserFields = typeof UserFields[keyof UserSearchResult];
|
|
220
|
-
export declare const OptionalFields: {
|
|
221
|
-
readonly weekly_unique: "weekly";
|
|
222
|
-
};
|
|
223
|
-
export declare type OptionalFields = typeof OptionalFields[keyof Pick<NarouSearchResult, "weekly_unique">];
|
|
224
|
-
export declare const Order: {
|
|
225
|
-
readonly FavoriteNovelCount: "favnovelcnt";
|
|
226
|
-
readonly ReviewCount: "favnovelcnt";
|
|
227
|
-
readonly HyokaDesc: "hyoka";
|
|
228
|
-
readonly HyokaAsc: "hyokaasc";
|
|
229
|
-
readonly ImpressionCount: "impressioncnt";
|
|
230
|
-
readonly HyokaCountDesc: "hyokacnt";
|
|
231
|
-
readonly HyokaCountAsc: "hyokacntasc";
|
|
232
|
-
readonly Weekly: "weekly";
|
|
233
|
-
readonly LengthDesc: "lengthdesc";
|
|
234
|
-
readonly LengthAsc: "lengthasc";
|
|
235
|
-
readonly NCodeDesc: "ncodedesc";
|
|
236
|
-
readonly New: "new";
|
|
237
|
-
readonly Old: "old";
|
|
238
|
-
readonly DailyPoint: "dailypoint";
|
|
239
|
-
readonly WeeklyPoint: "weeklypoint";
|
|
240
|
-
readonly MonthlyPoint: "monthlypoint";
|
|
241
|
-
readonly QuarterPoint: "quarterpoint";
|
|
242
|
-
readonly YearlyPoint: "yearlypoint";
|
|
243
|
-
};
|
|
244
|
-
export declare type Order = typeof Order[keyof typeof Order];
|
|
245
|
-
export declare const R18Site: {
|
|
246
|
-
readonly Nocturne: 1;
|
|
247
|
-
readonly MoonLight: 2;
|
|
248
|
-
readonly MoonLightBL: 3;
|
|
249
|
-
readonly Midnight: 4;
|
|
250
|
-
};
|
|
251
|
-
export declare type R18Site = typeof R18Site[keyof typeof R18Site];
|
|
252
|
-
export declare const R18SiteNotation: {
|
|
253
|
-
readonly [K in R18Site]: string;
|
|
254
|
-
};
|
|
255
|
-
export declare const BigGenre: {
|
|
256
|
-
readonly Renai: 1;
|
|
257
|
-
readonly Fantasy: 2;
|
|
258
|
-
readonly Bungei: 3;
|
|
259
|
-
readonly Sf: 4;
|
|
260
|
-
readonly Sonota: 99;
|
|
261
|
-
readonly NonGenre: 98;
|
|
262
|
-
};
|
|
263
|
-
export declare type BigGenre = typeof BigGenre[keyof typeof BigGenre];
|
|
264
|
-
export declare const BigGenreNotation: {
|
|
265
|
-
readonly [K in BigGenre]: string;
|
|
266
|
-
};
|
|
267
|
-
export declare const Genre: {
|
|
268
|
-
readonly RenaiIsekai: 101;
|
|
269
|
-
readonly RenaiGenjitsusekai: 102;
|
|
270
|
-
readonly FantasyHigh: 201;
|
|
271
|
-
readonly FantasyLow: 202;
|
|
272
|
-
readonly BungeiJyunbungei: 301;
|
|
273
|
-
readonly BungeiHumanDrama: 302;
|
|
274
|
-
readonly BungeiHistory: 303;
|
|
275
|
-
readonly BungeiSuiri: 304;
|
|
276
|
-
readonly BungeiHorror: 305;
|
|
277
|
-
readonly BungeiAction: 306;
|
|
278
|
-
readonly BungeiComedy: 307;
|
|
279
|
-
readonly SfVrgame: 401;
|
|
280
|
-
readonly SfSpace: 402;
|
|
281
|
-
readonly SfKuusoukagaku: 403;
|
|
282
|
-
readonly SfPanic: 404;
|
|
283
|
-
readonly SonotaDouwa: 9901;
|
|
284
|
-
readonly SonotaShi: 9902;
|
|
285
|
-
readonly SonotaEssei: 9903;
|
|
286
|
-
readonly SonotaReplay: 9904;
|
|
287
|
-
readonly SonotaSonota: 9999;
|
|
288
|
-
readonly NonGenre: 9801;
|
|
289
|
-
};
|
|
290
|
-
export declare type Genre = typeof Genre[keyof typeof Genre];
|
|
291
|
-
export declare const GenreNotation: {
|
|
292
|
-
readonly [K in Genre]: string;
|
|
293
|
-
};
|
|
294
|
-
export declare const BuntaiParam: {
|
|
295
|
-
readonly NoJisageKaigyouOoi: 1;
|
|
296
|
-
readonly NoJisageKaigyoHutsuu: 2;
|
|
297
|
-
readonly JisageKaigyoOoi: 4;
|
|
298
|
-
readonly JisageKaigyoHutsuu: 6;
|
|
299
|
-
};
|
|
300
|
-
export declare type BuntaiParam = typeof BuntaiParam[keyof typeof BuntaiParam];
|
|
301
|
-
export declare const StopParam: {
|
|
302
|
-
readonly NoStopping: 1;
|
|
303
|
-
readonly Stopping: 2;
|
|
304
|
-
};
|
|
305
|
-
export declare type StopParam = typeof StopParam[keyof typeof StopParam];
|
|
306
|
-
export declare const NovelTypeParam: {
|
|
307
|
-
readonly Short: "t";
|
|
308
|
-
readonly RensaiNow: "r";
|
|
309
|
-
readonly RensaiEnd: "er";
|
|
310
|
-
readonly Rensai: "re";
|
|
311
|
-
readonly ShortAndRensai: "ter";
|
|
312
|
-
};
|
|
313
|
-
export declare type NovelTypeParam = typeof NovelTypeParam[keyof typeof NovelTypeParam];
|
|
314
|
-
export declare const UserOrder: {
|
|
315
|
-
readonly New: "new";
|
|
316
|
-
readonly NovelCount: "novelcnt";
|
|
317
|
-
readonly ReviewCount: "reviewcnt";
|
|
318
|
-
readonly NovelLength: "novellength";
|
|
319
|
-
readonly SumGlobalPoint: "sumglobalpoint";
|
|
320
|
-
readonly Old: "old";
|
|
321
|
-
};
|
|
322
|
-
export declare type UserOrder = typeof UserOrder[keyof typeof UserOrder];
|
|
323
|
-
export declare type GzipLevel = 0 | 1 | 2 | 3 | 4 | 5;
|
|
1
|
+
import { NarouSearchResult, UserSearchResult } from "./narou-search-results";
|
|
2
|
+
import { Join } from "./util/type";
|
|
3
|
+
export declare const RankingType: {
|
|
4
|
+
readonly Daily: "d";
|
|
5
|
+
readonly Weekly: "w";
|
|
6
|
+
readonly Monthly: "m";
|
|
7
|
+
readonly Quarterly: "q";
|
|
8
|
+
};
|
|
9
|
+
export declare type RankingType = typeof RankingType[keyof typeof RankingType];
|
|
10
|
+
export interface ParamsBase {
|
|
11
|
+
gzip?: GzipLevel;
|
|
12
|
+
out?: "json" | "jsonp";
|
|
13
|
+
}
|
|
14
|
+
export interface ParamsBaseWithOrder<TOrder extends string> extends ParamsBase {
|
|
15
|
+
of?: string;
|
|
16
|
+
lim?: number;
|
|
17
|
+
st?: number;
|
|
18
|
+
order?: TOrder;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* {@link SearchBuilder#Fields}メソッドにパラメータを指定する際のヘルパー。
|
|
22
|
+
* @typedef {Object} Fields
|
|
23
|
+
* @property {string} title 小説名
|
|
24
|
+
* @property {string} ncode Nコード
|
|
25
|
+
* @property {string} userid 作者のユーザID(数値)
|
|
26
|
+
* @property {string} writer 作者名
|
|
27
|
+
* @property {string} story 小説のあらすじ
|
|
28
|
+
* @property {string} genre ジャンル
|
|
29
|
+
* @property {string} keyword キーワード
|
|
30
|
+
* @property {string} general_firstup 初回掲載日
|
|
31
|
+
* @property {string} general_lastup 最終掲載日
|
|
32
|
+
* @property {string} noveltype 連載の場合は1、短編の場合は2
|
|
33
|
+
* @property {string} end 連載の場合は1、短編の場合は2
|
|
34
|
+
* @property {string} general_all_no 全掲載話数です。短編の場合は1です。
|
|
35
|
+
* @property {string} length 全掲載話数です。短編の場合は1です。
|
|
36
|
+
* @property {string} time 読了時間(分単位)です。読了時間は小説文字数÷500を切り上げした数値です。
|
|
37
|
+
* @property {string} isstop 長期連載中は1、それ以外は0です。
|
|
38
|
+
* @property {string} pc_or_k 1はケータイのみ、2はPCのみ、3はPCとケータイで投稿された作品です。対象は投稿と次話投稿時のみで、どの端末で執筆されたかを表すものではありません。
|
|
39
|
+
* @property {string} global_point 総合得点(=(ブックマーク数×2)+評価点)
|
|
40
|
+
* @property {string} fav_novel_cnt ブックマーク数
|
|
41
|
+
* @property {string} review_cnt レビュー数
|
|
42
|
+
* @property {string} all_point 評価点
|
|
43
|
+
* @property {string} all_hyoka_cnt 評価者数
|
|
44
|
+
* @property {string} sasie_cnt 挿絵の数
|
|
45
|
+
* @property {string} kaiwaritu 会話率
|
|
46
|
+
* @property {string} novelupdated_at 小説の更新日時
|
|
47
|
+
* @property {string} updated_at 最終更新日時(注意:システム用で小説更新時とは関係ありません)
|
|
48
|
+
*/
|
|
49
|
+
export interface SearchParams extends ParamsBaseWithOrder<Order> {
|
|
50
|
+
word?: string;
|
|
51
|
+
notword?: string;
|
|
52
|
+
title?: BooleanNumber;
|
|
53
|
+
ex?: BooleanNumber;
|
|
54
|
+
keyword?: BooleanNumber;
|
|
55
|
+
wname?: BooleanNumber;
|
|
56
|
+
biggenre?: Join<BigGenre> | BigGenre;
|
|
57
|
+
notbiggenre?: Join<BigGenre> | BigGenre;
|
|
58
|
+
genre?: Join<Genre> | Genre;
|
|
59
|
+
notgenre?: Join<Genre> | Genre;
|
|
60
|
+
userid?: Join<number> | number;
|
|
61
|
+
nocgenre?: Join<R18Site> | R18Site;
|
|
62
|
+
notnocgenre?: Join<R18Site> | R18Site;
|
|
63
|
+
xid?: Join<number> | number;
|
|
64
|
+
isr15?: BooleanNumber;
|
|
65
|
+
isbl?: BooleanNumber;
|
|
66
|
+
isgl?: BooleanNumber;
|
|
67
|
+
iszankoku?: BooleanNumber;
|
|
68
|
+
istensei?: BooleanNumber;
|
|
69
|
+
istenni?: BooleanNumber;
|
|
70
|
+
istt?: BooleanNumber;
|
|
71
|
+
notr15?: BooleanNumber;
|
|
72
|
+
notbl?: BooleanNumber;
|
|
73
|
+
notgl?: BooleanNumber;
|
|
74
|
+
notzankoku?: BooleanNumber;
|
|
75
|
+
nottensei?: BooleanNumber;
|
|
76
|
+
nottenni?: BooleanNumber;
|
|
77
|
+
nottt?: BooleanNumber;
|
|
78
|
+
minlen?: number;
|
|
79
|
+
maxlen?: number;
|
|
80
|
+
length?: number | Join<number>;
|
|
81
|
+
kaiwaritu?: number | string;
|
|
82
|
+
sasie?: number | string;
|
|
83
|
+
mintime?: number;
|
|
84
|
+
maxtime?: number;
|
|
85
|
+
time?: number | string;
|
|
86
|
+
ncode?: string | Join<string>;
|
|
87
|
+
type?: NovelTypeParam;
|
|
88
|
+
buntai?: BuntaiParam | Join<BuntaiParam>;
|
|
89
|
+
stop?: StopParam;
|
|
90
|
+
ispickup?: BooleanNumber;
|
|
91
|
+
lastup?: string;
|
|
92
|
+
opt?: Join<OptionalFields>;
|
|
93
|
+
}
|
|
94
|
+
export interface RankingParams extends ParamsBase {
|
|
95
|
+
rtype: `${string}-${RankingType}`;
|
|
96
|
+
}
|
|
97
|
+
export interface RankingHistoryParams extends ParamsBase {
|
|
98
|
+
ncode: string;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* ユーザー検索パラメータ
|
|
102
|
+
*/
|
|
103
|
+
export interface UserSearchParams extends ParamsBaseWithOrder<UserOrder> {
|
|
104
|
+
/** 単語を指定できます。半角または全角スペースで区切るとAND抽出になります。部分一致でHITします。検索の対象はユーザ名とユーザ名のフリガナです。 */
|
|
105
|
+
word?: string;
|
|
106
|
+
/** 含みたくない単語を指定できます。スペースで区切ることにより含ませない単語を増やせます。部分一致で除外されます。除外の対象はユーザ名とユーザ名のフリガナです。 */
|
|
107
|
+
notword?: string;
|
|
108
|
+
/** ユーザIDで抽出可能。 */
|
|
109
|
+
userid?: number;
|
|
110
|
+
/** 抽出するユーザのユーザ名のフリガナの頭文字を指定できます。頭文字はユーザ名のフリガナをひらがなに変換し、最初の1文字が「ぁ」~「ん」の場合に対象となります。 */
|
|
111
|
+
name1st?: string;
|
|
112
|
+
/** 抽出するユーザの小説投稿数の下限を指定できます。小説投稿件数が指定された数値以上のユーザを抽出します。 */
|
|
113
|
+
minnovel?: number;
|
|
114
|
+
/** 抽出するユーザの小説投稿数の上限を指定できます。小説投稿件数が指定された数値以下のユーザを抽出します。 */
|
|
115
|
+
maxnovel?: number;
|
|
116
|
+
/** 抽出するユーザのレビュー投稿数の下限を指定できます。レビュー投稿件数が指定された数値以上のユーザを抽出します。 */
|
|
117
|
+
minreview?: number;
|
|
118
|
+
/** 抽出するユーザのレビュー投稿数の上限を指定できます。レビュー投稿件数が指定された数値以下のユーザを抽出します。 */
|
|
119
|
+
maxreview?: number;
|
|
120
|
+
}
|
|
121
|
+
export declare const BooleanNumber: {
|
|
122
|
+
readonly True: 1;
|
|
123
|
+
readonly False: 0;
|
|
124
|
+
};
|
|
125
|
+
export declare type BooleanNumber = typeof BooleanNumber[keyof typeof BooleanNumber];
|
|
126
|
+
export declare type SearchResultFieldNames = keyof NarouSearchResult;
|
|
127
|
+
export declare const Fields: {
|
|
128
|
+
readonly title: "t";
|
|
129
|
+
readonly ncode: "n";
|
|
130
|
+
readonly userid: "u";
|
|
131
|
+
readonly writer: "w";
|
|
132
|
+
readonly story: "s";
|
|
133
|
+
readonly biggenre: "bg";
|
|
134
|
+
readonly genre: "g";
|
|
135
|
+
readonly nocgenre: "ng";
|
|
136
|
+
readonly keyword: "k";
|
|
137
|
+
readonly general_firstup: "gf";
|
|
138
|
+
readonly general_lastup: "gl";
|
|
139
|
+
readonly noveltype: "nt";
|
|
140
|
+
readonly end: "e";
|
|
141
|
+
readonly general_all_no: "ga";
|
|
142
|
+
readonly length: "l";
|
|
143
|
+
readonly time: "ti";
|
|
144
|
+
readonly isstop: "i";
|
|
145
|
+
readonly isr15: "isr";
|
|
146
|
+
readonly isbl: "ibl";
|
|
147
|
+
readonly isgl: "igl";
|
|
148
|
+
readonly iszankoku: "izk";
|
|
149
|
+
readonly istensei: "its";
|
|
150
|
+
readonly istenni: "iti";
|
|
151
|
+
readonly pc_or_k: "p";
|
|
152
|
+
readonly global_point: "gp";
|
|
153
|
+
readonly daily_point: "dp";
|
|
154
|
+
readonly weekly_point: "wp";
|
|
155
|
+
readonly monthly_point: "mp";
|
|
156
|
+
readonly quarter_point: "qp";
|
|
157
|
+
readonly yearly_point: "yp";
|
|
158
|
+
readonly fav_novel_cnt: "f";
|
|
159
|
+
readonly impression_cnt: "imp";
|
|
160
|
+
readonly review_cnt: "r";
|
|
161
|
+
readonly all_point: "a";
|
|
162
|
+
readonly all_hyoka_cnt: "ah";
|
|
163
|
+
readonly sasie_cnt: "sa";
|
|
164
|
+
readonly kaiwaritu: "ka";
|
|
165
|
+
readonly novelupdated_at: "nu";
|
|
166
|
+
readonly updated_at: "ua";
|
|
167
|
+
};
|
|
168
|
+
export declare type Fields = typeof Fields[keyof Omit<NarouSearchResult, "novel_type" | "weekly_unique" | "nocgenre">];
|
|
169
|
+
export declare const R18Fields: {
|
|
170
|
+
readonly title: "t";
|
|
171
|
+
readonly ncode: "n";
|
|
172
|
+
readonly userid: "u";
|
|
173
|
+
readonly writer: "w";
|
|
174
|
+
readonly story: "s";
|
|
175
|
+
readonly nocgenre: "ng";
|
|
176
|
+
readonly keyword: "k";
|
|
177
|
+
readonly general_firstup: "gf";
|
|
178
|
+
readonly general_lastup: "gl";
|
|
179
|
+
readonly noveltype: "nt";
|
|
180
|
+
readonly end: "e";
|
|
181
|
+
readonly general_all_no: "ga";
|
|
182
|
+
readonly length: "l";
|
|
183
|
+
readonly time: "ti";
|
|
184
|
+
readonly isstop: "i";
|
|
185
|
+
readonly isr15: "isr";
|
|
186
|
+
readonly isbl: "ibl";
|
|
187
|
+
readonly isgl: "igl";
|
|
188
|
+
readonly iszankoku: "izk";
|
|
189
|
+
readonly istensei: "its";
|
|
190
|
+
readonly istenni: "iti";
|
|
191
|
+
readonly pc_or_k: "p";
|
|
192
|
+
readonly global_point: "gp";
|
|
193
|
+
readonly daily_point: "dp";
|
|
194
|
+
readonly weekly_point: "wp";
|
|
195
|
+
readonly monthly_point: "mp";
|
|
196
|
+
readonly quarter_point: "qp";
|
|
197
|
+
readonly yearly_point: "yp";
|
|
198
|
+
readonly fav_novel_cnt: "f";
|
|
199
|
+
readonly impression_cnt: "imp";
|
|
200
|
+
readonly review_cnt: "r";
|
|
201
|
+
readonly all_point: "a";
|
|
202
|
+
readonly all_hyoka_cnt: "ah";
|
|
203
|
+
readonly sasie_cnt: "sa";
|
|
204
|
+
readonly kaiwaritu: "ka";
|
|
205
|
+
readonly novelupdated_at: "nu";
|
|
206
|
+
readonly updated_at: "ua";
|
|
207
|
+
};
|
|
208
|
+
export declare type R18Fields = typeof R18Fields[keyof Omit<NarouSearchResult, "novel_type" | "weekly_unique" | "biggenre" | "genre">];
|
|
209
|
+
export declare const UserFields: {
|
|
210
|
+
readonly userid: "u";
|
|
211
|
+
readonly name: "n";
|
|
212
|
+
readonly yomikata: "y";
|
|
213
|
+
readonly name1st: "1";
|
|
214
|
+
readonly novel_cnt: "nc";
|
|
215
|
+
readonly review_cnt: "rc";
|
|
216
|
+
readonly novel_length: "nl";
|
|
217
|
+
readonly sum_global_point: "sg";
|
|
218
|
+
};
|
|
219
|
+
export declare type UserFields = typeof UserFields[keyof UserSearchResult];
|
|
220
|
+
export declare const OptionalFields: {
|
|
221
|
+
readonly weekly_unique: "weekly";
|
|
222
|
+
};
|
|
223
|
+
export declare type OptionalFields = typeof OptionalFields[keyof Pick<NarouSearchResult, "weekly_unique">];
|
|
224
|
+
export declare const Order: {
|
|
225
|
+
readonly FavoriteNovelCount: "favnovelcnt";
|
|
226
|
+
readonly ReviewCount: "favnovelcnt";
|
|
227
|
+
readonly HyokaDesc: "hyoka";
|
|
228
|
+
readonly HyokaAsc: "hyokaasc";
|
|
229
|
+
readonly ImpressionCount: "impressioncnt";
|
|
230
|
+
readonly HyokaCountDesc: "hyokacnt";
|
|
231
|
+
readonly HyokaCountAsc: "hyokacntasc";
|
|
232
|
+
readonly Weekly: "weekly";
|
|
233
|
+
readonly LengthDesc: "lengthdesc";
|
|
234
|
+
readonly LengthAsc: "lengthasc";
|
|
235
|
+
readonly NCodeDesc: "ncodedesc";
|
|
236
|
+
readonly New: "new";
|
|
237
|
+
readonly Old: "old";
|
|
238
|
+
readonly DailyPoint: "dailypoint";
|
|
239
|
+
readonly WeeklyPoint: "weeklypoint";
|
|
240
|
+
readonly MonthlyPoint: "monthlypoint";
|
|
241
|
+
readonly QuarterPoint: "quarterpoint";
|
|
242
|
+
readonly YearlyPoint: "yearlypoint";
|
|
243
|
+
};
|
|
244
|
+
export declare type Order = typeof Order[keyof typeof Order];
|
|
245
|
+
export declare const R18Site: {
|
|
246
|
+
readonly Nocturne: 1;
|
|
247
|
+
readonly MoonLight: 2;
|
|
248
|
+
readonly MoonLightBL: 3;
|
|
249
|
+
readonly Midnight: 4;
|
|
250
|
+
};
|
|
251
|
+
export declare type R18Site = typeof R18Site[keyof typeof R18Site];
|
|
252
|
+
export declare const R18SiteNotation: {
|
|
253
|
+
readonly [K in R18Site]: string;
|
|
254
|
+
};
|
|
255
|
+
export declare const BigGenre: {
|
|
256
|
+
readonly Renai: 1;
|
|
257
|
+
readonly Fantasy: 2;
|
|
258
|
+
readonly Bungei: 3;
|
|
259
|
+
readonly Sf: 4;
|
|
260
|
+
readonly Sonota: 99;
|
|
261
|
+
readonly NonGenre: 98;
|
|
262
|
+
};
|
|
263
|
+
export declare type BigGenre = typeof BigGenre[keyof typeof BigGenre];
|
|
264
|
+
export declare const BigGenreNotation: {
|
|
265
|
+
readonly [K in BigGenre]: string;
|
|
266
|
+
};
|
|
267
|
+
export declare const Genre: {
|
|
268
|
+
readonly RenaiIsekai: 101;
|
|
269
|
+
readonly RenaiGenjitsusekai: 102;
|
|
270
|
+
readonly FantasyHigh: 201;
|
|
271
|
+
readonly FantasyLow: 202;
|
|
272
|
+
readonly BungeiJyunbungei: 301;
|
|
273
|
+
readonly BungeiHumanDrama: 302;
|
|
274
|
+
readonly BungeiHistory: 303;
|
|
275
|
+
readonly BungeiSuiri: 304;
|
|
276
|
+
readonly BungeiHorror: 305;
|
|
277
|
+
readonly BungeiAction: 306;
|
|
278
|
+
readonly BungeiComedy: 307;
|
|
279
|
+
readonly SfVrgame: 401;
|
|
280
|
+
readonly SfSpace: 402;
|
|
281
|
+
readonly SfKuusoukagaku: 403;
|
|
282
|
+
readonly SfPanic: 404;
|
|
283
|
+
readonly SonotaDouwa: 9901;
|
|
284
|
+
readonly SonotaShi: 9902;
|
|
285
|
+
readonly SonotaEssei: 9903;
|
|
286
|
+
readonly SonotaReplay: 9904;
|
|
287
|
+
readonly SonotaSonota: 9999;
|
|
288
|
+
readonly NonGenre: 9801;
|
|
289
|
+
};
|
|
290
|
+
export declare type Genre = typeof Genre[keyof typeof Genre];
|
|
291
|
+
export declare const GenreNotation: {
|
|
292
|
+
readonly [K in Genre]: string;
|
|
293
|
+
};
|
|
294
|
+
export declare const BuntaiParam: {
|
|
295
|
+
readonly NoJisageKaigyouOoi: 1;
|
|
296
|
+
readonly NoJisageKaigyoHutsuu: 2;
|
|
297
|
+
readonly JisageKaigyoOoi: 4;
|
|
298
|
+
readonly JisageKaigyoHutsuu: 6;
|
|
299
|
+
};
|
|
300
|
+
export declare type BuntaiParam = typeof BuntaiParam[keyof typeof BuntaiParam];
|
|
301
|
+
export declare const StopParam: {
|
|
302
|
+
readonly NoStopping: 1;
|
|
303
|
+
readonly Stopping: 2;
|
|
304
|
+
};
|
|
305
|
+
export declare type StopParam = typeof StopParam[keyof typeof StopParam];
|
|
306
|
+
export declare const NovelTypeParam: {
|
|
307
|
+
readonly Short: "t";
|
|
308
|
+
readonly RensaiNow: "r";
|
|
309
|
+
readonly RensaiEnd: "er";
|
|
310
|
+
readonly Rensai: "re";
|
|
311
|
+
readonly ShortAndRensai: "ter";
|
|
312
|
+
};
|
|
313
|
+
export declare type NovelTypeParam = typeof NovelTypeParam[keyof typeof NovelTypeParam];
|
|
314
|
+
export declare const UserOrder: {
|
|
315
|
+
readonly New: "new";
|
|
316
|
+
readonly NovelCount: "novelcnt";
|
|
317
|
+
readonly ReviewCount: "reviewcnt";
|
|
318
|
+
readonly NovelLength: "novellength";
|
|
319
|
+
readonly SumGlobalPoint: "sumglobalpoint";
|
|
320
|
+
readonly Old: "old";
|
|
321
|
+
};
|
|
322
|
+
export declare type UserOrder = typeof UserOrder[keyof typeof UserOrder];
|
|
323
|
+
export declare type GzipLevel = 0 | 1 | 2 | 3 | 4 | 5;
|
|
324
324
|
//# sourceMappingURL=params.d.ts.map
|