isbnlab 0.0.0-stage → 0.2.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.
@@ -0,0 +1,2173 @@
1
+ /**
2
+ * ISBNLab API
3
+ * Book metadata by ISBN: books, editions, covers, authors, publishers, subjects, BISAC genres, and ISBN validation and conversion.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: hello@isbnlab.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ declare const BASE_PATH: string;
13
+ interface ConfigurationParameters {
14
+ basePath?: string;
15
+ fetchApi?: FetchAPI;
16
+ middleware?: Middleware[];
17
+ queryParamsStringify?: (params: HTTPQuery) => string;
18
+ username?: string;
19
+ password?: string;
20
+ apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>);
21
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
22
+ headers?: HTTPHeaders;
23
+ credentials?: RequestCredentials;
24
+ }
25
+ declare class Configuration {
26
+ private configuration;
27
+ constructor(configuration?: ConfigurationParameters);
28
+ set config(configuration: Configuration);
29
+ get basePath(): string;
30
+ get fetchApi(): FetchAPI | undefined;
31
+ get middleware(): Middleware[];
32
+ get queryParamsStringify(): (params: HTTPQuery) => string;
33
+ get username(): string | undefined;
34
+ get password(): string | undefined;
35
+ get apiKey(): ((name: string) => string | Promise<string>) | undefined;
36
+ get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
37
+ get headers(): HTTPHeaders | undefined;
38
+ get credentials(): RequestCredentials | undefined;
39
+ }
40
+ declare const DefaultConfig: Configuration;
41
+ /**
42
+ * This is the base class for all generated API classes.
43
+ */
44
+ declare class BaseAPI {
45
+ protected configuration: Configuration;
46
+ private static readonly jsonRegex;
47
+ private middleware;
48
+ constructor(configuration?: Configuration);
49
+ withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
50
+ withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
51
+ withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
52
+ /**
53
+ * Check if the given MIME is a JSON MIME.
54
+ * JSON MIME examples:
55
+ * application/json
56
+ * application/json; charset=UTF8
57
+ * APPLICATION/JSON
58
+ * application/vnd.company+json
59
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
60
+ * @return True if the given MIME is JSON, false otherwise.
61
+ */
62
+ protected isJsonMime(mime: string | null | undefined): boolean;
63
+ protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response>;
64
+ private createFetchParams;
65
+ private fetchApi;
66
+ /**
67
+ * Create a shallow clone of `this` by constructing a new instance
68
+ * and then shallow cloning data members.
69
+ */
70
+ private clone;
71
+ }
72
+ declare class ResponseError extends Error {
73
+ response: Response;
74
+ name: "ResponseError";
75
+ constructor(response: Response, msg?: string);
76
+ }
77
+ declare class FetchError extends Error {
78
+ cause: Error;
79
+ name: "FetchError";
80
+ constructor(cause: Error, msg?: string);
81
+ }
82
+ declare class RequiredError extends Error {
83
+ field: string;
84
+ name: "RequiredError";
85
+ constructor(field: string, msg?: string);
86
+ }
87
+ declare const COLLECTION_FORMATS: {
88
+ csv: string;
89
+ ssv: string;
90
+ tsv: string;
91
+ pipes: string;
92
+ };
93
+ type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
94
+ type Json = any;
95
+ type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
96
+ type HTTPHeaders = {
97
+ [key: string]: string;
98
+ };
99
+ type HTTPQuery = {
100
+ [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
101
+ };
102
+ type HTTPBody = Json | FormData | URLSearchParams;
103
+ type HTTPRequestInit = {
104
+ headers?: HTTPHeaders;
105
+ method: HTTPMethod;
106
+ credentials?: RequestCredentials;
107
+ body?: HTTPBody;
108
+ };
109
+ type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
110
+ type InitOverrideFunction = (requestContext: {
111
+ init: HTTPRequestInit;
112
+ context: RequestOpts;
113
+ }) => Promise<RequestInit>;
114
+ interface FetchParams {
115
+ url: string;
116
+ init: RequestInit;
117
+ }
118
+ interface RequestOpts {
119
+ path: string;
120
+ method: HTTPMethod;
121
+ headers: HTTPHeaders;
122
+ query?: HTTPQuery;
123
+ body?: HTTPBody;
124
+ }
125
+ declare function querystring(params: HTTPQuery, prefix?: string): string;
126
+ declare function exists(json: any, key: string): boolean;
127
+ declare function mapValues(data: any, fn: (item: any) => any): {
128
+ [key: string]: any;
129
+ };
130
+ declare function canConsumeForm(consumes: Consume[]): boolean;
131
+ interface Consume {
132
+ contentType: string;
133
+ }
134
+ interface RequestContext {
135
+ fetch: FetchAPI;
136
+ url: string;
137
+ init: RequestInit;
138
+ }
139
+ interface ResponseContext {
140
+ fetch: FetchAPI;
141
+ url: string;
142
+ init: RequestInit;
143
+ response: Response;
144
+ }
145
+ interface ErrorContext {
146
+ fetch: FetchAPI;
147
+ url: string;
148
+ init: RequestInit;
149
+ error: unknown;
150
+ response?: Response;
151
+ }
152
+ interface Middleware {
153
+ pre?(context: RequestContext): Promise<FetchParams | void>;
154
+ post?(context: ResponseContext): Promise<Response | void>;
155
+ onError?(context: ErrorContext): Promise<Response | void>;
156
+ }
157
+ interface ApiResponse<T> {
158
+ raw: Response;
159
+ value(): Promise<T>;
160
+ }
161
+ interface ResponseTransformer<T> {
162
+ (json: any): T;
163
+ }
164
+ declare class JSONApiResponse<T> {
165
+ raw: Response;
166
+ private transformer;
167
+ constructor(raw: Response, transformer?: ResponseTransformer<T>);
168
+ value(): Promise<T>;
169
+ }
170
+ declare class VoidApiResponse {
171
+ raw: Response;
172
+ constructor(raw: Response);
173
+ value(): Promise<void>;
174
+ }
175
+ declare class BlobApiResponse {
176
+ raw: Response;
177
+ constructor(raw: Response);
178
+ value(): Promise<Blob>;
179
+ }
180
+ declare class TextApiResponse {
181
+ raw: Response;
182
+ constructor(raw: Response);
183
+ value(): Promise<string>;
184
+ }
185
+
186
+ /**
187
+ * ISBNLab API
188
+ * Book metadata by ISBN: books, editions, covers, authors, publishers, subjects, BISAC genres, and ISBN validation and conversion.
189
+ *
190
+ * The version of the OpenAPI document: 1.0.0
191
+ * Contact: hello@isbnlab.com
192
+ *
193
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
194
+ * https://openapi-generator.tech
195
+ * Do not edit the class manually.
196
+ */
197
+ /**
198
+ *
199
+ * @export
200
+ * @interface AuthorPhoto
201
+ */
202
+ interface AuthorPhoto {
203
+ /**
204
+ *
205
+ * @type {string}
206
+ * @memberof AuthorPhoto
207
+ */
208
+ url?: string | null;
209
+ /**
210
+ *
211
+ * @type {number}
212
+ * @memberof AuthorPhoto
213
+ */
214
+ width?: number | null;
215
+ /**
216
+ *
217
+ * @type {number}
218
+ * @memberof AuthorPhoto
219
+ */
220
+ height?: number | null;
221
+ /**
222
+ *
223
+ * @type {string}
224
+ * @memberof AuthorPhoto
225
+ */
226
+ credit?: string | null;
227
+ /**
228
+ *
229
+ * @type {string}
230
+ * @memberof AuthorPhoto
231
+ */
232
+ license?: string | null;
233
+ /**
234
+ *
235
+ * @type {string}
236
+ * @memberof AuthorPhoto
237
+ */
238
+ licenseUrl?: string | null;
239
+ }
240
+ /**
241
+ * Check if a given object implements the AuthorPhoto interface.
242
+ */
243
+ declare function instanceOfAuthorPhoto(value: object): value is AuthorPhoto;
244
+ declare function AuthorPhotoFromJSON(json: any): AuthorPhoto;
245
+ declare function AuthorPhotoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthorPhoto;
246
+ declare function AuthorPhotoToJSON(json: any): AuthorPhoto;
247
+ declare function AuthorPhotoToJSONTyped(value?: AuthorPhoto | null, ignoreDiscriminator?: boolean): any;
248
+
249
+ /**
250
+ * ISBNLab API
251
+ * Book metadata by ISBN: books, editions, covers, authors, publishers, subjects, BISAC genres, and ISBN validation and conversion.
252
+ *
253
+ * The version of the OpenAPI document: 1.0.0
254
+ * Contact: hello@isbnlab.com
255
+ *
256
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
257
+ * https://openapi-generator.tech
258
+ * Do not edit the class manually.
259
+ */
260
+
261
+ /**
262
+ *
263
+ * @export
264
+ * @interface Author
265
+ */
266
+ interface Author {
267
+ /**
268
+ *
269
+ * @type {string}
270
+ * @memberof Author
271
+ */
272
+ name?: string | null;
273
+ /**
274
+ *
275
+ * @type {string}
276
+ * @memberof Author
277
+ */
278
+ slug?: string | null;
279
+ /**
280
+ *
281
+ * @type {Array<string>}
282
+ * @memberof Author
283
+ */
284
+ alternativeNames?: Array<string> | null;
285
+ /**
286
+ *
287
+ * @type {Date}
288
+ * @memberof Author
289
+ */
290
+ deathDate?: Date | null;
291
+ /**
292
+ *
293
+ * @type {Date}
294
+ * @memberof Author
295
+ */
296
+ birthDate?: Date | null;
297
+ /**
298
+ *
299
+ * @type {string}
300
+ * @memberof Author
301
+ */
302
+ bio?: string | null;
303
+ /**
304
+ *
305
+ * @type {Array<AuthorPhoto>}
306
+ * @memberof Author
307
+ */
308
+ photos?: Array<AuthorPhoto> | null;
309
+ }
310
+ /**
311
+ * Check if a given object implements the Author interface.
312
+ */
313
+ declare function instanceOfAuthor(value: object): value is Author;
314
+ declare function AuthorFromJSON(json: any): Author;
315
+ declare function AuthorFromJSONTyped(json: any, ignoreDiscriminator: boolean): Author;
316
+ declare function AuthorToJSON(json: any): Author;
317
+ declare function AuthorToJSONTyped(value?: Author | null, ignoreDiscriminator?: boolean): any;
318
+
319
+ /**
320
+ * ISBNLab API
321
+ * Book metadata by ISBN: books, editions, covers, authors, publishers, subjects, BISAC genres, and ISBN validation and conversion.
322
+ *
323
+ * The version of the OpenAPI document: 1.0.0
324
+ * Contact: hello@isbnlab.com
325
+ *
326
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
327
+ * https://openapi-generator.tech
328
+ * Do not edit the class manually.
329
+ */
330
+ /**
331
+ *
332
+ * @export
333
+ * @interface RetailLink
334
+ */
335
+ interface RetailLink {
336
+ /**
337
+ *
338
+ * @type {string}
339
+ * @memberof RetailLink
340
+ */
341
+ retailer?: string | null;
342
+ /**
343
+ *
344
+ * @type {string}
345
+ * @memberof RetailLink
346
+ */
347
+ url?: string | null;
348
+ }
349
+ /**
350
+ * Check if a given object implements the RetailLink interface.
351
+ */
352
+ declare function instanceOfRetailLink(value: object): value is RetailLink;
353
+ declare function RetailLinkFromJSON(json: any): RetailLink;
354
+ declare function RetailLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): RetailLink;
355
+ declare function RetailLinkToJSON(json: any): RetailLink;
356
+ declare function RetailLinkToJSONTyped(value?: RetailLink | null, ignoreDiscriminator?: boolean): any;
357
+
358
+ /**
359
+ * ISBNLab API
360
+ * Book metadata by ISBN: books, editions, covers, authors, publishers, subjects, BISAC genres, and ISBN validation and conversion.
361
+ *
362
+ * The version of the OpenAPI document: 1.0.0
363
+ * Contact: hello@isbnlab.com
364
+ *
365
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
366
+ * https://openapi-generator.tech
367
+ * Do not edit the class manually.
368
+ */
369
+ /**
370
+ *
371
+ * @export
372
+ * @interface SeriesBook
373
+ */
374
+ interface SeriesBook {
375
+ /**
376
+ *
377
+ * @type {string}
378
+ * @memberof SeriesBook
379
+ */
380
+ isbn10?: string | null;
381
+ /**
382
+ *
383
+ * @type {string}
384
+ * @memberof SeriesBook
385
+ */
386
+ isbn13?: string | null;
387
+ /**
388
+ *
389
+ * @type {string}
390
+ * @memberof SeriesBook
391
+ */
392
+ title?: string | null;
393
+ /**
394
+ *
395
+ * @type {string}
396
+ * @memberof SeriesBook
397
+ */
398
+ slug?: string | null;
399
+ /**
400
+ *
401
+ * @type {number}
402
+ * @memberof SeriesBook
403
+ */
404
+ number?: number | null;
405
+ /**
406
+ *
407
+ * @type {number}
408
+ * @memberof SeriesBook
409
+ */
410
+ workId?: number | null;
411
+ /**
412
+ *
413
+ * @type {string}
414
+ * @memberof SeriesBook
415
+ */
416
+ workSlug?: string | null;
417
+ }
418
+ /**
419
+ * Check if a given object implements the SeriesBook interface.
420
+ */
421
+ declare function instanceOfSeriesBook(value: object): value is SeriesBook;
422
+ declare function SeriesBookFromJSON(json: any): SeriesBook;
423
+ declare function SeriesBookFromJSONTyped(json: any, ignoreDiscriminator: boolean): SeriesBook;
424
+ declare function SeriesBookToJSON(json: any): SeriesBook;
425
+ declare function SeriesBookToJSONTyped(value?: SeriesBook | null, ignoreDiscriminator?: boolean): any;
426
+
427
+ /**
428
+ * ISBNLab API
429
+ * Book metadata by ISBN: books, editions, covers, authors, publishers, subjects, BISAC genres, and ISBN validation and conversion.
430
+ *
431
+ * The version of the OpenAPI document: 1.0.0
432
+ * Contact: hello@isbnlab.com
433
+ *
434
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
435
+ * https://openapi-generator.tech
436
+ * Do not edit the class manually.
437
+ */
438
+ /**
439
+ *
440
+ * @export
441
+ * @interface SeriesParent
442
+ */
443
+ interface SeriesParent {
444
+ /**
445
+ *
446
+ * @type {number}
447
+ * @memberof SeriesParent
448
+ */
449
+ id?: number | null;
450
+ /**
451
+ *
452
+ * @type {string}
453
+ * @memberof SeriesParent
454
+ */
455
+ slug?: string | null;
456
+ /**
457
+ *
458
+ * @type {string}
459
+ * @memberof SeriesParent
460
+ */
461
+ name?: string | null;
462
+ }
463
+ /**
464
+ * Check if a given object implements the SeriesParent interface.
465
+ */
466
+ declare function instanceOfSeriesParent(value: object): value is SeriesParent;
467
+ declare function SeriesParentFromJSON(json: any): SeriesParent;
468
+ declare function SeriesParentFromJSONTyped(json: any, ignoreDiscriminator: boolean): SeriesParent;
469
+ declare function SeriesParentToJSON(json: any): SeriesParent;
470
+ declare function SeriesParentToJSONTyped(value?: SeriesParent | null, ignoreDiscriminator?: boolean): any;
471
+
472
+ /**
473
+ * ISBNLab API
474
+ * Book metadata by ISBN: books, editions, covers, authors, publishers, subjects, BISAC genres, and ISBN validation and conversion.
475
+ *
476
+ * The version of the OpenAPI document: 1.0.0
477
+ * Contact: hello@isbnlab.com
478
+ *
479
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
480
+ * https://openapi-generator.tech
481
+ * Do not edit the class manually.
482
+ */
483
+
484
+ /**
485
+ *
486
+ * @export
487
+ * @interface OtherSeries
488
+ */
489
+ interface OtherSeries {
490
+ /**
491
+ *
492
+ * @type {number}
493
+ * @memberof OtherSeries
494
+ */
495
+ id?: number | null;
496
+ /**
497
+ *
498
+ * @type {string}
499
+ * @memberof OtherSeries
500
+ */
501
+ identifier?: string | null;
502
+ /**
503
+ *
504
+ * @type {string}
505
+ * @memberof OtherSeries
506
+ */
507
+ slug?: string | null;
508
+ /**
509
+ *
510
+ * @type {string}
511
+ * @memberof OtherSeries
512
+ */
513
+ name?: string | null;
514
+ /**
515
+ *
516
+ * @type {number}
517
+ * @memberof OtherSeries
518
+ */
519
+ number?: number | null;
520
+ /**
521
+ *
522
+ * @type {string}
523
+ * @memberof OtherSeries
524
+ */
525
+ kind?: OtherSeriesKindEnum | null;
526
+ /**
527
+ *
528
+ * @type {SeriesParent}
529
+ * @memberof OtherSeries
530
+ */
531
+ parent?: SeriesParent | null;
532
+ }
533
+ /**
534
+ * @export
535
+ */
536
+ declare const OtherSeriesKindEnum: {
537
+ readonly Story: "story";
538
+ readonly Collection: "collection";
539
+ readonly Unknown: "unknown";
540
+ readonly UnknownDefaultOpenApi: "11184809";
541
+ };
542
+ type OtherSeriesKindEnum = typeof OtherSeriesKindEnum[keyof typeof OtherSeriesKindEnum];
543
+ /**
544
+ * Check if a given object implements the OtherSeries interface.
545
+ */
546
+ declare function instanceOfOtherSeries(value: object): value is OtherSeries;
547
+ declare function OtherSeriesFromJSON(json: any): OtherSeries;
548
+ declare function OtherSeriesFromJSONTyped(json: any, ignoreDiscriminator: boolean): OtherSeries;
549
+ declare function OtherSeriesToJSON(json: any): OtherSeries;
550
+ declare function OtherSeriesToJSONTyped(value?: OtherSeries | null, ignoreDiscriminator?: boolean): any;
551
+
552
+ /**
553
+ * ISBNLab API
554
+ * Book metadata by ISBN: books, editions, covers, authors, publishers, subjects, BISAC genres, and ISBN validation and conversion.
555
+ *
556
+ * The version of the OpenAPI document: 1.0.0
557
+ * Contact: hello@isbnlab.com
558
+ *
559
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
560
+ * https://openapi-generator.tech
561
+ * Do not edit the class manually.
562
+ */
563
+
564
+ /**
565
+ *
566
+ * @export
567
+ * @interface Series
568
+ */
569
+ interface Series {
570
+ /**
571
+ *
572
+ * @type {number}
573
+ * @memberof Series
574
+ */
575
+ id?: number | null;
576
+ /**
577
+ *
578
+ * @type {string}
579
+ * @memberof Series
580
+ */
581
+ identifier?: string | null;
582
+ /**
583
+ *
584
+ * @type {string}
585
+ * @memberof Series
586
+ */
587
+ slug?: string | null;
588
+ /**
589
+ *
590
+ * @type {string}
591
+ * @memberof Series
592
+ */
593
+ name?: string | null;
594
+ /**
595
+ *
596
+ * @type {number}
597
+ * @memberof Series
598
+ */
599
+ number?: number | null;
600
+ /**
601
+ *
602
+ * @type {string}
603
+ * @memberof Series
604
+ */
605
+ kind?: SeriesKindEnum | null;
606
+ /**
607
+ *
608
+ * @type {SeriesParent}
609
+ * @memberof Series
610
+ */
611
+ parent?: SeriesParent | null;
612
+ /**
613
+ *
614
+ * @type {Array<OtherSeries>}
615
+ * @memberof Series
616
+ */
617
+ otherSeries?: Array<OtherSeries> | null;
618
+ /**
619
+ *
620
+ * @type {SeriesBook}
621
+ * @memberof Series
622
+ */
623
+ previousBook?: SeriesBook | null;
624
+ /**
625
+ *
626
+ * @type {SeriesBook}
627
+ * @memberof Series
628
+ */
629
+ nextBook?: SeriesBook | null;
630
+ }
631
+ /**
632
+ * @export
633
+ */
634
+ declare const SeriesKindEnum: {
635
+ readonly Story: "story";
636
+ readonly Collection: "collection";
637
+ readonly Unknown: "unknown";
638
+ readonly UnknownDefaultOpenApi: "11184809";
639
+ };
640
+ type SeriesKindEnum = typeof SeriesKindEnum[keyof typeof SeriesKindEnum];
641
+ /**
642
+ * Check if a given object implements the Series interface.
643
+ */
644
+ declare function instanceOfSeries(value: object): value is Series;
645
+ declare function SeriesFromJSON(json: any): Series;
646
+ declare function SeriesFromJSONTyped(json: any, ignoreDiscriminator: boolean): Series;
647
+ declare function SeriesToJSON(json: any): Series;
648
+ declare function SeriesToJSONTyped(value?: Series | null, ignoreDiscriminator?: boolean): any;
649
+
650
+ /**
651
+ * ISBNLab API
652
+ * Book metadata by ISBN: books, editions, covers, authors, publishers, subjects, BISAC genres, and ISBN validation and conversion.
653
+ *
654
+ * The version of the OpenAPI document: 1.0.0
655
+ * Contact: hello@isbnlab.com
656
+ *
657
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
658
+ * https://openapi-generator.tech
659
+ * Do not edit the class manually.
660
+ */
661
+ /**
662
+ *
663
+ * @export
664
+ * @interface Category
665
+ */
666
+ interface Category {
667
+ /**
668
+ *
669
+ * @type {number}
670
+ * @memberof Category
671
+ */
672
+ id?: number | null;
673
+ /**
674
+ *
675
+ * @type {string}
676
+ * @memberof Category
677
+ */
678
+ name?: string | null;
679
+ /**
680
+ *
681
+ * @type {string}
682
+ * @memberof Category
683
+ */
684
+ uri?: string | null;
685
+ }
686
+ /**
687
+ * Check if a given object implements the Category interface.
688
+ */
689
+ declare function instanceOfCategory(value: object): value is Category;
690
+ declare function CategoryFromJSON(json: any): Category;
691
+ declare function CategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): Category;
692
+ declare function CategoryToJSON(json: any): Category;
693
+ declare function CategoryToJSONTyped(value?: Category | null, ignoreDiscriminator?: boolean): any;
694
+
695
+ /**
696
+ * ISBNLab API
697
+ * Book metadata by ISBN: books, editions, covers, authors, publishers, subjects, BISAC genres, and ISBN validation and conversion.
698
+ *
699
+ * The version of the OpenAPI document: 1.0.0
700
+ * Contact: hello@isbnlab.com
701
+ *
702
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
703
+ * https://openapi-generator.tech
704
+ * Do not edit the class manually.
705
+ */
706
+ /**
707
+ *
708
+ * @export
709
+ * @interface EditionRef
710
+ */
711
+ interface EditionRef {
712
+ /**
713
+ *
714
+ * @type {string}
715
+ * @memberof EditionRef
716
+ */
717
+ isbn10?: string | null;
718
+ /**
719
+ *
720
+ * @type {string}
721
+ * @memberof EditionRef
722
+ */
723
+ isbn13?: string | null;
724
+ /**
725
+ *
726
+ * @type {string}
727
+ * @memberof EditionRef
728
+ */
729
+ title?: string | null;
730
+ /**
731
+ *
732
+ * @type {string}
733
+ * @memberof EditionRef
734
+ */
735
+ slug?: string | null;
736
+ /**
737
+ *
738
+ * @type {string}
739
+ * @memberof EditionRef
740
+ */
741
+ published?: string | null;
742
+ /**
743
+ *
744
+ * @type {string}
745
+ * @memberof EditionRef
746
+ */
747
+ physicalFormat?: string | null;
748
+ /**
749
+ *
750
+ * @type {number}
751
+ * @memberof EditionRef
752
+ */
753
+ pages?: number | null;
754
+ /**
755
+ *
756
+ * @type {string}
757
+ * @memberof EditionRef
758
+ */
759
+ imprint?: string | null;
760
+ }
761
+ /**
762
+ * Check if a given object implements the EditionRef interface.
763
+ */
764
+ declare function instanceOfEditionRef(value: object): value is EditionRef;
765
+ declare function EditionRefFromJSON(json: any): EditionRef;
766
+ declare function EditionRefFromJSONTyped(json: any, ignoreDiscriminator: boolean): EditionRef;
767
+ declare function EditionRefToJSON(json: any): EditionRef;
768
+ declare function EditionRefToJSONTyped(value?: EditionRef | null, ignoreDiscriminator?: boolean): any;
769
+
770
+ /**
771
+ * ISBNLab API
772
+ * Book metadata by ISBN: books, editions, covers, authors, publishers, subjects, BISAC genres, and ISBN validation and conversion.
773
+ *
774
+ * The version of the OpenAPI document: 1.0.0
775
+ * Contact: hello@isbnlab.com
776
+ *
777
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
778
+ * https://openapi-generator.tech
779
+ * Do not edit the class manually.
780
+ */
781
+ /**
782
+ *
783
+ * @export
784
+ * @interface IsbnDetails
785
+ */
786
+ interface IsbnDetails {
787
+ /**
788
+ *
789
+ * @type {string}
790
+ * @memberof IsbnDetails
791
+ */
792
+ id?: string | null;
793
+ /**
794
+ *
795
+ * @type {string}
796
+ * @memberof IsbnDetails
797
+ */
798
+ isbn10?: string | null;
799
+ /**
800
+ *
801
+ * @type {string}
802
+ * @memberof IsbnDetails
803
+ */
804
+ isbn10Formatted?: string | null;
805
+ /**
806
+ *
807
+ * @type {string}
808
+ * @memberof IsbnDetails
809
+ */
810
+ isbn13?: string | null;
811
+ /**
812
+ *
813
+ * @type {string}
814
+ * @memberof IsbnDetails
815
+ */
816
+ isbn13Formatted?: string | null;
817
+ /**
818
+ *
819
+ * @type {string}
820
+ * @memberof IsbnDetails
821
+ */
822
+ ean?: string | null;
823
+ /**
824
+ *
825
+ * @type {string}
826
+ * @memberof IsbnDetails
827
+ */
828
+ asin?: string | null;
829
+ /**
830
+ *
831
+ * @type {string}
832
+ * @memberof IsbnDetails
833
+ */
834
+ prefix?: string | null;
835
+ /**
836
+ *
837
+ * @type {string}
838
+ * @memberof IsbnDetails
839
+ */
840
+ registrationGroup?: string | null;
841
+ /**
842
+ *
843
+ * @type {string}
844
+ * @memberof IsbnDetails
845
+ */
846
+ registrationGroupName?: string | null;
847
+ /**
848
+ *
849
+ * @type {string}
850
+ * @memberof IsbnDetails
851
+ */
852
+ groupIdentifier?: string | null;
853
+ /**
854
+ *
855
+ * @type {string}
856
+ * @memberof IsbnDetails
857
+ */
858
+ registrant?: string | null;
859
+ /**
860
+ *
861
+ * @type {string}
862
+ * @memberof IsbnDetails
863
+ */
864
+ publication?: string | null;
865
+ /**
866
+ *
867
+ * @type {string}
868
+ * @memberof IsbnDetails
869
+ */
870
+ checkDigit?: string | null;
871
+ }
872
+ /**
873
+ * Check if a given object implements the IsbnDetails interface.
874
+ */
875
+ declare function instanceOfIsbnDetails(value: object): value is IsbnDetails;
876
+ declare function IsbnDetailsFromJSON(json: any): IsbnDetails;
877
+ declare function IsbnDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): IsbnDetails;
878
+ declare function IsbnDetailsToJSON(json: any): IsbnDetails;
879
+ declare function IsbnDetailsToJSONTyped(value?: IsbnDetails | null, ignoreDiscriminator?: boolean): any;
880
+
881
+ /**
882
+ * ISBNLab API
883
+ * Book metadata by ISBN: books, editions, covers, authors, publishers, subjects, BISAC genres, and ISBN validation and conversion.
884
+ *
885
+ * The version of the OpenAPI document: 1.0.0
886
+ * Contact: hello@isbnlab.com
887
+ *
888
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
889
+ * https://openapi-generator.tech
890
+ * Do not edit the class manually.
891
+ */
892
+ /**
893
+ *
894
+ * @export
895
+ * @interface SubjectRef
896
+ */
897
+ interface SubjectRef {
898
+ /**
899
+ *
900
+ * @type {number}
901
+ * @memberof SubjectRef
902
+ */
903
+ id?: number | null;
904
+ /**
905
+ *
906
+ * @type {string}
907
+ * @memberof SubjectRef
908
+ */
909
+ slug?: string | null;
910
+ /**
911
+ *
912
+ * @type {string}
913
+ * @memberof SubjectRef
914
+ */
915
+ name?: string | null;
916
+ /**
917
+ *
918
+ * @type {boolean}
919
+ * @memberof SubjectRef
920
+ */
921
+ inherited?: boolean | null;
922
+ }
923
+ /**
924
+ * Check if a given object implements the SubjectRef interface.
925
+ */
926
+ declare function instanceOfSubjectRef(value: object): value is SubjectRef;
927
+ declare function SubjectRefFromJSON(json: any): SubjectRef;
928
+ declare function SubjectRefFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubjectRef;
929
+ declare function SubjectRefToJSON(json: any): SubjectRef;
930
+ declare function SubjectRefToJSONTyped(value?: SubjectRef | null, ignoreDiscriminator?: boolean): any;
931
+
932
+ /**
933
+ * ISBNLab API
934
+ * Book metadata by ISBN: books, editions, covers, authors, publishers, subjects, BISAC genres, and ISBN validation and conversion.
935
+ *
936
+ * The version of the OpenAPI document: 1.0.0
937
+ * Contact: hello@isbnlab.com
938
+ *
939
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
940
+ * https://openapi-generator.tech
941
+ * Do not edit the class manually.
942
+ */
943
+ /**
944
+ *
945
+ * @export
946
+ * @interface Contributor
947
+ */
948
+ interface Contributor {
949
+ /**
950
+ *
951
+ * @type {number}
952
+ * @memberof Contributor
953
+ */
954
+ id?: number | null;
955
+ /**
956
+ *
957
+ * @type {string}
958
+ * @memberof Contributor
959
+ */
960
+ slug?: string | null;
961
+ /**
962
+ *
963
+ * @type {string}
964
+ * @memberof Contributor
965
+ */
966
+ name?: string | null;
967
+ /**
968
+ *
969
+ * @type {string}
970
+ * @memberof Contributor
971
+ */
972
+ role?: ContributorRoleEnum | null;
973
+ }
974
+ /**
975
+ * @export
976
+ */
977
+ declare const ContributorRoleEnum: {
978
+ readonly Translator: "translator";
979
+ readonly Illustrator: "illustrator";
980
+ readonly Editor: "editor";
981
+ readonly Narrator: "narrator";
982
+ readonly Introduction: "introduction";
983
+ readonly Photographer: "photographer";
984
+ readonly UnknownDefaultOpenApi: "11184809";
985
+ };
986
+ type ContributorRoleEnum = typeof ContributorRoleEnum[keyof typeof ContributorRoleEnum];
987
+ /**
988
+ * Check if a given object implements the Contributor interface.
989
+ */
990
+ declare function instanceOfContributor(value: object): value is Contributor;
991
+ declare function ContributorFromJSON(json: any): Contributor;
992
+ declare function ContributorFromJSONTyped(json: any, ignoreDiscriminator: boolean): Contributor;
993
+ declare function ContributorToJSON(json: any): Contributor;
994
+ declare function ContributorToJSONTyped(value?: Contributor | null, ignoreDiscriminator?: boolean): any;
995
+
996
+ /**
997
+ * ISBNLab API
998
+ * Book metadata by ISBN: books, editions, covers, authors, publishers, subjects, BISAC genres, and ISBN validation and conversion.
999
+ *
1000
+ * The version of the OpenAPI document: 1.0.0
1001
+ * Contact: hello@isbnlab.com
1002
+ *
1003
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1004
+ * https://openapi-generator.tech
1005
+ * Do not edit the class manually.
1006
+ */
1007
+ /**
1008
+ *
1009
+ * @export
1010
+ * @interface EntityRef
1011
+ */
1012
+ interface EntityRef {
1013
+ /**
1014
+ *
1015
+ * @type {number}
1016
+ * @memberof EntityRef
1017
+ */
1018
+ id?: number | null;
1019
+ /**
1020
+ *
1021
+ * @type {string}
1022
+ * @memberof EntityRef
1023
+ */
1024
+ slug?: string | null;
1025
+ /**
1026
+ *
1027
+ * @type {string}
1028
+ * @memberof EntityRef
1029
+ */
1030
+ name?: string | null;
1031
+ }
1032
+ /**
1033
+ * Check if a given object implements the EntityRef interface.
1034
+ */
1035
+ declare function instanceOfEntityRef(value: object): value is EntityRef;
1036
+ declare function EntityRefFromJSON(json: any): EntityRef;
1037
+ declare function EntityRefFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntityRef;
1038
+ declare function EntityRefToJSON(json: any): EntityRef;
1039
+ declare function EntityRefToJSONTyped(value?: EntityRef | null, ignoreDiscriminator?: boolean): any;
1040
+
1041
+ /**
1042
+ * ISBNLab API
1043
+ * Book metadata by ISBN: books, editions, covers, authors, publishers, subjects, BISAC genres, and ISBN validation and conversion.
1044
+ *
1045
+ * The version of the OpenAPI document: 1.0.0
1046
+ * Contact: hello@isbnlab.com
1047
+ *
1048
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1049
+ * https://openapi-generator.tech
1050
+ * Do not edit the class manually.
1051
+ */
1052
+ /**
1053
+ *
1054
+ * @export
1055
+ * @interface RatingSummary
1056
+ */
1057
+ interface RatingSummary {
1058
+ /**
1059
+ *
1060
+ * @type {number}
1061
+ * @memberof RatingSummary
1062
+ */
1063
+ average?: number | null;
1064
+ /**
1065
+ *
1066
+ * @type {number}
1067
+ * @memberof RatingSummary
1068
+ */
1069
+ count?: number | null;
1070
+ /**
1071
+ *
1072
+ * @type {number}
1073
+ * @memberof RatingSummary
1074
+ */
1075
+ sum?: number | null;
1076
+ }
1077
+ /**
1078
+ * Check if a given object implements the RatingSummary interface.
1079
+ */
1080
+ declare function instanceOfRatingSummary(value: object): value is RatingSummary;
1081
+ declare function RatingSummaryFromJSON(json: any): RatingSummary;
1082
+ declare function RatingSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): RatingSummary;
1083
+ declare function RatingSummaryToJSON(json: any): RatingSummary;
1084
+ declare function RatingSummaryToJSONTyped(value?: RatingSummary | null, ignoreDiscriminator?: boolean): any;
1085
+
1086
+ /**
1087
+ * ISBNLab API
1088
+ * Book metadata by ISBN: books, editions, covers, authors, publishers, subjects, BISAC genres, and ISBN validation and conversion.
1089
+ *
1090
+ * The version of the OpenAPI document: 1.0.0
1091
+ * Contact: hello@isbnlab.com
1092
+ *
1093
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1094
+ * https://openapi-generator.tech
1095
+ * Do not edit the class manually.
1096
+ */
1097
+ /**
1098
+ *
1099
+ * @export
1100
+ * @interface RatingCounts
1101
+ */
1102
+ interface RatingCounts {
1103
+ /**
1104
+ *
1105
+ * @type {number}
1106
+ * @memberof RatingCounts
1107
+ */
1108
+ _1?: number | null;
1109
+ /**
1110
+ *
1111
+ * @type {number}
1112
+ * @memberof RatingCounts
1113
+ */
1114
+ _2?: number | null;
1115
+ /**
1116
+ *
1117
+ * @type {number}
1118
+ * @memberof RatingCounts
1119
+ */
1120
+ _3?: number | null;
1121
+ /**
1122
+ *
1123
+ * @type {number}
1124
+ * @memberof RatingCounts
1125
+ */
1126
+ _4?: number | null;
1127
+ /**
1128
+ *
1129
+ * @type {number}
1130
+ * @memberof RatingCounts
1131
+ */
1132
+ _5?: number | null;
1133
+ }
1134
+ /**
1135
+ * Check if a given object implements the RatingCounts interface.
1136
+ */
1137
+ declare function instanceOfRatingCounts(value: object): value is RatingCounts;
1138
+ declare function RatingCountsFromJSON(json: any): RatingCounts;
1139
+ declare function RatingCountsFromJSONTyped(json: any, ignoreDiscriminator: boolean): RatingCounts;
1140
+ declare function RatingCountsToJSON(json: any): RatingCounts;
1141
+ declare function RatingCountsToJSONTyped(value?: RatingCounts | null, ignoreDiscriminator?: boolean): any;
1142
+
1143
+ /**
1144
+ * ISBNLab API
1145
+ * Book metadata by ISBN: books, editions, covers, authors, publishers, subjects, BISAC genres, and ISBN validation and conversion.
1146
+ *
1147
+ * The version of the OpenAPI document: 1.0.0
1148
+ * Contact: hello@isbnlab.com
1149
+ *
1150
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1151
+ * https://openapi-generator.tech
1152
+ * Do not edit the class manually.
1153
+ */
1154
+
1155
+ /**
1156
+ *
1157
+ * @export
1158
+ * @interface Ratings
1159
+ */
1160
+ interface Ratings {
1161
+ /**
1162
+ *
1163
+ * @type {RatingSummary}
1164
+ * @memberof Ratings
1165
+ */
1166
+ summary?: RatingSummary | null;
1167
+ /**
1168
+ *
1169
+ * @type {RatingCounts}
1170
+ * @memberof Ratings
1171
+ */
1172
+ counts?: RatingCounts | null;
1173
+ }
1174
+ /**
1175
+ * Check if a given object implements the Ratings interface.
1176
+ */
1177
+ declare function instanceOfRatings(value: object): value is Ratings;
1178
+ declare function RatingsFromJSON(json: any): Ratings;
1179
+ declare function RatingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ratings;
1180
+ declare function RatingsToJSON(json: any): Ratings;
1181
+ declare function RatingsToJSONTyped(value?: Ratings | null, ignoreDiscriminator?: boolean): any;
1182
+
1183
+ /**
1184
+ * ISBNLab API
1185
+ * Book metadata by ISBN: books, editions, covers, authors, publishers, subjects, BISAC genres, and ISBN validation and conversion.
1186
+ *
1187
+ * The version of the OpenAPI document: 1.0.0
1188
+ * Contact: hello@isbnlab.com
1189
+ *
1190
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1191
+ * https://openapi-generator.tech
1192
+ * Do not edit the class manually.
1193
+ */
1194
+
1195
+ /**
1196
+ *
1197
+ * @export
1198
+ * @interface Book
1199
+ */
1200
+ interface Book {
1201
+ /**
1202
+ *
1203
+ * @type {number}
1204
+ * @memberof Book
1205
+ */
1206
+ readonly id?: number | null;
1207
+ /**
1208
+ *
1209
+ * @type {string}
1210
+ * @memberof Book
1211
+ */
1212
+ isbn10?: string | null;
1213
+ /**
1214
+ *
1215
+ * @type {string}
1216
+ * @memberof Book
1217
+ */
1218
+ isbn13?: string | null;
1219
+ /**
1220
+ *
1221
+ * @type {number}
1222
+ * @memberof Book
1223
+ */
1224
+ workId?: number | null;
1225
+ /**
1226
+ *
1227
+ * @type {string}
1228
+ * @memberof Book
1229
+ */
1230
+ title?: string | null;
1231
+ /**
1232
+ *
1233
+ * @type {string}
1234
+ * @memberof Book
1235
+ */
1236
+ subtitle?: string | null;
1237
+ /**
1238
+ *
1239
+ * @type {number}
1240
+ * @memberof Book
1241
+ */
1242
+ numberOfPages?: number | null;
1243
+ /**
1244
+ *
1245
+ * @type {string}
1246
+ * @memberof Book
1247
+ */
1248
+ description?: string | null;
1249
+ /**
1250
+ *
1251
+ * @type {Array<EntityRef>}
1252
+ * @memberof Book
1253
+ */
1254
+ publishers?: Array<EntityRef> | null;
1255
+ /**
1256
+ *
1257
+ * @type {Array<EntityRef>}
1258
+ * @memberof Book
1259
+ */
1260
+ imprint?: Array<EntityRef> | null;
1261
+ /**
1262
+ *
1263
+ * @type {Date}
1264
+ * @memberof Book
1265
+ */
1266
+ publishDate?: Date | null;
1267
+ /**
1268
+ *
1269
+ * @type {string}
1270
+ * @memberof Book
1271
+ */
1272
+ physicalFormat?: string | null;
1273
+ /**
1274
+ *
1275
+ * @type {Array<string>}
1276
+ * @memberof Book
1277
+ */
1278
+ covers?: Array<string> | null;
1279
+ /**
1280
+ *
1281
+ * @type {Array<EntityRef>}
1282
+ * @memberof Book
1283
+ */
1284
+ authors?: Array<EntityRef> | null;
1285
+ /**
1286
+ *
1287
+ * @type {Array<Contributor>}
1288
+ * @memberof Book
1289
+ */
1290
+ contributors?: Array<Contributor> | null;
1291
+ /**
1292
+ *
1293
+ * @type {Array<SubjectRef>}
1294
+ * @memberof Book
1295
+ */
1296
+ subjects?: Array<SubjectRef> | null;
1297
+ /**
1298
+ *
1299
+ * @type {Series}
1300
+ * @memberof Book
1301
+ */
1302
+ series?: Series | null;
1303
+ /**
1304
+ *
1305
+ * @type {Array<EntityRef>}
1306
+ * @memberof Book
1307
+ */
1308
+ genres?: Array<EntityRef> | null;
1309
+ /**
1310
+ *
1311
+ * @type {Array<EditionRef>}
1312
+ * @memberof Book
1313
+ */
1314
+ otherEditions?: Array<EditionRef> | null;
1315
+ /**
1316
+ *
1317
+ * @type {EditionRef}
1318
+ * @memberof Book
1319
+ */
1320
+ previousEdition?: EditionRef | null;
1321
+ /**
1322
+ *
1323
+ * @type {EditionRef}
1324
+ * @memberof Book
1325
+ */
1326
+ nextEdition?: EditionRef | null;
1327
+ /**
1328
+ *
1329
+ * @type {string}
1330
+ * @memberof Book
1331
+ */
1332
+ physicalDimensions?: string | null;
1333
+ /**
1334
+ *
1335
+ * @type {Ratings}
1336
+ * @memberof Book
1337
+ */
1338
+ ratings?: Ratings | null;
1339
+ /**
1340
+ *
1341
+ * @type {string}
1342
+ * @memberof Book
1343
+ */
1344
+ language?: string | null;
1345
+ /**
1346
+ *
1347
+ * @type {string}
1348
+ * @memberof Book
1349
+ */
1350
+ saleStatus?: string | null;
1351
+ /**
1352
+ *
1353
+ * @type {string}
1354
+ * @memberof Book
1355
+ */
1356
+ excerpt?: string | null;
1357
+ /**
1358
+ *
1359
+ * @type {string}
1360
+ * @memberof Book
1361
+ */
1362
+ reviewQuotes?: string | null;
1363
+ /**
1364
+ *
1365
+ * @type {Array<RetailLink>}
1366
+ * @memberof Book
1367
+ */
1368
+ retailLinks?: Array<RetailLink> | null;
1369
+ /**
1370
+ *
1371
+ * @type {Array<Category>}
1372
+ * @memberof Book
1373
+ */
1374
+ categories?: Array<Category> | null;
1375
+ /**
1376
+ *
1377
+ * @type {string}
1378
+ * @memberof Book
1379
+ */
1380
+ aiSummary?: string | null;
1381
+ /**
1382
+ *
1383
+ * @type {number}
1384
+ * @memberof Book
1385
+ */
1386
+ canonicalEditionId?: number | null;
1387
+ /**
1388
+ *
1389
+ * @type {string}
1390
+ * @memberof Book
1391
+ */
1392
+ languageCode?: string | null;
1393
+ /**
1394
+ *
1395
+ * @type {string}
1396
+ * @memberof Book
1397
+ */
1398
+ publishDatePrecision?: BookPublishDatePrecisionEnum | null;
1399
+ /**
1400
+ *
1401
+ * @type {number}
1402
+ * @memberof Book
1403
+ */
1404
+ estimatedReadTime?: number | null;
1405
+ /**
1406
+ *
1407
+ * @type {number}
1408
+ * @memberof Book
1409
+ */
1410
+ languagesCount?: number | null;
1411
+ /**
1412
+ *
1413
+ * @type {string}
1414
+ * @memberof Book
1415
+ */
1416
+ link?: string | null;
1417
+ /**
1418
+ *
1419
+ * @type {IsbnDetails}
1420
+ * @memberof Book
1421
+ */
1422
+ isbnModel?: IsbnDetails | null;
1423
+ /**
1424
+ *
1425
+ * @type {number}
1426
+ * @memberof Book
1427
+ */
1428
+ readonly otherEditionsCount?: number | null;
1429
+ }
1430
+ /**
1431
+ * @export
1432
+ */
1433
+ declare const BookPublishDatePrecisionEnum: {
1434
+ readonly Year: "year";
1435
+ readonly Month: "month";
1436
+ readonly Day: "day";
1437
+ readonly UnknownDefaultOpenApi: "11184809";
1438
+ };
1439
+ type BookPublishDatePrecisionEnum = typeof BookPublishDatePrecisionEnum[keyof typeof BookPublishDatePrecisionEnum];
1440
+ /**
1441
+ * Check if a given object implements the Book interface.
1442
+ */
1443
+ declare function instanceOfBook(value: object): value is Book;
1444
+ declare function BookFromJSON(json: any): Book;
1445
+ declare function BookFromJSONTyped(json: any, ignoreDiscriminator: boolean): Book;
1446
+ declare function BookToJSON(json: any): Book;
1447
+ declare function BookToJSONTyped(value?: Omit<Book, 'id' | 'otherEditionsCount'> | null, ignoreDiscriminator?: boolean): any;
1448
+
1449
+ /**
1450
+ * ISBNLab API
1451
+ * Book metadata by ISBN: books, editions, covers, authors, publishers, subjects, BISAC genres, and ISBN validation and conversion.
1452
+ *
1453
+ * The version of the OpenAPI document: 1.0.0
1454
+ * Contact: hello@isbnlab.com
1455
+ *
1456
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1457
+ * https://openapi-generator.tech
1458
+ * Do not edit the class manually.
1459
+ */
1460
+ /**
1461
+ *
1462
+ * @export
1463
+ * @interface CoverSize
1464
+ */
1465
+ interface CoverSize {
1466
+ /**
1467
+ *
1468
+ * @type {string}
1469
+ * @memberof CoverSize
1470
+ */
1471
+ url?: string | null;
1472
+ /**
1473
+ *
1474
+ * @type {string}
1475
+ * @memberof CoverSize
1476
+ */
1477
+ w200?: string | null;
1478
+ /**
1479
+ *
1480
+ * @type {string}
1481
+ * @memberof CoverSize
1482
+ */
1483
+ w400?: string | null;
1484
+ /**
1485
+ *
1486
+ * @type {string}
1487
+ * @memberof CoverSize
1488
+ */
1489
+ w800?: string | null;
1490
+ }
1491
+ /**
1492
+ * Check if a given object implements the CoverSize interface.
1493
+ */
1494
+ declare function instanceOfCoverSize(value: object): value is CoverSize;
1495
+ declare function CoverSizeFromJSON(json: any): CoverSize;
1496
+ declare function CoverSizeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoverSize;
1497
+ declare function CoverSizeToJSON(json: any): CoverSize;
1498
+ declare function CoverSizeToJSONTyped(value?: CoverSize | null, ignoreDiscriminator?: boolean): any;
1499
+
1500
+ /**
1501
+ * ISBNLab API
1502
+ * Book metadata by ISBN: books, editions, covers, authors, publishers, subjects, BISAC genres, and ISBN validation and conversion.
1503
+ *
1504
+ * The version of the OpenAPI document: 1.0.0
1505
+ * Contact: hello@isbnlab.com
1506
+ *
1507
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1508
+ * https://openapi-generator.tech
1509
+ * Do not edit the class manually.
1510
+ */
1511
+
1512
+ /**
1513
+ *
1514
+ * @export
1515
+ * @interface BookCover
1516
+ */
1517
+ interface BookCover {
1518
+ /**
1519
+ *
1520
+ * @type {string}
1521
+ * @memberof BookCover
1522
+ */
1523
+ isbn13?: string | null;
1524
+ /**
1525
+ *
1526
+ * @type {Array<string>}
1527
+ * @memberof BookCover
1528
+ */
1529
+ covers?: Array<string> | null;
1530
+ /**
1531
+ *
1532
+ * @type {Array<CoverSize>}
1533
+ * @memberof BookCover
1534
+ */
1535
+ sizes?: Array<CoverSize> | null;
1536
+ }
1537
+ /**
1538
+ * Check if a given object implements the BookCover interface.
1539
+ */
1540
+ declare function instanceOfBookCover(value: object): value is BookCover;
1541
+ declare function BookCoverFromJSON(json: any): BookCover;
1542
+ declare function BookCoverFromJSONTyped(json: any, ignoreDiscriminator: boolean): BookCover;
1543
+ declare function BookCoverToJSON(json: any): BookCover;
1544
+ declare function BookCoverToJSONTyped(value?: BookCover | null, ignoreDiscriminator?: boolean): any;
1545
+
1546
+ /**
1547
+ * ISBNLab API
1548
+ * Book metadata by ISBN: books, editions, covers, authors, publishers, subjects, BISAC genres, and ISBN validation and conversion.
1549
+ *
1550
+ * The version of the OpenAPI document: 1.0.0
1551
+ * Contact: hello@isbnlab.com
1552
+ *
1553
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1554
+ * https://openapi-generator.tech
1555
+ * Do not edit the class manually.
1556
+ */
1557
+
1558
+ /**
1559
+ *
1560
+ * @export
1561
+ * @interface BookEditions
1562
+ */
1563
+ interface BookEditions {
1564
+ /**
1565
+ *
1566
+ * @type {string}
1567
+ * @memberof BookEditions
1568
+ */
1569
+ isbn13?: string | null;
1570
+ /**
1571
+ *
1572
+ * @type {Array<EditionRef>}
1573
+ * @memberof BookEditions
1574
+ */
1575
+ otherEditions?: Array<EditionRef> | null;
1576
+ /**
1577
+ *
1578
+ * @type {EditionRef}
1579
+ * @memberof BookEditions
1580
+ */
1581
+ previousEdition?: EditionRef | null;
1582
+ /**
1583
+ *
1584
+ * @type {EditionRef}
1585
+ * @memberof BookEditions
1586
+ */
1587
+ nextEdition?: EditionRef | null;
1588
+ }
1589
+ /**
1590
+ * Check if a given object implements the BookEditions interface.
1591
+ */
1592
+ declare function instanceOfBookEditions(value: object): value is BookEditions;
1593
+ declare function BookEditionsFromJSON(json: any): BookEditions;
1594
+ declare function BookEditionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BookEditions;
1595
+ declare function BookEditionsToJSON(json: any): BookEditions;
1596
+ declare function BookEditionsToJSONTyped(value?: BookEditions | null, ignoreDiscriminator?: boolean): any;
1597
+
1598
+ /**
1599
+ * ISBNLab API
1600
+ * Book metadata by ISBN: books, editions, covers, authors, publishers, subjects, BISAC genres, and ISBN validation and conversion.
1601
+ *
1602
+ * The version of the OpenAPI document: 1.0.0
1603
+ * Contact: hello@isbnlab.com
1604
+ *
1605
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1606
+ * https://openapi-generator.tech
1607
+ * Do not edit the class manually.
1608
+ */
1609
+ /**
1610
+ *
1611
+ * @export
1612
+ * @interface Genre
1613
+ */
1614
+ interface Genre {
1615
+ /**
1616
+ *
1617
+ * @type {string}
1618
+ * @memberof Genre
1619
+ */
1620
+ bisacCode?: string | null;
1621
+ /**
1622
+ *
1623
+ * @type {string}
1624
+ * @memberof Genre
1625
+ */
1626
+ name?: string | null;
1627
+ /**
1628
+ *
1629
+ * @type {number}
1630
+ * @memberof Genre
1631
+ */
1632
+ editionCount?: number | null;
1633
+ }
1634
+ /**
1635
+ * Check if a given object implements the Genre interface.
1636
+ */
1637
+ declare function instanceOfGenre(value: object): value is Genre;
1638
+ declare function GenreFromJSON(json: any): Genre;
1639
+ declare function GenreFromJSONTyped(json: any, ignoreDiscriminator: boolean): Genre;
1640
+ declare function GenreToJSON(json: any): Genre;
1641
+ declare function GenreToJSONTyped(value?: Genre | null, ignoreDiscriminator?: boolean): any;
1642
+
1643
+ /**
1644
+ * ISBNLab API
1645
+ * Book metadata by ISBN: books, editions, covers, authors, publishers, subjects, BISAC genres, and ISBN validation and conversion.
1646
+ *
1647
+ * The version of the OpenAPI document: 1.0.0
1648
+ * Contact: hello@isbnlab.com
1649
+ *
1650
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1651
+ * https://openapi-generator.tech
1652
+ * Do not edit the class manually.
1653
+ */
1654
+ /**
1655
+ *
1656
+ * @export
1657
+ * @interface Publisher
1658
+ */
1659
+ interface Publisher {
1660
+ /**
1661
+ *
1662
+ * @type {string}
1663
+ * @memberof Publisher
1664
+ */
1665
+ name?: string | null;
1666
+ /**
1667
+ *
1668
+ * @type {string}
1669
+ * @memberof Publisher
1670
+ */
1671
+ prefix?: string | null;
1672
+ /**
1673
+ *
1674
+ * @type {string}
1675
+ * @memberof Publisher
1676
+ */
1677
+ country?: string | null;
1678
+ /**
1679
+ *
1680
+ * @type {string}
1681
+ * @memberof Publisher
1682
+ */
1683
+ url?: string | null;
1684
+ /**
1685
+ *
1686
+ * @type {string}
1687
+ * @memberof Publisher
1688
+ */
1689
+ slug?: string | null;
1690
+ /**
1691
+ *
1692
+ * @type {number}
1693
+ * @memberof Publisher
1694
+ */
1695
+ editionCount?: number | null;
1696
+ }
1697
+ /**
1698
+ * Check if a given object implements the Publisher interface.
1699
+ */
1700
+ declare function instanceOfPublisher(value: object): value is Publisher;
1701
+ declare function PublisherFromJSON(json: any): Publisher;
1702
+ declare function PublisherFromJSONTyped(json: any, ignoreDiscriminator: boolean): Publisher;
1703
+ declare function PublisherToJSON(json: any): Publisher;
1704
+ declare function PublisherToJSONTyped(value?: Publisher | null, ignoreDiscriminator?: boolean): any;
1705
+
1706
+ /**
1707
+ * ISBNLab API
1708
+ * Book metadata by ISBN: books, editions, covers, authors, publishers, subjects, BISAC genres, and ISBN validation and conversion.
1709
+ *
1710
+ * The version of the OpenAPI document: 1.0.0
1711
+ * Contact: hello@isbnlab.com
1712
+ *
1713
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1714
+ * https://openapi-generator.tech
1715
+ * Do not edit the class manually.
1716
+ */
1717
+ /**
1718
+ *
1719
+ * @export
1720
+ * @interface Subject
1721
+ */
1722
+ interface Subject {
1723
+ /**
1724
+ *
1725
+ * @type {string}
1726
+ * @memberof Subject
1727
+ */
1728
+ name?: string | null;
1729
+ /**
1730
+ *
1731
+ * @type {string}
1732
+ * @memberof Subject
1733
+ */
1734
+ identifier?: string | null;
1735
+ /**
1736
+ *
1737
+ * @type {string}
1738
+ * @memberof Subject
1739
+ */
1740
+ slug?: string | null;
1741
+ /**
1742
+ *
1743
+ * @type {string}
1744
+ * @memberof Subject
1745
+ */
1746
+ firstChar?: string | null;
1747
+ /**
1748
+ *
1749
+ * @type {number}
1750
+ * @memberof Subject
1751
+ */
1752
+ editionCount?: number | null;
1753
+ }
1754
+ /**
1755
+ * Check if a given object implements the Subject interface.
1756
+ */
1757
+ declare function instanceOfSubject(value: object): value is Subject;
1758
+ declare function SubjectFromJSON(json: any): Subject;
1759
+ declare function SubjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): Subject;
1760
+ declare function SubjectToJSON(json: any): Subject;
1761
+ declare function SubjectToJSONTyped(value?: Subject | null, ignoreDiscriminator?: boolean): any;
1762
+
1763
+ /**
1764
+ * ISBNLab API
1765
+ * Book metadata by ISBN: books, editions, covers, authors, publishers, subjects, BISAC genres, and ISBN validation and conversion.
1766
+ *
1767
+ * The version of the OpenAPI document: 1.0.0
1768
+ * Contact: hello@isbnlab.com
1769
+ *
1770
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1771
+ * https://openapi-generator.tech
1772
+ * Do not edit the class manually.
1773
+ */
1774
+
1775
+ interface FindAuthorRequest {
1776
+ search: string;
1777
+ }
1778
+ interface GetAuthorRequest {
1779
+ id: string;
1780
+ }
1781
+ /**
1782
+ *
1783
+ */
1784
+ declare class AuthorsApi extends BaseAPI {
1785
+ /**
1786
+ * Find an author by name.
1787
+ */
1788
+ findAuthorRaw(requestParameters: FindAuthorRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Author>>;
1789
+ /**
1790
+ * Find an author by name.
1791
+ */
1792
+ findAuthor(search: string, initOverrides?: RequestInit | InitOverrideFunction): Promise<Author>;
1793
+ /**
1794
+ * Look up an author by id.
1795
+ */
1796
+ getAuthorRaw(requestParameters: GetAuthorRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Author>>;
1797
+ /**
1798
+ * Look up an author by id.
1799
+ */
1800
+ getAuthor(id: string, initOverrides?: RequestInit | InitOverrideFunction): Promise<Author>;
1801
+ }
1802
+
1803
+ /**
1804
+ * ISBNLab API
1805
+ * Book metadata by ISBN: books, editions, covers, authors, publishers, subjects, BISAC genres, and ISBN validation and conversion.
1806
+ *
1807
+ * The version of the OpenAPI document: 1.0.0
1808
+ * Contact: hello@isbnlab.com
1809
+ *
1810
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1811
+ * https://openapi-generator.tech
1812
+ * Do not edit the class manually.
1813
+ */
1814
+
1815
+ interface GetBookByAsinRequest {
1816
+ asin: string;
1817
+ }
1818
+ interface GetBookByIdRequest {
1819
+ id: string;
1820
+ }
1821
+ interface GetBookByIsbnRequest {
1822
+ isbn: string;
1823
+ }
1824
+ interface GetBookCoverByAsinRequest {
1825
+ asin: string;
1826
+ }
1827
+ interface GetBookCoverByIsbnRequest {
1828
+ isbn: string;
1829
+ }
1830
+ interface GetEditionsByAsinRequest {
1831
+ asin: string;
1832
+ }
1833
+ interface GetEditionsByIsbnRequest {
1834
+ isbn: string;
1835
+ }
1836
+ interface SearchBooksRequest {
1837
+ query: string;
1838
+ limit?: number;
1839
+ page?: number;
1840
+ maxResults?: number;
1841
+ }
1842
+ /**
1843
+ *
1844
+ */
1845
+ declare class BooksApi extends BaseAPI {
1846
+ /**
1847
+ * Look up a book by Amazon ASIN.
1848
+ */
1849
+ getBookByAsinRaw(requestParameters: GetBookByAsinRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Book>>;
1850
+ /**
1851
+ * Look up a book by Amazon ASIN.
1852
+ */
1853
+ getBookByAsin(asin: string, initOverrides?: RequestInit | InitOverrideFunction): Promise<Book>;
1854
+ /**
1855
+ * Look up a book by ISBNLab book id.
1856
+ */
1857
+ getBookByIdRaw(requestParameters: GetBookByIdRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Book>>;
1858
+ /**
1859
+ * Look up a book by ISBNLab book id.
1860
+ */
1861
+ getBookById(id: string, initOverrides?: RequestInit | InitOverrideFunction): Promise<Book>;
1862
+ /**
1863
+ * Look up a book by ISBN-10 or ISBN-13.
1864
+ */
1865
+ getBookByIsbnRaw(requestParameters: GetBookByIsbnRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Book>>;
1866
+ /**
1867
+ * Look up a book by ISBN-10 or ISBN-13.
1868
+ */
1869
+ getBookByIsbn(isbn: string, initOverrides?: RequestInit | InitOverrideFunction): Promise<Book>;
1870
+ /**
1871
+ * Get the cover image URLs for a book by ASIN.
1872
+ */
1873
+ getBookCoverByAsinRaw(requestParameters: GetBookCoverByAsinRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<BookCover>>;
1874
+ /**
1875
+ * Get the cover image URLs for a book by ASIN.
1876
+ */
1877
+ getBookCoverByAsin(asin: string, initOverrides?: RequestInit | InitOverrideFunction): Promise<BookCover>;
1878
+ /**
1879
+ * Get the cover image URLs for a book by ISBN.
1880
+ */
1881
+ getBookCoverByIsbnRaw(requestParameters: GetBookCoverByIsbnRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<BookCover>>;
1882
+ /**
1883
+ * Get the cover image URLs for a book by ISBN.
1884
+ */
1885
+ getBookCoverByIsbn(isbn: string, initOverrides?: RequestInit | InitOverrideFunction): Promise<BookCover>;
1886
+ /**
1887
+ * Get every other edition of a book by ASIN.
1888
+ */
1889
+ getEditionsByAsinRaw(requestParameters: GetEditionsByAsinRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<BookEditions>>;
1890
+ /**
1891
+ * Get every other edition of a book by ASIN.
1892
+ */
1893
+ getEditionsByAsin(asin: string, initOverrides?: RequestInit | InitOverrideFunction): Promise<BookEditions>;
1894
+ /**
1895
+ * Get every other edition of a book by ISBN.
1896
+ */
1897
+ getEditionsByIsbnRaw(requestParameters: GetEditionsByIsbnRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<BookEditions>>;
1898
+ /**
1899
+ * Get every other edition of a book by ISBN.
1900
+ */
1901
+ getEditionsByIsbn(isbn: string, initOverrides?: RequestInit | InitOverrideFunction): Promise<BookEditions>;
1902
+ /**
1903
+ * Search books by title, subtitle, author or ISBN.
1904
+ */
1905
+ searchBooksRaw(requestParameters: SearchBooksRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Array<Book>>>;
1906
+ /**
1907
+ * Search books by title, subtitle, author or ISBN.
1908
+ */
1909
+ searchBooks(query: string, limit?: number, page?: number, maxResults?: number, initOverrides?: RequestInit | InitOverrideFunction): Promise<Array<Book>>;
1910
+ }
1911
+
1912
+ /**
1913
+ * ISBNLab API
1914
+ * Book metadata by ISBN: books, editions, covers, authors, publishers, subjects, BISAC genres, and ISBN validation and conversion.
1915
+ *
1916
+ * The version of the OpenAPI document: 1.0.0
1917
+ * Contact: hello@isbnlab.com
1918
+ *
1919
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1920
+ * https://openapi-generator.tech
1921
+ * Do not edit the class manually.
1922
+ */
1923
+
1924
+ interface FindGenreRequest {
1925
+ search: string;
1926
+ }
1927
+ interface GetGenreRequest {
1928
+ id: string;
1929
+ }
1930
+ /**
1931
+ *
1932
+ */
1933
+ declare class GenresApi extends BaseAPI {
1934
+ /**
1935
+ * Find a BISAC genre by name or BISAC code.
1936
+ */
1937
+ findGenreRaw(requestParameters: FindGenreRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Genre>>;
1938
+ /**
1939
+ * Find a BISAC genre by name or BISAC code.
1940
+ */
1941
+ findGenre(search: string, initOverrides?: RequestInit | InitOverrideFunction): Promise<Genre>;
1942
+ /**
1943
+ * Look up a BISAC genre by id.
1944
+ */
1945
+ getGenreRaw(requestParameters: GetGenreRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Genre>>;
1946
+ /**
1947
+ * Look up a BISAC genre by id.
1948
+ */
1949
+ getGenre(id: string, initOverrides?: RequestInit | InitOverrideFunction): Promise<Genre>;
1950
+ }
1951
+
1952
+ /**
1953
+ * ISBNLab API
1954
+ * Book metadata by ISBN: books, editions, covers, authors, publishers, subjects, BISAC genres, and ISBN validation and conversion.
1955
+ *
1956
+ * The version of the OpenAPI document: 1.0.0
1957
+ * Contact: hello@isbnlab.com
1958
+ *
1959
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1960
+ * https://openapi-generator.tech
1961
+ * Do not edit the class manually.
1962
+ */
1963
+
1964
+ interface AsinToIsbnRequest {
1965
+ asin: string;
1966
+ }
1967
+ interface EanToIsbnRequest {
1968
+ ean: string;
1969
+ }
1970
+ interface Isbn10ToIsbn13Request {
1971
+ isbn10: string;
1972
+ }
1973
+ interface Isbn13ToIsbn10Request {
1974
+ isbn13: string;
1975
+ }
1976
+ interface IsbnToAsinRequest {
1977
+ isbn: string;
1978
+ }
1979
+ interface IsbnToEanRequest {
1980
+ isbn: string;
1981
+ }
1982
+ interface ParseIsbnRequest {
1983
+ isbn: string;
1984
+ }
1985
+ /**
1986
+ *
1987
+ */
1988
+ declare class IsbnApi extends BaseAPI {
1989
+ /**
1990
+ * Convert an Amazon ASIN to ISBN.
1991
+ */
1992
+ asinToIsbnRaw(requestParameters: AsinToIsbnRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<IsbnDetails>>;
1993
+ /**
1994
+ * Convert an Amazon ASIN to ISBN.
1995
+ */
1996
+ asinToIsbn(asin: string, initOverrides?: RequestInit | InitOverrideFunction): Promise<IsbnDetails>;
1997
+ /**
1998
+ * Convert an EAN to ISBN.
1999
+ */
2000
+ eanToIsbnRaw(requestParameters: EanToIsbnRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<IsbnDetails>>;
2001
+ /**
2002
+ * Convert an EAN to ISBN.
2003
+ */
2004
+ eanToIsbn(ean: string, initOverrides?: RequestInit | InitOverrideFunction): Promise<IsbnDetails>;
2005
+ /**
2006
+ * Convert an ISBN-10 to ISBN-13.
2007
+ */
2008
+ isbn10ToIsbn13Raw(requestParameters: Isbn10ToIsbn13Request, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<IsbnDetails>>;
2009
+ /**
2010
+ * Convert an ISBN-10 to ISBN-13.
2011
+ */
2012
+ isbn10ToIsbn13(isbn10: string, initOverrides?: RequestInit | InitOverrideFunction): Promise<IsbnDetails>;
2013
+ /**
2014
+ * Convert an ISBN-13 to ISBN-10.
2015
+ */
2016
+ isbn13ToIsbn10Raw(requestParameters: Isbn13ToIsbn10Request, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<IsbnDetails>>;
2017
+ /**
2018
+ * Convert an ISBN-13 to ISBN-10.
2019
+ */
2020
+ isbn13ToIsbn10(isbn13: string, initOverrides?: RequestInit | InitOverrideFunction): Promise<IsbnDetails>;
2021
+ /**
2022
+ * Convert an ISBN to Amazon ASIN.
2023
+ */
2024
+ isbnToAsinRaw(requestParameters: IsbnToAsinRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<IsbnDetails>>;
2025
+ /**
2026
+ * Convert an ISBN to Amazon ASIN.
2027
+ */
2028
+ isbnToAsin(isbn: string, initOverrides?: RequestInit | InitOverrideFunction): Promise<IsbnDetails>;
2029
+ /**
2030
+ * Convert an ISBN to EAN.
2031
+ */
2032
+ isbnToEanRaw(requestParameters: IsbnToEanRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<IsbnDetails>>;
2033
+ /**
2034
+ * Convert an ISBN to EAN.
2035
+ */
2036
+ isbnToEan(isbn: string, initOverrides?: RequestInit | InitOverrideFunction): Promise<IsbnDetails>;
2037
+ /**
2038
+ * Validate an ISBN and split it into its parts.
2039
+ */
2040
+ parseIsbnRaw(requestParameters: ParseIsbnRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<IsbnDetails>>;
2041
+ /**
2042
+ * Validate an ISBN and split it into its parts.
2043
+ */
2044
+ parseIsbn(isbn: string, initOverrides?: RequestInit | InitOverrideFunction): Promise<IsbnDetails>;
2045
+ }
2046
+
2047
+ /**
2048
+ * ISBNLab API
2049
+ * Book metadata by ISBN: books, editions, covers, authors, publishers, subjects, BISAC genres, and ISBN validation and conversion.
2050
+ *
2051
+ * The version of the OpenAPI document: 1.0.0
2052
+ * Contact: hello@isbnlab.com
2053
+ *
2054
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2055
+ * https://openapi-generator.tech
2056
+ * Do not edit the class manually.
2057
+ */
2058
+
2059
+ interface FindPublisherRequest {
2060
+ search: string;
2061
+ }
2062
+ interface GetPublisherRequest {
2063
+ id: string;
2064
+ }
2065
+ interface GetPublishersByPrefixRequest {
2066
+ prefix: string;
2067
+ page?: number;
2068
+ }
2069
+ /**
2070
+ *
2071
+ */
2072
+ declare class PublishersApi extends BaseAPI {
2073
+ /**
2074
+ * Find a publisher by name.
2075
+ */
2076
+ findPublisherRaw(requestParameters: FindPublisherRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Publisher>>;
2077
+ /**
2078
+ * Find a publisher by name.
2079
+ */
2080
+ findPublisher(search: string, initOverrides?: RequestInit | InitOverrideFunction): Promise<Publisher>;
2081
+ /**
2082
+ * Look up a publisher by id.
2083
+ */
2084
+ getPublisherRaw(requestParameters: GetPublisherRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Publisher>>;
2085
+ /**
2086
+ * Look up a publisher by id.
2087
+ */
2088
+ getPublisher(id: string, initOverrides?: RequestInit | InitOverrideFunction): Promise<Publisher>;
2089
+ /**
2090
+ * List the publishers that use an ISBN registrant prefix.
2091
+ */
2092
+ getPublishersByPrefixRaw(requestParameters: GetPublishersByPrefixRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Array<Publisher>>>;
2093
+ /**
2094
+ * List the publishers that use an ISBN registrant prefix.
2095
+ */
2096
+ getPublishersByPrefix(prefix: string, page?: number, initOverrides?: RequestInit | InitOverrideFunction): Promise<Array<Publisher>>;
2097
+ }
2098
+
2099
+ /**
2100
+ * ISBNLab API
2101
+ * Book metadata by ISBN: books, editions, covers, authors, publishers, subjects, BISAC genres, and ISBN validation and conversion.
2102
+ *
2103
+ * The version of the OpenAPI document: 1.0.0
2104
+ * Contact: hello@isbnlab.com
2105
+ *
2106
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2107
+ * https://openapi-generator.tech
2108
+ * Do not edit the class manually.
2109
+ */
2110
+
2111
+ interface FindSubjectRequest {
2112
+ search: string;
2113
+ }
2114
+ interface GetSubjectRequest {
2115
+ id: string;
2116
+ }
2117
+ /**
2118
+ *
2119
+ */
2120
+ declare class SubjectsApi extends BaseAPI {
2121
+ /**
2122
+ * Find a subject by name.
2123
+ */
2124
+ findSubjectRaw(requestParameters: FindSubjectRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Subject>>;
2125
+ /**
2126
+ * Find a subject by name.
2127
+ */
2128
+ findSubject(search: string, initOverrides?: RequestInit | InitOverrideFunction): Promise<Subject>;
2129
+ /**
2130
+ * Look up a subject by id.
2131
+ */
2132
+ getSubjectRaw(requestParameters: GetSubjectRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Subject>>;
2133
+ /**
2134
+ * Look up a subject by id.
2135
+ */
2136
+ getSubject(id: string, initOverrides?: RequestInit | InitOverrideFunction): Promise<Subject>;
2137
+ }
2138
+
2139
+ /**
2140
+ * Reads the headers the API adds when a response leaves out fields that need a
2141
+ * higher plan. A book lookup on a Free or Standard plan, for example, returns
2142
+ * otherEditions, previousEdition and nextEdition as null and names them here.
2143
+ *
2144
+ * Pass the response from a ...Raw() call, a fetch Response, or its Headers:
2145
+ *
2146
+ * const response = await books.getBookByIsbnRaw({ isbn: '9780765302304' });
2147
+ * const book = await response.value();
2148
+ *
2149
+ * restrictedFields(response); // ['otherEditions', 'previousEdition', 'nextEdition']
2150
+ * upgradeUrl(response); // 'https://www.isbnlab.com/pricing'
2151
+ */
2152
+ declare const PLAN_RESTRICTED_FIELDS_HEADER = "X-Plan-Restricted-Fields";
2153
+ declare const PLAN_UPGRADE_HEADER = "X-Plan-Upgrade";
2154
+ /** Anything that carries response headers: an ApiResponse from a ...Raw() call, a Response, or Headers. */
2155
+ type PlanHeadersSource = {
2156
+ raw: {
2157
+ headers: {
2158
+ get(name: string): string | null;
2159
+ };
2160
+ };
2161
+ } | {
2162
+ headers: {
2163
+ get(name: string): string | null;
2164
+ };
2165
+ } | {
2166
+ get(name: string): string | null;
2167
+ };
2168
+ /** The fields your plan left empty in this response, by their API names, or [] when nothing was left out. */
2169
+ declare function restrictedFields(source: PlanHeadersSource): string[];
2170
+ /** The page that lists the plans which include the left-out fields, or null when nothing was left out. */
2171
+ declare function upgradeUrl(source: PlanHeadersSource): string | null;
2172
+
2173
+ export { type ApiResponse, type AsinToIsbnRequest, type Author, AuthorFromJSON, AuthorFromJSONTyped, type AuthorPhoto, AuthorPhotoFromJSON, AuthorPhotoFromJSONTyped, AuthorPhotoToJSON, AuthorPhotoToJSONTyped, AuthorToJSON, AuthorToJSONTyped, AuthorsApi, BASE_PATH, BaseAPI, BlobApiResponse, type Book, type BookCover, BookCoverFromJSON, BookCoverFromJSONTyped, BookCoverToJSON, BookCoverToJSONTyped, type BookEditions, BookEditionsFromJSON, BookEditionsFromJSONTyped, BookEditionsToJSON, BookEditionsToJSONTyped, BookFromJSON, BookFromJSONTyped, BookPublishDatePrecisionEnum, BookToJSON, BookToJSONTyped, BooksApi, COLLECTION_FORMATS, type Category, CategoryFromJSON, CategoryFromJSONTyped, CategoryToJSON, CategoryToJSONTyped, Configuration, type ConfigurationParameters, type Consume, type Contributor, ContributorFromJSON, ContributorFromJSONTyped, ContributorRoleEnum, ContributorToJSON, ContributorToJSONTyped, type CoverSize, CoverSizeFromJSON, CoverSizeFromJSONTyped, CoverSizeToJSON, CoverSizeToJSONTyped, DefaultConfig, type EanToIsbnRequest, type EditionRef, EditionRefFromJSON, EditionRefFromJSONTyped, EditionRefToJSON, EditionRefToJSONTyped, type EntityRef, EntityRefFromJSON, EntityRefFromJSONTyped, EntityRefToJSON, EntityRefToJSONTyped, type ErrorContext, type FetchAPI, FetchError, type FetchParams, type FindAuthorRequest, type FindGenreRequest, type FindPublisherRequest, type FindSubjectRequest, type Genre, GenreFromJSON, GenreFromJSONTyped, GenreToJSON, GenreToJSONTyped, GenresApi, type GetAuthorRequest, type GetBookByAsinRequest, type GetBookByIdRequest, type GetBookByIsbnRequest, type GetBookCoverByAsinRequest, type GetBookCoverByIsbnRequest, type GetEditionsByAsinRequest, type GetEditionsByIsbnRequest, type GetGenreRequest, type GetPublisherRequest, type GetPublishersByPrefixRequest, type GetSubjectRequest, type HTTPBody, type HTTPHeaders, type HTTPMethod, type HTTPQuery, type HTTPRequestInit, type InitOverrideFunction, type Isbn10ToIsbn13Request, type Isbn13ToIsbn10Request, IsbnApi, type IsbnDetails, IsbnDetailsFromJSON, IsbnDetailsFromJSONTyped, IsbnDetailsToJSON, IsbnDetailsToJSONTyped, type IsbnToAsinRequest, type IsbnToEanRequest, JSONApiResponse, type Json, type Middleware, type ModelPropertyNaming, type OtherSeries, OtherSeriesFromJSON, OtherSeriesFromJSONTyped, OtherSeriesKindEnum, OtherSeriesToJSON, OtherSeriesToJSONTyped, PLAN_RESTRICTED_FIELDS_HEADER, PLAN_UPGRADE_HEADER, type ParseIsbnRequest, type PlanHeadersSource, type Publisher, PublisherFromJSON, PublisherFromJSONTyped, PublisherToJSON, PublisherToJSONTyped, PublishersApi, type RatingCounts, RatingCountsFromJSON, RatingCountsFromJSONTyped, RatingCountsToJSON, RatingCountsToJSONTyped, type RatingSummary, RatingSummaryFromJSON, RatingSummaryFromJSONTyped, RatingSummaryToJSON, RatingSummaryToJSONTyped, type Ratings, RatingsFromJSON, RatingsFromJSONTyped, RatingsToJSON, RatingsToJSONTyped, type RequestContext, type RequestOpts, RequiredError, type ResponseContext, ResponseError, type ResponseTransformer, type RetailLink, RetailLinkFromJSON, RetailLinkFromJSONTyped, RetailLinkToJSON, RetailLinkToJSONTyped, type SearchBooksRequest, type Series, type SeriesBook, SeriesBookFromJSON, SeriesBookFromJSONTyped, SeriesBookToJSON, SeriesBookToJSONTyped, SeriesFromJSON, SeriesFromJSONTyped, SeriesKindEnum, type SeriesParent, SeriesParentFromJSON, SeriesParentFromJSONTyped, SeriesParentToJSON, SeriesParentToJSONTyped, SeriesToJSON, SeriesToJSONTyped, type Subject, SubjectFromJSON, SubjectFromJSONTyped, type SubjectRef, SubjectRefFromJSON, SubjectRefFromJSONTyped, SubjectRefToJSON, SubjectRefToJSONTyped, SubjectToJSON, SubjectToJSONTyped, SubjectsApi, TextApiResponse, VoidApiResponse, canConsumeForm, exists, instanceOfAuthor, instanceOfAuthorPhoto, instanceOfBook, instanceOfBookCover, instanceOfBookEditions, instanceOfCategory, instanceOfContributor, instanceOfCoverSize, instanceOfEditionRef, instanceOfEntityRef, instanceOfGenre, instanceOfIsbnDetails, instanceOfOtherSeries, instanceOfPublisher, instanceOfRatingCounts, instanceOfRatingSummary, instanceOfRatings, instanceOfRetailLink, instanceOfSeries, instanceOfSeriesBook, instanceOfSeriesParent, instanceOfSubject, instanceOfSubjectRef, mapValues, querystring, restrictedFields, upgradeUrl };