@uniformdev/mesh-edgehancer-sdk 19.195.1-alpha.3 → 19.196.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.
- package/dist/index.d.mts +444 -52
- package/dist/index.d.ts +444 -52
- package/dist/index.esm.js +17 -7
- package/dist/index.js +19 -8
- package/dist/index.mjs +17 -7
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
@@ -13,6 +13,22 @@ import { DataType, DataSource, DataSourceVariantsKeys, DataSourceVariantData } f
|
|
13
13
|
* NOTE: this is subject to additive change
|
14
14
|
*/
|
15
15
|
type DataResourceFetchContext = 'testing' | 'editing' | 'normal';
|
16
|
+
declare const resolvingIssueSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
17
|
+
message: z.ZodString;
|
18
|
+
subType: z.ZodOptional<z.ZodEnum<["unpublishedData", "configuration"]>>;
|
19
|
+
issueReference: z.ZodOptional<z.ZodString>;
|
20
|
+
deepLink: z.ZodOptional<z.ZodString>;
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
22
|
+
message: string;
|
23
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
24
|
+
issueReference?: string | undefined;
|
25
|
+
deepLink?: string | undefined;
|
26
|
+
}, {
|
27
|
+
message: string;
|
28
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
29
|
+
issueReference?: string | undefined;
|
30
|
+
deepLink?: string | undefined;
|
31
|
+
}>]>;
|
16
32
|
declare const customEdgehancerDefinitionSchema: z.ZodObject<{
|
17
33
|
preRequest: z.ZodOptional<z.ZodString>;
|
18
34
|
request: z.ZodOptional<z.ZodString>;
|
@@ -400,6 +416,7 @@ type MergedDataType = Omit<DataType, 'dataSourceId' | 'path'> & Pick<DataSource,
|
|
400
416
|
declare const dataResourceSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown, "many">, z.ZodUndefined]>;
|
401
417
|
/** A data resource of JSON data retrieved from a data type/data source */
|
402
418
|
type DataResource = z.infer<typeof dataResourceSchema>;
|
419
|
+
type EdgehancerDataIssue = z.infer<typeof resolvingIssueSchema>;
|
403
420
|
|
404
421
|
type RequestEdgehancerDataResourceContext = {
|
405
422
|
/**
|
@@ -422,57 +439,237 @@ type RequestEdgehancerContext = {
|
|
422
439
|
dataSourceVariant?: DataSourceVariantsKeys;
|
423
440
|
};
|
424
441
|
declare const requestEdgehancerDataResourceResolutionResultSchema: z.ZodObject<{
|
425
|
-
errors: z.ZodOptional<z.ZodArray<z.ZodString,
|
426
|
-
|
427
|
-
|
442
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
443
|
+
message: z.ZodString;
|
444
|
+
subType: z.ZodOptional<z.ZodEnum<["unpublishedData", "configuration"]>>;
|
445
|
+
issueReference: z.ZodOptional<z.ZodString>;
|
446
|
+
deepLink: z.ZodOptional<z.ZodString>;
|
447
|
+
}, "strip", z.ZodTypeAny, {
|
448
|
+
message: string;
|
449
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
450
|
+
issueReference?: string | undefined;
|
451
|
+
deepLink?: string | undefined;
|
452
|
+
}, {
|
453
|
+
message: string;
|
454
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
455
|
+
issueReference?: string | undefined;
|
456
|
+
deepLink?: string | undefined;
|
457
|
+
}>]>, "many">>;
|
458
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
459
|
+
message: z.ZodString;
|
460
|
+
subType: z.ZodOptional<z.ZodEnum<["unpublishedData", "configuration"]>>;
|
461
|
+
issueReference: z.ZodOptional<z.ZodString>;
|
462
|
+
deepLink: z.ZodOptional<z.ZodString>;
|
463
|
+
}, "strip", z.ZodTypeAny, {
|
464
|
+
message: string;
|
465
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
466
|
+
issueReference?: string | undefined;
|
467
|
+
deepLink?: string | undefined;
|
468
|
+
}, {
|
469
|
+
message: string;
|
470
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
471
|
+
issueReference?: string | undefined;
|
472
|
+
deepLink?: string | undefined;
|
473
|
+
}>]>, "many">>;
|
474
|
+
infos: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
475
|
+
message: z.ZodString;
|
476
|
+
subType: z.ZodOptional<z.ZodEnum<["unpublishedData", "configuration"]>>;
|
477
|
+
issueReference: z.ZodOptional<z.ZodString>;
|
478
|
+
deepLink: z.ZodOptional<z.ZodString>;
|
479
|
+
}, "strip", z.ZodTypeAny, {
|
480
|
+
message: string;
|
481
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
482
|
+
issueReference?: string | undefined;
|
483
|
+
deepLink?: string | undefined;
|
484
|
+
}, {
|
485
|
+
message: string;
|
486
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
487
|
+
issueReference?: string | undefined;
|
488
|
+
deepLink?: string | undefined;
|
489
|
+
}>]>, "many">>;
|
428
490
|
surrogateKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
429
491
|
result: z.ZodUnion<[z.ZodString, z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown, "many">, z.ZodUndefined]>;
|
430
492
|
}, "strict", z.ZodTypeAny, {
|
431
|
-
errors?: string
|
432
|
-
|
433
|
-
|
493
|
+
errors?: (string | {
|
494
|
+
message: string;
|
495
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
496
|
+
issueReference?: string | undefined;
|
497
|
+
deepLink?: string | undefined;
|
498
|
+
})[] | undefined;
|
499
|
+
warnings?: (string | {
|
500
|
+
message: string;
|
501
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
502
|
+
issueReference?: string | undefined;
|
503
|
+
deepLink?: string | undefined;
|
504
|
+
})[] | undefined;
|
505
|
+
infos?: (string | {
|
506
|
+
message: string;
|
507
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
508
|
+
issueReference?: string | undefined;
|
509
|
+
deepLink?: string | undefined;
|
510
|
+
})[] | undefined;
|
434
511
|
surrogateKeys?: string[] | undefined;
|
435
512
|
result?: string | number | boolean | unknown[] | z.objectOutputType<{}, z.ZodUnknown, "strip"> | undefined;
|
436
513
|
}, {
|
437
|
-
errors?: string
|
438
|
-
|
439
|
-
|
514
|
+
errors?: (string | {
|
515
|
+
message: string;
|
516
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
517
|
+
issueReference?: string | undefined;
|
518
|
+
deepLink?: string | undefined;
|
519
|
+
})[] | undefined;
|
520
|
+
warnings?: (string | {
|
521
|
+
message: string;
|
522
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
523
|
+
issueReference?: string | undefined;
|
524
|
+
deepLink?: string | undefined;
|
525
|
+
})[] | undefined;
|
526
|
+
infos?: (string | {
|
527
|
+
message: string;
|
528
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
529
|
+
issueReference?: string | undefined;
|
530
|
+
deepLink?: string | undefined;
|
531
|
+
})[] | undefined;
|
440
532
|
surrogateKeys?: string[] | undefined;
|
441
533
|
result?: string | number | boolean | unknown[] | z.objectInputType<{}, z.ZodUnknown, "strip"> | undefined;
|
442
534
|
}>;
|
443
535
|
declare const requestEdgehancerResultSchema: z.ZodObject<{
|
444
536
|
results: z.ZodArray<z.ZodObject<{
|
445
|
-
errors: z.ZodOptional<z.ZodArray<z.ZodString,
|
446
|
-
|
447
|
-
|
537
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
538
|
+
message: z.ZodString;
|
539
|
+
subType: z.ZodOptional<z.ZodEnum<["unpublishedData", "configuration"]>>;
|
540
|
+
issueReference: z.ZodOptional<z.ZodString>;
|
541
|
+
deepLink: z.ZodOptional<z.ZodString>;
|
542
|
+
}, "strip", z.ZodTypeAny, {
|
543
|
+
message: string;
|
544
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
545
|
+
issueReference?: string | undefined;
|
546
|
+
deepLink?: string | undefined;
|
547
|
+
}, {
|
548
|
+
message: string;
|
549
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
550
|
+
issueReference?: string | undefined;
|
551
|
+
deepLink?: string | undefined;
|
552
|
+
}>]>, "many">>;
|
553
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
554
|
+
message: z.ZodString;
|
555
|
+
subType: z.ZodOptional<z.ZodEnum<["unpublishedData", "configuration"]>>;
|
556
|
+
issueReference: z.ZodOptional<z.ZodString>;
|
557
|
+
deepLink: z.ZodOptional<z.ZodString>;
|
558
|
+
}, "strip", z.ZodTypeAny, {
|
559
|
+
message: string;
|
560
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
561
|
+
issueReference?: string | undefined;
|
562
|
+
deepLink?: string | undefined;
|
563
|
+
}, {
|
564
|
+
message: string;
|
565
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
566
|
+
issueReference?: string | undefined;
|
567
|
+
deepLink?: string | undefined;
|
568
|
+
}>]>, "many">>;
|
569
|
+
infos: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
570
|
+
message: z.ZodString;
|
571
|
+
subType: z.ZodOptional<z.ZodEnum<["unpublishedData", "configuration"]>>;
|
572
|
+
issueReference: z.ZodOptional<z.ZodString>;
|
573
|
+
deepLink: z.ZodOptional<z.ZodString>;
|
574
|
+
}, "strip", z.ZodTypeAny, {
|
575
|
+
message: string;
|
576
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
577
|
+
issueReference?: string | undefined;
|
578
|
+
deepLink?: string | undefined;
|
579
|
+
}, {
|
580
|
+
message: string;
|
581
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
582
|
+
issueReference?: string | undefined;
|
583
|
+
deepLink?: string | undefined;
|
584
|
+
}>]>, "many">>;
|
448
585
|
surrogateKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
449
586
|
result: z.ZodUnion<[z.ZodString, z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown, "many">, z.ZodUndefined]>;
|
450
587
|
}, "strict", z.ZodTypeAny, {
|
451
|
-
errors?: string
|
452
|
-
|
453
|
-
|
588
|
+
errors?: (string | {
|
589
|
+
message: string;
|
590
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
591
|
+
issueReference?: string | undefined;
|
592
|
+
deepLink?: string | undefined;
|
593
|
+
})[] | undefined;
|
594
|
+
warnings?: (string | {
|
595
|
+
message: string;
|
596
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
597
|
+
issueReference?: string | undefined;
|
598
|
+
deepLink?: string | undefined;
|
599
|
+
})[] | undefined;
|
600
|
+
infos?: (string | {
|
601
|
+
message: string;
|
602
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
603
|
+
issueReference?: string | undefined;
|
604
|
+
deepLink?: string | undefined;
|
605
|
+
})[] | undefined;
|
454
606
|
surrogateKeys?: string[] | undefined;
|
455
607
|
result?: string | number | boolean | unknown[] | z.objectOutputType<{}, z.ZodUnknown, "strip"> | undefined;
|
456
608
|
}, {
|
457
|
-
errors?: string
|
458
|
-
|
459
|
-
|
609
|
+
errors?: (string | {
|
610
|
+
message: string;
|
611
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
612
|
+
issueReference?: string | undefined;
|
613
|
+
deepLink?: string | undefined;
|
614
|
+
})[] | undefined;
|
615
|
+
warnings?: (string | {
|
616
|
+
message: string;
|
617
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
618
|
+
issueReference?: string | undefined;
|
619
|
+
deepLink?: string | undefined;
|
620
|
+
})[] | undefined;
|
621
|
+
infos?: (string | {
|
622
|
+
message: string;
|
623
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
624
|
+
issueReference?: string | undefined;
|
625
|
+
deepLink?: string | undefined;
|
626
|
+
})[] | undefined;
|
460
627
|
surrogateKeys?: string[] | undefined;
|
461
628
|
result?: string | number | boolean | unknown[] | z.objectInputType<{}, z.ZodUnknown, "strip"> | undefined;
|
462
629
|
}>, "many">;
|
463
630
|
}, "strict", z.ZodTypeAny, {
|
464
631
|
results: {
|
465
|
-
errors?: string
|
466
|
-
|
467
|
-
|
632
|
+
errors?: (string | {
|
633
|
+
message: string;
|
634
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
635
|
+
issueReference?: string | undefined;
|
636
|
+
deepLink?: string | undefined;
|
637
|
+
})[] | undefined;
|
638
|
+
warnings?: (string | {
|
639
|
+
message: string;
|
640
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
641
|
+
issueReference?: string | undefined;
|
642
|
+
deepLink?: string | undefined;
|
643
|
+
})[] | undefined;
|
644
|
+
infos?: (string | {
|
645
|
+
message: string;
|
646
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
647
|
+
issueReference?: string | undefined;
|
648
|
+
deepLink?: string | undefined;
|
649
|
+
})[] | undefined;
|
468
650
|
surrogateKeys?: string[] | undefined;
|
469
651
|
result?: string | number | boolean | unknown[] | z.objectOutputType<{}, z.ZodUnknown, "strip"> | undefined;
|
470
652
|
}[];
|
471
653
|
}, {
|
472
654
|
results: {
|
473
|
-
errors?: string
|
474
|
-
|
475
|
-
|
655
|
+
errors?: (string | {
|
656
|
+
message: string;
|
657
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
658
|
+
issueReference?: string | undefined;
|
659
|
+
deepLink?: string | undefined;
|
660
|
+
})[] | undefined;
|
661
|
+
warnings?: (string | {
|
662
|
+
message: string;
|
663
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
664
|
+
issueReference?: string | undefined;
|
665
|
+
deepLink?: string | undefined;
|
666
|
+
})[] | undefined;
|
667
|
+
infos?: (string | {
|
668
|
+
message: string;
|
669
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
670
|
+
issueReference?: string | undefined;
|
671
|
+
deepLink?: string | undefined;
|
672
|
+
})[] | undefined;
|
476
673
|
surrogateKeys?: string[] | undefined;
|
477
674
|
result?: string | number | boolean | unknown[] | z.objectInputType<{}, z.ZodUnknown, "strip"> | undefined;
|
478
675
|
}[];
|
@@ -493,9 +690,24 @@ type ConvertBatchResultsToEdgehancerResultOptions<TID, TResultItem extends DataR
|
|
493
690
|
* Given a batch of data resources and their batch-fetch results, convert them into a result that can be returned from a request hook.
|
494
691
|
*/
|
495
692
|
declare function convertBatchResultsToEdgehancerResult<TID, TResultItem extends DataResource>({ batch, batchFetchIds: { invalidBatchIndices, validIdToOriginalIndexMap }, batchResults, resolveIdFromBatchResultFn, knownInvalidErrorMessage, missingBatchResultErrorMessage, }: ConvertBatchResultsToEdgehancerResultOptions<TID, TResultItem>): {
|
496
|
-
errors?: string
|
497
|
-
|
498
|
-
|
693
|
+
errors?: (string | {
|
694
|
+
message: string;
|
695
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
696
|
+
issueReference?: string | undefined;
|
697
|
+
deepLink?: string | undefined;
|
698
|
+
})[] | undefined;
|
699
|
+
warnings?: (string | {
|
700
|
+
message: string;
|
701
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
702
|
+
issueReference?: string | undefined;
|
703
|
+
deepLink?: string | undefined;
|
704
|
+
})[] | undefined;
|
705
|
+
infos?: (string | {
|
706
|
+
message: string;
|
707
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
708
|
+
issueReference?: string | undefined;
|
709
|
+
deepLink?: string | undefined;
|
710
|
+
})[] | undefined;
|
499
711
|
surrogateKeys?: string[] | undefined;
|
500
712
|
result?: string | number | boolean | unknown[] | zod.objectOutputType<{}, zod.ZodUnknown, "strip"> | undefined;
|
501
713
|
}[];
|
@@ -847,9 +1059,54 @@ type PreRequestEdgehancerContext = {
|
|
847
1059
|
dataSourceVariant?: DataSourceVariantsKeys;
|
848
1060
|
};
|
849
1061
|
declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
|
850
|
-
errors: z.ZodOptional<z.ZodArray<z.ZodString,
|
851
|
-
|
852
|
-
|
1062
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
1063
|
+
message: z.ZodString;
|
1064
|
+
subType: z.ZodOptional<z.ZodEnum<["unpublishedData", "configuration"]>>;
|
1065
|
+
issueReference: z.ZodOptional<z.ZodString>;
|
1066
|
+
deepLink: z.ZodOptional<z.ZodString>;
|
1067
|
+
}, "strip", z.ZodTypeAny, {
|
1068
|
+
message: string;
|
1069
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
1070
|
+
issueReference?: string | undefined;
|
1071
|
+
deepLink?: string | undefined;
|
1072
|
+
}, {
|
1073
|
+
message: string;
|
1074
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
1075
|
+
issueReference?: string | undefined;
|
1076
|
+
deepLink?: string | undefined;
|
1077
|
+
}>]>, "many">>;
|
1078
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
1079
|
+
message: z.ZodString;
|
1080
|
+
subType: z.ZodOptional<z.ZodEnum<["unpublishedData", "configuration"]>>;
|
1081
|
+
issueReference: z.ZodOptional<z.ZodString>;
|
1082
|
+
deepLink: z.ZodOptional<z.ZodString>;
|
1083
|
+
}, "strip", z.ZodTypeAny, {
|
1084
|
+
message: string;
|
1085
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
1086
|
+
issueReference?: string | undefined;
|
1087
|
+
deepLink?: string | undefined;
|
1088
|
+
}, {
|
1089
|
+
message: string;
|
1090
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
1091
|
+
issueReference?: string | undefined;
|
1092
|
+
deepLink?: string | undefined;
|
1093
|
+
}>]>, "many">>;
|
1094
|
+
infos: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
1095
|
+
message: z.ZodString;
|
1096
|
+
subType: z.ZodOptional<z.ZodEnum<["unpublishedData", "configuration"]>>;
|
1097
|
+
issueReference: z.ZodOptional<z.ZodString>;
|
1098
|
+
deepLink: z.ZodOptional<z.ZodString>;
|
1099
|
+
}, "strip", z.ZodTypeAny, {
|
1100
|
+
message: string;
|
1101
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
1102
|
+
issueReference?: string | undefined;
|
1103
|
+
deepLink?: string | undefined;
|
1104
|
+
}, {
|
1105
|
+
message: string;
|
1106
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
1107
|
+
issueReference?: string | undefined;
|
1108
|
+
deepLink?: string | undefined;
|
1109
|
+
}>]>, "many">>;
|
853
1110
|
dataResource: z.ZodObject<Omit<{
|
854
1111
|
id: z.ZodString;
|
855
1112
|
displayName: z.ZodString;
|
@@ -1208,9 +1465,24 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
|
|
1208
1465
|
} | undefined;
|
1209
1466
|
enableUnpublishedMode?: boolean | undefined;
|
1210
1467
|
};
|
1211
|
-
errors?: string
|
1212
|
-
|
1213
|
-
|
1468
|
+
errors?: (string | {
|
1469
|
+
message: string;
|
1470
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
1471
|
+
issueReference?: string | undefined;
|
1472
|
+
deepLink?: string | undefined;
|
1473
|
+
})[] | undefined;
|
1474
|
+
warnings?: (string | {
|
1475
|
+
message: string;
|
1476
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
1477
|
+
issueReference?: string | undefined;
|
1478
|
+
deepLink?: string | undefined;
|
1479
|
+
})[] | undefined;
|
1480
|
+
infos?: (string | {
|
1481
|
+
message: string;
|
1482
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
1483
|
+
issueReference?: string | undefined;
|
1484
|
+
deepLink?: string | undefined;
|
1485
|
+
})[] | undefined;
|
1214
1486
|
}, {
|
1215
1487
|
dataResource: {
|
1216
1488
|
url: string;
|
@@ -1259,15 +1531,75 @@ declare const preRequestEdgehancerDataResourceResultSchema: z.ZodObject<{
|
|
1259
1531
|
} | undefined;
|
1260
1532
|
enableUnpublishedMode?: boolean | undefined;
|
1261
1533
|
};
|
1262
|
-
errors?: string
|
1263
|
-
|
1264
|
-
|
1534
|
+
errors?: (string | {
|
1535
|
+
message: string;
|
1536
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
1537
|
+
issueReference?: string | undefined;
|
1538
|
+
deepLink?: string | undefined;
|
1539
|
+
})[] | undefined;
|
1540
|
+
warnings?: (string | {
|
1541
|
+
message: string;
|
1542
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
1543
|
+
issueReference?: string | undefined;
|
1544
|
+
deepLink?: string | undefined;
|
1545
|
+
})[] | undefined;
|
1546
|
+
infos?: (string | {
|
1547
|
+
message: string;
|
1548
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
1549
|
+
issueReference?: string | undefined;
|
1550
|
+
deepLink?: string | undefined;
|
1551
|
+
})[] | undefined;
|
1265
1552
|
}>;
|
1266
1553
|
declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
1267
1554
|
dataResources: z.ZodArray<z.ZodObject<{
|
1268
|
-
errors: z.ZodOptional<z.ZodArray<z.ZodString,
|
1269
|
-
|
1270
|
-
|
1555
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
1556
|
+
message: z.ZodString;
|
1557
|
+
subType: z.ZodOptional<z.ZodEnum<["unpublishedData", "configuration"]>>;
|
1558
|
+
issueReference: z.ZodOptional<z.ZodString>;
|
1559
|
+
deepLink: z.ZodOptional<z.ZodString>;
|
1560
|
+
}, "strip", z.ZodTypeAny, {
|
1561
|
+
message: string;
|
1562
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
1563
|
+
issueReference?: string | undefined;
|
1564
|
+
deepLink?: string | undefined;
|
1565
|
+
}, {
|
1566
|
+
message: string;
|
1567
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
1568
|
+
issueReference?: string | undefined;
|
1569
|
+
deepLink?: string | undefined;
|
1570
|
+
}>]>, "many">>;
|
1571
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
1572
|
+
message: z.ZodString;
|
1573
|
+
subType: z.ZodOptional<z.ZodEnum<["unpublishedData", "configuration"]>>;
|
1574
|
+
issueReference: z.ZodOptional<z.ZodString>;
|
1575
|
+
deepLink: z.ZodOptional<z.ZodString>;
|
1576
|
+
}, "strip", z.ZodTypeAny, {
|
1577
|
+
message: string;
|
1578
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
1579
|
+
issueReference?: string | undefined;
|
1580
|
+
deepLink?: string | undefined;
|
1581
|
+
}, {
|
1582
|
+
message: string;
|
1583
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
1584
|
+
issueReference?: string | undefined;
|
1585
|
+
deepLink?: string | undefined;
|
1586
|
+
}>]>, "many">>;
|
1587
|
+
infos: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
1588
|
+
message: z.ZodString;
|
1589
|
+
subType: z.ZodOptional<z.ZodEnum<["unpublishedData", "configuration"]>>;
|
1590
|
+
issueReference: z.ZodOptional<z.ZodString>;
|
1591
|
+
deepLink: z.ZodOptional<z.ZodString>;
|
1592
|
+
}, "strip", z.ZodTypeAny, {
|
1593
|
+
message: string;
|
1594
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
1595
|
+
issueReference?: string | undefined;
|
1596
|
+
deepLink?: string | undefined;
|
1597
|
+
}, {
|
1598
|
+
message: string;
|
1599
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
1600
|
+
issueReference?: string | undefined;
|
1601
|
+
deepLink?: string | undefined;
|
1602
|
+
}>]>, "many">>;
|
1271
1603
|
dataResource: z.ZodObject<Omit<{
|
1272
1604
|
id: z.ZodString;
|
1273
1605
|
displayName: z.ZodString;
|
@@ -1626,9 +1958,24 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
1626
1958
|
} | undefined;
|
1627
1959
|
enableUnpublishedMode?: boolean | undefined;
|
1628
1960
|
};
|
1629
|
-
errors?: string
|
1630
|
-
|
1631
|
-
|
1961
|
+
errors?: (string | {
|
1962
|
+
message: string;
|
1963
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
1964
|
+
issueReference?: string | undefined;
|
1965
|
+
deepLink?: string | undefined;
|
1966
|
+
})[] | undefined;
|
1967
|
+
warnings?: (string | {
|
1968
|
+
message: string;
|
1969
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
1970
|
+
issueReference?: string | undefined;
|
1971
|
+
deepLink?: string | undefined;
|
1972
|
+
})[] | undefined;
|
1973
|
+
infos?: (string | {
|
1974
|
+
message: string;
|
1975
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
1976
|
+
issueReference?: string | undefined;
|
1977
|
+
deepLink?: string | undefined;
|
1978
|
+
})[] | undefined;
|
1632
1979
|
}, {
|
1633
1980
|
dataResource: {
|
1634
1981
|
url: string;
|
@@ -1677,9 +2024,24 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
1677
2024
|
} | undefined;
|
1678
2025
|
enableUnpublishedMode?: boolean | undefined;
|
1679
2026
|
};
|
1680
|
-
errors?: string
|
1681
|
-
|
1682
|
-
|
2027
|
+
errors?: (string | {
|
2028
|
+
message: string;
|
2029
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
2030
|
+
issueReference?: string | undefined;
|
2031
|
+
deepLink?: string | undefined;
|
2032
|
+
})[] | undefined;
|
2033
|
+
warnings?: (string | {
|
2034
|
+
message: string;
|
2035
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
2036
|
+
issueReference?: string | undefined;
|
2037
|
+
deepLink?: string | undefined;
|
2038
|
+
})[] | undefined;
|
2039
|
+
infos?: (string | {
|
2040
|
+
message: string;
|
2041
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
2042
|
+
issueReference?: string | undefined;
|
2043
|
+
deepLink?: string | undefined;
|
2044
|
+
})[] | undefined;
|
1683
2045
|
}>, "many">;
|
1684
2046
|
}, "strict", z.ZodTypeAny, {
|
1685
2047
|
dataResources: {
|
@@ -1730,9 +2092,24 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
1730
2092
|
} | undefined;
|
1731
2093
|
enableUnpublishedMode?: boolean | undefined;
|
1732
2094
|
};
|
1733
|
-
errors?: string
|
1734
|
-
|
1735
|
-
|
2095
|
+
errors?: (string | {
|
2096
|
+
message: string;
|
2097
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
2098
|
+
issueReference?: string | undefined;
|
2099
|
+
deepLink?: string | undefined;
|
2100
|
+
})[] | undefined;
|
2101
|
+
warnings?: (string | {
|
2102
|
+
message: string;
|
2103
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
2104
|
+
issueReference?: string | undefined;
|
2105
|
+
deepLink?: string | undefined;
|
2106
|
+
})[] | undefined;
|
2107
|
+
infos?: (string | {
|
2108
|
+
message: string;
|
2109
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
2110
|
+
issueReference?: string | undefined;
|
2111
|
+
deepLink?: string | undefined;
|
2112
|
+
})[] | undefined;
|
1736
2113
|
}[];
|
1737
2114
|
}, {
|
1738
2115
|
dataResources: {
|
@@ -1783,9 +2160,24 @@ declare const preRequestEdgehancerResultSchema: z.ZodObject<{
|
|
1783
2160
|
} | undefined;
|
1784
2161
|
enableUnpublishedMode?: boolean | undefined;
|
1785
2162
|
};
|
1786
|
-
errors?: string
|
1787
|
-
|
1788
|
-
|
2163
|
+
errors?: (string | {
|
2164
|
+
message: string;
|
2165
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
2166
|
+
issueReference?: string | undefined;
|
2167
|
+
deepLink?: string | undefined;
|
2168
|
+
})[] | undefined;
|
2169
|
+
warnings?: (string | {
|
2170
|
+
message: string;
|
2171
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
2172
|
+
issueReference?: string | undefined;
|
2173
|
+
deepLink?: string | undefined;
|
2174
|
+
})[] | undefined;
|
2175
|
+
infos?: (string | {
|
2176
|
+
message: string;
|
2177
|
+
subType?: "unpublishedData" | "configuration" | undefined;
|
2178
|
+
issueReference?: string | undefined;
|
2179
|
+
deepLink?: string | undefined;
|
2180
|
+
})[] | undefined;
|
1789
2181
|
}[];
|
1790
2182
|
}>;
|
1791
2183
|
type PreRequestEdgehancerResult = z.infer<typeof preRequestEdgehancerResultSchema>;
|
@@ -1801,4 +2193,4 @@ declare function getDataResourceQueryString({ parameters, url }: EdgehancerMerge
|
|
1801
2193
|
/** Gets the HTTP headers for a data resource */
|
1802
2194
|
declare function getDataResourceHeaders({ headers }: EdgehancerMergedDataType): Headers;
|
1803
2195
|
|
1804
|
-
export { COLLECTION_DEFAULT_LIMIT, COLLECTION_DEFAULT_OFFSET, COLLECTION_MAX_LIMIT, type ConvertBatchResultsToEdgehancerResultOptions, type CustomEdgehancerDefinition, type DataResource, type DataResourceFetchContext, type EdgehancerMergedDataType, type MergedDataType, type PreRequestEdgehancerContext, type PreRequestEdgehancerDataResourceContext, type PreRequestEdgehancerDataResourceResult, type PreRequestEdgehancerResult, type PreRequestHookFn, type RequestEdgehancerContext, type RequestEdgehancerDataResourceContext, type RequestEdgehancerDataResourceResolutionResult, type RequestEdgehancerResult, type RequestHookFn, type ResolveBatchIdsResult, convertBatchResultsToEdgehancerResult, dataResourceSchema, edgehancerMergedDataTypeSchema, getDataResourceAsRequest, getDataResourceHeaders, getDataResourceQueryString, getDataResourceUrl, mergedDataTypeSchema, preRequestEdgehancerDataResourceResultSchema, preRequestEdgehancerResultSchema, requestEdgehancerDataResourceResolutionResultSchema, requestEdgehancerResultSchema, resolveBatchFetchIds };
|
2196
|
+
export { COLLECTION_DEFAULT_LIMIT, COLLECTION_DEFAULT_OFFSET, COLLECTION_MAX_LIMIT, type ConvertBatchResultsToEdgehancerResultOptions, type CustomEdgehancerDefinition, type DataResource, type DataResourceFetchContext, type EdgehancerDataIssue, type EdgehancerMergedDataType, type MergedDataType, type PreRequestEdgehancerContext, type PreRequestEdgehancerDataResourceContext, type PreRequestEdgehancerDataResourceResult, type PreRequestEdgehancerResult, type PreRequestHookFn, type RequestEdgehancerContext, type RequestEdgehancerDataResourceContext, type RequestEdgehancerDataResourceResolutionResult, type RequestEdgehancerResult, type RequestHookFn, type ResolveBatchIdsResult, convertBatchResultsToEdgehancerResult, dataResourceSchema, edgehancerMergedDataTypeSchema, getDataResourceAsRequest, getDataResourceHeaders, getDataResourceQueryString, getDataResourceUrl, mergedDataTypeSchema, preRequestEdgehancerDataResourceResultSchema, preRequestEdgehancerResultSchema, requestEdgehancerDataResourceResolutionResultSchema, requestEdgehancerResultSchema, resolveBatchFetchIds, resolvingIssueSchema };
|
package/dist/index.esm.js
CHANGED
@@ -106,6 +106,15 @@ var parameterDefinitionSchema = z.object({
|
|
106
106
|
value: z.string(),
|
107
107
|
omitIfEmpty: z.boolean().optional()
|
108
108
|
});
|
109
|
+
var resolvingIssueSchema = z.union([
|
110
|
+
z.string(),
|
111
|
+
z.object({
|
112
|
+
message: z.string(),
|
113
|
+
subType: z.enum(["unpublishedData", "configuration"]).optional(),
|
114
|
+
issueReference: z.string().optional(),
|
115
|
+
deepLink: z.string().optional()
|
116
|
+
})
|
117
|
+
]);
|
109
118
|
var variableDefinitionSchema = z.object({
|
110
119
|
displayName: z.string().optional(),
|
111
120
|
type: z.string().optional(),
|
@@ -172,9 +181,9 @@ var edgehancerMergedDataTypeSchema = mergedDataTypeSchema.omit({
|
|
172
181
|
variables: true
|
173
182
|
});
|
174
183
|
var preRequestEdgehancerDataResourceResultSchema = z2.strictObject({
|
175
|
-
errors: z2.array(
|
176
|
-
warnings: z2.array(
|
177
|
-
infos: z2.array(
|
184
|
+
errors: z2.array(resolvingIssueSchema).optional(),
|
185
|
+
warnings: z2.array(resolvingIssueSchema).optional(),
|
186
|
+
infos: z2.array(resolvingIssueSchema).optional(),
|
178
187
|
dataResource: edgehancerMergedDataTypeSchema
|
179
188
|
});
|
180
189
|
var preRequestEdgehancerResultSchema = z2.strictObject({
|
@@ -184,11 +193,11 @@ var preRequestEdgehancerResultSchema = z2.strictObject({
|
|
184
193
|
// src/request.ts
|
185
194
|
import { z as z3 } from "zod";
|
186
195
|
var requestEdgehancerDataResourceResolutionResultSchema = z3.strictObject({
|
187
|
-
errors: z3.array(
|
196
|
+
errors: z3.array(resolvingIssueSchema).optional().describe(
|
188
197
|
"Errors that occurred while running your code to return with the API response, if any. Unhandled exceptions will be captured automatically."
|
189
198
|
),
|
190
|
-
warnings: z3.array(
|
191
|
-
infos: z3.array(
|
199
|
+
warnings: z3.array(resolvingIssueSchema).optional().describe("Warnings that occurred while running your code to return with the API response, if any."),
|
200
|
+
infos: z3.array(resolvingIssueSchema).optional().describe(
|
192
201
|
"Informational messages that occurred while running your code to return with the API response, if any."
|
193
202
|
),
|
194
203
|
surrogateKeys: z3.array(z3.string()).optional().describe(
|
@@ -215,5 +224,6 @@ export {
|
|
215
224
|
preRequestEdgehancerResultSchema,
|
216
225
|
requestEdgehancerDataResourceResolutionResultSchema,
|
217
226
|
requestEdgehancerResultSchema,
|
218
|
-
resolveBatchFetchIds
|
227
|
+
resolveBatchFetchIds,
|
228
|
+
resolvingIssueSchema
|
219
229
|
};
|