@knkcs/importhub-ui 0.3.0 → 0.4.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/CHANGELOG.md +7 -0
- package/README.md +5 -2
- package/dist/importhub-client-CrS-3Zuu.js.map +1 -1
- package/dist/index.d.ts +483 -13
- package/dist/index.js +835 -1807
- package/dist/index.js.map +1 -1
- package/dist/mapping-editor.d.ts +336 -0
- package/dist/mapping-editor.js +1149 -0
- package/dist/mapping-editor.js.map +1 -0
- package/dist/mapping-page-v0GJAPjW.js +1066 -0
- package/dist/mapping-page-v0GJAPjW.js.map +1 -0
- package/dist/testing.d.ts +106 -6
- package/dist/testing.js +322 -224
- package/dist/testing.js.map +1 -1
- package/package.json +5 -1
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,9 @@ export declare interface BlueprintReleaseCheck {
|
|
|
13
13
|
missingReleaseSpecFields: string[];
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
/** What happens to a Changed Version (importhub.v1.ChangedVersionHandling). */
|
|
17
|
+
export declare type ChangedVersionHandling = "CHANGED_VERSION_HANDLING_UNSPECIFIED" | "CHANGED_VERSION_HANDLING_CORRECT" | "CHANGED_VERSION_HANDLING_KEEP" | "CHANGED_VERSION_HANDLING_FAIL";
|
|
18
|
+
|
|
16
19
|
/**
|
|
17
20
|
* The link out to a Change Set in contenthub, where the host says it is
|
|
18
21
|
* (`ImporthubHost.changeSetHref`). Nothing when the host has no address for
|
|
@@ -463,6 +466,194 @@ export declare const i18nResources: {
|
|
|
463
466
|
yes: string;
|
|
464
467
|
no: string;
|
|
465
468
|
};
|
|
469
|
+
editor: {
|
|
470
|
+
tabs: {
|
|
471
|
+
fields: string;
|
|
472
|
+
versions: string;
|
|
473
|
+
output: string;
|
|
474
|
+
};
|
|
475
|
+
reasonsHere: string;
|
|
476
|
+
tree: {
|
|
477
|
+
label: string;
|
|
478
|
+
mapped: string;
|
|
479
|
+
unmapped: string;
|
|
480
|
+
invalid: string;
|
|
481
|
+
toggle: string;
|
|
482
|
+
outside: string;
|
|
483
|
+
noLookup: string;
|
|
484
|
+
loadFailed: string;
|
|
485
|
+
selectField: string;
|
|
486
|
+
};
|
|
487
|
+
field: {
|
|
488
|
+
title: string;
|
|
489
|
+
notMapped: string;
|
|
490
|
+
map: string;
|
|
491
|
+
remove: string;
|
|
492
|
+
selector: string;
|
|
493
|
+
selectorHelp: string;
|
|
494
|
+
type: string;
|
|
495
|
+
optional: string;
|
|
496
|
+
optionalHelp: string;
|
|
497
|
+
dateFormat: string;
|
|
498
|
+
dateFormatHelp: string;
|
|
499
|
+
dateFormats: string;
|
|
500
|
+
dateFormatsHelp: string;
|
|
501
|
+
autoDetectDateFormat: string;
|
|
502
|
+
numberLocale: string;
|
|
503
|
+
locale: {
|
|
504
|
+
de: string;
|
|
505
|
+
en: string;
|
|
506
|
+
ch: string;
|
|
507
|
+
};
|
|
508
|
+
stripCurrency: string;
|
|
509
|
+
skipInvalid: string;
|
|
510
|
+
skipInvalidHelp: string;
|
|
511
|
+
selectOptions: string;
|
|
512
|
+
selectOptionsHelp: string;
|
|
513
|
+
textWrapperElement: string;
|
|
514
|
+
ignoreElements: string;
|
|
515
|
+
passThroughElements: string;
|
|
516
|
+
elementsHelp: string;
|
|
517
|
+
normalizeWhitespace: string;
|
|
518
|
+
convertNewlinesToBreaks: string;
|
|
519
|
+
richTextMore: string;
|
|
520
|
+
refBlueprintId: string;
|
|
521
|
+
refIdTemplate: string;
|
|
522
|
+
refIdTemplateHelp: string;
|
|
523
|
+
refIdExtractPattern: string;
|
|
524
|
+
refIdExtractSeparator: string;
|
|
525
|
+
refIdExtractSeparatorHelp: string;
|
|
526
|
+
concatSelectors: string;
|
|
527
|
+
concatSelectorsHelp: string;
|
|
528
|
+
normalizeUnicode: string;
|
|
529
|
+
childrenHelp: string;
|
|
530
|
+
elementBlueprintMap: string;
|
|
531
|
+
elementBlueprintMapHelp: string;
|
|
532
|
+
elementRefIdTemplateMap: string;
|
|
533
|
+
elementRefIdTemplateMapHelp: string;
|
|
534
|
+
};
|
|
535
|
+
json: {
|
|
536
|
+
title: string;
|
|
537
|
+
help: string;
|
|
538
|
+
label: string;
|
|
539
|
+
apply: string;
|
|
540
|
+
notJson: string;
|
|
541
|
+
notObject: string;
|
|
542
|
+
unapplied: string;
|
|
543
|
+
};
|
|
544
|
+
sourceKey: {
|
|
545
|
+
title: string;
|
|
546
|
+
help: string;
|
|
547
|
+
extractPattern: string;
|
|
548
|
+
extractPatternHelp: string;
|
|
549
|
+
extractSeparator: string;
|
|
550
|
+
extractSeparatorHelp: string;
|
|
551
|
+
normalize: string;
|
|
552
|
+
};
|
|
553
|
+
versionMatch: {
|
|
554
|
+
title: string;
|
|
555
|
+
help: string;
|
|
556
|
+
validityPeriod: string;
|
|
557
|
+
releaseSpecFields: string;
|
|
558
|
+
noReleaseSpecFields: string;
|
|
559
|
+
contentFields: string;
|
|
560
|
+
noContentFields: string;
|
|
561
|
+
};
|
|
562
|
+
validityPeriod: {
|
|
563
|
+
title: string;
|
|
564
|
+
validFrom: string;
|
|
565
|
+
validTo: string;
|
|
566
|
+
validToHelp: string;
|
|
567
|
+
dateFormats: string;
|
|
568
|
+
dateFormatsHelp: string;
|
|
569
|
+
};
|
|
570
|
+
releaseSpec: {
|
|
571
|
+
title: string;
|
|
572
|
+
none: string;
|
|
573
|
+
field: string;
|
|
574
|
+
selector: string;
|
|
575
|
+
remove: string;
|
|
576
|
+
add: string;
|
|
577
|
+
};
|
|
578
|
+
changedVersion: {
|
|
579
|
+
title: string;
|
|
580
|
+
label: string;
|
|
581
|
+
help: string;
|
|
582
|
+
correct: string;
|
|
583
|
+
keep: string;
|
|
584
|
+
fail: string;
|
|
585
|
+
};
|
|
586
|
+
stub: {
|
|
587
|
+
title: string;
|
|
588
|
+
label: string;
|
|
589
|
+
help: string;
|
|
590
|
+
};
|
|
591
|
+
naming: {
|
|
592
|
+
title: string;
|
|
593
|
+
displayNameTemplate: string;
|
|
594
|
+
displayNameTemplateHelp: string;
|
|
595
|
+
collections: string;
|
|
596
|
+
collectionsHelp: string;
|
|
597
|
+
};
|
|
598
|
+
routing: {
|
|
599
|
+
title: string;
|
|
600
|
+
help: string;
|
|
601
|
+
selector: string;
|
|
602
|
+
collectionMap: string;
|
|
603
|
+
collectionMapHelp: string;
|
|
604
|
+
idPattern: string;
|
|
605
|
+
collectionTemplate: string;
|
|
606
|
+
collectionTemplateHelp: string;
|
|
607
|
+
suffix: string;
|
|
608
|
+
fallback: string;
|
|
609
|
+
};
|
|
610
|
+
titles: {
|
|
611
|
+
title: string;
|
|
612
|
+
help: string;
|
|
613
|
+
none: string;
|
|
614
|
+
item: string;
|
|
615
|
+
remove: string;
|
|
616
|
+
add: string;
|
|
617
|
+
selector: string;
|
|
618
|
+
selectorHelp: string;
|
|
619
|
+
ausgabeCodeSelector: string;
|
|
620
|
+
referenceSpecValues: string;
|
|
621
|
+
valueField: string;
|
|
622
|
+
valueSelector: string;
|
|
623
|
+
removeValue: string;
|
|
624
|
+
addValue: string;
|
|
625
|
+
referenceFilterSelector: string;
|
|
626
|
+
intent: string;
|
|
627
|
+
intents: {
|
|
628
|
+
none: string;
|
|
629
|
+
exclude: string;
|
|
630
|
+
replace: string;
|
|
631
|
+
annotate: string;
|
|
632
|
+
};
|
|
633
|
+
intentTextSelector: string;
|
|
634
|
+
intentTextSelectorHelp: string;
|
|
635
|
+
};
|
|
636
|
+
assets: {
|
|
637
|
+
title: string;
|
|
638
|
+
help: string;
|
|
639
|
+
none: string;
|
|
640
|
+
item: string;
|
|
641
|
+
remove: string;
|
|
642
|
+
add: string;
|
|
643
|
+
selector: string;
|
|
644
|
+
selectorHelp: string;
|
|
645
|
+
assetType: string;
|
|
646
|
+
keyParts: string;
|
|
647
|
+
keyPartsHelp: string;
|
|
648
|
+
nameSelector: string;
|
|
649
|
+
descriptionSelector: string;
|
|
650
|
+
metadata: string;
|
|
651
|
+
metadataHelp: string;
|
|
652
|
+
folderRoot: string;
|
|
653
|
+
folderPathSelector: string;
|
|
654
|
+
folderPathSelectorHelp: string;
|
|
655
|
+
};
|
|
656
|
+
};
|
|
466
657
|
};
|
|
467
658
|
};
|
|
468
659
|
de: {
|
|
@@ -710,6 +901,194 @@ export declare const i18nResources: {
|
|
|
710
901
|
yes: string;
|
|
711
902
|
no: string;
|
|
712
903
|
};
|
|
904
|
+
editor: {
|
|
905
|
+
tabs: {
|
|
906
|
+
fields: string;
|
|
907
|
+
versions: string;
|
|
908
|
+
output: string;
|
|
909
|
+
};
|
|
910
|
+
reasonsHere: string;
|
|
911
|
+
tree: {
|
|
912
|
+
label: string;
|
|
913
|
+
mapped: string;
|
|
914
|
+
unmapped: string;
|
|
915
|
+
invalid: string;
|
|
916
|
+
toggle: string;
|
|
917
|
+
outside: string;
|
|
918
|
+
noLookup: string;
|
|
919
|
+
loadFailed: string;
|
|
920
|
+
selectField: string;
|
|
921
|
+
};
|
|
922
|
+
field: {
|
|
923
|
+
title: string;
|
|
924
|
+
notMapped: string;
|
|
925
|
+
map: string;
|
|
926
|
+
remove: string;
|
|
927
|
+
selector: string;
|
|
928
|
+
selectorHelp: string;
|
|
929
|
+
type: string;
|
|
930
|
+
optional: string;
|
|
931
|
+
optionalHelp: string;
|
|
932
|
+
dateFormat: string;
|
|
933
|
+
dateFormatHelp: string;
|
|
934
|
+
dateFormats: string;
|
|
935
|
+
dateFormatsHelp: string;
|
|
936
|
+
autoDetectDateFormat: string;
|
|
937
|
+
numberLocale: string;
|
|
938
|
+
locale: {
|
|
939
|
+
de: string;
|
|
940
|
+
en: string;
|
|
941
|
+
ch: string;
|
|
942
|
+
};
|
|
943
|
+
stripCurrency: string;
|
|
944
|
+
skipInvalid: string;
|
|
945
|
+
skipInvalidHelp: string;
|
|
946
|
+
selectOptions: string;
|
|
947
|
+
selectOptionsHelp: string;
|
|
948
|
+
textWrapperElement: string;
|
|
949
|
+
ignoreElements: string;
|
|
950
|
+
passThroughElements: string;
|
|
951
|
+
elementsHelp: string;
|
|
952
|
+
normalizeWhitespace: string;
|
|
953
|
+
convertNewlinesToBreaks: string;
|
|
954
|
+
richTextMore: string;
|
|
955
|
+
refBlueprintId: string;
|
|
956
|
+
refIdTemplate: string;
|
|
957
|
+
refIdTemplateHelp: string;
|
|
958
|
+
refIdExtractPattern: string;
|
|
959
|
+
refIdExtractSeparator: string;
|
|
960
|
+
refIdExtractSeparatorHelp: string;
|
|
961
|
+
concatSelectors: string;
|
|
962
|
+
concatSelectorsHelp: string;
|
|
963
|
+
normalizeUnicode: string;
|
|
964
|
+
childrenHelp: string;
|
|
965
|
+
elementBlueprintMap: string;
|
|
966
|
+
elementBlueprintMapHelp: string;
|
|
967
|
+
elementRefIdTemplateMap: string;
|
|
968
|
+
elementRefIdTemplateMapHelp: string;
|
|
969
|
+
};
|
|
970
|
+
json: {
|
|
971
|
+
title: string;
|
|
972
|
+
help: string;
|
|
973
|
+
label: string;
|
|
974
|
+
apply: string;
|
|
975
|
+
notJson: string;
|
|
976
|
+
notObject: string;
|
|
977
|
+
unapplied: string;
|
|
978
|
+
};
|
|
979
|
+
sourceKey: {
|
|
980
|
+
title: string;
|
|
981
|
+
help: string;
|
|
982
|
+
extractPattern: string;
|
|
983
|
+
extractPatternHelp: string;
|
|
984
|
+
extractSeparator: string;
|
|
985
|
+
extractSeparatorHelp: string;
|
|
986
|
+
normalize: string;
|
|
987
|
+
};
|
|
988
|
+
versionMatch: {
|
|
989
|
+
title: string;
|
|
990
|
+
help: string;
|
|
991
|
+
validityPeriod: string;
|
|
992
|
+
releaseSpecFields: string;
|
|
993
|
+
noReleaseSpecFields: string;
|
|
994
|
+
contentFields: string;
|
|
995
|
+
noContentFields: string;
|
|
996
|
+
};
|
|
997
|
+
validityPeriod: {
|
|
998
|
+
title: string;
|
|
999
|
+
validFrom: string;
|
|
1000
|
+
validTo: string;
|
|
1001
|
+
validToHelp: string;
|
|
1002
|
+
dateFormats: string;
|
|
1003
|
+
dateFormatsHelp: string;
|
|
1004
|
+
};
|
|
1005
|
+
releaseSpec: {
|
|
1006
|
+
title: string;
|
|
1007
|
+
none: string;
|
|
1008
|
+
field: string;
|
|
1009
|
+
selector: string;
|
|
1010
|
+
remove: string;
|
|
1011
|
+
add: string;
|
|
1012
|
+
};
|
|
1013
|
+
changedVersion: {
|
|
1014
|
+
title: string;
|
|
1015
|
+
label: string;
|
|
1016
|
+
help: string;
|
|
1017
|
+
correct: string;
|
|
1018
|
+
keep: string;
|
|
1019
|
+
fail: string;
|
|
1020
|
+
};
|
|
1021
|
+
stub: {
|
|
1022
|
+
title: string;
|
|
1023
|
+
label: string;
|
|
1024
|
+
help: string;
|
|
1025
|
+
};
|
|
1026
|
+
naming: {
|
|
1027
|
+
title: string;
|
|
1028
|
+
displayNameTemplate: string;
|
|
1029
|
+
displayNameTemplateHelp: string;
|
|
1030
|
+
collections: string;
|
|
1031
|
+
collectionsHelp: string;
|
|
1032
|
+
};
|
|
1033
|
+
routing: {
|
|
1034
|
+
title: string;
|
|
1035
|
+
help: string;
|
|
1036
|
+
selector: string;
|
|
1037
|
+
collectionMap: string;
|
|
1038
|
+
collectionMapHelp: string;
|
|
1039
|
+
idPattern: string;
|
|
1040
|
+
collectionTemplate: string;
|
|
1041
|
+
collectionTemplateHelp: string;
|
|
1042
|
+
suffix: string;
|
|
1043
|
+
fallback: string;
|
|
1044
|
+
};
|
|
1045
|
+
titles: {
|
|
1046
|
+
title: string;
|
|
1047
|
+
help: string;
|
|
1048
|
+
none: string;
|
|
1049
|
+
item: string;
|
|
1050
|
+
remove: string;
|
|
1051
|
+
add: string;
|
|
1052
|
+
selector: string;
|
|
1053
|
+
selectorHelp: string;
|
|
1054
|
+
ausgabeCodeSelector: string;
|
|
1055
|
+
referenceSpecValues: string;
|
|
1056
|
+
valueField: string;
|
|
1057
|
+
valueSelector: string;
|
|
1058
|
+
removeValue: string;
|
|
1059
|
+
addValue: string;
|
|
1060
|
+
referenceFilterSelector: string;
|
|
1061
|
+
intent: string;
|
|
1062
|
+
intents: {
|
|
1063
|
+
none: string;
|
|
1064
|
+
exclude: string;
|
|
1065
|
+
replace: string;
|
|
1066
|
+
annotate: string;
|
|
1067
|
+
};
|
|
1068
|
+
intentTextSelector: string;
|
|
1069
|
+
intentTextSelectorHelp: string;
|
|
1070
|
+
};
|
|
1071
|
+
assets: {
|
|
1072
|
+
title: string;
|
|
1073
|
+
help: string;
|
|
1074
|
+
none: string;
|
|
1075
|
+
item: string;
|
|
1076
|
+
remove: string;
|
|
1077
|
+
add: string;
|
|
1078
|
+
selector: string;
|
|
1079
|
+
selectorHelp: string;
|
|
1080
|
+
assetType: string;
|
|
1081
|
+
keyParts: string;
|
|
1082
|
+
keyPartsHelp: string;
|
|
1083
|
+
nameSelector: string;
|
|
1084
|
+
descriptionSelector: string;
|
|
1085
|
+
metadata: string;
|
|
1086
|
+
metadataHelp: string;
|
|
1087
|
+
folderRoot: string;
|
|
1088
|
+
folderPathSelector: string;
|
|
1089
|
+
folderPathSelectorHelp: string;
|
|
1090
|
+
};
|
|
1091
|
+
};
|
|
713
1092
|
};
|
|
714
1093
|
};
|
|
715
1094
|
};
|
|
@@ -734,12 +1113,41 @@ export declare interface ImporthubBlueprint {
|
|
|
734
1113
|
name: string;
|
|
735
1114
|
}
|
|
736
1115
|
|
|
1116
|
+
/**
|
|
1117
|
+
* One field of a Blueprint Release's field tree, as the Mapping editor shows
|
|
1118
|
+
* it (importhub.v1.BlueprintField).
|
|
1119
|
+
*/
|
|
1120
|
+
export declare interface ImporthubBlueprintField {
|
|
1121
|
+
/** Its accessor among its siblings. */
|
|
1122
|
+
accessor: string;
|
|
1123
|
+
/** Its accessors from the top joined by `.`: how a Mapping names it. */
|
|
1124
|
+
path: string;
|
|
1125
|
+
/** Its fieldkit field type, such as `text`, `date` or `fieldset`. */
|
|
1126
|
+
fieldType: string;
|
|
1127
|
+
/** Its label for a person; "" when the Release gives none. */
|
|
1128
|
+
label: string;
|
|
1129
|
+
/** A fieldset's or a virtual table's fields, nested. */
|
|
1130
|
+
children: ImporthubBlueprintField[];
|
|
1131
|
+
}
|
|
1132
|
+
|
|
737
1133
|
/** A Blueprint Release, as a Mapping pins it: `label` names it, such as "Release 3". */
|
|
738
1134
|
export declare interface ImporthubBlueprintRelease {
|
|
739
1135
|
id: string;
|
|
740
1136
|
label: string;
|
|
741
1137
|
}
|
|
742
1138
|
|
|
1139
|
+
/** A Blueprint Release with its field tree, as the Mapping editor reads it. */
|
|
1140
|
+
export declare interface ImporthubBlueprintReleaseTree {
|
|
1141
|
+
id: string;
|
|
1142
|
+
blueprintId: string;
|
|
1143
|
+
/** The name it was cut with, such as `2026-10`. */
|
|
1144
|
+
name: string;
|
|
1145
|
+
/** Its field tree, in the Release's order. */
|
|
1146
|
+
fields: ImporthubBlueprintField[];
|
|
1147
|
+
/** Its Release Spec fields, which Release Spec sources and Version Match read. */
|
|
1148
|
+
releaseSpecFields: ImporthubBlueprintField[];
|
|
1149
|
+
}
|
|
1150
|
+
|
|
743
1151
|
/**
|
|
744
1152
|
* Where the screens find Blueprints and their Releases, which live in
|
|
745
1153
|
* blueprinthub, not importhub: importhub stores only their ids. A host that
|
|
@@ -752,6 +1160,13 @@ export declare interface ImporthubBlueprints {
|
|
|
752
1160
|
listBlueprints(): Promise<ImporthubBlueprint[]>;
|
|
753
1161
|
/** A Blueprint's Releases, newest first. */
|
|
754
1162
|
listReleases(blueprintId: string): Promise<ImporthubBlueprintRelease[]>;
|
|
1163
|
+
/**
|
|
1164
|
+
* A Release with its field tree, for the Mapping editor
|
|
1165
|
+
* (edit-a-mapping-in-the-structured-editor:AC1). Optional, so a host
|
|
1166
|
+
* written before the editor still type-checks; without it the editor
|
|
1167
|
+
* lists only the fields the Mapping maps, and says why.
|
|
1168
|
+
*/
|
|
1169
|
+
getRelease?(releaseId: string): Promise<ImporthubBlueprintReleaseTree>;
|
|
755
1170
|
}
|
|
756
1171
|
|
|
757
1172
|
/**
|
|
@@ -841,6 +1256,8 @@ export declare const importhubKeys: {
|
|
|
841
1256
|
entitySet: (workspaceId: string, id: string) => readonly ["importhub", string, "entitySets", string];
|
|
842
1257
|
blueprints: (workspaceId: string) => readonly ["importhub", string, "blueprints"];
|
|
843
1258
|
blueprintReleases: (workspaceId: string, blueprintId: string) => readonly ["importhub", string, "blueprints", string, "releases"];
|
|
1259
|
+
/** A Blueprint Release with its field tree; a Release never changes once cut. */
|
|
1260
|
+
blueprintRelease: (workspaceId: string, releaseId: string) => readonly ["importhub", string, "blueprints", "release", string];
|
|
844
1261
|
/** One configuration of a kind, as its page reads it. */
|
|
845
1262
|
configuration: (workspaceId: string, kind: ConfigurationKind, id: string) => readonly ["importhub", string, "importProfiles", string] | readonly ["importhub", string, "mappings", string] | readonly ["importhub", string, "entitySets", string];
|
|
846
1263
|
/** Every list of a kind, so one change refreshes them all. */
|
|
@@ -940,10 +1357,10 @@ export declare type Mapping = Configured<MappingContent>;
|
|
|
940
1357
|
|
|
941
1358
|
/**
|
|
942
1359
|
* What an admin edits of a Mapping, in the JSON shape of importhub.v1's
|
|
943
|
-
* MappingContent
|
|
944
|
-
*
|
|
945
|
-
*
|
|
946
|
-
*
|
|
1360
|
+
* MappingContent: its camelCase keys, enums by their names
|
|
1361
|
+
* (`CHANGED_VERSION_HANDLING_KEEP`), unset settings left out. The settings are
|
|
1362
|
+
* typed as the structured editor (F4) edits them; every key travels through
|
|
1363
|
+
* as given, typed or not, so a save never drops one a screen does not show.
|
|
947
1364
|
*/
|
|
948
1365
|
export declare interface MappingContent {
|
|
949
1366
|
name: string;
|
|
@@ -954,23 +1371,73 @@ export declare interface MappingContent {
|
|
|
954
1371
|
sourceKey?: {
|
|
955
1372
|
selector?: string;
|
|
956
1373
|
template?: string;
|
|
1374
|
+
extractPattern?: string;
|
|
1375
|
+
/** `-` when unset; "" joins the groups with nothing. */
|
|
1376
|
+
extractSeparator?: string;
|
|
1377
|
+
normalize?: boolean;
|
|
957
1378
|
[key: string]: unknown;
|
|
958
1379
|
};
|
|
959
1380
|
/** Each an xmlmapper FieldMapping; `name` is the field path. */
|
|
960
1381
|
fields?: Array<Record<string, unknown>>;
|
|
1382
|
+
versionMatch?: {
|
|
1383
|
+
validityPeriod?: boolean;
|
|
1384
|
+
releaseSpecFields?: string[];
|
|
1385
|
+
contentFields?: string[];
|
|
1386
|
+
};
|
|
1387
|
+
validityPeriod?: {
|
|
1388
|
+
validFromSelector?: string;
|
|
1389
|
+
validToSelector?: string;
|
|
1390
|
+
dateFormats?: string[];
|
|
1391
|
+
};
|
|
1392
|
+
releaseSpec?: Array<{
|
|
1393
|
+
field?: string;
|
|
1394
|
+
selector?: string;
|
|
1395
|
+
}>;
|
|
1396
|
+
/** Unset: Correct. */
|
|
1397
|
+
changedVersion?: ChangedVersionHandling;
|
|
1398
|
+
stub?: boolean;
|
|
1399
|
+
titleContributions?: Array<{
|
|
1400
|
+
selector?: string;
|
|
1401
|
+
ausgabeCodeSelector?: string;
|
|
1402
|
+
referenceSpecValues?: Array<{
|
|
1403
|
+
field?: string;
|
|
1404
|
+
selector?: string;
|
|
1405
|
+
}>;
|
|
1406
|
+
referenceFilterSelector?: string;
|
|
1407
|
+
intent?: TitleIntent;
|
|
1408
|
+
intentTextSelector?: string;
|
|
1409
|
+
}>;
|
|
1410
|
+
collectionRouting?: {
|
|
1411
|
+
selector?: string;
|
|
1412
|
+
collectionMap?: Record<string, string>;
|
|
1413
|
+
idPattern?: string;
|
|
1414
|
+
collectionTemplate?: string;
|
|
1415
|
+
suffix?: string;
|
|
1416
|
+
fallback?: string;
|
|
1417
|
+
};
|
|
1418
|
+
collections?: string[];
|
|
1419
|
+
displayNameTemplate?: string;
|
|
1420
|
+
placeholderAssets?: Array<{
|
|
1421
|
+
selector?: string;
|
|
1422
|
+
assetType?: string;
|
|
1423
|
+
keyParts?: string[];
|
|
1424
|
+
nameSelector?: string;
|
|
1425
|
+
descriptionSelector?: string;
|
|
1426
|
+
metadata?: Record<string, string>;
|
|
1427
|
+
folderRoot?: string;
|
|
1428
|
+
folderPathSelector?: string;
|
|
1429
|
+
}>;
|
|
961
1430
|
[key: string]: unknown;
|
|
962
1431
|
}
|
|
963
1432
|
|
|
964
1433
|
/**
|
|
965
|
-
* One Mapping (manage-mappings:AC2):
|
|
966
|
-
*
|
|
967
|
-
*
|
|
968
|
-
*
|
|
969
|
-
* importhub
|
|
970
|
-
*
|
|
971
|
-
*
|
|
972
|
-
* History tab lists, compares and restores its Revisions
|
|
973
|
-
* (release-a-configuration).
|
|
1434
|
+
* One Mapping's page without the structured editor (manage-mappings:AC2):
|
|
1435
|
+
* its name, element selector and Source Key, its target, the Profiles that
|
|
1436
|
+
* include it, release and history. Every other setting (field mappings,
|
|
1437
|
+
* Version Match, Title Contributions, …) is the Mapping editor's, from
|
|
1438
|
+
* `@knkcs/importhub-ui/mapping-editor`, and is saved back exactly as it came.
|
|
1439
|
+
* A host that loads the editor mounts `MappingEditor` in its place: the same
|
|
1440
|
+
* page with the editor's tabs.
|
|
974
1441
|
*/
|
|
975
1442
|
export declare function MappingDetail({ client, id, onDeleted }: MappingDetailProps): JSX.Element;
|
|
976
1443
|
|
|
@@ -1054,6 +1521,9 @@ export declare class ReleaseRefusedError extends Error {
|
|
|
1054
1521
|
*/
|
|
1055
1522
|
export declare const STANDALONE_IMPORTHUB_PATHS: ImporthubPaths;
|
|
1056
1523
|
|
|
1524
|
+
/** The intent a Title Contribution writes (importhub.v1.TitleIntent). */
|
|
1525
|
+
export declare type TitleIntent = "TITLE_INTENT_UNSPECIFIED" | "TITLE_INTENT_EXCLUDE" | "TITLE_INTENT_REPLACE" | "TITLE_INTENT_ANNOTATE";
|
|
1526
|
+
|
|
1057
1527
|
/**
|
|
1058
1528
|
* The host's decisions; outside a provider, the Standalone App's paths and
|
|
1059
1529
|
* no Change Set links.
|