narou 0.8.0 → 0.9.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.
Files changed (130) hide show
  1. package/dist/chunk-3UZPHZZH.js +43 -0
  2. package/dist/chunk-46WN4HIZ.js +25 -0
  3. package/dist/chunk-55V5YY6H.js +71 -0
  4. package/dist/chunk-5OZA6DNS.js +14 -0
  5. package/dist/chunk-67BSHN66.js +82 -0
  6. package/dist/chunk-6SHYBHWX.js +0 -0
  7. package/dist/chunk-AIRK7Y7G.js +0 -0
  8. package/dist/chunk-C54MSVRN.js +3064 -0
  9. package/dist/chunk-EQL67JCA.js +38 -0
  10. package/dist/chunk-IKR7OZGM.js +49 -0
  11. package/dist/chunk-IVQKYEQQ.js +371 -0
  12. package/dist/chunk-JFVJBECE.js +36 -0
  13. package/dist/chunk-JS5XPNGB.js +93 -0
  14. package/dist/chunk-OVGZ6RWT.js +23 -0
  15. package/dist/chunk-U3H4E2XZ.js +396 -0
  16. package/dist/index.browser.cjs +1221 -0
  17. package/dist/index.browser.d.cts +40 -0
  18. package/dist/index.browser.d.ts +40 -36
  19. package/dist/index.browser.js +127 -83
  20. package/dist/index.cjs +4305 -0
  21. package/dist/index.common.cjs +1032 -0
  22. package/dist/index.common.d.cts +6 -0
  23. package/dist/index.common.d.ts +6 -15
  24. package/dist/index.common.js +74 -35
  25. package/dist/index.d.cts +47 -0
  26. package/dist/index.d.ts +47 -43
  27. package/dist/index.js +132 -91
  28. package/dist/narou-61329eea.d.ts +298 -0
  29. package/dist/narou-98ededc8.d.ts +298 -0
  30. package/dist/narou-fetch.cjs +3190 -0
  31. package/dist/narou-fetch.d.cts +16 -0
  32. package/dist/narou-fetch.d.ts +16 -13
  33. package/dist/narou-fetch.js +10 -46
  34. package/dist/narou-jsonp.cjs +158 -0
  35. package/dist/narou-jsonp.d.cts +13 -0
  36. package/dist/narou-jsonp.d.ts +13 -10
  37. package/dist/narou-jsonp.js +10 -24
  38. package/dist/narou-ranking-results.cjs +18 -0
  39. package/dist/narou-ranking-results.d.cts +4 -0
  40. package/dist/narou-ranking-results.d.ts +4 -10
  41. package/dist/narou-ranking-results.js +1 -3
  42. package/dist/narou-search-results-6727b1ce.d.ts +716 -0
  43. package/dist/narou-search-results-b7c10db0.d.ts +716 -0
  44. package/dist/narou-search-results.cjs +61 -0
  45. package/dist/narou-search-results.d.cts +2 -0
  46. package/dist/narou-search-results.d.ts +2 -131
  47. package/dist/narou-search-results.js +11 -63
  48. package/dist/narou.cjs +108 -0
  49. package/dist/narou.d.cts +4 -0
  50. package/dist/narou.d.ts +4 -26
  51. package/dist/narou.js +8 -30
  52. package/dist/params.cjs +436 -0
  53. package/dist/params.d.cts +2 -0
  54. package/dist/params.d.ts +2 -324
  55. package/dist/params.js +39 -247
  56. package/dist/ranking-history.cjs +38 -0
  57. package/dist/ranking-history.d.cts +17 -0
  58. package/dist/ranking-history.d.ts +17 -14
  59. package/dist/ranking-history.js +7 -14
  60. package/dist/ranking.cjs +659 -0
  61. package/dist/ranking.d.cts +47 -0
  62. package/dist/ranking.d.ts +47 -46
  63. package/dist/ranking.js +9 -87
  64. package/dist/search-builder-r18.cjs +473 -0
  65. package/dist/search-builder-r18.d.cts +32 -0
  66. package/dist/search-builder-r18.d.ts +32 -29
  67. package/dist/search-builder-r18.js +9 -45
  68. package/dist/search-builder.cjs +510 -0
  69. package/dist/search-builder.d.cts +4 -0
  70. package/dist/search-builder.d.ts +4 -220
  71. package/dist/search-builder.js +12 -381
  72. package/dist/user-search.cjs +300 -0
  73. package/dist/user-search.d.cts +66 -0
  74. package/dist/user-search.d.ts +66 -63
  75. package/dist/user-search.js +9 -94
  76. package/dist/util/jsonp.cjs +62 -0
  77. package/dist/util/jsonp.d.cts +13 -0
  78. package/dist/util/jsonp.d.ts +13 -17
  79. package/dist/util/jsonp.js +7 -46
  80. package/dist/util/type.cjs +18 -0
  81. package/dist/util/type.d.cts +4 -0
  82. package/dist/util/type.d.ts +4 -4
  83. package/dist/util/type.js +0 -3
  84. package/dist/util/unzipp.cjs +47 -0
  85. package/dist/util/unzipp.d.cts +3 -0
  86. package/dist/util/unzipp.d.ts +3 -4
  87. package/dist/util/unzipp.js +7 -12
  88. package/package.json +35 -33
  89. package/src/narou-fetch.ts +6 -16
  90. package/src/narou-jsonp.ts +0 -2
  91. package/src/narou-ranking-results.ts +10 -0
  92. package/src/narou-search-results.ts +118 -63
  93. package/src/narou.ts +42 -3
  94. package/src/params.ts +220 -61
  95. package/src/user-search.ts +109 -109
  96. package/src/util/unzipp.ts +13 -3
  97. package/dist/index.browser.d.ts.map +0 -1
  98. package/dist/index.browser.js.map +0 -1
  99. package/dist/index.common.d.ts.map +0 -1
  100. package/dist/index.common.js.map +0 -1
  101. package/dist/index.d.ts.map +0 -1
  102. package/dist/index.js.map +0 -1
  103. package/dist/narou-fetch.d.ts.map +0 -1
  104. package/dist/narou-fetch.js.map +0 -1
  105. package/dist/narou-jsonp.d.ts.map +0 -1
  106. package/dist/narou-jsonp.js.map +0 -1
  107. package/dist/narou-ranking-results.d.ts.map +0 -1
  108. package/dist/narou-ranking-results.js.map +0 -1
  109. package/dist/narou-search-results.d.ts.map +0 -1
  110. package/dist/narou-search-results.js.map +0 -1
  111. package/dist/narou.d.ts.map +0 -1
  112. package/dist/narou.js.map +0 -1
  113. package/dist/params.d.ts.map +0 -1
  114. package/dist/params.js.map +0 -1
  115. package/dist/ranking-history.d.ts.map +0 -1
  116. package/dist/ranking-history.js.map +0 -1
  117. package/dist/ranking.d.ts.map +0 -1
  118. package/dist/ranking.js.map +0 -1
  119. package/dist/search-builder-r18.d.ts.map +0 -1
  120. package/dist/search-builder-r18.js.map +0 -1
  121. package/dist/search-builder.d.ts.map +0 -1
  122. package/dist/search-builder.js.map +0 -1
  123. package/dist/user-search.d.ts.map +0 -1
  124. package/dist/user-search.js.map +0 -1
  125. package/dist/util/jsonp.d.ts.map +0 -1
  126. package/dist/util/jsonp.js.map +0 -1
  127. package/dist/util/type.d.ts.map +0 -1
  128. package/dist/util/type.js.map +0 -1
  129. package/dist/util/unzipp.d.ts.map +0 -1
  130. package/dist/util/unzipp.js.map +0 -1
