@pdc/sdk 0.16.1 → 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.
Files changed (33) hide show
  1. package/.openapi-generator/FILES +8 -2
  2. package/dist/types/{BulkUpload.d.ts → BulkUploadTask.d.ts} +4 -4
  3. package/dist/types/{BulkUpload.js → BulkUploadTask.js} +5 -5
  4. package/dist/types/BulkUploadTaskBundle.d.ts +7 -0
  5. package/dist/types/ChangemakerRole.d.ts +12 -0
  6. package/dist/types/ChangemakerRole.js +2 -0
  7. package/dist/types/DataProviderRole.d.ts +12 -0
  8. package/dist/types/DataProviderRole.js +2 -0
  9. package/dist/types/FunderRole.d.ts +12 -0
  10. package/dist/types/FunderRole.js +2 -0
  11. package/dist/types/Permission.d.ts +4 -0
  12. package/dist/types/Permission.js +2 -0
  13. package/dist/types/User.d.ts +2 -0
  14. package/dist/types/UserChangemakerPermission.d.ts +12 -0
  15. package/dist/types/UserChangemakerPermission.js +2 -0
  16. package/dist/types/UserPermissions.d.ts +14 -0
  17. package/dist/types/UserPermissions.js +2 -0
  18. package/dist/types/index.d.ts +8 -2
  19. package/dist/types/index.js +8 -2
  20. package/package.json +1 -1
  21. package/src/types/{BulkUpload.ts → BulkUploadTask.ts} +4 -4
  22. package/src/types/BulkUploadTaskBundle.ts +13 -0
  23. package/src/types/ChangemakerRole.ts +17 -0
  24. package/src/types/DataProviderRole.ts +17 -0
  25. package/src/types/FunderRole.ts +17 -0
  26. package/src/types/Permission.ts +8 -0
  27. package/src/types/User.ts +4 -0
  28. package/src/types/UserChangemakerPermission.ts +17 -0
  29. package/src/types/UserPermissions.ts +14 -0
  30. package/src/types/index.ts +8 -2
  31. package/dist/types/BulkUploadBundle.d.ts +0 -7
  32. package/src/types/BulkUploadBundle.ts +0 -13
  33. /package/dist/types/{BulkUploadBundle.js → BulkUploadTaskBundle.js} +0 -0
@@ -9,20 +9,24 @@ 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/BulkUpload.ts
13
- src/types/BulkUploadBundle.ts
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
17
17
  src/types/ChangemakerProposal.ts
18
18
  src/types/ChangemakerProposalBundle.ts
19
+ src/types/ChangemakerRole.ts
19
20
  src/types/DataProvider.ts
20
21
  src/types/DataProviderBundle.ts
22
+ src/types/DataProviderRole.ts
21
23
  src/types/Funder.ts
22
24
  src/types/FunderBundle.ts
25
+ src/types/FunderRole.ts
23
26
  src/types/Opportunity.ts
24
27
  src/types/OpportunityBundle.ts
25
28
  src/types/PdcError.ts
29
+ src/types/Permission.ts
26
30
  src/types/PlatformProviderResponse.ts
27
31
  src/types/PresignedPost.ts
28
32
  src/types/PresignedPostFields.ts
@@ -35,6 +39,8 @@ src/types/Source.ts
35
39
  src/types/SourceBundle.ts
36
40
  src/types/User.ts
37
41
  src/types/UserBundle.ts
42
+ src/types/UserChangemakerPermission.ts
43
+ src/types/UserPermissions.ts
38
44
  src/types/Writable.ts
39
45
  src/types/index.ts
40
46
  tsconfig.json
@@ -1,18 +1,18 @@
1
1
  import { Source } from './Source';
2
2
  import { Writable } from './Writable';
3
- export interface BulkUpload {
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: BulkUpload.StatusEnum;
10
+ readonly status: BulkUploadTask.StatusEnum;
11
11
  readonly createdBy: string;
12
12
  readonly createdAt: string;
13
13
  }
