@webnovel-proxy/schemas 0.6.1 → 0.7.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.d.ts +317 -6
- package/dist/index.js +2 -2
- package/dist/index.js.map +4 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,313 @@
|
|
|
1
1
|
import { Mime as Mime$1 } from 'mime/lite';
|
|
2
2
|
import z from 'zod';
|
|
3
3
|
|
|
4
|
+
declare const _default: {
|
|
5
|
+
readonly abr: "abridger";
|
|
6
|
+
readonly acp: "art copyist";
|
|
7
|
+
readonly act: "actor";
|
|
8
|
+
readonly adi: "art director";
|
|
9
|
+
readonly adp: "adapter";
|
|
10
|
+
readonly aft: "author of afterword, colophon, etc.";
|
|
11
|
+
readonly anc: "announcer";
|
|
12
|
+
readonly anl: "analyst";
|
|
13
|
+
readonly anm: "animator";
|
|
14
|
+
readonly ann: "annotator";
|
|
15
|
+
readonly ant: "bibliographic antecedent";
|
|
16
|
+
readonly ape: "appellee";
|
|
17
|
+
readonly apl: "appellant";
|
|
18
|
+
readonly app: "applicant";
|
|
19
|
+
readonly aqt: "author in quotations or text abstracts";
|
|
20
|
+
readonly arc: "architect";
|
|
21
|
+
readonly ard: "artistic director";
|
|
22
|
+
readonly arr: "arranger";
|
|
23
|
+
readonly art: "artist";
|
|
24
|
+
readonly asg: "assignee";
|
|
25
|
+
readonly asn: "associated name";
|
|
26
|
+
readonly ato: "autographer";
|
|
27
|
+
readonly att: "attributed name";
|
|
28
|
+
readonly auc: "auctioneer";
|
|
29
|
+
readonly aud: "author of dialog";
|
|
30
|
+
readonly aue: "audio engineer";
|
|
31
|
+
readonly aui: "author of introduction, etc.";
|
|
32
|
+
readonly aup: "audio producer";
|
|
33
|
+
readonly aus: "screenwriter";
|
|
34
|
+
readonly aut: "author";
|
|
35
|
+
readonly bdd: "binding designer";
|
|
36
|
+
readonly bjd: "bookjacket designer";
|
|
37
|
+
readonly bka: "book artist";
|
|
38
|
+
readonly bkd: "book designer";
|
|
39
|
+
readonly bkp: "book producer";
|
|
40
|
+
readonly blw: "blurb writer";
|
|
41
|
+
readonly bnd: "binder";
|
|
42
|
+
readonly bpd: "bookplate designer";
|
|
43
|
+
readonly brd: "broadcaster";
|
|
44
|
+
readonly brl: "braille embosser";
|
|
45
|
+
readonly bsl: "bookseller";
|
|
46
|
+
readonly cad: "casting director";
|
|
47
|
+
readonly cas: "caster";
|
|
48
|
+
readonly ccp: "conceptor";
|
|
49
|
+
readonly chr: "choreographer";
|
|
50
|
+
readonly cli: "client";
|
|
51
|
+
readonly cll: "calligrapher";
|
|
52
|
+
readonly clr: "colorist";
|
|
53
|
+
readonly clt: "collotyper";
|
|
54
|
+
readonly cmm: "commentator";
|
|
55
|
+
readonly cmp: "composer";
|
|
56
|
+
readonly cmt: "compositor";
|
|
57
|
+
readonly cnd: "conductor";
|
|
58
|
+
readonly cng: "cinematographer";
|
|
59
|
+
readonly cns: "censor";
|
|
60
|
+
readonly coe: "contestant-appellee";
|
|
61
|
+
readonly col: "collector";
|
|
62
|
+
readonly com: "compiler";
|
|
63
|
+
readonly con: "conservator";
|
|
64
|
+
readonly cop: "camera operator";
|
|
65
|
+
readonly cor: "collection registrar";
|
|
66
|
+
readonly cos: "contestant";
|
|
67
|
+
readonly cot: "contestant-appellant";
|
|
68
|
+
readonly cou: "court governed";
|
|
69
|
+
readonly cov: "cover designer";
|
|
70
|
+
readonly cpc: "copyright claimant";
|
|
71
|
+
readonly cpe: "complainant-appellee";
|
|
72
|
+
readonly cph: "copyright holder";
|
|
73
|
+
readonly cpl: "complainant";
|
|
74
|
+
readonly cpt: "complainant-appellant";
|
|
75
|
+
readonly cre: "creator";
|
|
76
|
+
readonly crp: "correspondent";
|
|
77
|
+
readonly crr: "corrector";
|
|
78
|
+
readonly crt: "court reporter";
|
|
79
|
+
readonly csl: "consultant";
|
|
80
|
+
readonly csp: "consultant to a project";
|
|
81
|
+
readonly cst: "costume designer";
|
|
82
|
+
readonly ctb: "contributor";
|
|
83
|
+
readonly cte: "contestee-appellee";
|
|
84
|
+
readonly ctg: "cartographer";
|
|
85
|
+
readonly ctr: "contractor";
|
|
86
|
+
readonly cts: "contestee";
|
|
87
|
+
readonly ctt: "contestee-appellant";
|
|
88
|
+
readonly cur: "curator";
|
|
89
|
+
readonly cwt: "commentator for written text";
|
|
90
|
+
readonly dbd: "dubbing director";
|
|
91
|
+
readonly dbp: "distribution place";
|
|
92
|
+
readonly dfd: "defendant";
|
|
93
|
+
readonly dfe: "defendant-appellee";
|
|
94
|
+
readonly dft: "defendant-appellant";
|
|
95
|
+
readonly dgc: "degree committee member";
|
|
96
|
+
readonly dgg: "degree granting institution";
|
|
97
|
+
readonly dgs: "degree supervisor";
|
|
98
|
+
readonly dis: "dissertant";
|
|
99
|
+
readonly djo: "dj";
|
|
100
|
+
readonly dln: "delineator";
|
|
101
|
+
readonly dnc: "dancer";
|
|
102
|
+
readonly dnr: "donor";
|
|
103
|
+
readonly dpc: "depicted";
|
|
104
|
+
readonly dpt: "depositor";
|
|
105
|
+
readonly drm: "draftsman";
|
|
106
|
+
readonly drt: "director";
|
|
107
|
+
readonly dsr: "designer";
|
|
108
|
+
readonly dst: "distributor";
|
|
109
|
+
readonly dtc: "data contributor";
|
|
110
|
+
readonly dte: "dedicatee";
|
|
111
|
+
readonly dtm: "data manager";
|
|
112
|
+
readonly dto: "dedicator";
|
|
113
|
+
readonly dub: "dubious author";
|
|
114
|
+
readonly edc: "editor of compilation";
|
|
115
|
+
readonly edd: "editorial director";
|
|
116
|
+
readonly edm: "editor of moving image work";
|
|
117
|
+
readonly edt: "editor";
|
|
118
|
+
readonly egr: "engraver";
|
|
119
|
+
readonly elg: "electrician";
|
|
120
|
+
readonly elt: "electrotyper";
|
|
121
|
+
readonly eng: "engineer";
|
|
122
|
+
readonly enj: "enacting jurisdiction";
|
|
123
|
+
readonly etr: "etcher";
|
|
124
|
+
readonly evp: "event place";
|
|
125
|
+
readonly exp: "expert";
|
|
126
|
+
readonly fac: "facsimilist";
|
|
127
|
+
readonly fds: "film distributor";
|
|
128
|
+
readonly fld: "field director";
|
|
129
|
+
readonly flm: "film editor";
|
|
130
|
+
readonly fmd: "film director";
|
|
131
|
+
readonly fmk: "filmmaker";
|
|
132
|
+
readonly fmo: "former owner";
|
|
133
|
+
readonly fmp: "film producer";
|
|
134
|
+
readonly fnd: "funder";
|
|
135
|
+
readonly fon: "founder";
|
|
136
|
+
readonly fpy: "first party";
|
|
137
|
+
readonly frg: "forger";
|
|
138
|
+
readonly gdv: "game developer";
|
|
139
|
+
readonly gis: "geographic information specialist";
|
|
140
|
+
readonly his: "host institution";
|
|
141
|
+
readonly hnr: "honoree";
|
|
142
|
+
readonly hst: "host";
|
|
143
|
+
readonly ill: "illustrator";
|
|
144
|
+
readonly ilu: "illuminator";
|
|
145
|
+
readonly ink: "inker";
|
|
146
|
+
readonly ins: "inscriber";
|
|
147
|
+
readonly inv: "inventor";
|
|
148
|
+
readonly isb: "issuing body";
|
|
149
|
+
readonly itr: "instrumentalist";
|
|
150
|
+
readonly ive: "interviewee";
|
|
151
|
+
readonly ivr: "interviewer";
|
|
152
|
+
readonly jud: "judge";
|
|
153
|
+
readonly jug: "jurisdiction governed";
|
|
154
|
+
readonly lbr: "laboratory";
|
|
155
|
+
readonly lbt: "librettist";
|
|
156
|
+
readonly ldr: "laboratory director";
|
|
157
|
+
readonly led: "lead";
|
|
158
|
+
readonly lee: "libelee-appellee";
|
|
159
|
+
readonly lel: "libelee";
|
|
160
|
+
readonly len: "lender";
|
|
161
|
+
readonly let: "libelee-appellant";
|
|
162
|
+
readonly lgd: "lighting designer";
|
|
163
|
+
readonly lie: "libelant-appellee";
|
|
164
|
+
readonly lil: "libelant";
|
|
165
|
+
readonly lit: "libelant-appellant";
|
|
166
|
+
readonly lsa: "landscape architect";
|
|
167
|
+
readonly lse: "licensee";
|
|
168
|
+
readonly lso: "licensor";
|
|
169
|
+
readonly ltg: "lithographer";
|
|
170
|
+
readonly ltr: "letterer";
|
|
171
|
+
readonly lyr: "lyricist";
|
|
172
|
+
readonly mcp: "music copyist";
|
|
173
|
+
readonly mdc: "metadata contact";
|
|
174
|
+
readonly med: "medium";
|
|
175
|
+
readonly mfp: "manufacture place";
|
|
176
|
+
readonly mfr: "manufacturer";
|
|
177
|
+
readonly mka: "makeup artist";
|
|
178
|
+
readonly mod: "moderator";
|
|
179
|
+
readonly mon: "monitor";
|
|
180
|
+
readonly mrb: "marbler";
|
|
181
|
+
readonly mrk: "markup editor";
|
|
182
|
+
readonly msd: "musical director";
|
|
183
|
+
readonly mte: "metal engraver";
|
|
184
|
+
readonly mtk: "minute taker";
|
|
185
|
+
readonly mup: "music programmer";
|
|
186
|
+
readonly mus: "musician";
|
|
187
|
+
readonly mxe: "mixing engineer";
|
|
188
|
+
readonly nan: "news anchor";
|
|
189
|
+
readonly nrt: "narrator";
|
|
190
|
+
readonly onp: "onscreen participant";
|
|
191
|
+
readonly opn: "opponent";
|
|
192
|
+
readonly org: "originator";
|
|
193
|
+
readonly orm: "organizer";
|
|
194
|
+
readonly osp: "onscreen presenter";
|
|
195
|
+
readonly oth: "other";
|
|
196
|
+
readonly own: "owner";
|
|
197
|
+
readonly pad: "place of address";
|
|
198
|
+
readonly pan: "panelist";
|
|
199
|
+
readonly pat: "patron";
|
|
200
|
+
readonly pbd: "publisher director";
|
|
201
|
+
readonly pbl: "publisher";
|
|
202
|
+
readonly pdr: "project director";
|
|
203
|
+
readonly pfr: "proofreader";
|
|
204
|
+
readonly pht: "photographer";
|
|
205
|
+
readonly plt: "platemaker";
|
|
206
|
+
readonly pma: "permitting agency";
|
|
207
|
+
readonly pmn: "production manager";
|
|
208
|
+
readonly pnc: "penciller";
|
|
209
|
+
readonly pop: "printer of plates";
|
|
210
|
+
readonly ppm: "papermaker";
|
|
211
|
+
readonly ppt: "puppeteer";
|
|
212
|
+
readonly pra: "praeses";
|
|
213
|
+
readonly prc: "process contact";
|
|
214
|
+
readonly prd: "production personnel";
|
|
215
|
+
readonly pre: "presenter";
|
|
216
|
+
readonly prf: "performer";
|
|
217
|
+
readonly prg: "programmer";
|
|
218
|
+
readonly prm: "printmaker";
|
|
219
|
+
readonly prn: "production company";
|
|
220
|
+
readonly pro: "producer";
|
|
221
|
+
readonly prp: "production place";
|
|
222
|
+
readonly prs: "production designer";
|
|
223
|
+
readonly prt: "printer";
|
|
224
|
+
readonly prv: "provider";
|
|
225
|
+
readonly pta: "patent applicant";
|
|
226
|
+
readonly pte: "plaintiff-appellee";
|
|
227
|
+
readonly ptf: "plaintiff";
|
|
228
|
+
readonly pth: "patent holder";
|
|
229
|
+
readonly ptt: "plaintiff-appellant";
|
|
230
|
+
readonly pup: "publication place";
|
|
231
|
+
readonly rap: "rapporteur";
|
|
232
|
+
readonly rbr: "rubricator";
|
|
233
|
+
readonly rcd: "recordist";
|
|
234
|
+
readonly rce: "recording engineer";
|
|
235
|
+
readonly rcp: "addressee";
|
|
236
|
+
readonly rdd: "radio director";
|
|
237
|
+
readonly red: "redaktor";
|
|
238
|
+
readonly ren: "renderer";
|
|
239
|
+
readonly res: "researcher";
|
|
240
|
+
readonly rev: "reviewer";
|
|
241
|
+
readonly rpc: "radio producer";
|
|
242
|
+
readonly rps: "repository";
|
|
243
|
+
readonly rpt: "reporter";
|
|
244
|
+
readonly rpy: "responsible party";
|
|
245
|
+
readonly rse: "respondent-appellee";
|
|
246
|
+
readonly rsg: "restager";
|
|
247
|
+
readonly rsp: "respondent";
|
|
248
|
+
readonly rsr: "restorationist";
|
|
249
|
+
readonly rst: "respondent-appellant";
|
|
250
|
+
readonly rth: "research team head";
|
|
251
|
+
readonly rtm: "research team member";
|
|
252
|
+
readonly rxa: "remix artist";
|
|
253
|
+
readonly sad: "scientific advisor";
|
|
254
|
+
readonly sce: "scenarist";
|
|
255
|
+
readonly scl: "sculptor";
|
|
256
|
+
readonly scr: "scribe";
|
|
257
|
+
readonly sde: "sound engineer";
|
|
258
|
+
readonly sds: "sound designer";
|
|
259
|
+
readonly sec: "secretary";
|
|
260
|
+
readonly sfx: "special effects provider";
|
|
261
|
+
readonly sgd: "stage director";
|
|
262
|
+
readonly sgn: "signer";
|
|
263
|
+
readonly sht: "supporting host";
|
|
264
|
+
readonly sll: "seller";
|
|
265
|
+
readonly sng: "singer";
|
|
266
|
+
readonly spk: "speaker";
|
|
267
|
+
readonly spn: "sponsor";
|
|
268
|
+
readonly spy: "second party";
|
|
269
|
+
readonly srv: "surveyor";
|
|
270
|
+
readonly std: "set designer";
|
|
271
|
+
readonly stg: "setting";
|
|
272
|
+
readonly stl: "storyteller";
|
|
273
|
+
readonly stm: "stage manager";
|
|
274
|
+
readonly stn: "standards body";
|
|
275
|
+
readonly str: "stereotyper";
|
|
276
|
+
readonly swd: "software developer";
|
|
277
|
+
readonly tad: "technical advisor";
|
|
278
|
+
readonly tau: "television writer";
|
|
279
|
+
readonly tcd: "technical director";
|
|
280
|
+
readonly tch: "teacher";
|
|
281
|
+
readonly ths: "thesis advisor";
|
|
282
|
+
readonly tld: "television director";
|
|
283
|
+
readonly tlg: "television guest";
|
|
284
|
+
readonly tlh: "television host";
|
|
285
|
+
readonly tlp: "television producer";
|
|
286
|
+
readonly trc: "transcriber";
|
|
287
|
+
readonly trl: "translator";
|
|
288
|
+
readonly tyd: "type designer";
|
|
289
|
+
readonly tyg: "typographer";
|
|
290
|
+
readonly uvp: "university place";
|
|
291
|
+
readonly vac: "voice actor";
|
|
292
|
+
readonly vdg: "videographer";
|
|
293
|
+
readonly vfx: "visual effects provider";
|
|
294
|
+
readonly voc: "vocalist";
|
|
295
|
+
readonly wac: "writer of added commentary";
|
|
296
|
+
readonly wal: "writer of added lyrics";
|
|
297
|
+
readonly wam: "writer of accompanying material";
|
|
298
|
+
readonly wat: "writer of added text";
|
|
299
|
+
readonly waw: "writer of afterword";
|
|
300
|
+
readonly wdc: "woodcutter";
|
|
301
|
+
readonly wde: "wood engraver";
|
|
302
|
+
readonly wfs: "writer of film story";
|
|
303
|
+
readonly wft: "writer of intertitles";
|
|
304
|
+
readonly wfw: "writer of foreword";
|
|
305
|
+
readonly win: "writer of introduction";
|
|
306
|
+
readonly wit: "witness";
|
|
307
|
+
readonly wpr: "writer of preface";
|
|
308
|
+
readonly wst: "writer of supplementary textual content";
|
|
309
|
+
readonly wts: "writer of television story";
|
|
310
|
+
};
|
|
4
311
|
export declare const Translation: z.ZodObject<{
|
|
5
312
|
language: z.ZodDefault<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
6
313
|
value: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
@@ -58,7 +365,6 @@ export declare const Creator: z.ZodObject<{
|
|
|
58
365
|
primary: boolean;
|
|
59
366
|
}[]>>;
|
|
60
367
|
roles: z.ZodArray<z.ZodEnum<{
|
|
61
|
-
nan: "nan";
|
|
62
368
|
abr: "abr";
|
|
63
369
|
acp: "acp";
|
|
64
370
|
act: "act";
|
|
@@ -242,6 +548,7 @@ export declare const Creator: z.ZodObject<{
|
|
|
242
548
|
mup: "mup";
|
|
243
549
|
mus: "mus";
|
|
244
550
|
mxe: "mxe";
|
|
551
|
+
nan: "nan";
|
|
245
552
|
nrt: "nrt";
|
|
246
553
|
onp: "onp";
|
|
247
554
|
opn: "opn";
|
|
@@ -474,7 +781,6 @@ export type WebNovelComCreatorId = z.infer<typeof WebNovelComCreatorId>;
|
|
|
474
781
|
export declare const BCP47LanguageTag: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
475
782
|
export type BCP47LanguageTag = z.infer<typeof BCP47LanguageTag>;
|
|
476
783
|
export declare const Relator: z.ZodEnum<{
|
|
477
|
-
nan: "nan";
|
|
478
784
|
abr: "abr";
|
|
479
785
|
acp: "acp";
|
|
480
786
|
act: "act";
|
|
@@ -658,6 +964,7 @@ export declare const Relator: z.ZodEnum<{
|
|
|
658
964
|
mup: "mup";
|
|
659
965
|
mus: "mus";
|
|
660
966
|
mxe: "mxe";
|
|
967
|
+
nan: "nan";
|
|
661
968
|
nrt: "nrt";
|
|
662
969
|
onp: "onp";
|
|
663
970
|
opn: "opn";
|
|
@@ -875,7 +1182,6 @@ export declare const WebNovelChapter: z.ZodObject<{
|
|
|
875
1182
|
primary: boolean;
|
|
876
1183
|
}[]>>;
|
|
877
1184
|
roles: z.ZodArray<z.ZodEnum<{
|
|
878
|
-
nan: "nan";
|
|
879
1185
|
abr: "abr";
|
|
880
1186
|
acp: "acp";
|
|
881
1187
|
act: "act";
|
|
@@ -1059,6 +1365,7 @@ export declare const WebNovelChapter: z.ZodObject<{
|
|
|
1059
1365
|
mup: "mup";
|
|
1060
1366
|
mus: "mus";
|
|
1061
1367
|
mxe: "mxe";
|
|
1368
|
+
nan: "nan";
|
|
1062
1369
|
nrt: "nrt";
|
|
1063
1370
|
onp: "onp";
|
|
1064
1371
|
opn: "opn";
|
|
@@ -1307,7 +1614,6 @@ export declare const WebNovelVolume: z.ZodObject<{
|
|
|
1307
1614
|
primary: boolean;
|
|
1308
1615
|
}[]>>;
|
|
1309
1616
|
roles: z.ZodArray<z.ZodEnum<{
|
|
1310
|
-
nan: "nan";
|
|
1311
1617
|
abr: "abr";
|
|
1312
1618
|
acp: "acp";
|
|
1313
1619
|
act: "act";
|
|
@@ -1491,6 +1797,7 @@ export declare const WebNovelVolume: z.ZodObject<{
|
|
|
1491
1797
|
mup: "mup";
|
|
1492
1798
|
mus: "mus";
|
|
1493
1799
|
mxe: "mxe";
|
|
1800
|
+
nan: "nan";
|
|
1494
1801
|
nrt: "nrt";
|
|
1495
1802
|
onp: "onp";
|
|
1496
1803
|
opn: "opn";
|
|
@@ -1717,7 +2024,6 @@ export declare const WebNovel: z.ZodObject<{
|
|
|
1717
2024
|
primary: boolean;
|
|
1718
2025
|
}[]>>;
|
|
1719
2026
|
roles: z.ZodArray<z.ZodEnum<{
|
|
1720
|
-
nan: "nan";
|
|
1721
2027
|
abr: "abr";
|
|
1722
2028
|
acp: "acp";
|
|
1723
2029
|
act: "act";
|
|
@@ -1901,6 +2207,7 @@ export declare const WebNovel: z.ZodObject<{
|
|
|
1901
2207
|
mup: "mup";
|
|
1902
2208
|
mus: "mus";
|
|
1903
2209
|
mxe: "mxe";
|
|
2210
|
+
nan: "nan";
|
|
1904
2211
|
nrt: "nrt";
|
|
1905
2212
|
onp: "onp";
|
|
1906
2213
|
opn: "opn";
|
|
@@ -2205,7 +2512,6 @@ export declare const WebNovel: z.ZodObject<{
|
|
|
2205
2512
|
primary: boolean;
|
|
2206
2513
|
}[]>>;
|
|
2207
2514
|
roles: z.ZodArray<z.ZodEnum<{
|
|
2208
|
-
nan: "nan";
|
|
2209
2515
|
abr: "abr";
|
|
2210
2516
|
acp: "acp";
|
|
2211
2517
|
act: "act";
|
|
@@ -2389,6 +2695,7 @@ export declare const WebNovel: z.ZodObject<{
|
|
|
2389
2695
|
mup: "mup";
|
|
2390
2696
|
mus: "mus";
|
|
2391
2697
|
mxe: "mxe";
|
|
2698
|
+
nan: "nan";
|
|
2392
2699
|
nrt: "nrt";
|
|
2393
2700
|
onp: "onp";
|
|
2394
2701
|
opn: "opn";
|
|
@@ -2576,4 +2883,8 @@ export type ImageConfig = z.infer<typeof ImageConfig>;
|
|
|
2576
2883
|
export declare function webNovelImageToURL(image: Image, inputConfig?: ImageConfig): URL | undefined;
|
|
2577
2884
|
export declare const mime: Mime$1;
|
|
2578
2885
|
|
|
2886
|
+
export {
|
|
2887
|
+
_default as relatorNames,
|
|
2888
|
+
};
|
|
2889
|
+
|
|
2579
2890
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import s from"zod";var z=s.object({uid:s.string().regex(/^\d+$/).max(64),ukey:s.string().regex(/^[a-zA-Z0-9]+$/).max(64)}),N=s.string().regex(/^n\/\d+$/,"Invalid WebNovel novel ID"),y=s.string().regex(/^n\/\d+\/c\/\d+$/,"Invalid WebNovel novel chapter ID"),W=s.string().regex(/^c\/\d+$/,"Invalid WebNovel creator ID");import T from"zod";import A from"zod";var v=A.string().regex(/^n\/[a-zA-Z0-9_-]+$/,"Invalid HostedNovel novel ID"),w=A.string().regex(/^n\/[a-zA-Z0-9_-]+\/c\/[a-zA-Z0-9_-]+$/,"Invalid HostedNovel novel chapter ID"),j=A.string().regex(/^c\/[a-zA-Z0-9_-]+$/,"Invalid HostedNovel creator ID");import $ from"zod";var I=$.string().regex(/^n\/[a-zA-Z0-9_-]+$/,"Invalid NovelFire novel ID"),h=$.string().regex(/^n\/[a-zA-Z0-9_-]+\/c\/[a-zA-Z0-9_-]+$/,"Invalid NovelFire novel chapter ID");var P=T.enum(["webnovel.com","novelfire.net","hostednovel.com"]),b=T.object({provider:P,id:T.union([N,y,W,I,h,v,w,j])}),O=T.enum(["qidian.com","ciweimao.com"]);import M from"language-tags";import B from"zod";var u=B.string().refine((r)=>M(r).valid(),{error:(r)=>`Invalid Language Tag: ${M(String(r?.input??"")).errors().join(";")}`}).transform((r)=>String(M(r).format()));var D=["abr","acp","act","adi","adp","aft","anc","anl","anm","ann","ant","ape","apl","app","aqt","arc","ard","arr","art","asg","asn","ato","att","auc","aud","aue","aui","aup","aus","aut","bdd","bjd","bka","bkd","bkp","blw","bnd","bpd","brd","brl","bsl","cad","cas","ccp","chr","cli","cll","clr","clt","cmm","cmp","cmt","cnd","cng","cns","coe","col","com","con","cop","cor","cos","cot","cou","cov","cpc","cpe","cph","cpl","cpt","cre","crp","crr","crt","csl","csp","cst","ctb","cte","ctg","ctr","cts","ctt","cur","cwt","dbd","dbp","dfd","dfe","dft","dgc","dgg","dgs","dis","djo","dln","dnc","dnr","dpc","dpt","drm","drt","dsr","dst","dtc","dte","dtm","dto","dub","edc","edd","edm","edt","egr","elg","elt","eng","enj","etr","evp","exp","fac","fds","fld","flm","fmd","fmk","fmo","fmp","fnd","fon","fpy","frg","gdv","gis","his","hnr","hst","ill","ilu","ink","ins","inv","isb","itr","ive","ivr","jud","jug","lbr","lbt","ldr","led","lee","lel","len","let","lgd","lie","lil","lit","lsa","lse","lso","ltg","ltr","lyr","mcp","mdc","med","mfp","mfr","mka","mod","mon","mrb","mrk","msd","mte","mtk","mup","mus","mxe","nan","nrt","onp","opn","org","orm","osp","oth","own","pad","pan","pat","pbd","pbl","pdr","pfr","pht","plt","pma","pmn","pnc","pop","ppm","ppt","pra","prc","prd","pre","prf","prg","prm","prn","pro","prp","prs","prt","prv","pta","pte","ptf","pth","ptt","pup","rap","rbr","rcd","rce","rcp","rdd","red","ren","res","rev","rpc","rps","rpt","rpy","rse","rsg","rsp","rsr","rst","rth","rtm","rxa","sad","sce","scl","scr","sde","sds","sec","sfx","sgd","sgn","sht","sll","sng","spk","spn","spy","srv","std","stg","stl","stm","stn","str","swd","tad","tau","tcd","tch","ths","tld","tlg","tlh","tlp","trc","trl","tyd","tyg","uvp","vac","vdg","vfx","voc","wac","wal","wam","wat","waw","wdc","wde","wfs","wft","wfw","win","wit","wpr","wst","wts"];import G from"zod";var V=G.enum(D);import{Mime as J}from"mime/lite";import K from"mime/types/other.js";import Q from"mime/types/standard.js";var q=new J().define({...Q,...K});import{Temporal as E}from"temporal-polyfill";import k from"zod";var m=k.string({error:(r)=>`Not a string: "${typeof r?.input}"`}).transform((r)=>r.trim()).refine((r)=>r!=="","String must not be empty"),jr=k.string({error:(r)=>`Not a string: "${typeof r?.input}"`}).transform((r)=>r.trim()).transform((r)=>r===""?null:r),c=k.custom((r)=>{return typeof r==="string"&&/^(\d{4})(-\d{2})?(-\d{2})?(T\d{2}:\d{2}:\d{2}Z)?$/.test(r)}).refine((r)=>{if(r.indexOf("T")>0)try{return E.Instant.from(r),!0}catch{return!1}else{let l=r.split("-");if(l.length>3)return!1;else if(l.length===3)try{return E.PlainDate.from(r),!0}catch{return!1}else if(l.length===2)try{return E.PlainDate.from(r+"-01"),!0}catch{return!1}else if(l.length===1)try{return E.PlainDate.from(r+"-01-01"),!0}catch{return!1}return!1}},{error:(r)=>`Date "${String(r?.input??"").substring(0,20)}" is invalid`}),H=k.coerce.string().refine((r)=>q.getExtension(r)!==null,{error:(r)=>`Invalid MIME type "${String(r.input)}"`}).transform((r)=>r.toLocaleLowerCase().trim());function i(r){let l=r.filter((a)=>a.primary===!0).length;if(l>1){let a=r.findIndex((p)=>p.primary===!0);return r.map((p,t)=>{return p.primary=t===a,p})}if(l===0&&typeof r[0]<"u")return r[0].primary=!0,r;return r}import o from"zod";var f=o.object({language:u.nullable().default(null),value:m,type:o.enum(["plain","markdown","html"]).nullable().default(null),primary:o.boolean().default(!1)}),X=o.object({displayName:m,givenName:m.nullable(),middleName:m.nullable(),familyName:m.nullable(),primary:o.boolean().default(!1)}),S=o.object({externalIdentifiers:o.array(b),names:o.array(X).min(1).transform(i),roles:o.array(V)}),Y=o.enum(["cover","backdrop","spine","back"]),Z=o.intersection(o.object({type:Y,height:o.int().min(1).nullable(),width:o.int().min(1).nullable(),language:u.nullable().default(null),primary:o.boolean().default(!1),mediaType:H.pipe(o.string().startsWith("image/")).nullable()}),o.union([o.object({provider:P,id:m}),o.object({provider:o.null(),id:o.url()})]));import n from"zod";var Zr=n.object({originalHTML:n.array(m),originalHTMLSize:n.int().min(0),generatedMarkdown:m,generatedMarkdownSize:n.int().min(0)}),C=n.object({internalIdentifier:m.nullable(),externalIdentifiers:n.array(b).min(1),volumeNumber:n.number().min(0).nullable(),number:n.number().min(0),names:n.array(f).min(1).transform(i),creators:n.array(S),createdAt:c.nullable(),updatedAt:c.nullable()}),F=n.object({internalIdentifier:m.nullable(),externalIdentifiers:n.array(b),number:n.number().min(0),names:n.array(f).transform(i),createdAt:c.nullable(),updatedAt:c.nullable(),chapters:n.array(C)}),gr=n.object({internalIdentifier:m.nullable(),externalIdentifiers:n.array(b).min(1),names:n.array(f).min(1).transform(i),language:u,overviews:n.array(f).transform(i),creators:n.array(S),images:n.array(Z).transform(i),originalLanguage:u.nullable(),originalSource:O.nullable(),isComplete:n.boolean().nullable(),createdAt:c.nullable(),updatedAt:c.nullable(),volumes:n.array(F)});function Gr(r){let l=r.find((a)=>a.primary===!0);if(typeof l<"u")return l;return r?.[0]??void 0}function Jr(r){let l=r.find((a)=>a.primary===!0);if(typeof l<"u")return l;return r?.[0]??void 0}import d from"zod";function Fr(r){if(r.provider==="webnovel.com"){let l=N.safeParse(r.id)?.data??void 0,a=y.safeParse(r.id)?.data??void 0,p=W.safeParse(r.id)?.data??void 0,t="https://www.webnovel.com";if(typeof l==="string")return new URL(`/book/${l.substring(2)}`,"https://www.webnovel.com");else if(typeof a==="string"){let e=a.split("/");return new URL(`/book/${e[1]}/${e[3]}`,"https://www.webnovel.com")}else if(typeof p==="string")return new URL(`/profile/${p.substring(2)}`,"https://www.webnovel.com")}else if(r.provider==="novelfire.net"){let l=I.safeParse(r.id)?.data??void 0,a=h.safeParse(r.id)?.data??void 0,p="https://novelfire.net";if(typeof l==="string")return new URL(`/book/${l.substring(2)}`,"https://novelfire.net");else if(typeof a==="string"){let t=a.split("/");return new URL(`/book/${t[1]}/${t[3]}`,"https://novelfire.net")}}else if(r.provider==="hostednovel.com"){let l=v.safeParse(r.id)?.data??void 0,a=w.safeParse(r.id)?.data??void 0,p=j.safeParse(r.id)?.data??void 0,t="https://hostednovel.com";if(typeof l==="string")return new URL(`/novel/${l.substring(2)}`,"https://hostednovel.com");else if(typeof a==="string"){let e=a.split("/");return new URL(`/novel/${e[1]}/${e[3]}`,"https://hostednovel.com")}else if(typeof p==="string")return new URL(`/creator/${p.substring(2)}`,"https://hostednovel.com")}return}var g=d.object({imageProxy:d.literal("wsrv.nl"),output:d.enum(["jpg","jxl","png","gif","tiff","webp","original"]).default("original").optional(),quality:d.int().min(1).max(100).default(80).optional(),default:d.url().optional(),lossless:d.boolean().optional(),compressionLevel:d.int().min(0).max(9).default(6).optional(),width:d.int().min(1).max(Number.MAX_SAFE_INTEGER).optional(),height:d.int().min(1).max(Number.MAX_SAFE_INTEGER).optional(),devicePixelRatio:d.int().min(1).max(8).optional(),fit:d.enum(["inside","outside","cover","fill","contain"]).optional(),withoutEnlargement:d.boolean().default(!0).optional(),alignmentPosition:d.enum(["top","right","bottom","left","top-left","bottom-left","bottom-right","top-right","center","entropy","attention"]).default("center").optional()}),x=d.discriminatedUnion("imageProxy",[d.object({imageProxy:d.literal(!1)}),g]);function xr(r,l={imageProxy:!1}){let a=x.parse(l),p=void 0;if(r.provider==="webnovel.com"){if(/^n\/\d+(\/\d+)?/.test(r.id)){let t=r.id.split("/");if(p=new URL(`/bookcover/${t[1]}`,"https://book-pic.webnovel.com"),p.searchParams.set("imageMogr2/thumbnail/600x",""),typeof t?.[2]==="string")p.searchParams.set("imageId",t[2])}}if(typeof p>"u")return;if(a.imageProxy==="wsrv.nl"){let t=new URL("https://wsrv.nl");t.searchParams.set("url",p.toString());let e=g.parse(a);if(typeof e?.width==="number")t.searchParams.set("w",e.width.toString());else if(typeof r?.width==="number")t.searchParams.set("w",r.width.toString());if(typeof e?.height==="number")t.searchParams.set("h",e.height.toString());else if(typeof r?.height==="number")t.searchParams.set("h",r.height.toString());if(typeof e?.devicePixelRatio==="number")t.searchParams.set("dpr",e.devicePixelRatio.toString());if(typeof e?.fit==="string")t.searchParams.set("fit",e.fit);if(typeof e?.withoutEnlargement==="boolean"&&e.withoutEnlargement===!0)t.searchParams.set("we","true");if(typeof e?.alignmentPosition==="string")t.searchParams.set("a",e.alignmentPosition);if(typeof e?.compressionLevel==="number")t.searchParams.set("l",e.compressionLevel.toString());if(typeof e?.lossless==="boolean"&&e.lossless===!0)t.searchParams.set("ll","true");if(typeof e?.default==="string")t.searchParams.set("default",e.default);if(typeof e?.output==="string"&&e.output!=="original")t.searchParams.set("output",e.output);if(typeof e?.quality==="number")t.searchParams.set("q",e.quality.toString());return t}return p}export{xr as webNovelImageToURL,Fr as webNovelExternalIdentifierToURL,q as mime,Gr as getPrimaryTranslation,Jr as getPrimaryImage,F as WebNovelVolume,N as WebNovelComNovelId,y as WebNovelComNovelChapterId,W as WebNovelComCreatorId,z as WebNovelComAuth,Zr as WebNovelChapterContent,C as WebNovelChapter,gr as WebNovel,f as Translation,V as Relator,X as PersonalName,c as PartialDateTime,O as OriginalSource,jr as NullableNonEmptyString,I as NovelFireNetNovelId,h as NovelFireNetNovelChapterId,m as NonEmptyString,H as Mime,Y as ImageType,Z as Image,v as HostedNovelComNovelId,w as HostedNovelComNovelChapterId,j as HostedNovelComCreatorId,P as ExternalProvider,b as ExternalIdentifier,S as Creator,u as BCP47LanguageTag};
|
|
1
|
+
var Z={abr:"abridger",acp:"art copyist",act:"actor",adi:"art director",adp:"adapter",aft:"author of afterword, colophon, etc.",anc:"announcer",anl:"analyst",anm:"animator",ann:"annotator",ant:"bibliographic antecedent",ape:"appellee",apl:"appellant",app:"applicant",aqt:"author in quotations or text abstracts",arc:"architect",ard:"artistic director",arr:"arranger",art:"artist",asg:"assignee",asn:"associated name",ato:"autographer",att:"attributed name",auc:"auctioneer",aud:"author of dialog",aue:"audio engineer",aui:"author of introduction, etc.",aup:"audio producer",aus:"screenwriter",aut:"author",bdd:"binding designer",bjd:"bookjacket designer",bka:"book artist",bkd:"book designer",bkp:"book producer",blw:"blurb writer",bnd:"binder",bpd:"bookplate designer",brd:"broadcaster",brl:"braille embosser",bsl:"bookseller",cad:"casting director",cas:"caster",ccp:"conceptor",chr:"choreographer",cli:"client",cll:"calligrapher",clr:"colorist",clt:"collotyper",cmm:"commentator",cmp:"composer",cmt:"compositor",cnd:"conductor",cng:"cinematographer",cns:"censor",coe:"contestant-appellee",col:"collector",com:"compiler",con:"conservator",cop:"camera operator",cor:"collection registrar",cos:"contestant",cot:"contestant-appellant",cou:"court governed",cov:"cover designer",cpc:"copyright claimant",cpe:"complainant-appellee",cph:"copyright holder",cpl:"complainant",cpt:"complainant-appellant",cre:"creator",crp:"correspondent",crr:"corrector",crt:"court reporter",csl:"consultant",csp:"consultant to a project",cst:"costume designer",ctb:"contributor",cte:"contestee-appellee",ctg:"cartographer",ctr:"contractor",cts:"contestee",ctt:"contestee-appellant",cur:"curator",cwt:"commentator for written text",dbd:"dubbing director",dbp:"distribution place",dfd:"defendant",dfe:"defendant-appellee",dft:"defendant-appellant",dgc:"degree committee member",dgg:"degree granting institution",dgs:"degree supervisor",dis:"dissertant",djo:"dj",dln:"delineator",dnc:"dancer",dnr:"donor",dpc:"depicted",dpt:"depositor",drm:"draftsman",drt:"director",dsr:"designer",dst:"distributor",dtc:"data contributor",dte:"dedicatee",dtm:"data manager",dto:"dedicator",dub:"dubious author",edc:"editor of compilation",edd:"editorial director",edm:"editor of moving image work",edt:"editor",egr:"engraver",elg:"electrician",elt:"electrotyper",eng:"engineer",enj:"enacting jurisdiction",etr:"etcher",evp:"event place",exp:"expert",fac:"facsimilist",fds:"film distributor",fld:"field director",flm:"film editor",fmd:"film director",fmk:"filmmaker",fmo:"former owner",fmp:"film producer",fnd:"funder",fon:"founder",fpy:"first party",frg:"forger",gdv:"game developer",gis:"geographic information specialist",his:"host institution",hnr:"honoree",hst:"host",ill:"illustrator",ilu:"illuminator",ink:"inker",ins:"inscriber",inv:"inventor",isb:"issuing body",itr:"instrumentalist",ive:"interviewee",ivr:"interviewer",jud:"judge",jug:"jurisdiction governed",lbr:"laboratory",lbt:"librettist",ldr:"laboratory director",led:"lead",lee:"libelee-appellee",lel:"libelee",len:"lender",let:"libelee-appellant",lgd:"lighting designer",lie:"libelant-appellee",lil:"libelant",lit:"libelant-appellant",lsa:"landscape architect",lse:"licensee",lso:"licensor",ltg:"lithographer",ltr:"letterer",lyr:"lyricist",mcp:"music copyist",mdc:"metadata contact",med:"medium",mfp:"manufacture place",mfr:"manufacturer",mka:"makeup artist",mod:"moderator",mon:"monitor",mrb:"marbler",mrk:"markup editor",msd:"musical director",mte:"metal engraver",mtk:"minute taker",mup:"music programmer",mus:"musician",mxe:"mixing engineer",nan:"news anchor",nrt:"narrator",onp:"onscreen participant",opn:"opponent",org:"originator",orm:"organizer",osp:"onscreen presenter",oth:"other",own:"owner",pad:"place of address",pan:"panelist",pat:"patron",pbd:"publisher director",pbl:"publisher",pdr:"project director",pfr:"proofreader",pht:"photographer",plt:"platemaker",pma:"permitting agency",pmn:"production manager",pnc:"penciller",pop:"printer of plates",ppm:"papermaker",ppt:"puppeteer",pra:"praeses",prc:"process contact",prd:"production personnel",pre:"presenter",prf:"performer",prg:"programmer",prm:"printmaker",prn:"production company",pro:"producer",prp:"production place",prs:"production designer",prt:"printer",prv:"provider",pta:"patent applicant",pte:"plaintiff-appellee",ptf:"plaintiff",pth:"patent holder",ptt:"plaintiff-appellant",pup:"publication place",rap:"rapporteur",rbr:"rubricator",rcd:"recordist",rce:"recording engineer",rcp:"addressee",rdd:"radio director",red:"redaktor",ren:"renderer",res:"researcher",rev:"reviewer",rpc:"radio producer",rps:"repository",rpt:"reporter",rpy:"responsible party",rse:"respondent-appellee",rsg:"restager",rsp:"respondent",rsr:"restorationist",rst:"respondent-appellant",rth:"research team head",rtm:"research team member",rxa:"remix artist",sad:"scientific advisor",sce:"scenarist",scl:"sculptor",scr:"scribe",sde:"sound engineer",sds:"sound designer",sec:"secretary",sfx:"special effects provider",sgd:"stage director",sgn:"signer",sht:"supporting host",sll:"seller",sng:"singer",spk:"speaker",spn:"sponsor",spy:"second party",srv:"surveyor",std:"set designer",stg:"setting",stl:"storyteller",stm:"stage manager",stn:"standards body",str:"stereotyper",swd:"software developer",tad:"technical advisor",tau:"television writer",tcd:"technical director",tch:"teacher",ths:"thesis advisor",tld:"television director",tlg:"television guest",tlh:"television host",tlp:"television producer",trc:"transcriber",trl:"translator",tyd:"type designer",tyg:"typographer",uvp:"university place",vac:"voice actor",vdg:"videographer",vfx:"visual effects provider",voc:"vocalist",wac:"writer of added commentary",wal:"writer of added lyrics",wam:"writer of accompanying material",wat:"writer of added text",waw:"writer of afterword",wdc:"woodcutter",wde:"wood engraver",wfs:"writer of film story",wft:"writer of intertitles",wfw:"writer of foreword",win:"writer of introduction",wit:"witness",wpr:"writer of preface",wst:"writer of supplementary textual content",wts:"writer of television story"};import m from"zod";var L=m.object({uid:m.string().regex(/^\d+$/).max(64),ukey:m.string().regex(/^[a-zA-Z0-9]+$/).max(64)}),g=m.string().regex(/^n\/\d+$/,"Invalid WebNovel novel ID"),h=m.string().regex(/^n\/\d+\/c\/\d+$/,"Invalid WebNovel novel chapter ID"),w=m.string().regex(/^c\/\d+$/,"Invalid WebNovel creator ID");import W from"zod";import E from"zod";var y=E.string().regex(/^n\/[a-zA-Z0-9_-]+$/,"Invalid HostedNovel novel ID"),v=E.string().regex(/^n\/[a-zA-Z0-9_-]+\/c\/[a-zA-Z0-9_-]+$/,"Invalid HostedNovel novel chapter ID"),k=E.string().regex(/^c\/[a-zA-Z0-9_-]+$/,"Invalid HostedNovel creator ID");import M from"zod";var N=M.string().regex(/^n\/[a-zA-Z0-9_-]+$/,"Invalid NovelFire novel ID"),j=M.string().regex(/^n\/[a-zA-Z0-9_-]+\/c\/[a-zA-Z0-9_-]+$/,"Invalid NovelFire novel chapter ID");var x=W.enum(["webnovel.com","novelfire.net","hostednovel.com"]),u=W.object({provider:x,id:W.union([g,h,w,N,j,y,v,k])}),S=W.enum(["qidian.com","ciweimao.com"]);import A from"language-tags";import B from"zod";var f=B.string().refine((e)=>A(e).valid(),{error:(e)=>`Invalid Language Tag: ${A(String(e?.input??"")).errors().join(";")}`}).transform((e)=>String(A(e).format()));var $=["abr","acp","act","adi","adp","aft","anc","anl","anm","ann","ant","ape","apl","app","aqt","arc","ard","arr","art","asg","asn","ato","att","auc","aud","aue","aui","aup","aus","aut","bdd","bjd","bka","bkd","bkp","blw","bnd","bpd","brd","brl","bsl","cad","cas","ccp","chr","cli","cll","clr","clt","cmm","cmp","cmt","cnd","cng","cns","coe","col","com","con","cop","cor","cos","cot","cou","cov","cpc","cpe","cph","cpl","cpt","cre","crp","crr","crt","csl","csp","cst","ctb","cte","ctg","ctr","cts","ctt","cur","cwt","dbd","dbp","dfd","dfe","dft","dgc","dgg","dgs","dis","djo","dln","dnc","dnr","dpc","dpt","drm","drt","dsr","dst","dtc","dte","dtm","dto","dub","edc","edd","edm","edt","egr","elg","elt","eng","enj","etr","evp","exp","fac","fds","fld","flm","fmd","fmk","fmo","fmp","fnd","fon","fpy","frg","gdv","gis","his","hnr","hst","ill","ilu","ink","ins","inv","isb","itr","ive","ivr","jud","jug","lbr","lbt","ldr","led","lee","lel","len","let","lgd","lie","lil","lit","lsa","lse","lso","ltg","ltr","lyr","mcp","mdc","med","mfp","mfr","mka","mod","mon","mrb","mrk","msd","mte","mtk","mup","mus","mxe","nan","nrt","onp","opn","org","orm","osp","oth","own","pad","pan","pat","pbd","pbl","pdr","pfr","pht","plt","pma","pmn","pnc","pop","ppm","ppt","pra","prc","prd","pre","prf","prg","prm","prn","pro","prp","prs","prt","prv","pta","pte","ptf","pth","ptt","pup","rap","rbr","rcd","rce","rcp","rdd","red","ren","res","rev","rpc","rps","rpt","rpy","rse","rsg","rsp","rsr","rst","rth","rtm","rxa","sad","sce","scl","scr","sde","sds","sec","sfx","sgd","sgn","sht","sll","sng","spk","spn","spy","srv","std","stg","stl","stm","stn","str","swd","tad","tau","tcd","tch","ths","tld","tlg","tlh","tlp","trc","trl","tyd","tyg","uvp","vac","vdg","vfx","voc","wac","wal","wam","wat","waw","wdc","wde","wfs","wft","wfw","win","wit","wpr","wst","wts"];import G from"zod";var q=G.enum($);import{Mime as J}from"mime/lite";import K from"mime/types/other.js";import Q from"mime/types/standard.js";var O=new J().define({...Q,...K});import{Temporal as I}from"temporal-polyfill";import T from"zod";var c=T.string({error:(e)=>`Not a string: "${typeof e?.input}"`}).transform((e)=>e.trim()).refine((e)=>e!=="","String must not be empty"),je=T.string({error:(e)=>`Not a string: "${typeof e?.input}"`}).transform((e)=>e.trim()).transform((e)=>e===""?null:e),s=T.custom((e)=>{return typeof e==="string"&&/^(\d{4})(-\d{2})?(-\d{2})?(T\d{2}:\d{2}:\d{2}Z)?$/.test(e)}).refine((e)=>{if(e.indexOf("T")>0)try{return I.Instant.from(e),!0}catch{return!1}else{let o=e.split("-");if(o.length>3)return!1;else if(o.length===3)try{return I.PlainDate.from(e),!0}catch{return!1}else if(o.length===2)try{return I.PlainDate.from(e+"-01"),!0}catch{return!1}else if(o.length===1)try{return I.PlainDate.from(e+"-01-01"),!0}catch{return!1}return!1}},{error:(e)=>`Date "${String(e?.input??"").substring(0,20)}" is invalid`}),D=T.coerce.string().refine((e)=>O.getExtension(e)!==null,{error:(e)=>`Invalid MIME type "${String(e.input)}"`}).transform((e)=>e.toLocaleLowerCase().trim());function d(e){let o=e.filter((i)=>i.primary===!0).length;if(o>1){let i=e.findIndex((l)=>l.primary===!0);return e.map((l,t)=>{return l.primary=t===i,l})}if(o===0&&typeof e[0]<"u")return e[0].primary=!0,e;return e}import n from"zod";var b=n.object({language:f.nullable().default(null),value:c,type:n.enum(["plain","markdown","html"]).nullable().default(null),primary:n.boolean().default(!1)}),X=n.object({displayName:c,givenName:c.nullable(),middleName:c.nullable(),familyName:c.nullable(),primary:n.boolean().default(!1)}),P=n.object({externalIdentifiers:n.array(u),names:n.array(X).min(1).transform(d),roles:n.array(q)}),Y=n.enum(["cover","backdrop","spine","back"]),V=n.intersection(n.object({type:Y,height:n.int().min(1).nullable(),width:n.int().min(1).nullable(),language:f.nullable().default(null),primary:n.boolean().default(!1),mediaType:D.pipe(n.string().startsWith("image/")).nullable()}),n.union([n.object({provider:x,id:c}),n.object({provider:n.null(),id:n.url()})]));import a from"zod";var Ze=a.object({originalHTML:a.array(c),originalHTMLSize:a.int().min(0),generatedMarkdown:c,generatedMarkdownSize:a.int().min(0)}),C=a.object({internalIdentifier:c.nullable(),externalIdentifiers:a.array(u).min(1),volumeNumber:a.number().min(0).nullable(),number:a.number().min(0),names:a.array(b).min(1).transform(d),creators:a.array(P),createdAt:s.nullable(),updatedAt:s.nullable()}),F=a.object({internalIdentifier:c.nullable(),externalIdentifiers:a.array(u),number:a.number().min(0),names:a.array(b).transform(d),createdAt:s.nullable(),updatedAt:s.nullable(),chapters:a.array(C)}),Be=a.object({internalIdentifier:c.nullable(),externalIdentifiers:a.array(u).min(1),names:a.array(b).min(1).transform(d),language:f,overviews:a.array(b).transform(d),creators:a.array(P),images:a.array(V).transform(d),originalLanguage:f.nullable(),originalSource:S.nullable(),isComplete:a.boolean().nullable(),createdAt:s.nullable(),updatedAt:s.nullable(),volumes:a.array(F)});function Je(e){let o=e.find((i)=>i.primary===!0);if(typeof o<"u")return o;return e?.[0]??void 0}function Ke(e){let o=e.find((i)=>i.primary===!0);if(typeof o<"u")return o;return e?.[0]??void 0}import p from"zod";function _e(e){if(e.provider==="webnovel.com"){let o=g.safeParse(e.id)?.data??void 0,i=h.safeParse(e.id)?.data??void 0,l=w.safeParse(e.id)?.data??void 0,t="https://www.webnovel.com";if(typeof o==="string")return new URL(`/book/${o.substring(2)}`,"https://www.webnovel.com");else if(typeof i==="string"){let r=i.split("/");return new URL(`/book/${r[1]}/${r[3]}`,"https://www.webnovel.com")}else if(typeof l==="string")return new URL(`/profile/${l.substring(2)}`,"https://www.webnovel.com")}else if(e.provider==="novelfire.net"){let o=N.safeParse(e.id)?.data??void 0,i=j.safeParse(e.id)?.data??void 0,l="https://novelfire.net";if(typeof o==="string")return new URL(`/book/${o.substring(2)}`,"https://novelfire.net");else if(typeof i==="string"){let t=i.split("/");return new URL(`/book/${t[1]}/${t[3]}`,"https://novelfire.net")}}else if(e.provider==="hostednovel.com"){let o=y.safeParse(e.id)?.data??void 0,i=v.safeParse(e.id)?.data??void 0,l=k.safeParse(e.id)?.data??void 0,t="https://hostednovel.com";if(typeof o==="string")return new URL(`/novel/${o.substring(2)}`,"https://hostednovel.com");else if(typeof i==="string"){let r=i.split("/");return new URL(`/novel/${r[1]}/${r[3]}`,"https://hostednovel.com")}else if(typeof l==="string")return new URL(`/creator/${l.substring(2)}`,"https://hostednovel.com")}return}var H=p.object({imageProxy:p.literal("wsrv.nl"),output:p.enum(["jpg","jxl","png","gif","tiff","webp","original"]).default("original").optional(),quality:p.int().min(1).max(100).default(80).optional(),default:p.url().optional(),lossless:p.boolean().optional(),compressionLevel:p.int().min(0).max(9).default(6).optional(),width:p.int().min(1).max(Number.MAX_SAFE_INTEGER).optional(),height:p.int().min(1).max(Number.MAX_SAFE_INTEGER).optional(),devicePixelRatio:p.int().min(1).max(8).optional(),fit:p.enum(["inside","outside","cover","fill","contain"]).optional(),withoutEnlargement:p.boolean().default(!0).optional(),alignmentPosition:p.enum(["top","right","bottom","left","top-left","bottom-left","bottom-right","top-right","center","entropy","attention"]).default("center").optional()}),_=p.discriminatedUnion("imageProxy",[p.object({imageProxy:p.literal(!1)}),H]);function ze(e,o={imageProxy:!1}){let i=_.parse(o),l=void 0;if(e.provider==="webnovel.com"){if(/^n\/\d+(\/\d+)?/.test(e.id)){let t=e.id.split("/");if(l=new URL(`/bookcover/${t[1]}`,"https://book-pic.webnovel.com"),l.searchParams.set("imageMogr2/thumbnail/600x",""),typeof t?.[2]==="string")l.searchParams.set("imageId",t[2])}}if(typeof l>"u")return;if(i.imageProxy==="wsrv.nl"){let t=new URL("https://wsrv.nl");t.searchParams.set("url",l.toString());let r=H.parse(i);if(typeof r?.width==="number")t.searchParams.set("w",r.width.toString());else if(typeof e?.width==="number")t.searchParams.set("w",e.width.toString());if(typeof r?.height==="number")t.searchParams.set("h",r.height.toString());else if(typeof e?.height==="number")t.searchParams.set("h",e.height.toString());if(typeof r?.devicePixelRatio==="number")t.searchParams.set("dpr",r.devicePixelRatio.toString());if(typeof r?.fit==="string")t.searchParams.set("fit",r.fit);if(typeof r?.withoutEnlargement==="boolean"&&r.withoutEnlargement===!0)t.searchParams.set("we","true");if(typeof r?.alignmentPosition==="string")t.searchParams.set("a",r.alignmentPosition);if(typeof r?.compressionLevel==="number")t.searchParams.set("l",r.compressionLevel.toString());if(typeof r?.lossless==="boolean"&&r.lossless===!0)t.searchParams.set("ll","true");if(typeof r?.default==="string")t.searchParams.set("default",r.default);if(typeof r?.output==="string"&&r.output!=="original")t.searchParams.set("output",r.output);if(typeof r?.quality==="number")t.searchParams.set("q",r.quality.toString());return t}return l}export{ze as webNovelImageToURL,_e as webNovelExternalIdentifierToURL,Z as relatorNames,O as mime,Je as getPrimaryTranslation,Ke as getPrimaryImage,F as WebNovelVolume,g as WebNovelComNovelId,h as WebNovelComNovelChapterId,w as WebNovelComCreatorId,L as WebNovelComAuth,Ze as WebNovelChapterContent,C as WebNovelChapter,Be as WebNovel,b as Translation,q as Relator,X as PersonalName,s as PartialDateTime,S as OriginalSource,je as NullableNonEmptyString,N as NovelFireNetNovelId,j as NovelFireNetNovelChapterId,c as NonEmptyString,D as Mime,Y as ImageType,V as Image,y as HostedNovelComNovelId,v as HostedNovelComNovelChapterId,k as HostedNovelComCreatorId,x as ExternalProvider,u as ExternalIdentifier,P as Creator,f as BCP47LanguageTag};
|
|
2
2
|
|
|
3
|
-
//# debugId=
|
|
3
|
+
//# debugId=67A33BD070556D7164756E2164756E21
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../src/schemas/external/webnovel_com.ts", "../src/schemas/external/common.ts", "../src/schemas/external/hostednovel_com.ts", "../src/schemas/external/novelfire_net.ts", "../src/schemas/ietf.ts", "../src/constants/loc/relators.ts", "../src/schemas/loc.ts", "../src/utils/mime.ts", "../src/schemas/string.ts", "../src/utils/array.ts", "../src/schemas/common.ts", "../src/schemas/webnovel.ts", "../src/utils/common.ts", "../src/utils/external.ts"],
|
|
3
|
+
"sources": ["../src/constants/loc/relatorNames.ts", "../src/schemas/external/webnovel_com.ts", "../src/schemas/external/common.ts", "../src/schemas/external/hostednovel_com.ts", "../src/schemas/external/novelfire_net.ts", "../src/schemas/ietf.ts", "../src/constants/loc/relators.ts", "../src/schemas/loc.ts", "../src/utils/mime.ts", "../src/schemas/string.ts", "../src/utils/array.ts", "../src/schemas/common.ts", "../src/schemas/webnovel.ts", "../src/utils/common.ts", "../src/utils/external.ts"],
|
|
4
4
|
"sourcesContent": [
|
|
5
|
+
"/* cspell:ignore autographer bookjacket collotyper conceptor dissertant facsimilist funder intertitles papermaker penciller platemaker praeses redaktor restager restorationist videographer */\n\nimport type { Relator } from \"@/schemas/loc\";\n\nexport default {\n\tabr: \"abridger\",\n\tacp: \"art copyist\",\n\tact: \"actor\",\n\tadi: \"art director\",\n\tadp: \"adapter\",\n\taft: \"author of afterword, colophon, etc.\",\n\tanc: \"announcer\",\n\tanl: \"analyst\",\n\tanm: \"animator\",\n\tann: \"annotator\",\n\tant: \"bibliographic antecedent\",\n\tape: \"appellee\",\n\tapl: \"appellant\",\n\tapp: \"applicant\",\n\taqt: \"author in quotations or text abstracts\",\n\tarc: \"architect\",\n\tard: \"artistic director\",\n\tarr: \"arranger\",\n\tart: \"artist\",\n\tasg: \"assignee\",\n\tasn: \"associated name\",\n\tato: \"autographer\",\n\tatt: \"attributed name\",\n\tauc: \"auctioneer\",\n\taud: \"author of dialog\",\n\taue: \"audio engineer\",\n\taui: \"author of introduction, etc.\",\n\taup: \"audio producer\",\n\taus: \"screenwriter\",\n\taut: \"author\",\n\tbdd: \"binding designer\",\n\tbjd: \"bookjacket designer\",\n\tbka: \"book artist\",\n\tbkd: \"book designer\",\n\tbkp: \"book producer\",\n\tblw: \"blurb writer\",\n\tbnd: \"binder\",\n\tbpd: \"bookplate designer\",\n\tbrd: \"broadcaster\",\n\tbrl: \"braille embosser\",\n\tbsl: \"bookseller\",\n\tcad: \"casting director\",\n\tcas: \"caster\",\n\tccp: \"conceptor\",\n\tchr: \"choreographer\",\n\tcli: \"client\",\n\tcll: \"calligrapher\",\n\tclr: \"colorist\",\n\tclt: \"collotyper\",\n\tcmm: \"commentator\",\n\tcmp: \"composer\",\n\tcmt: \"compositor\",\n\tcnd: \"conductor\",\n\tcng: \"cinematographer\",\n\tcns: \"censor\",\n\tcoe: \"contestant-appellee\",\n\tcol: \"collector\",\n\tcom: \"compiler\",\n\tcon: \"conservator\",\n\tcop: \"camera operator\",\n\tcor: \"collection registrar\",\n\tcos: \"contestant\",\n\tcot: \"contestant-appellant\",\n\tcou: \"court governed\",\n\tcov: \"cover designer\",\n\tcpc: \"copyright claimant\",\n\tcpe: \"complainant-appellee\",\n\tcph: \"copyright holder\",\n\tcpl: \"complainant\",\n\tcpt: \"complainant-appellant\",\n\tcre: \"creator\",\n\tcrp: \"correspondent\",\n\tcrr: \"corrector\",\n\tcrt: \"court reporter\",\n\tcsl: \"consultant\",\n\tcsp: \"consultant to a project\",\n\tcst: \"costume designer\",\n\tctb: \"contributor\",\n\tcte: \"contestee-appellee\",\n\tctg: \"cartographer\",\n\tctr: \"contractor\",\n\tcts: \"contestee\",\n\tctt: \"contestee-appellant\",\n\tcur: \"curator\",\n\tcwt: \"commentator for written text\",\n\tdbd: \"dubbing director\",\n\tdbp: \"distribution place\",\n\tdfd: \"defendant\",\n\tdfe: \"defendant-appellee\",\n\tdft: \"defendant-appellant\",\n\tdgc: \"degree committee member\",\n\tdgg: \"degree granting institution\",\n\tdgs: \"degree supervisor\",\n\tdis: \"dissertant\",\n\tdjo: \"dj\",\n\tdln: \"delineator\",\n\tdnc: \"dancer\",\n\tdnr: \"donor\",\n\tdpc: \"depicted\",\n\tdpt: \"depositor\",\n\tdrm: \"draftsman\",\n\tdrt: \"director\",\n\tdsr: \"designer\",\n\tdst: \"distributor\",\n\tdtc: \"data contributor\",\n\tdte: \"dedicatee\",\n\tdtm: \"data manager\",\n\tdto: \"dedicator\",\n\tdub: \"dubious author\",\n\tedc: \"editor of compilation\",\n\tedd: \"editorial director\",\n\tedm: \"editor of moving image work\",\n\tedt: \"editor\",\n\tegr: \"engraver\",\n\telg: \"electrician\",\n\telt: \"electrotyper\",\n\teng: \"engineer\",\n\tenj: \"enacting jurisdiction\",\n\tetr: \"etcher\",\n\tevp: \"event place\",\n\texp: \"expert\",\n\tfac: \"facsimilist\",\n\tfds: \"film distributor\",\n\tfld: \"field director\",\n\tflm: \"film editor\",\n\tfmd: \"film director\",\n\tfmk: \"filmmaker\",\n\tfmo: \"former owner\",\n\tfmp: \"film producer\",\n\tfnd: \"funder\",\n\tfon: \"founder\",\n\tfpy: \"first party\",\n\tfrg: \"forger\",\n\tgdv: \"game developer\",\n\tgis: \"geographic information specialist\",\n\this: \"host institution\",\n\thnr: \"honoree\",\n\thst: \"host\",\n\till: \"illustrator\",\n\tilu: \"illuminator\",\n\tink: \"inker\",\n\tins: \"inscriber\",\n\tinv: \"inventor\",\n\tisb: \"issuing body\",\n\titr: \"instrumentalist\",\n\tive: \"interviewee\",\n\tivr: \"interviewer\",\n\tjud: \"judge\",\n\tjug: \"jurisdiction governed\",\n\tlbr: \"laboratory\",\n\tlbt: \"librettist\",\n\tldr: \"laboratory director\",\n\tled: \"lead\",\n\tlee: \"libelee-appellee\",\n\tlel: \"libelee\",\n\tlen: \"lender\",\n\tlet: \"libelee-appellant\",\n\tlgd: \"lighting designer\",\n\tlie: \"libelant-appellee\",\n\tlil: \"libelant\",\n\tlit: \"libelant-appellant\",\n\tlsa: \"landscape architect\",\n\tlse: \"licensee\",\n\tlso: \"licensor\",\n\tltg: \"lithographer\",\n\tltr: \"letterer\",\n\tlyr: \"lyricist\",\n\tmcp: \"music copyist\",\n\tmdc: \"metadata contact\",\n\tmed: \"medium\",\n\tmfp: \"manufacture place\",\n\tmfr: \"manufacturer\",\n\tmka: \"makeup artist\",\n\tmod: \"moderator\",\n\tmon: \"monitor\",\n\tmrb: \"marbler\",\n\tmrk: \"markup editor\",\n\tmsd: \"musical director\",\n\tmte: \"metal engraver\",\n\tmtk: \"minute taker\",\n\tmup: \"music programmer\",\n\tmus: \"musician\",\n\tmxe: \"mixing engineer\",\n\tnan: \"news anchor\",\n\tnrt: \"narrator\",\n\tonp: \"onscreen participant\",\n\topn: \"opponent\",\n\torg: \"originator\",\n\torm: \"organizer\",\n\tosp: \"onscreen presenter\",\n\toth: \"other\",\n\town: \"owner\",\n\tpad: \"place of address\",\n\tpan: \"panelist\",\n\tpat: \"patron\",\n\tpbd: \"publisher director\",\n\tpbl: \"publisher\",\n\tpdr: \"project director\",\n\tpfr: \"proofreader\",\n\tpht: \"photographer\",\n\tplt: \"platemaker\",\n\tpma: \"permitting agency\",\n\tpmn: \"production manager\",\n\tpnc: \"penciller\",\n\tpop: \"printer of plates\",\n\tppm: \"papermaker\",\n\tppt: \"puppeteer\",\n\tpra: \"praeses\",\n\tprc: \"process contact\",\n\tprd: \"production personnel\",\n\tpre: \"presenter\",\n\tprf: \"performer\",\n\tprg: \"programmer\",\n\tprm: \"printmaker\",\n\tprn: \"production company\",\n\tpro: \"producer\",\n\tprp: \"production place\",\n\tprs: \"production designer\",\n\tprt: \"printer\",\n\tprv: \"provider\",\n\tpta: \"patent applicant\",\n\tpte: \"plaintiff-appellee\",\n\tptf: \"plaintiff\",\n\tpth: \"patent holder\",\n\tptt: \"plaintiff-appellant\",\n\tpup: \"publication place\",\n\trap: \"rapporteur\",\n\trbr: \"rubricator\",\n\trcd: \"recordist\",\n\trce: \"recording engineer\",\n\trcp: \"addressee\",\n\trdd: \"radio director\",\n\tred: \"redaktor\",\n\tren: \"renderer\",\n\tres: \"researcher\",\n\trev: \"reviewer\",\n\trpc: \"radio producer\",\n\trps: \"repository\",\n\trpt: \"reporter\",\n\trpy: \"responsible party\",\n\trse: \"respondent-appellee\",\n\trsg: \"restager\",\n\trsp: \"respondent\",\n\trsr: \"restorationist\",\n\trst: \"respondent-appellant\",\n\trth: \"research team head\",\n\trtm: \"research team member\",\n\trxa: \"remix artist\",\n\tsad: \"scientific advisor\",\n\tsce: \"scenarist\",\n\tscl: \"sculptor\",\n\tscr: \"scribe\",\n\tsde: \"sound engineer\",\n\tsds: \"sound designer\",\n\tsec: \"secretary\",\n\tsfx: \"special effects provider\",\n\tsgd: \"stage director\",\n\tsgn: \"signer\",\n\tsht: \"supporting host\",\n\tsll: \"seller\",\n\tsng: \"singer\",\n\tspk: \"speaker\",\n\tspn: \"sponsor\",\n\tspy: \"second party\",\n\tsrv: \"surveyor\",\n\tstd: \"set designer\",\n\tstg: \"setting\",\n\tstl: \"storyteller\",\n\tstm: \"stage manager\",\n\tstn: \"standards body\",\n\tstr: \"stereotyper\",\n\tswd: \"software developer\",\n\ttad: \"technical advisor\",\n\ttau: \"television writer\",\n\ttcd: \"technical director\",\n\ttch: \"teacher\",\n\tths: \"thesis advisor\",\n\ttld: \"television director\",\n\ttlg: \"television guest\",\n\ttlh: \"television host\",\n\ttlp: \"television producer\",\n\ttrc: \"transcriber\",\n\ttrl: \"translator\",\n\ttyd: \"type designer\",\n\ttyg: \"typographer\",\n\tuvp: \"university place\",\n\tvac: \"voice actor\",\n\tvdg: \"videographer\",\n\tvfx: \"visual effects provider\",\n\tvoc: \"vocalist\",\n\twac: \"writer of added commentary\",\n\twal: \"writer of added lyrics\",\n\twam: \"writer of accompanying material\",\n\twat: \"writer of added text\",\n\twaw: \"writer of afterword\",\n\twdc: \"woodcutter\",\n\twde: \"wood engraver\",\n\twfs: \"writer of film story\",\n\twft: \"writer of intertitles\",\n\twfw: \"writer of foreword\",\n\twin: \"writer of introduction\",\n\twit: \"witness\",\n\twpr: \"writer of preface\",\n\twst: \"writer of supplementary textual content\",\n\twts: \"writer of television story\",\n} as const satisfies Record<Relator, string>;\n",
|
|
5
6
|
"import z from \"zod\";\n\nexport const WebNovelComAuth = z.object({\n\tuid: z.string().regex(/^\\d+$/).max(64),\n\tukey: z\n\t\t.string()\n\t\t.regex(/^[a-zA-Z0-9]+$/)\n\t\t.max(64),\n});\nexport type WebNovelComAuth = z.infer<typeof WebNovelComAuth>;\n\n/** @example `n/1234` */\nexport const WebNovelComNovelId = z.string().regex(/^n\\/\\d+$/, \"Invalid WebNovel novel ID\");\nexport type WebNovelComNovelId = z.infer<typeof WebNovelComNovelId>;\n\n/** @example `n/1234/c/5678` */\nexport const WebNovelComNovelChapterId = z\n\t.string()\n\t.regex(/^n\\/\\d+\\/c\\/\\d+$/, \"Invalid WebNovel novel chapter ID\");\nexport type WebNovelComNovelChapterId = z.infer<typeof WebNovelComNovelChapterId>;\n\n/** @example `c/1234` */\nexport const WebNovelComCreatorId = z.string().regex(/^c\\/\\d+$/, \"Invalid WebNovel creator ID\");\nexport type WebNovelComCreatorId = z.infer<typeof WebNovelComCreatorId>;\n",
|
|
6
7
|
"import {\n\tWebNovelComCreatorId,\n\tWebNovelComNovelChapterId,\n\tWebNovelComNovelId,\n} from \"@/schemas/external/webnovel_com\";\nimport z from \"zod\";\nimport {\n\tHostedNovelComCreatorId,\n\tHostedNovelComNovelChapterId,\n\tHostedNovelComNovelId,\n} from \"./hostednovel_com\";\nimport { NovelFireNetNovelChapterId, NovelFireNetNovelId } from \"./novelfire_net\";\n\nexport const ExternalProvider = z.enum([\"webnovel.com\", \"novelfire.net\", \"hostednovel.com\"]);\nexport type ExternalProvider = z.infer<typeof ExternalProvider>;\n\nexport const ExternalIdentifier = z.object({\n\tprovider: ExternalProvider,\n\tid: z.union([\n\t\tWebNovelComNovelId,\n\t\tWebNovelComNovelChapterId,\n\t\tWebNovelComCreatorId,\n\t\tNovelFireNetNovelId,\n\t\tNovelFireNetNovelChapterId,\n\t\tHostedNovelComNovelId,\n\t\tHostedNovelComNovelChapterId,\n\t\tHostedNovelComCreatorId,\n\t]),\n});\nexport type ExternalIdentifier = z.infer<typeof ExternalIdentifier>;\n\nexport const OriginalSource = z.enum([\"qidian.com\", \"ciweimao.com\"]);\nexport type OriginalSource = z.infer<typeof OriginalSource>;\n",
|
|
7
8
|
"import z from \"zod\";\n\n/** @example `n/example-novel` */\nexport const HostedNovelComNovelId = z\n\t.string()\n\t.regex(/^n\\/[a-zA-Z0-9_-]+$/, \"Invalid HostedNovel novel ID\");\nexport type HostedNovelComNovelId = z.infer<typeof HostedNovelComNovelId>;\n\n/** @example `n/example-novel/c/chapter-1` */\nexport const HostedNovelComNovelChapterId = z\n\t.string()\n\t.regex(/^n\\/[a-zA-Z0-9_-]+\\/c\\/[a-zA-Z0-9_-]+$/, \"Invalid HostedNovel novel chapter ID\");\nexport type HostedNovelComNovelChapterId = z.infer<typeof HostedNovelComNovelChapterId>;\n\n/** @example `c/example-creator` */\nexport const HostedNovelComCreatorId = z\n\t.string()\n\t.regex(/^c\\/[a-zA-Z0-9_-]+$/, \"Invalid HostedNovel creator ID\");\nexport type HostedNovelComCreatorId = z.infer<typeof HostedNovelComCreatorId>;\n",
|
|
@@ -17,7 +18,7 @@
|
|
|
17
18
|
"import type { Image, Translation } from \"@/schemas/common\";\n\n/**\n * Return primary translation, if none is marked as primary, return the first one\n */\nexport function getPrimaryTranslation(t: Translation[]): Translation | undefined {\n\tconst primary = t.find((e) => e.primary === true);\n\tif (typeof primary !== \"undefined\") {\n\t\treturn primary;\n\t}\n\n\treturn t?.[0] ?? undefined;\n}\n\n/**\n * Return primary image, if none is marked as primary, return the first one\n */\nexport function getPrimaryImage(t: Image[]): Image | undefined {\n\tconst primary = t.find((e) => e.primary === true);\n\tif (typeof primary !== \"undefined\") {\n\t\treturn primary;\n\t}\n\n\treturn t?.[0] ?? undefined;\n}\n",
|
|
18
19
|
"import type { Image } from \"@/schemas/common\";\nimport type { ExternalIdentifier } from \"@/schemas/external/common\";\nimport {\n\tHostedNovelComCreatorId,\n\tHostedNovelComNovelChapterId,\n\tHostedNovelComNovelId,\n} from \"@/schemas/external/hostednovel_com\";\nimport { NovelFireNetNovelChapterId, NovelFireNetNovelId } from \"@/schemas/external/novelfire_net\";\nimport {\n\tWebNovelComCreatorId,\n\tWebNovelComNovelChapterId,\n\tWebNovelComNovelId,\n} from \"@/schemas/external/webnovel_com\";\nimport z from \"zod\";\n\nexport function webNovelExternalIdentifierToURL(ext: ExternalIdentifier): URL | undefined {\n\tif (ext.provider === \"webnovel.com\") {\n\t\tconst novelId = WebNovelComNovelId.safeParse(ext.id)?.data ?? undefined;\n\t\tconst novelChapterId = WebNovelComNovelChapterId.safeParse(ext.id)?.data ?? undefined;\n\t\tconst creatorId = WebNovelComCreatorId.safeParse(ext.id)?.data ?? undefined;\n\n\t\tconst HOST = \"https://www.webnovel.com\";\n\n\t\tif (typeof novelId === \"string\") {\n\t\t\treturn new URL(`/book/${novelId.substring(2)}`, HOST);\n\t\t} else if (typeof novelChapterId === \"string\") {\n\t\t\tconst p = novelChapterId.split(\"/\");\n\t\t\treturn new URL(`/book/${p[1]}/${p[3]}`, HOST);\n\t\t} else if (typeof creatorId === \"string\") {\n\t\t\treturn new URL(`/profile/${creatorId.substring(2)}`, HOST);\n\t\t}\n\t} else if (ext.provider === \"novelfire.net\") {\n\t\tconst novelId = NovelFireNetNovelId.safeParse(ext.id)?.data ?? undefined;\n\t\tconst novelChapterId = NovelFireNetNovelChapterId.safeParse(ext.id)?.data ?? undefined;\n\n\t\tconst HOST = \"https://novelfire.net\";\n\n\t\tif (typeof novelId === \"string\") {\n\t\t\treturn new URL(`/book/${novelId.substring(2)}`, HOST);\n\t\t} else if (typeof novelChapterId === \"string\") {\n\t\t\tconst p = novelChapterId.split(\"/\");\n\t\t\treturn new URL(`/book/${p[1]}/${p[3]}`, HOST);\n\t\t}\n\t} else if (ext.provider === \"hostednovel.com\") {\n\t\tconst novelId = HostedNovelComNovelId.safeParse(ext.id)?.data ?? undefined;\n\t\tconst novelChapterId = HostedNovelComNovelChapterId.safeParse(ext.id)?.data ?? undefined;\n\t\tconst creatorId = HostedNovelComCreatorId.safeParse(ext.id)?.data ?? undefined;\n\n\t\tconst HOST = \"https://hostednovel.com\";\n\n\t\tif (typeof novelId === \"string\") {\n\t\t\treturn new URL(`/novel/${novelId.substring(2)}`, HOST);\n\t\t} else if (typeof novelChapterId === \"string\") {\n\t\t\tconst p = novelChapterId.split(\"/\");\n\t\t\treturn new URL(`/novel/${p[1]}/${p[3]}`, HOST);\n\t\t} else if (typeof creatorId === \"string\") {\n\t\t\treturn new URL(`/creator/${creatorId.substring(2)}`, HOST);\n\t\t}\n\t}\n\n\treturn undefined;\n}\n\nconst ImageConfigWsrvNl = z.object({\n\timageProxy: z.literal(\"wsrv.nl\"),\n\n\t// ================================ Format ================\n\t/**\n\t * @see {@link https://wsrv.nl/docs/format#output}\n\t */\n\toutput: z\n\t\t.enum([\"jpg\", \"jxl\", \"png\", \"gif\", \"tiff\", \"webp\", \"original\"])\n\t\t.default(\"original\")\n\t\t.optional(),\n\t/**\n\t * Only supported by `jpg`, `jxl`, `tiff` and `webp`\n\t * @see {@link https://wsrv.nl/docs/format#quality}\n\t */\n\tquality: z.int().min(1).max(100).default(80).optional(),\n\t/**\n\t * @see {@link https://wsrv.nl/docs/format#default-image}\n\t */\n\tdefault: z.url().optional(),\n\t/**\n\t * Only supported by `png`\n\t * @see {@link https://wsrv.nl/docs/format#lossless-compression}\n\t */\n\tlossless: z.boolean().optional(),\n\t/**\n\t * Only supported by `png`\n\t * @see {@link https://wsrv.nl/docs/format#compression-level}\n\t */\n\tcompressionLevel: z.int().min(0).max(9).default(6).optional(),\n\n\t// ================================ Size ================\n\t/**\n\t * @see {@link https://wsrv.nl/docs/size#width}\n\t */\n\twidth: z.int().min(1).max(Number.MAX_SAFE_INTEGER).optional(),\n\t/**\n\t * @see {@link https://wsrv.nl/docs/size#height}\n\t */\n\theight: z.int().min(1).max(Number.MAX_SAFE_INTEGER).optional(),\n\t/**\n\t * A `width`, a `height`, or both must be specified for this parameter to work.\n\t * @see {@link https://wsrv.nl/docs/size#device-pixel-ratio}\n\t */\n\tdevicePixelRatio: z.int().min(1).max(8).optional(),\n\n\t// ================================ Fit ================\n\t/**\n\t * @see {@link https://wsrv.nl/docs/fit#fit}\n\t */\n\tfit: z.enum([\"inside\", \"outside\", \"cover\", \"fill\", \"contain\"]).optional(),\n\t/**\n\t * @see {@link https://wsrv.nl/docs/fit#without-enlargement}\n\t */\n\twithoutEnlargement: z.boolean().default(true).optional(),\n\n\t// ================================ Crop ================\n\t/**\n\t * How the image should be aligned when `fit=cover` or `fit=contain` is set. The `width` and `height` parameters should also be specified.\n\t *\n\t * `entropy`: Focus on the region with the highest [Shannon entropy](https://en.wikipedia.org/wiki/Entropy_%28information_theory%29)\n\t *\n\t * `attention`: Focus on the region with the highest luminance frequency, color saturation and presence of skin tones.\n\t *\n\t * @see {@link https://wsrv.nl/docs/crop#alignment-position}\n\t */\n\talignmentPosition: z\n\t\t.enum([\n\t\t\t\"top\",\n\t\t\t\"right\",\n\t\t\t\"bottom\",\n\t\t\t\"left\",\n\t\t\t\"top-left\",\n\t\t\t\"bottom-left\",\n\t\t\t\"bottom-right\",\n\t\t\t\"top-right\",\n\t\t\t\"center\",\n\n\t\t\t\"entropy\",\n\t\t\t\"attention\",\n\t\t])\n\t\t.default(\"center\")\n\t\t.optional(),\n});\nconst ImageConfig = z.discriminatedUnion(\"imageProxy\", [\n\tz.object({\n\t\timageProxy: z.literal(false),\n\t}),\n\tImageConfigWsrvNl,\n]);\ntype ImageConfig = z.infer<typeof ImageConfig>;\nexport function webNovelImageToURL(\n\timage: Image,\n\tinputConfig: ImageConfig = { imageProxy: false }\n): URL | undefined {\n\tconst config = ImageConfig.parse(inputConfig);\n\n\tlet imageURL: URL | undefined = undefined;\n\n\tif (image.provider === \"webnovel.com\") {\n\t\tif (/^n\\/\\d+(\\/\\d+)?/.test(image.id)) {\n\t\t\tconst sId = image.id.split(\"/\");\n\t\t\t/* cspell:disable-next-line */\n\t\t\timageURL = new URL(`/bookcover/${sId[1]}`, \"https://book-pic.webnovel.com\");\n\t\t\t/* cspell:disable-next-line */\n\t\t\timageURL.searchParams.set(\"imageMogr2/thumbnail/600x\", \"\");\n\t\t\tif (typeof sId?.[2] === \"string\") {\n\t\t\t\timageURL.searchParams.set(\"imageId\", sId[2]);\n\t\t\t}\n\t\t}\n\t}\n\n\tif (typeof imageURL === \"undefined\") {\n\t\treturn undefined;\n\t}\n\n\t// Image Proxy\n\n\tif (config.imageProxy === \"wsrv.nl\") {\n\t\tconst proxyURL = new URL(\"https://wsrv.nl\");\n\t\tproxyURL.searchParams.set(\"url\", imageURL.toString());\n\n\t\tconst proxyConfig = ImageConfigWsrvNl.parse(config);\n\n\t\tif (typeof proxyConfig?.width === \"number\") {\n\t\t\tproxyURL.searchParams.set(\"w\", proxyConfig.width.toString());\n\t\t} else if (typeof image?.width === \"number\") {\n\t\t\tproxyURL.searchParams.set(\"w\", image.width.toString());\n\t\t}\n\t\tif (typeof proxyConfig?.height === \"number\") {\n\t\t\tproxyURL.searchParams.set(\"h\", proxyConfig.height.toString());\n\t\t} else if (typeof image?.height === \"number\") {\n\t\t\tproxyURL.searchParams.set(\"h\", image.height.toString());\n\t\t}\n\t\tif (typeof proxyConfig?.devicePixelRatio === \"number\") {\n\t\t\tproxyURL.searchParams.set(\"dpr\", proxyConfig.devicePixelRatio.toString());\n\t\t}\n\n\t\tif (typeof proxyConfig?.fit === \"string\") {\n\t\t\tproxyURL.searchParams.set(\"fit\", proxyConfig.fit);\n\t\t}\n\t\tif (\n\t\t\ttypeof proxyConfig?.withoutEnlargement === \"boolean\" &&\n\t\t\tproxyConfig.withoutEnlargement === true\n\t\t) {\n\t\t\tproxyURL.searchParams.set(\"we\", \"true\");\n\t\t}\n\n\t\tif (typeof proxyConfig?.alignmentPosition === \"string\") {\n\t\t\tproxyURL.searchParams.set(\"a\", proxyConfig.alignmentPosition);\n\t\t}\n\n\t\tif (typeof proxyConfig?.compressionLevel === \"number\") {\n\t\t\tproxyURL.searchParams.set(\"l\", proxyConfig.compressionLevel.toString());\n\t\t}\n\t\tif (typeof proxyConfig?.lossless === \"boolean\" && proxyConfig.lossless === true) {\n\t\t\tproxyURL.searchParams.set(\"ll\", \"true\");\n\t\t}\n\t\tif (typeof proxyConfig?.default === \"string\") {\n\t\t\tproxyURL.searchParams.set(\"default\", proxyConfig.default);\n\t\t}\n\t\tif (typeof proxyConfig?.output === \"string\" && proxyConfig.output !== \"original\") {\n\t\t\tproxyURL.searchParams.set(\"output\", proxyConfig.output);\n\t\t}\n\t\tif (typeof proxyConfig?.quality === \"number\") {\n\t\t\tproxyURL.searchParams.set(\"q\", proxyConfig.quality.toString());\n\t\t}\n\n\t\treturn proxyURL;\n\t}\n\n\t// Not yet implemented\n\treturn imageURL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ACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,M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IAAK,gBACL,IAAK,YACL,IAAK,iBACL,IAAK,aACL,IAAK,0BACL,IAAK,mBACL,IAAK,cACL,IAAK,qBACL,IAAK,eACL,IAAK,aACL,IAAK,YACL,IAAK,sBACL,IAAK,UACL,IAAK,+BACL,IAAK,mBACL,IAAK,qBACL,IAAK,YACL,IAAK,qBACL,IAAK,sBACL,IAAK,0BACL,IAAK,8BACL,IAAK,oBACL,IAAK,aACL,IAAK,KACL,IAAK,aACL,IAAK,SACL,IAAK,QACL,IAAK,WACL,IAAK,YACL,IAAK,YACL,IAAK,WACL,IAAK,WACL,IAAK,cACL,IAAK,mBACL,IAAK,YACL,IAAK,eACL,IAAK,YACL,IAAK,iBACL,IAAK,wBACL,IAAK,qBACL,IAAK,8BACL,IAAK,SACL,IAAK,WACL,IAAK,cACL,IAAK,eACL,IAAK,WACL,IAAK,wBACL,IAAK,SACL,IAAK,cACL,IAAK,SACL,IAAK,cACL,IAAK,mBACL,IAAK,iBACL,IAAK,cACL,IAAK,gBACL,IAAK,YACL,IAAK,eACL,IAAK,gBACL,IAAK,SACL,IAAK,UACL,IAAK,cACL,IAAK,SACL,IAAK,iBACL,IAAK,oCACL,IAAK,mBACL,IAAK,UACL,IAAK,OACL,IAAK,cACL,IAAK,cACL,IAAK,QACL,IAAK,YACL,IAAK,WACL,IAAK,eACL,IAAK,kBACL,IAAK,cACL,IAAK,cACL,IAAK,QACL,IAAK,wBACL,IAAK,aACL,IAAK,aACL,IAAK,sBACL,IAAK,OACL,IAAK,mBACL,IAAK,UACL,IAAK,SACL,IAAK,oBACL,IAAK,oBACL,IAAK,oBACL,IAAK,WACL,IAAK,qBACL,IAAK,sBACL,IAAK,WACL,IAAK,WACL,IAAK,eACL,IAAK,WACL,IAAK,WACL,IAAK,gBACL,IAAK,mBACL,IAAK,SACL,IAAK,oBACL,IAAK,eACL,IAAK,gBACL,IAAK,YACL,IAAK,UACL,IAAK,UACL,IAAK,gBACL,IAAK,mBACL,IAAK,iBACL,IAAK,eACL,IAAK,mBACL,IAAK,WACL,IAAK,kBACL,IAAK,cACL,IAAK,WACL,IAAK,uBACL,IAAK,WACL,IAAK,aACL,IAAK,YACL,IAAK,qBACL,IAAK,QACL,IAAK,QACL,IAAK,mBACL,IAAK,WACL,IAAK,SACL,IAAK,qBACL,IAAK,YACL,IAAK,mBACL,IAAK,cACL,IAAK,eACL,IAAK,aACL,IAAK,oBACL,IAAK,qBACL,IAAK,YACL,IAAK,oBACL,IAAK,aACL,IAAK,YACL,IAAK,UACL,IAAK,kBACL,IAAK,uBACL,IAAK,YACL,IAAK,YACL,IAAK,aACL,IAAK,aACL,IAAK,qBACL,IAAK,WACL,IAAK,mBACL,IAAK,sBACL,IAAK,UACL,IAAK,WACL,IAAK,mBACL,IAAK,qBACL,IAAK,YACL,IAAK,gBACL,IAAK,sBACL,IAAK,oBACL,IAAK,aACL,IAAK,aACL,IAAK,YACL,IAAK,qBACL,IAAK,YACL,IAAK,iBACL,IAAK,WACL,IAAK,WACL,IAAK,aACL,IAAK,WACL,IAAK,iBACL,IAAK,aACL,IAAK,WACL,IAAK,oBACL,IAAK,sBACL,IAAK,WACL,IAAK,aACL,IAAK,iBACL,IAAK,uBACL,IAAK,qBACL,IAAK,uBACL,IAAK,eACL,IAAK,qBACL,IAAK,YACL,IAAK,WACL,IAAK,SACL,IAAK,iBACL,IAAK,iBACL,IAAK,YACL,IAAK,2BACL,IAAK,iBACL,IAAK,SACL,IAAK,kBACL,IAAK,SACL,IAAK,SACL,IAAK,UACL,IAAK,UACL,IAAK,eACL,IAAK,WACL,IAAK,eACL,IAAK,UACL,IAAK,cACL,IAAK,gBACL,IAAK,iBACL,IAAK,cACL,IAAK,qBACL,IAAK,oBACL,IAAK,oBACL,IAAK,qBACL,IAAK,UACL,IAAK,iBACL,IAAK,sBACL,IAAK,mBACL,IAAK,kBACL,IAAK,sBACL,IAAK,cACL,IAAK,aACL,IAAK,gBACL,IAAK,cACL,IAAK,mBACL,IAAK,cACL,IAAK,eACL,IAAK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,EAAE,CAAC,EAClD,OAAO,EACP,KAAK,GAAG,GACZ,CAAC,EACA,UAAU,CAAC,IAAM,OAAO,EAAK,CAAC,EAAE,OAAO,CAAC,CAAC,ECxB3C,IAAe,GACd,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,M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