@@ -1,220 +1,4 @@
1
- import NarouNovel from "./narou";
2
- import { NarouSearchResult, SearchResultFields, SearchResultOptionalFields } from "./narou-search-results";
3
- import NarouSearchResults from "./narou-search-results";
4
- import { BigGenre, SearchResultFieldNames, Genre, SearchParams, Fields, Order, BuntaiParam, NovelTypeParam, GzipLevel, OptionalFields, ParamsBaseWithOrder } from "./params";
5
- import { Join } from "./util/type";
6
- export declare type DefaultSearchResultFields = keyof Omit<NarouSearchResult, "weekly_unique" | "noveltype" | "nocgenre" | "xid">;
7
- export declare abstract class SearchBuilderBase<TParams extends ParamsBaseWithOrder<TOrder>, TOrder extends string> {
8
- protected params: TParams;
9
- protected api: NarouNovel;
10
- /**
11
- * constructor
12
- * @private
13
- */
14
- constructor(params: TParams, api: NarouNovel);
15
- protected static distinct<T>(array: readonly T[]): T[];
16
- protected static array2string<T extends string | number>(n: T | readonly T[]): Join<T>;
17
- /**
18
- *
19
- * @return {SearchBuilder} this
20
- */
21
- limit(num: number): this;
22
- /**
23
- *
24
- * @return {SearchBuilder} this
25
- */
26
- start(num: number): this;
27
- /**
28
- *
29
- * @return {SearchBuilder} this
30
- */
31
- page(no: number, count?: number): this;
32
- /**
33
- * 出力順序を指定する。指定しない場合は新着順となります。
34
- * old 古い順
35
- * @param {TOrder} order 出力順序
36
- * @return {SearchBuilder} this
37
- */
38
- order(order: TOrder): this;
39
- /**
40
- * gzip圧縮する。
41
- *
42
- * 転送量上限を減らすためにも推奨
43
- * @param {GzipLevel} level gzip圧縮レベル(1~5)
44
- * @return {SearchBuilder} this
45
- */
46
- gzip(level: GzipLevel): this;
47
- /**
48
- * クエリパラメータをセットする
49
- * @private
50
- * @return {SearchBuilder} this
51
- */
52
- protected set(obj: TParams): this;
53
- /**
54
- * クエリパラメータを削除する
55
- */
56
- protected unset(key: keyof TParams): this;
57
- }
58
- export declare abstract class NovelSearchBuilderBase<T extends SearchResultFieldNames> extends SearchBuilderBase<SearchParams, Order> {
59
- /**
60
- * a
61
- * @return {SearchBuilder} this
62
- */
63
- word(word: string): this;
64
- /**
65
- *
66
- * @return {SearchBuilder} this
67
- */
68
- notWord(word: string): this;
69
- /**
70
- *
71
- * @return {SearchBuilder} this
72
- */
73
- byTitle(bool?: boolean): this;
74
- /**
75
- *
76
- * @return {SearchBuilder} this
77
- */
78
- byOutline(bool?: boolean): this;
79
- /**
80
- *
81
- * @return {SearchBuilder} this
82
- */
83
- byKeyword(bool?: boolean): this;
84
- /**
85
- *
86
- * @return {SearchBuilder} this
87
- */
88
- byAuthor(bool?: boolean): this;
89
- /**
90
- *
91
- * @return {SearchBuilder} this
92
- */
93
- isBL(bool?: boolean): this;
94
- /**
95
- *
96
- * @return {SearchBuilder} this
97
- */
98
- isGL(bool?: boolean): this;
99
- /**
100
- *
101
- * @return {SearchBuilder} this
102
- */
103
- isZankoku(bool?: boolean): this;
104
- /**
105
- *
106
- * @return {SearchBuilder} this
107
- */
108
- isTensei(bool?: boolean): this;
109
- /**
110
- *
111
- * @return {SearchBuilder} this
112
- */
113
- isTenni(bool?: boolean): this;
114
- /**
115
- *
116
- * @return {SearchBuilder} this
117
- */
118
- isTT(): this;
119
- /**
120
- *
121
- * @return {SearchBuilder} this
122
- */
123
- length(length: number | readonly number[]): this;
124
- /**
125
- *
126
- * @return {SearchBuilder} this
127
- */
128
- kaiwaritu(num: number): this;
129
- kaiwaritu(min: number, max: number): this;
130
- /**
131
- *
132
- * @return {SearchBuilder} this
133
- */
134
- sasie(num: number | readonly number[]): this;
135
- /**
136
- *
137
- * @return {SearchBuilder} this
138
- */
139
- time(num: number | readonly number[]): this;
140
- /**
141
- *
142
- * @return {SearchBuilder} this
143
- */
144
- ncode(ncodes: string | readonly string[]): this;
145
- /**
146
- *
147
- * @return {SearchBuilder} this
148
- */
149
- type(type: NovelTypeParam): this;
150
- /**
151
- *
152
- * @return {SearchBuilder} this
153
- */
154
- buntai(buntai: BuntaiParam | readonly BuntaiParam[]): this;
155
- /**
156
- *
157
- * @return {SearchBuilder} this
158
- */
159
- isStop(bool?: boolean): this;
160
- /**
161
- *
162
- * @return {SearchBuilder} this
163
- */
164
- isPickup(bool?: boolean): this;
165
- /**
166
- *
167
- * @return {SearchBuilder} this
168
- */
169
- lastUpdate(date: string): this;
170
- lastUpdate(from: number, to: number): this;
171
- lastUpdate(from: Date, to: Date): this;
172
- /**
173
- * なろう小説APIへの検索リクエストを実行する
174
- * @returns {Promise<NarouSearchResults>} 検索結果
175
- */
176
- execute(): Promise<NarouSearchResults<NarouSearchResult, T>>;
177
- }
178
- /**
179
- * 検索ヘルパー
180
- * @class SearchBuilder
181
- */
182
- export default class SearchBuilder<T extends keyof NarouSearchResult = DefaultSearchResultFields, TOpt extends keyof NarouSearchResult = never> extends NovelSearchBuilderBase<T | TOpt> {
183
- /**
184
- *
185
- * @return {SearchBuilder} this
186
- */
187
- bigGenre(genre: BigGenre | readonly BigGenre[]): this;
188
- /**
189
- *
190
- * @return {SearchBuilder} this
191
- */
192
- notBigGenre(genre: BigGenre | readonly BigGenre[]): this;
193
- /**
194
- *
195
- * @return {SearchBuilder} this
196
- */
197
- genre(genre: Genre | readonly Genre[]): this;
198
- /**
199
- *
200
- * @return {SearchBuilder} this
201
- */
202
- notGenre(genre: Genre | readonly Genre[]): this;
203
- /**
204
- *
205
- * @return {SearchBuilder} this
206
- */
207
- userId(ids: number | readonly number[]): this;
208
- /**
209
- *
210
- * @return {SearchBuilder} this
211
- */
212
- isR15(bool?: boolean): this;
213
- /**
214
- *
215
- * @return {SearchBuilder} this
216
- */
217
- fields<TFields extends Fields>(fields: TFields | readonly TFields[]): SearchBuilder<SearchResultFields<TFields>, TOpt>;
218
- opt<TFields extends OptionalFields>(option: TFields | readonly TFields[]): SearchBuilder<T, SearchResultOptionalFields<TFields>>;
219
- }
220
- //# sourceMappingURL=search-builder.d.ts.map
1
+ export { D as DefaultSearchResultFields, d as NovelSearchBuilderBase, c as SearchBuilderBase, S as default } from './narou-61329eea.js';
2
+ import './narou-search-results-b7c10db0.js';
3
+ import './util/type.js';
4
+ import './ranking-history.js';
@@ -1,381 +1,12 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NovelSearchBuilderBase = exports.SearchBuilderBase = void 0;
4
- const params_1 = require("./params");
5
- class SearchBuilderBase {
6
- /**
7
- * constructor
8
- * @private
9
- */
10
- constructor(params = {}, api) {
11
- this.params = params;
12
- this.api = api;
13
- }
14
- static distinct(array) {
15
- return Array.from(new Set(array));
16
- }
17
- static array2string(n) {
18
- if (Array.isArray(n)) {
19
- return this.distinct(n).join("-");
20
- }
21
- else {
22
- return n.toString();
23
- }
24
- }
25
- /**
26
- *
27
- * @return {SearchBuilder} this
28
- */
29
- limit(num) {
30
- this.set({ lim: num });
31
- return this;
32
- }
33
- /**
34
- *
35
- * @return {SearchBuilder} this
36
- */
37
- start(num) {
38
- this.set({ st: num });
39
- return this;
40
- }
41
- /**
42
- *
43
- * @return {SearchBuilder} this
44
- */
45
- page(no, count = 20) {
46
- return this.limit(count).start(no * count);
47
- }
48
- /**
49
- * 出力順序を指定する。指定しない場合は新着順となります。
50
- * old 古い順
51
- * @param {TOrder} order 出力順序
52
- * @return {SearchBuilder} this
53
- */
54
- order(order) {
55
- this.set({ order: order });
56
- return this;
57
- }
58
- /**
59
- * gzip圧縮する。
60
- *
61
- * 転送量上限を減らすためにも推奨
62
- * @param {GzipLevel} level gzip圧縮レベル(1~5)
63
- * @return {SearchBuilder} this
64
- */
65
- gzip(level) {
66
- this.set({ gzip: level });
67
- return this;
68
- }
69
- /**
70
- * クエリパラメータをセットする
71
- * @private
72
- * @return {SearchBuilder} this
73
- */
74
- set(obj) {
75
- this.params = { ...this.params, ...obj };
76
- return this;
77
- }
78
- /**
79
- * クエリパラメータを削除する
80
- */
81
- unset(key) {
82
- delete this.params[key];
83
- return this;
84
- }
85
- }
86
- exports.SearchBuilderBase = SearchBuilderBase;
87
- class NovelSearchBuilderBase extends SearchBuilderBase {
88
- /**
89
- * a
90
- * @return {SearchBuilder} this
91
- */
92
- word(word) {
93
- this.set({ word: word });
94
- return this;
95
- }
96
- /**
97
- *
98
- * @return {SearchBuilder} this
99
- */
100
- notWord(word) {
101
- this.set({ notword: word });
102
- return this;
103
- }
104
- /**
105
- *
106
- * @return {SearchBuilder} this
107
- */
108
- byTitle(bool = true) {
109
- this.set({ title: bool ? params_1.BooleanNumber.True : params_1.BooleanNumber.False });
110
- return this;
111
- }
112
- /**
113
- *
114
- * @return {SearchBuilder} this
115
- */
116
- byOutline(bool = true) {
117
- this.set({ ex: bool ? params_1.BooleanNumber.True : params_1.BooleanNumber.False });
118
- return this;
119
- }
120
- /**
121
- *
122
- * @return {SearchBuilder} this
123
- */
124
- byKeyword(bool = true) {
125
- this.set({ keyword: bool ? params_1.BooleanNumber.True : params_1.BooleanNumber.False });
126
- return this;
127
- }
128
- /**
129
- *
130
- * @return {SearchBuilder} this
131
- */
132
- byAuthor(bool = true) {
133
- this.set({ wname: bool ? params_1.BooleanNumber.True : params_1.BooleanNumber.False });
134
- return this;
135
- }
136
- /**
137
- *
138
- * @return {SearchBuilder} this
139
- */
140
- isBL(bool = true) {
141
- if (bool) {
142
- this.set({ isbl: params_1.BooleanNumber.True });
143
- }
144
- else {
145
- this.set({ notbl: params_1.BooleanNumber.True });
146
- }
147
- return this;
148
- }
149
- /**
150
- *
151
- * @return {SearchBuilder} this
152
- */
153
- isGL(bool = true) {
154
- if (bool) {
155
- this.set({ isgl: params_1.BooleanNumber.True });
156
- }
157
- else {
158
- this.set({ notgl: params_1.BooleanNumber.True });
159
- }
160
- return this;
161
- }
162
- /**
163
- *
164
- * @return {SearchBuilder} this
165
- */
166
- isZankoku(bool = true) {
167
- if (bool) {
168
- this.set({ iszankoku: params_1.BooleanNumber.True });
169
- }
170
- else {
171
- this.set({ notzankoku: params_1.BooleanNumber.True });
172
- }
173
- return this;
174
- }
175
- /**
176
- *
177
- * @return {SearchBuilder} this
178
- */
179
- isTensei(bool = true) {
180
- if (bool) {
181
- this.set({ istensei: params_1.BooleanNumber.True });
182
- }
183
- else {
184
- this.set({ nottensei: params_1.BooleanNumber.True });
185
- }
186
- return this;
187
- }
188
- /**
189
- *
190
- * @return {SearchBuilder} this
191
- */
192
- isTenni(bool = true) {
193
- if (bool) {
194
- this.set({ istenni: params_1.BooleanNumber.True });
195
- }
196
- else {
197
- this.set({ nottenni: params_1.BooleanNumber.True });
198
- }
199
- return this;
200
- }
201
- /**
202
- *
203
- * @return {SearchBuilder} this
204
- */
205
- isTT() {
206
- this.set({ istt: params_1.BooleanNumber.True });
207
- return this;
208
- }
209
- /**
210
- *
211
- * @return {SearchBuilder} this
212
- */
213
- length(length) {
214
- this.set({ length: NovelSearchBuilderBase.array2string(length) });
215
- return this;
216
- }
217
- kaiwaritu(min, max) {
218
- let n;
219
- if (max != null) {
220
- n = `${min}-${max}`;
221
- }
222
- else {
223
- n = min;
224
- }
225
- this.set({ kaiwaritu: n });
226
- return this;
227
- }
228
- /**
229
- *
230
- * @return {SearchBuilder} this
231
- */
232
- sasie(num) {
233
- this.set({ sasie: NovelSearchBuilderBase.array2string(num) });
234
- return this;
235
- }
236
- /**
237
- *
238
- * @return {SearchBuilder} this
239
- */
240
- time(num) {
241
- this.set({ time: NovelSearchBuilderBase.array2string(num) });
242
- return this;
243
- }
244
- /**
245
- *
246
- * @return {SearchBuilder} this
247
- */
248
- ncode(ncodes) {
249
- this.set({ ncode: NovelSearchBuilderBase.array2string(ncodes) });
250
- return this;
251
- }
252
- /**
253
- *
254
- * @return {SearchBuilder} this
255
- */
256
- type(type) {
257
- this.set({ type });
258
- return this;
259
- }
260
- /**
261
- *
262
- * @return {SearchBuilder} this
263
- */
264
- buntai(buntai) {
265
- this.set({ buntai: NovelSearchBuilderBase.array2string(buntai) });
266
- return this;
267
- }
268
- /**
269
- *
270
- * @return {SearchBuilder} this
271
- */
272
- isStop(bool = true) {
273
- this.set({ stop: bool ? params_1.StopParam.Stopping : params_1.StopParam.NoStopping });
274
- return this;
275
- }
276
- /**
277
- *
278
- * @return {SearchBuilder} this
279
- */
280
- isPickup(bool = true) {
281
- this.set({ ispickup: bool ? params_1.BooleanNumber.True : params_1.BooleanNumber.False });
282
- return this;
283
- }
284
- lastUpdate(x, y) {
285
- let date;
286
- if (typeof x == "string") {
287
- date = x;
288
- }
289
- else if (x instanceof Date && y instanceof Date) {
290
- date = `${Math.floor(x.getTime() / 1000)}-${Math.floor(x.getTime() / 1000)}`;
291
- }
292
- else {
293
- date = `${x}-${y}`;
294
- }
295
- this.set({ lastup: date });
296
- return this;
297
- }
298
- /**
299
- * なろう小説APIへの検索リクエストを実行する
300
- * @returns {Promise<NarouSearchResults>} 検索結果
301
- */
302
- execute() {
303
- return this.api.executeNovel(this.params);
304
- }
305
- }
306
- exports.NovelSearchBuilderBase = NovelSearchBuilderBase;
307
- /**
308
- * 検索ヘルパー
309
- * @class SearchBuilder
310
- */
311
- class SearchBuilder extends NovelSearchBuilderBase {
312
- /**
313
- *
314
- * @return {SearchBuilder} this
315
- */
316
- bigGenre(genre) {
317
- this.set({ biggenre: SearchBuilder.array2string(genre) });
318
- return this;
319
- }
320
- /**
321
- *
322
- * @return {SearchBuilder} this
323
- */
324
- notBigGenre(genre) {
325
- this.set({ notbiggenre: SearchBuilder.array2string(genre) });
326
- return this;
327
- }
328
- /**
329
- *
330
- * @return {SearchBuilder} this
331
- */
332
- genre(genre) {
333
- this.set({ genre: SearchBuilder.array2string(genre) });
334
- return this;
335
- }
336
- /**
337
- *
338
- * @return {SearchBuilder} this
339
- */
340
- notGenre(genre) {
341
- this.set({ notgenre: SearchBuilder.array2string(genre) });
342
- return this;
343
- }
344
- /**
345
- *
346
- * @return {SearchBuilder} this
347
- */
348
- userId(ids) {
349
- this.set({ userid: SearchBuilder.array2string(ids) });
350
- return this;
351
- }
352
- /**
353
- *
354
- * @return {SearchBuilder} this
355
- */
356
- isR15(bool = true) {
357
- if (bool) {
358
- this.set({ isr15: 1 });
359
- }
360
- else {
361
- this.set({ notr15: 1 });
362
- }
363
- return this;
364
- }
365
- /**
366
- *
367
- * @return {SearchBuilder} this
368
- */
369
- fields(fields) {
370
- this.set({ of: SearchBuilder.array2string(fields) });
371
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
372
- return this;
373
- }
374
- opt(option) {
375
- this.set({ opt: SearchBuilder.array2string(option) });
376
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
377
- return this;
378
- }
379
- }
380
- exports.default = SearchBuilder;
381
- //# sourceMappingURL=search-builder.js.map
1
+ import {
2
+ NovelSearchBuilderBase,
3
+ SearchBuilder,
4
+ SearchBuilderBase
5
+ } from "./chunk-IVQKYEQQ.js";
6
+ import "./chunk-U3H4E2XZ.js";
7
+ import "./chunk-IKR7OZGM.js";
8
+ export {
9
+ NovelSearchBuilderBase,
10
+ SearchBuilderBase,
11
+ SearchBuilder as default
12
+ };