@magda/external-ui-plugin-sdk 2.2.5 → 2.3.0-alpha.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.ts +136 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -763,6 +763,17 @@ declare type CurrencyData = {
|
|
|
763
763
|
}[];
|
|
764
764
|
};
|
|
765
765
|
|
|
766
|
+
declare type DatasetDraft = {
|
|
767
|
+
data: string;
|
|
768
|
+
timestamp: string;
|
|
769
|
+
dataset?: {
|
|
770
|
+
title?: string;
|
|
771
|
+
description?: string;
|
|
772
|
+
themes?: string[];
|
|
773
|
+
keywords?: string[];
|
|
774
|
+
};
|
|
775
|
+
};
|
|
776
|
+
|
|
766
777
|
/**
|
|
767
778
|
* The properties that DatasetEditButton Plugin Component will receive.
|
|
768
779
|
*
|
|
@@ -802,6 +813,10 @@ export declare type DatasetLikeButtonComponentType = ComponentType<
|
|
|
802
813
|
DatasetLikeButtonComponentPropsType
|
|
803
814
|
>;
|
|
804
815
|
|
|
816
|
+
declare type DatasetPublisher = {
|
|
817
|
+
publisher: Publisher;
|
|
818
|
+
};
|
|
819
|
+
|
|
805
820
|
declare interface DateConfig {
|
|
806
821
|
dateFormats: string[];
|
|
807
822
|
dateRegexes: {
|
|
@@ -811,6 +826,40 @@ declare interface DateConfig {
|
|
|
811
826
|
};
|
|
812
827
|
}
|
|
813
828
|
|
|
829
|
+
declare type DcatDatasetStrings = {
|
|
830
|
+
title: string;
|
|
831
|
+
description: string;
|
|
832
|
+
issued?: string;
|
|
833
|
+
modified?: string;
|
|
834
|
+
languages?: string[];
|
|
835
|
+
publisher?: string;
|
|
836
|
+
accrualPeriodicity?: string;
|
|
837
|
+
accrualPeriodicityRecurrenceRule?: string;
|
|
838
|
+
spatial?: string;
|
|
839
|
+
temporal?: {
|
|
840
|
+
start?: string;
|
|
841
|
+
end?: string;
|
|
842
|
+
};
|
|
843
|
+
themes?: string[];
|
|
844
|
+
keywords?: Array<string>;
|
|
845
|
+
contactPoint?: string;
|
|
846
|
+
landingPage?: string;
|
|
847
|
+
defaultLicense?: string;
|
|
848
|
+
};
|
|
849
|
+
|
|
850
|
+
declare type dcatDistributionStrings = {
|
|
851
|
+
format: string;
|
|
852
|
+
downloadURL: string;
|
|
853
|
+
accessURL: string;
|
|
854
|
+
issued?: string;
|
|
855
|
+
modified: string;
|
|
856
|
+
license: string;
|
|
857
|
+
description: string;
|
|
858
|
+
title: string;
|
|
859
|
+
useStorageApi?: boolean;
|
|
860
|
+
byteSize: number;
|
|
861
|
+
};
|
|
862
|
+
|
|
814
863
|
/**
|
|
815
864
|
* The properties that ExtraVisualisationSection Plugin Component will receive.
|
|
816
865
|
*
|
|
@@ -989,6 +1038,7 @@ declare type ParsedDataset = {
|
|
|
989
1038
|
ckanExport?: CkanExportAspectType;
|
|
990
1039
|
access: Access;
|
|
991
1040
|
defaultLicense?: string;
|
|
1041
|
+
rawData: RawDataset;
|
|
992
1042
|
};
|
|
993
1043
|
|
|
994
1044
|
declare type ParsedDistribution = {
|
|
@@ -1017,6 +1067,7 @@ declare type ParsedDistribution = {
|
|
|
1017
1067
|
};
|
|
1018
1068
|
version?: VersionAspectData;
|
|
1019
1069
|
byteSize?: number;
|
|
1070
|
+
rawData: RawDistribution;
|
|
1020
1071
|
};
|
|
1021
1072
|
|
|
1022
1073
|
declare type ParsedInformationSecurity = {
|
|
@@ -1046,6 +1097,7 @@ declare interface Permission {
|
|
|
1046
1097
|
createTime?: Date;
|
|
1047
1098
|
editBy?: string;
|
|
1048
1099
|
editTime?: Date;
|
|
1100
|
+
allowExemption: boolean;
|
|
1049
1101
|
}
|
|
1050
1102
|
|
|
1051
1103
|
/**
|
|
@@ -1069,6 +1121,22 @@ declare interface Permission {
|
|
|
1069
1121
|
*/
|
|
1070
1122
|
export declare const PREFIX = "MagdaPluginComponent";
|
|
1071
1123
|
|
|
1124
|
+
declare type previewMapSettingsAspect = {
|
|
1125
|
+
enable?: boolean;
|
|
1126
|
+
format?: string;
|
|
1127
|
+
};
|
|
1128
|
+
|
|
1129
|
+
declare type Provenance = {
|
|
1130
|
+
mechanism?: string;
|
|
1131
|
+
sourceSystem?: string;
|
|
1132
|
+
derivedFrom?: {
|
|
1133
|
+
id?: string[];
|
|
1134
|
+
name?: string;
|
|
1135
|
+
}[];
|
|
1136
|
+
isOpenData?: boolean;
|
|
1137
|
+
affiliatedOrganizationIds?: Record_2[];
|
|
1138
|
+
};
|
|
1139
|
+
|
|
1072
1140
|
declare type Publisher = {
|
|
1073
1141
|
id: string;
|
|
1074
1142
|
name: string;
|
|
@@ -1087,6 +1155,74 @@ declare type Publisher = {
|
|
|
1087
1155
|
};
|
|
1088
1156
|
};
|
|
1089
1157
|
|
|
1158
|
+
declare type PublishingAspect = {
|
|
1159
|
+
custodianOrgUnitId?: string;
|
|
1160
|
+
managingOrgUnitId?: string;
|
|
1161
|
+
state?: "draft" | "published" | "archived";
|
|
1162
|
+
level?:
|
|
1163
|
+
| "organization"
|
|
1164
|
+
| "custodian"
|
|
1165
|
+
| "team"
|
|
1166
|
+
| "creatorOrgUnit"
|
|
1167
|
+
| "selectedOrgUnit";
|
|
1168
|
+
contactPointDisplay?: "team" | "organization" | "custodian";
|
|
1169
|
+
publishAsOpenData?: {
|
|
1170
|
+
[key: string]: any;
|
|
1171
|
+
};
|
|
1172
|
+
};
|
|
1173
|
+
|
|
1174
|
+
declare type RawDataset = {
|
|
1175
|
+
id: string;
|
|
1176
|
+
name: string;
|
|
1177
|
+
message?: string;
|
|
1178
|
+
aspects: {
|
|
1179
|
+
"dcat-dataset-strings": DcatDatasetStrings;
|
|
1180
|
+
source?: {
|
|
1181
|
+
url: string;
|
|
1182
|
+
name: string;
|
|
1183
|
+
type: string;
|
|
1184
|
+
};
|
|
1185
|
+
"dataset-publisher"?: DatasetPublisher;
|
|
1186
|
+
"dataset-distributions"?: {
|
|
1187
|
+
distributions: Array<RawDistribution>;
|
|
1188
|
+
};
|
|
1189
|
+
"temporal-coverage"?: TemporalCoverage;
|
|
1190
|
+
provenance?: Provenance;
|
|
1191
|
+
access: Access;
|
|
1192
|
+
version?: VersionAspectData;
|
|
1193
|
+
"dataset-draft"?: DatasetDraft;
|
|
1194
|
+
currency?: CurrencyData;
|
|
1195
|
+
publishing?: PublishingAspect;
|
|
1196
|
+
"preview-map-settings"?: previewMapSettingsAspect;
|
|
1197
|
+
};
|
|
1198
|
+
};
|
|
1199
|
+
|
|
1200
|
+
declare type RawDistribution = {
|
|
1201
|
+
id: string;
|
|
1202
|
+
name: string;
|
|
1203
|
+
aspects: {
|
|
1204
|
+
"dcat-distribution-strings": dcatDistributionStrings;
|
|
1205
|
+
"source-link-status": {
|
|
1206
|
+
status?: string;
|
|
1207
|
+
};
|
|
1208
|
+
"visualization-info": {
|
|
1209
|
+
fields: any;
|
|
1210
|
+
format: string;
|
|
1211
|
+
timeseries: boolean;
|
|
1212
|
+
wellFormed: boolean;
|
|
1213
|
+
compatiblePreviews: CompatiblePreviews;
|
|
1214
|
+
};
|
|
1215
|
+
"preview-map-settings"?: previewMapSettingsAspect;
|
|
1216
|
+
"spatial-coverage": {
|
|
1217
|
+
bbox?: number[];
|
|
1218
|
+
};
|
|
1219
|
+
publishing: {
|
|
1220
|
+
state?: string;
|
|
1221
|
+
};
|
|
1222
|
+
version?: VersionAspectData;
|
|
1223
|
+
};
|
|
1224
|
+
};
|
|
1225
|
+
|
|
1090
1226
|
declare interface RawPreviewMapFormatPerferenceItem {
|
|
1091
1227
|
format: string;
|
|
1092
1228
|
isDataFile?: boolean;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magda/external-ui-plugin-sdk",
|
|
3
3
|
"description": "MAGDA external UI plugin SDK",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.3.0-alpha.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prebuild": "rimraf dist tsconfig.tsbuildinfo",
|
|
7
7
|
"build": "api-extractor run -l",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"directory": "packages/external-ui-plugin-sdk"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@magda/web-client": "^2.
|
|
21
|
+
"@magda/web-client": "^2.3.0-alpha.0",
|
|
22
22
|
"typescript": "~4.2.4"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|