@magda/external-ui-plugin-sdk 2.3.0-alpha.0 → 2.3.1

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 +11 -10
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -10,6 +10,13 @@ declare type Access = {
10
10
  note?: string;
11
11
  };
12
12
 
13
+ declare interface AccessControlAspect {
14
+ ownerId?: string;
15
+ orgUnitId?: string;
16
+ preAuthorisedPermissionIds?: string[];
17
+ constraintExemption?: boolean;
18
+ }
19
+
13
20
  declare interface CkanExportAspectProperties {
14
21
  status: CkanExportStatus;
15
22
  exportUserId?: string;
@@ -1030,11 +1037,7 @@ declare type ParsedDataset = {
1030
1037
  temporalExtent?: any;
1031
1038
  accessLevel?: string;
1032
1039
  informationSecurity?: ParsedInformationSecurity;
1033
- accessControl?: {
1034
- ownerId: string;
1035
- orgUnitId: string;
1036
- preAuthorisedPermissionIds: string[];
1037
- };
1040
+ accessControl?: AccessControlAspect;
1038
1041
  ckanExport?: CkanExportAspectType;
1039
1042
  access: Access;
1040
1043
  defaultLicense?: string;
@@ -1060,11 +1063,7 @@ declare type ParsedDistribution = {
1060
1063
  sourceDetails: any;
1061
1064
  ckanResource: any;
1062
1065
  publishingState?: string;
1063
- accessControl?: {
1064
- ownerId: string;
1065
- orgUnitId: string;
1066
- preAuthorisedPermissionIds: string[];
1067
- };
1066
+ accessControl?: AccessControlAspect;
1068
1067
  version?: VersionAspectData;
1069
1068
  byteSize?: number;
1070
1069
  rawData: RawDistribution;
@@ -1194,6 +1193,7 @@ declare type RawDataset = {
1194
1193
  currency?: CurrencyData;
1195
1194
  publishing?: PublishingAspect;
1196
1195
  "preview-map-settings"?: previewMapSettingsAspect;
1196
+ "access-control"?: AccessControlAspect;
1197
1197
  };
1198
1198
  };
1199
1199
 
@@ -1220,6 +1220,7 @@ declare type RawDistribution = {
1220
1220
  state?: string;
1221
1221
  };
1222
1222
  version?: VersionAspectData;
1223
+ "access-control"?: AccessControlAspect;
1223
1224
  };
1224
1225
  };
1225
1226
 
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.3.0-alpha.0",
4
+ "version": "2.3.1",
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.3.0-alpha.0",
21
+ "@magda/web-client": "^2.3.1",
22
22
  "typescript": "~4.2.4"
23
23
  },
24
24
  "peerDependencies": {