@pdc/sdk 0.16.2 → 0.16.3
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/.openapi-generator/FILES +4 -3
- package/dist/types/{BulkUpload.d.ts → BulkUploadTask.d.ts} +4 -4
- package/dist/types/{BulkUpload.js → BulkUploadTask.js} +5 -5
- package/dist/types/BulkUploadTaskBundle.d.ts +7 -0
- package/dist/types/User.d.ts +2 -2
- package/dist/types/UserChangemakerPermission.d.ts +12 -0
- package/dist/types/UserPermissions.d.ts +14 -0
- package/dist/types/UserPermissions.js +2 -0
- package/dist/types/index.d.ts +4 -3
- package/dist/types/index.js +4 -3
- package/package.json +1 -1
- package/src/types/{BulkUpload.ts → BulkUploadTask.ts} +4 -4
- package/src/types/BulkUploadTaskBundle.ts +13 -0
- package/src/types/User.ts +3 -3
- package/src/types/UserChangemakerPermission.ts +17 -0
- package/src/types/UserPermissions.ts +14 -0
- package/src/types/index.ts +4 -3
- package/dist/types/BulkUploadBundle.d.ts +0 -7
- package/dist/types/UserRoles.d.ts +0 -19
- package/src/types/BulkUploadBundle.ts +0 -13
- package/src/types/UserRoles.ts +0 -11
- /package/dist/types/{BulkUploadBundle.js → BulkUploadTaskBundle.js} +0 -0
- /package/dist/types/{UserRoles.js → UserChangemakerPermission.js} +0 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -9,8 +9,8 @@ src/types/ApplicationFormField.ts
|
|
|
9
9
|
src/types/BaseField.ts
|
|
10
10
|
src/types/BaseFieldLocalization.ts
|
|
11
11
|
src/types/BaseFieldLocalizationBundle.ts
|
|
12
|
-
src/types/
|
|
13
|
-
src/types/
|
|
12
|
+
src/types/BulkUploadTask.ts
|
|
13
|
+
src/types/BulkUploadTaskBundle.ts
|
|
14
14
|
src/types/Bundle.ts
|
|
15
15
|
src/types/Changemaker.ts
|
|
16
16
|
src/types/ChangemakerBundle.ts
|
|
@@ -39,7 +39,8 @@ src/types/Source.ts
|
|
|
39
39
|
src/types/SourceBundle.ts
|
|
40
40
|
src/types/User.ts
|
|
41
41
|
src/types/UserBundle.ts
|
|
42
|
-
src/types/
|
|
42
|
+
src/types/UserChangemakerPermission.ts
|
|
43
|
+
src/types/UserPermissions.ts
|
|
43
44
|
src/types/Writable.ts
|
|
44
45
|
src/types/index.ts
|
|
45
46
|
tsconfig.json
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { Source } from './Source';
|
|
2
2
|
import { Writable } from './Writable';
|
|
3
|
-
export interface
|
|
3
|
+
export interface BulkUploadTask {
|
|
4
4
|
readonly id: number;
|
|
5
5
|
sourceId: number;
|
|
6
6
|
readonly source?: Source;
|
|
7
7
|
fileName: string;
|
|
8
8
|
readonly fileSize?: number;
|
|
9
9
|
sourceKey: string;
|
|
10
|
-
readonly status:
|
|
10
|
+
readonly status: BulkUploadTask.StatusEnum;
|
|
11
11
|
readonly createdBy: string;
|
|
12
12
|
readonly createdAt: string;
|
|
13
13
|
}
|
|
14
|
-
export type
|
|
15
|
-
export declare namespace
|
|
14
|
+
export type WritableBulkUploadTask = Writable<BulkUploadTask>;
|
|
15
|
+
export declare namespace BulkUploadTask {
|
|
16
16
|
enum StatusEnum {
|
|
17
17
|
Pending = "pending",
|
|
18
18
|
InProgress = "in_progress",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
5
|
-
(function (
|
|
3
|
+
exports.BulkUploadTask = void 0;
|
|
4
|
+
var BulkUploadTask;
|
|
5
|
+
(function (BulkUploadTask) {
|
|
6
6
|
let StatusEnum;
|
|
7
7
|
(function (StatusEnum) {
|
|
8
8
|
StatusEnum["Pending"] = "pending";
|
|
@@ -10,5 +10,5 @@ var BulkUpload;
|
|
|
10
10
|
StatusEnum["Completed"] = "completed";
|
|
11
11
|
StatusEnum["Failed"] = "failed";
|
|
12
12
|
StatusEnum["Canceled"] = "canceled";
|
|
13
|
-
})(StatusEnum =
|
|
14
|
-
})(
|
|
13
|
+
})(StatusEnum = BulkUploadTask.StatusEnum || (BulkUploadTask.StatusEnum = {}));
|
|
14
|
+
})(BulkUploadTask || (exports.BulkUploadTask = BulkUploadTask = {}));
|
package/dist/types/User.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UserPermissions } from './UserPermissions';
|
|
2
2
|
import { Writable } from './Writable';
|
|
3
3
|
export interface User {
|
|
4
4
|
keycloakUserId: string;
|
|
5
|
-
|
|
5
|
+
permissions?: UserPermissions;
|
|
6
6
|
readonly createdAt: string;
|
|
7
7
|
}
|
|
8
8
|
export type WritableUser = Writable<User>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Permission } from './Permission';
|
|
2
|
+
import { Writable } from './Writable';
|
|
3
|
+
export interface UserChangemakerPermission {
|
|
4
|
+
readonly permission?: Permission;
|
|
5
|
+
readonly changemakerId?: number;
|
|
6
|
+
readonly userKeycloakUserId?: string;
|
|
7
|
+
readonly createdBy?: string;
|
|
8
|
+
readonly createdAt: string;
|
|
9
|
+
}
|
|
10
|
+
export type WritableUserChangemakerPermission = Writable<UserChangemakerPermission>;
|
|
11
|
+
export declare namespace UserChangemakerPermission {
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Permission } from './Permission';
|
|
2
|
+
import { Writable } from './Writable';
|
|
3
|
+
export interface UserPermissions {
|
|
4
|
+
changemaker: {
|
|
5
|
+
[key: string]: Array<Permission>;
|
|
6
|
+
};
|
|
7
|
+
dataProvider: {
|
|
8
|
+
[key: string]: Array<Permission>;
|
|
9
|
+
};
|
|
10
|
+
funder: {
|
|
11
|
+
[key: string]: Array<Permission>;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export type WritableUserPermissions = Writable<UserPermissions>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ export * from './ApplicationFormField';
|
|
|
4
4
|
export * from './BaseField';
|
|
5
5
|
export * from './BaseFieldLocalization';
|
|
6
6
|
export * from './BaseFieldLocalizationBundle';
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
7
|
+
export * from './BulkUploadTask';
|
|
8
|
+
export * from './BulkUploadTaskBundle';
|
|
9
9
|
export * from './Bundle';
|
|
10
10
|
export * from './Changemaker';
|
|
11
11
|
export * from './ChangemakerBundle';
|
|
@@ -34,4 +34,5 @@ export * from './Source';
|
|
|
34
34
|
export * from './SourceBundle';
|
|
35
35
|
export * from './User';
|
|
36
36
|
export * from './UserBundle';
|
|
37
|
-
export * from './
|
|
37
|
+
export * from './UserChangemakerPermission';
|
|
38
|
+
export * from './UserPermissions';
|
package/dist/types/index.js
CHANGED
|
@@ -20,8 +20,8 @@ __exportStar(require("./ApplicationFormField"), exports);
|
|
|
20
20
|
__exportStar(require("./BaseField"), exports);
|
|
21
21
|
__exportStar(require("./BaseFieldLocalization"), exports);
|
|
22
22
|
__exportStar(require("./BaseFieldLocalizationBundle"), exports);
|
|
23
|
-
__exportStar(require("./
|
|
24
|
-
__exportStar(require("./
|
|
23
|
+
__exportStar(require("./BulkUploadTask"), exports);
|
|
24
|
+
__exportStar(require("./BulkUploadTaskBundle"), exports);
|
|
25
25
|
__exportStar(require("./Bundle"), exports);
|
|
26
26
|
__exportStar(require("./Changemaker"), exports);
|
|
27
27
|
__exportStar(require("./ChangemakerBundle"), exports);
|
|
@@ -50,4 +50,5 @@ __exportStar(require("./Source"), exports);
|
|
|
50
50
|
__exportStar(require("./SourceBundle"), exports);
|
|
51
51
|
__exportStar(require("./User"), exports);
|
|
52
52
|
__exportStar(require("./UserBundle"), exports);
|
|
53
|
-
__exportStar(require("./
|
|
53
|
+
__exportStar(require("./UserChangemakerPermission"), exports);
|
|
54
|
+
__exportStar(require("./UserPermissions"), exports);
|
package/package.json
CHANGED
|
@@ -3,21 +3,21 @@ import {
|
|
|
3
3
|
} from './Source';
|
|
4
4
|
import { Writable } from './Writable';
|
|
5
5
|
|
|
6
|
-
export interface
|
|
6
|
+
export interface BulkUploadTask {
|
|
7
7
|
readonly id: number;
|
|
8
8
|
sourceId: number;
|
|
9
9
|
readonly source?: Source;
|
|
10
10
|
fileName: string;
|
|
11
11
|
readonly fileSize?: number;
|
|
12
12
|
sourceKey: string;
|
|
13
|
-
readonly status:
|
|
13
|
+
readonly status: BulkUploadTask.StatusEnum;
|
|
14
14
|
readonly createdBy: string;
|
|
15
15
|
readonly createdAt: string;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export type
|
|
18
|
+
export type WritableBulkUploadTask = Writable<BulkUploadTask>
|
|
19
19
|
|
|
20
|
-
export namespace
|
|
20
|
+
export namespace BulkUploadTask {
|
|
21
21
|
export enum StatusEnum {
|
|
22
22
|
Pending = 'pending',
|
|
23
23
|
InProgress = 'in_progress',
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BulkUploadTask,
|
|
3
|
+
} from './BulkUploadTask';
|
|
4
|
+
import { Writable } from './Writable';
|
|
5
|
+
|
|
6
|
+
export interface BulkUploadTaskBundle {
|
|
7
|
+
entries: Array<BulkUploadTask>;
|
|
8
|
+
total: number;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type WritableBulkUploadTaskBundle = Writable<BulkUploadTaskBundle>
|
|
12
|
+
|
|
13
|
+
|
package/src/types/User.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from './
|
|
2
|
+
UserPermissions,
|
|
3
|
+
} from './UserPermissions';
|
|
4
4
|
import { Writable } from './Writable';
|
|
5
5
|
|
|
6
6
|
export interface User {
|
|
7
7
|
keycloakUserId: string;
|
|
8
|
-
|
|
8
|
+
permissions?: UserPermissions;
|
|
9
9
|
readonly createdAt: string;
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Permission,
|
|
3
|
+
} from './Permission';
|
|
4
|
+
import { Writable } from './Writable';
|
|
5
|
+
|
|
6
|
+
export interface UserChangemakerPermission {
|
|
7
|
+
readonly permission?: Permission;
|
|
8
|
+
readonly changemakerId?: number;
|
|
9
|
+
readonly userKeycloakUserId?: string;
|
|
10
|
+
readonly createdBy?: string;
|
|
11
|
+
readonly createdAt: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type WritableUserChangemakerPermission = Writable<UserChangemakerPermission>
|
|
15
|
+
|
|
16
|
+
export namespace UserChangemakerPermission {
|
|
17
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Permission,
|
|
3
|
+
} from './Permission';
|
|
4
|
+
import { Writable } from './Writable';
|
|
5
|
+
|
|
6
|
+
export interface UserPermissions {
|
|
7
|
+
changemaker: { [key: string]: Array<Permission>; };
|
|
8
|
+
dataProvider: { [key: string]: Array<Permission>; };
|
|
9
|
+
funder: { [key: string]: Array<Permission>; };
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type WritableUserPermissions = Writable<UserPermissions>
|
|
13
|
+
|
|
14
|
+
|
package/src/types/index.ts
CHANGED
|
@@ -4,8 +4,8 @@ export * from './ApplicationFormField';
|
|
|
4
4
|
export * from './BaseField';
|
|
5
5
|
export * from './BaseFieldLocalization';
|
|
6
6
|
export * from './BaseFieldLocalizationBundle';
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
7
|
+
export * from './BulkUploadTask';
|
|
8
|
+
export * from './BulkUploadTaskBundle';
|
|
9
9
|
export * from './Bundle';
|
|
10
10
|
export * from './Changemaker';
|
|
11
11
|
export * from './ChangemakerBundle';
|
|
@@ -34,4 +34,5 @@ export * from './Source';
|
|
|
34
34
|
export * from './SourceBundle';
|
|
35
35
|
export * from './User';
|
|
36
36
|
export * from './UserBundle';
|
|
37
|
-
export * from './
|
|
37
|
+
export * from './UserChangemakerPermission';
|
|
38
|
+
export * from './UserPermissions';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Writable } from './Writable';
|
|
2
|
-
export interface UserRoles {
|
|
3
|
-
changemaker: {
|
|
4
|
-
[key: string]: {
|
|
5
|
-
[key: string]: boolean;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
dataProvider: {
|
|
9
|
-
[key: string]: {
|
|
10
|
-
[key: string]: boolean;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
funder: {
|
|
14
|
-
[key: string]: {
|
|
15
|
-
[key: string]: boolean;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export type WritableUserRoles = Writable<UserRoles>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BulkUpload,
|
|
3
|
-
} from './BulkUpload';
|
|
4
|
-
import { Writable } from './Writable';
|
|
5
|
-
|
|
6
|
-
export interface BulkUploadBundle {
|
|
7
|
-
entries: Array<BulkUpload>;
|
|
8
|
-
total: number;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export type WritableBulkUploadBundle = Writable<BulkUploadBundle>
|
|
12
|
-
|
|
13
|
-
|
package/src/types/UserRoles.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Writable } from './Writable';
|
|
2
|
-
|
|
3
|
-
export interface UserRoles {
|
|
4
|
-
changemaker: { [key: string]: { [key: string]: boolean; }; };
|
|
5
|
-
dataProvider: { [key: string]: { [key: string]: boolean; }; };
|
|
6
|
-
funder: { [key: string]: { [key: string]: boolean; }; };
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export type WritableUserRoles = Writable<UserRoles>
|
|
10
|
-
|
|
11
|
-
|
|
File without changes
|
|
File without changes
|