@talisdev/bibliographic-resource-parsers-lib 5.32.2 → 5.33.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.
|
@@ -90,22 +90,12 @@ export declare const isParserRegistry: (registry: unknown) => registry is Parser
|
|
|
90
90
|
|
|
91
91
|
export declare const isParserType: (value: string) => value is ParserType;
|
|
92
92
|
|
|
93
|
-
/**
|
|
94
|
-
* @deprecated Use `isParsingMetadataV2` instead
|
|
95
|
-
*/
|
|
96
93
|
export declare const isParsingMetadata: (maybe: unknown) => maybe is ParsingMetadataStrict;
|
|
97
94
|
|
|
98
|
-
export declare const isParsingMetadataV2: (maybe: unknown) => maybe is ParsingMetadataStrictV2;
|
|
99
|
-
|
|
100
95
|
export declare function isParsingRequest(value: unknown): value is ParsingRequest;
|
|
101
96
|
|
|
102
|
-
/**
|
|
103
|
-
* @deprecated Use `isParsingResponseV2` instead
|
|
104
|
-
*/
|
|
105
97
|
export declare const isParsingResponse: (response: unknown) => response is ParsingResponseStrict;
|
|
106
98
|
|
|
107
|
-
export declare const isParsingResponseV2: (response: unknown) => response is ParsingResponseStrictV2;
|
|
108
|
-
|
|
109
99
|
export declare const isParsingResult: (response: unknown) => response is ParsingResult;
|
|
110
100
|
|
|
111
101
|
export declare const isResourceData: (data: unknown) => data is ResourceData;
|
|
@@ -357,13 +347,8 @@ export declare const OpenUrlWebpageResourceSchema: z.ZodObject<{
|
|
|
357
347
|
title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
358
348
|
}, z.core.$strip>;
|
|
359
349
|
|
|
360
|
-
/**
|
|
361
|
-
* @deprecated Use `parseResourceV2` instead
|
|
362
|
-
*/
|
|
363
350
|
export declare const parseResource: (registry: ParserRegistry, resourceData: ResourceData) => ParsingResponseStrict;
|
|
364
351
|
|
|
365
|
-
export declare const parseResourceV2: (registry: ParserRegistry, resourceData: ResourceData) => ParsingResponseStrictV2;
|
|
366
|
-
|
|
367
352
|
export declare type ParserRegistry = z_2.infer<typeof ParserRegistrySchema>;
|
|
368
353
|
|
|
369
354
|
export declare const ParserRegistrySchema: z_2.ZodObject<{
|
|
@@ -417,42 +402,24 @@ export declare enum ParserType {
|
|
|
417
402
|
KanopyVideo = "KanopyVideo",
|
|
418
403
|
LaTrobeOpal = "LaTrobeOpal",
|
|
419
404
|
BYUScholarsArchive = "BYUScholarsArchive",
|
|
420
|
-
Informit = "Informit"
|
|
405
|
+
Informit = "Informit",
|
|
406
|
+
Brill = "Brill"
|
|
421
407
|
}
|
|
422
408
|
|
|
423
409
|
export declare type ParsingFn = (resourceData: ResourceData) => ParsingResult;
|
|
424
410
|
|
|
425
411
|
declare type ParsingMetadata = z_2.infer<typeof ParsingMetadataSchema>;
|
|
426
412
|
|
|
427
|
-
/**
|
|
428
|
-
* @deprecated Use `ParsingMetadataV2Schema` instead
|
|
429
|
-
*/
|
|
430
413
|
export declare const ParsingMetadataSchema: z_2.ZodObject<{
|
|
431
414
|
parserType: z_2.ZodString;
|
|
432
415
|
parserName: z_2.ZodNullable<z_2.ZodString>;
|
|
433
|
-
uri: z_2.ZodString;
|
|
434
416
|
referrer: z_2.ZodString;
|
|
435
417
|
}, z_2.core.$strip>;
|
|
436
418
|
|
|
437
|
-
/**
|
|
438
|
-
* @deprecated Use `ParsingMetadataStrictV2` instead
|
|
439
|
-
*/
|
|
440
419
|
export declare type ParsingMetadataStrict = ParsingMetadata & {
|
|
441
420
|
parserType: ParserType | 'Legacy';
|
|
442
421
|
};
|
|
443
422
|
|
|
444
|
-
export declare type ParsingMetadataStrictV2 = ParsingMetadataV2 & {
|
|
445
|
-
parserType: ParserType | 'Legacy';
|
|
446
|
-
};
|
|
447
|
-
|
|
448
|
-
declare type ParsingMetadataV2 = z_2.infer<typeof ParsingMetadataV2Schema>;
|
|
449
|
-
|
|
450
|
-
export declare const ParsingMetadataV2Schema: z_2.ZodObject<{
|
|
451
|
-
parserType: z_2.ZodString;
|
|
452
|
-
parserName: z_2.ZodNullable<z_2.ZodString>;
|
|
453
|
-
referrer: z_2.ZodString;
|
|
454
|
-
}, z_2.core.$strip>;
|
|
455
|
-
|
|
456
423
|
export declare type ParsingRequest = z_2.infer<typeof ParsingRequestSchema>;
|
|
457
424
|
|
|
458
425
|
export declare const ParsingRequestSchema: z_2.ZodObject<{
|
|
@@ -467,14 +434,10 @@ export declare const ParsingRequestSchema: z_2.ZodObject<{
|
|
|
467
434
|
|
|
468
435
|
declare type ParsingResponse = z_2.infer<typeof ParsingResponseSchema>;
|
|
469
436
|
|
|
470
|
-
/**
|
|
471
|
-
* @deprecated Use `ParsingResponseV2Schema` instead
|
|
472
|
-
*/
|
|
473
437
|
export declare const ParsingResponseSchema: z_2.ZodIntersection<z_2.ZodObject<{
|
|
474
438
|
meta: z_2.ZodObject<{
|
|
475
439
|
parserType: z_2.ZodString;
|
|
476
440
|
parserName: z_2.ZodNullable<z_2.ZodString>;
|
|
477
|
-
uri: z_2.ZodString;
|
|
478
441
|
referrer: z_2.ZodString;
|
|
479
442
|
}, z_2.core.$strip>;
|
|
480
443
|
}, z_2.core.$strip>, z_2.ZodUnion<readonly [z_2.ZodObject<{
|
|
@@ -536,84 +499,10 @@ export declare const ParsingResponseSchema: z_2.ZodIntersection<z_2.ZodObject<{
|
|
|
536
499
|
summonSearchResult: z_2.ZodLiteral<true>;
|
|
537
500
|
}, z_2.core.$strip>]>>;
|
|
538
501
|
|
|
539
|
-
/**
|
|
540
|
-
* @deprecated Use `ParsingResponseStrictV2` instead
|
|
541
|
-
*/
|
|
542
502
|
export declare type ParsingResponseStrict = ParsingResponse & {
|
|
543
503
|
meta: ParsingMetadataStrict;
|
|
544
504
|
};
|
|
545
505
|
|
|
546
|
-
export declare type ParsingResponseStrictV2 = ParsingResponseV2 & {
|
|
547
|
-
meta: ParsingMetadataStrictV2;
|
|
548
|
-
};
|
|
549
|
-
|
|
550
|
-
declare type ParsingResponseV2 = z_2.infer<typeof ParsingResponseV2Schema>;
|
|
551
|
-
|
|
552
|
-
export declare const ParsingResponseV2Schema: z_2.ZodIntersection<z_2.ZodObject<{
|
|
553
|
-
meta: z_2.ZodObject<{
|
|
554
|
-
parserType: z_2.ZodString;
|
|
555
|
-
parserName: z_2.ZodNullable<z_2.ZodString>;
|
|
556
|
-
referrer: z_2.ZodString;
|
|
557
|
-
}, z_2.core.$strip>;
|
|
558
|
-
}, z_2.core.$strip>, z_2.ZodUnion<readonly [z_2.ZodObject<{
|
|
559
|
-
bookmarkingWorkflowUrl: z_2.ZodString;
|
|
560
|
-
resource: z_2.ZodNull;
|
|
561
|
-
}, z_2.core.$strip>, z_2.ZodObject<{
|
|
562
|
-
bookmarkingWorkflowUrl: z_2.ZodNull;
|
|
563
|
-
resource: z_2.ZodNull;
|
|
564
|
-
}, z_2.core.$strip>, z_2.ZodObject<{
|
|
565
|
-
bookmarkingWorkflowUrl: z_2.ZodNull;
|
|
566
|
-
resource: z_2.ZodObject<{
|
|
567
|
-
bibid: z_2.ZodOptional<z_2.ZodString>;
|
|
568
|
-
doi: z_2.ZodOptional<z_2.ZodString>;
|
|
569
|
-
uri: z_2.ZodOptional<z_2.ZodString>;
|
|
570
|
-
artnum: z_2.ZodOptional<z_2.ZodString>;
|
|
571
|
-
atitle: z_2.ZodOptional<z_2.ZodString>;
|
|
572
|
-
aufirst: z_2.ZodOptional<z_2.ZodString>;
|
|
573
|
-
aulast: z_2.ZodOptional<z_2.ZodString>;
|
|
574
|
-
auinit: z_2.ZodOptional<z_2.ZodString>;
|
|
575
|
-
auinit1: z_2.ZodOptional<z_2.ZodString>;
|
|
576
|
-
auinitm: z_2.ZodOptional<z_2.ZodString>;
|
|
577
|
-
ausuffix: z_2.ZodOptional<z_2.ZodString>;
|
|
578
|
-
au: z_2.ZodOptional<z_2.ZodArray<z_2.ZodString>>;
|
|
579
|
-
aucorp: z_2.ZodOptional<z_2.ZodString>;
|
|
580
|
-
bici: z_2.ZodOptional<z_2.ZodString>;
|
|
581
|
-
btitle: z_2.ZodOptional<z_2.ZodString>;
|
|
582
|
-
chron: z_2.ZodOptional<z_2.ZodString>;
|
|
583
|
-
coden: z_2.ZodOptional<z_2.ZodString>;
|
|
584
|
-
date: z_2.ZodOptional<z_2.ZodString>;
|
|
585
|
-
edition: z_2.ZodOptional<z_2.ZodString>;
|
|
586
|
-
eissn: z_2.ZodOptional<z_2.ZodString>;
|
|
587
|
-
epage: z_2.ZodOptional<z_2.ZodString>;
|
|
588
|
-
externalDBID: z_2.ZodOptional<z_2.ZodString>;
|
|
589
|
-
externalDocID: z_2.ZodOptional<z_2.ZodString>;
|
|
590
|
-
genre: z_2.ZodOptional<z_2.ZodEnum<Genre>>;
|
|
591
|
-
id: z_2.ZodOptional<z_2.ZodString>;
|
|
592
|
-
isbn: z_2.ZodOptional<z_2.ZodString>;
|
|
593
|
-
issn: z_2.ZodOptional<z_2.ZodString>;
|
|
594
|
-
issue: z_2.ZodOptional<z_2.ZodString>;
|
|
595
|
-
jtitle: z_2.ZodOptional<z_2.ZodString>;
|
|
596
|
-
pages: z_2.ZodOptional<z_2.ZodString>;
|
|
597
|
-
part: z_2.ZodOptional<z_2.ZodString>;
|
|
598
|
-
place: z_2.ZodOptional<z_2.ZodString>;
|
|
599
|
-
pub: z_2.ZodOptional<z_2.ZodString>;
|
|
600
|
-
quarter: z_2.ZodOptional<z_2.ZodString>;
|
|
601
|
-
rft_id: z_2.ZodOptional<z_2.ZodArray<z_2.ZodString>>;
|
|
602
|
-
series: z_2.ZodOptional<z_2.ZodString>;
|
|
603
|
-
sici: z_2.ZodOptional<z_2.ZodString>;
|
|
604
|
-
spage: z_2.ZodOptional<z_2.ZodString>;
|
|
605
|
-
ssn: z_2.ZodOptional<z_2.ZodString>;
|
|
606
|
-
stitle: z_2.ZodOptional<z_2.ZodString>;
|
|
607
|
-
title: z_2.ZodOptional<z_2.ZodString>;
|
|
608
|
-
tpages: z_2.ZodOptional<z_2.ZodString>;
|
|
609
|
-
volume: z_2.ZodOptional<z_2.ZodString>;
|
|
610
|
-
}, z_2.core.$strip>;
|
|
611
|
-
}, z_2.core.$strip>, z_2.ZodObject<{
|
|
612
|
-
z3988SearchResult: z_2.ZodLiteral<true>;
|
|
613
|
-
}, z_2.core.$strip>, z_2.ZodObject<{
|
|
614
|
-
summonSearchResult: z_2.ZodLiteral<true>;
|
|
615
|
-
}, z_2.core.$strip>]>>;
|
|
616
|
-
|
|
617
506
|
export declare type ParsingResult = z_2.infer<typeof ParsingResultSchema>;
|
|
618
507
|
|
|
619
508
|
export declare const ParsingResultSchema: z_2.ZodUnion<readonly [z_2.ZodObject<{
|
|
@@ -790,7 +679,7 @@ export declare const TenantSchema: z_2.ZodObject<{
|
|
|
790
679
|
region: z_2.ZodEnum<typeof TenantRegion>;
|
|
791
680
|
}, z_2.core.$strip>;
|
|
792
681
|
|
|
793
|
-
export declare const toBookmarkingWorkflowUrl: (baseUrl: URL, resource: OpenUrlResource, meta?:
|
|
682
|
+
export declare const toBookmarkingWorkflowUrl: (baseUrl: URL, resource: OpenUrlResource, meta?: ParsingMetadataStrict) => URL;
|
|
794
683
|
|
|
795
684
|
export declare const toOpenUrl: (resource: Resource) => URLSearchParams;
|
|
796
685
|
|