14
- export type WritableBulkUpload = Writable<BulkUpload>;
15
- export declare namespace BulkUpload {
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.BulkUpload = void 0;
4
- var BulkUpload;
5
- (function (BulkUpload) {
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 = BulkUpload.StatusEnum || (BulkUpload.StatusEnum = {}));
14
- })(BulkUpload || (exports.BulkUpload = BulkUpload = {}));
13
+ })(StatusEnum = BulkUploadTask.StatusEnum || (BulkUploadTask.StatusEnum = {}));
14
+ })(BulkUploadTask || (exports.BulkUploadTask = BulkUploadTask = {}));
@@ -0,0 +1,7 @@
1
+ import { BulkUploadTask } from './BulkUploadTask';
2
+ import { Writable } from './Writable';
3
+ export interface BulkUploadTaskBundle {
4
+ entries: Array<BulkUploadTask>;
5
+ total: number;
6
+ }
7
+ export type WritableBulkUploadTaskBundle = Writable<BulkUploadTaskBundle>;
@@ -0,0 +1,12 @@
1
+ import { Permission } from './Permission';
2
+ import { Writable } from './Writable';
3
+ export interface ChangemakerRole {
4
+ readonly changemakerId: number;
5
+ readonly userKeycloakUserId: string;
6
+ readonly accessType?: Permission;
7
+ readonly createdBy?: string;
8
+ readonly createdAt?: string;
9
+ }
10
+ export type WritableChangemakerRole = Writable<ChangemakerRole>;
11
+ export declare namespace ChangemakerRole {
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import { Permission } from './Permission';
2
+ import { Writable } from './Writable';
3
+ export interface DataProviderRole {
4
+ readonly dataProviderShortCode: string;
5
+ readonly userKeycloakUserId: string;
6
+ readonly accessType?: Permission;
7
+ readonly createdBy?: string;
8
+ readonly createdAt?: string;
9
+ }
10
+ export type WritableDataProviderRole = Writable<DataProviderRole>;
11
+ export declare namespace DataProviderRole {
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import { Permission } from './Permission';
2
+ import { Writable } from './Writable';
3
+ export interface FunderRole {
4
+ readonly funderShortCode: string;
5
+ readonly userKeycloakUserId: string;
6
+ readonly accessType?: Permission;
7
+ readonly createdBy?: string;
8
+ readonly createdAt?: string;
9
+ }
10
+ export type WritableFunderRole = Writable<FunderRole>;
11
+ export declare namespace FunderRole {
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { Writable } from './Writable';
2
+ export interface Permission {
3
+ }
4
+ export type WritablePermission = Writable<Permission>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,8 @@
1
+ import { UserPermissions } from './UserPermissions';
1
2
  import { Writable } from './Writable';
2
3
  export interface User {
3
4
  keycloakUserId: string;
5
+ permissions?: UserPermissions;
4
6
  readonly createdAt: string;
5
7
  }
6
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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,20 +4,24 @@ export * from './ApplicationFormField';
4
4
  export * from './BaseField';
5
5
  export * from './BaseFieldLocalization';
6
6
  export * from './BaseFieldLocalizationBundle';
7
- export * from './BulkUpload';
8
- export * from './BulkUploadBundle';
7
+ export * from './BulkUploadTask';
8
+ export * from './BulkUploadTaskBundle';
9
9
  export * from './Bundle';
10
10
  export * from './Changemaker';
11
11
  export * from './ChangemakerBundle';
12
12
  export * from './ChangemakerProposal';
13
13
  export * from './ChangemakerProposalBundle';
14
+ export * from './ChangemakerRole';
14
15
  export * from './DataProvider';
15
16
  export * from './DataProviderBundle';
17
+ export * from './DataProviderRole';
16
18
  export * from './Funder';
17
19
  export * from './FunderBundle';
20
+ export * from './FunderRole';
18
21
  export * from './Opportunity';
19
22
  export * from './OpportunityBundle';
20
23
  export * from './PdcError';
24
+ export * from './Permission';
21
25
  export * from './PlatformProviderResponse';
22
26
  export * from './PresignedPost';
23
27
  export * from './PresignedPostFields';
@@ -30,3 +34,5 @@ export * from './Source';
30
34
  export * from './SourceBundle';
31
35
  export * from './User';
32
36
  export * from './UserBundle';
37
+ export * from './UserChangemakerPermission';
38
+ export * from './UserPermissions';
@@ -20,20 +20,24 @@ __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("./BulkUpload"), exports);
24
- __exportStar(require("./BulkUploadBundle"), exports);
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);
28
28
  __exportStar(require("./ChangemakerProposal"), exports);
29
29
  __exportStar(require("./ChangemakerProposalBundle"), exports);
30
+ __exportStar(require("./ChangemakerRole"), exports);
30
31
  __exportStar(require("./DataProvider"), exports);
31
32
  __exportStar(require("./DataProviderBundle"), exports);
33
+ __exportStar(require("./DataProviderRole"), exports);
32
34
  __exportStar(require("./Funder"), exports);
33
35
  __exportStar(require("./FunderBundle"), exports);
36
+ __exportStar(require("./FunderRole"), exports);
34
37
  __exportStar(require("./Opportunity"), exports);
35
38
  __exportStar(require("./OpportunityBundle"), exports);
36
39
  __exportStar(require("./PdcError"), exports);
40
+ __exportStar(require("./Permission"), exports);
37
41
  __exportStar(require("./PlatformProviderResponse"), exports);
38
42
  __exportStar(require("./PresignedPost"), exports);
39
43
  __exportStar(require("./PresignedPostFields"), exports);
@@ -46,3 +50,5 @@ __exportStar(require("./Source"), exports);
46
50
  __exportStar(require("./SourceBundle"), exports);
47
51
  __exportStar(require("./User"), exports);
48
52
  __exportStar(require("./UserBundle"), exports);
53
+ __exportStar(require("./UserChangemakerPermission"), exports);
54
+ __exportStar(require("./UserPermissions"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdc/sdk",
3
- "version": "0.16.1",
3
+ "version": "0.16.3",
4
4
  "description": "A swagger client for the Philanthropy Data Commons (PDC)",
5
5
  "author": "Open Tech Strategies",
6
6
  "keywords": [
@@ -3,21 +3,21 @@ import {
3
3
  } from './Source';
4
4
  import { Writable } from './Writable';
5
5
 
6
- export interface BulkUpload {
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: BulkUpload.StatusEnum;
13
+ readonly status: BulkUploadTask.StatusEnum;
14
14
  readonly createdBy: string;
15
15
  readonly createdAt: string;
16
16
  }
17
17
 
18
- export type WritableBulkUpload = Writable<BulkUpload>
18
+ export type WritableBulkUploadTask = Writable<BulkUploadTask>
19
19
 
20
- export namespace BulkUpload {
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
+
@@ -0,0 +1,17 @@
1
+ import {
2
+ Permission,
3
+ } from './Permission';
4
+ import { Writable } from './Writable';
5
+
6
+ export interface ChangemakerRole {
7
+ readonly changemakerId: number;
8
+ readonly userKeycloakUserId: string;
9
+ readonly accessType?: Permission;
10
+ readonly createdBy?: string;
11
+ readonly createdAt?: string;
12
+ }
13
+
14
+ export type WritableChangemakerRole = Writable<ChangemakerRole>
15
+
16
+ export namespace ChangemakerRole {
17
+ }
@@ -0,0 +1,17 @@
1
+ import {
2
+ Permission,
3
+ } from './Permission';
4
+ import { Writable } from './Writable';
5
+
6
+ export interface DataProviderRole {
7
+ readonly dataProviderShortCode: string;
8
+ readonly userKeycloakUserId: string;
9
+ readonly accessType?: Permission;
10
+ readonly createdBy?: string;
11
+ readonly createdAt?: string;
12
+ }
13
+
14
+ export type WritableDataProviderRole = Writable<DataProviderRole>
15
+
16
+ export namespace DataProviderRole {
17
+ }
@@ -0,0 +1,17 @@
1
+ import {
2
+ Permission,
3
+ } from './Permission';
4
+ import { Writable } from './Writable';
5
+
6
+ export interface FunderRole {
7
+ readonly funderShortCode: string;
8
+ readonly userKeycloakUserId: string;
9
+ readonly accessType?: Permission;
10
+ readonly createdBy?: string;
11
+ readonly createdAt?: string;
12
+ }
13
+
14
+ export type WritableFunderRole = Writable<FunderRole>
15
+
16
+ export namespace FunderRole {
17
+ }
@@ -0,0 +1,8 @@
1
+ import { Writable } from './Writable';
2
+
3
+ export interface Permission {
4
+ }
5
+
6
+ export type WritablePermission = Writable<Permission>
7
+
8
+
package/src/types/User.ts CHANGED
@@ -1,7 +1,11 @@
1
+ import {
2
+ UserPermissions,
3
+ } from './UserPermissions';
1
4
  import { Writable } from './Writable';
2
5
 
3
6
  export interface User {
4
7
  keycloakUserId: string;
8
+ permissions?: UserPermissions;
5
9
  readonly createdAt: string;
6
10
  }
7
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
+
@@ -4,20 +4,24 @@ export * from './ApplicationFormField';
4
4
  export * from './BaseField';
5
5
  export * from './BaseFieldLocalization';
6
6
  export * from './BaseFieldLocalizationBundle';
7
- export * from './BulkUpload';
8
- export * from './BulkUploadBundle';
7
+ export * from './BulkUploadTask';
8
+ export * from './BulkUploadTaskBundle';
9
9
  export * from './Bundle';
10
10
  export * from './Changemaker';
11
11
  export * from './ChangemakerBundle';
12
12
  export * from './ChangemakerProposal';
13
13
  export * from './ChangemakerProposalBundle';
14
+ export * from './ChangemakerRole';
14
15
  export * from './DataProvider';
15
16
  export * from './DataProviderBundle';
17
+ export * from './DataProviderRole';
16
18
  export * from './Funder';
17
19
  export * from './FunderBundle';
20
+ export * from './FunderRole';
18
21
  export * from './Opportunity';
19
22
  export * from './OpportunityBundle';
20
23
  export * from './PdcError';
24
+ export * from './Permission';
21
25
  export * from './PlatformProviderResponse';
22
26
  export * from './PresignedPost';
23
27
  export * from './PresignedPostFields';
@@ -30,3 +34,5 @@ export * from './Source';
30
34
  export * from './SourceBundle';
31
35
  export * from './User';
32
36
  export * from './UserBundle';
37
+ export * from './UserChangemakerPermission';
38
+ export * from './UserPermissions';
@@ -1,7 +0,0 @@
1
- import { BulkUpload } from './BulkUpload';
2
- import { Writable } from './Writable';
3
- export interface BulkUploadBundle {
4
- entries: Array<BulkUpload>;
5
- total: number;
6
- }
7
- export type WritableBulkUploadBundle = Writable<BulkUploadBundle>;
@@ -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
-