@magda/external-ui-plugin-sdk 2.2.5-alpha.1 → 2.2.6

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +135 -0
  2. 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 = {
@@ -1069,6 +1120,22 @@ declare interface Permission {
1069
1120
  */
1070
1121
  export declare const PREFIX = "MagdaPluginComponent";
1071
1122
 
1123
+ declare type previewMapSettingsAspect = {
1124
+ enable?: boolean;
1125
+ format?: string;
1126
+ };
1127
+
1128
+ declare type Provenance = {
1129
+ mechanism?: string;
1130
+ sourceSystem?: string;
1131
+ derivedFrom?: {
1132
+ id?: string[];
1133
+ name?: string;
1134
+ }[];
1135
+ isOpenData?: boolean;
1136
+ affiliatedOrganizationIds?: Record_2[];
1137
+ };
1138
+
1072
1139
  declare type Publisher = {
1073
1140
  id: string;
1074
1141
  name: string;
@@ -1087,6 +1154,74 @@ declare type Publisher = {
1087
1154
  };
1088
1155
  };
1089
1156
 
1157
+ declare type PublishingAspect = {
1158
+ custodianOrgUnitId?: string;
1159
+ managingOrgUnitId?: string;
1160
+ state?: "draft" | "published" | "archived";
1161
+ level?:
1162
+ | "organization"
1163
+ | "custodian"
1164
+ | "team"
1165
+ | "creatorOrgUnit"
1166
+ | "selectedOrgUnit";
1167
+ contactPointDisplay?: "team" | "organization" | "custodian";
1168
+ publishAsOpenData?: {
1169
+ [key: string]: any;
1170
+ };
1171
+ };
1172
+
1173
+ declare type RawDataset = {
1174
+ id: string;
1175
+ name: string;
1176
+ message?: string;
1177
+ aspects: {
1178
+ "dcat-dataset-strings": DcatDatasetStrings;
1179
+ source?: {
1180
+ url: string;
1181
+ name: string;
1182
+ type: string;
1183
+ };
1184
+ "dataset-publisher"?: DatasetPublisher;
1185
+ "dataset-distributions"?: {
1186
+ distributions: Array<RawDistribution>;
1187
+ };
1188
+ "temporal-coverage"?: TemporalCoverage;
1189
+ provenance?: Provenance;
1190
+ access: Access;
1191
+ version?: VersionAspectData;
1192
+ "dataset-draft"?: DatasetDraft;
1193
+ currency?: CurrencyData;
1194
+ publishing?: PublishingAspect;
1195
+ "preview-map-settings"?: previewMapSettingsAspect;
1196
+ };
1197
+ };
1198
+
1199
+ declare type RawDistribution = {
1200
+ id: string;
1201
+ name: string;
1202
+ aspects: {
1203
+ "dcat-distribution-strings": dcatDistributionStrings;
1204
+ "source-link-status": {
1205
+ status?: string;
1206
+ };
1207
+ "visualization-info": {
1208
+ fields: any;
1209
+ format: string;
1210
+ timeseries: boolean;
1211
+ wellFormed: boolean;
1212
+ compatiblePreviews: CompatiblePreviews;
1213
+ };
1214
+ "preview-map-settings"?: previewMapSettingsAspect;
1215
+ "spatial-coverage": {
1216
+ bbox?: number[];
1217
+ };
1218
+ publishing: {
1219
+ state?: string;
1220
+ };
1221
+ version?: VersionAspectData;
1222
+ };
1223
+ };
1224
+
1090
1225
  declare interface RawPreviewMapFormatPerferenceItem {
1091
1226
  format: string;
1092
1227
  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.2.5-alpha.1",
4
+ "version": "2.2.6",
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.2.5-alpha.1",
21
+ "@magda/web-client": "^2.2.6",
22
22
  "typescript": "~4.2.4"
23
23
  },
24
24
  "peerDependencies": {