@pdc/sdk 0.16.2 → 0.16.4

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.
@@ -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/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
@@ -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/UserRoles.ts
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 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>;
@@ -1,8 +1,10 @@
1
+ import { ProposalFieldValue } from './ProposalFieldValue';
1
2
  import { Writable } from './Writable';
2
3
  export interface Changemaker {
3
4
  readonly id: number;
4
5
  taxId: string;
5
6
  name: string;
6
7
  readonly createdAt: string;
8
+ fields: Array<ProposalFieldValue>;
7
9
  }
8
10
  export type WritableChangemaker = Writable<Changemaker>;
@@ -1,8 +1,8 @@
1
- import { UserRoles } from './UserRoles';
1
+ import { UserPermissions } from './UserPermissions';
2
2
  import { Writable } from './Writable';
3
3
  export interface User {
4
4
  keycloakUserId: string;
5
- roles?: UserRoles;
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>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 './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';
@@ -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 './UserRoles';
37
+ export * from './UserChangemakerPermission';
38
+ export * from './UserPermissions';
@@ -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("./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);
@@ -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("./UserRoles"), 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.2",
3
+ "version": "0.16.4",
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
+
@@ -1,3 +1,6 @@
1
+ import {
2
+ ProposalFieldValue,
3
+ } from './ProposalFieldValue';
1
4
  import { Writable } from './Writable';
2
5
 
3
6
  export interface Changemaker {
@@ -5,6 +8,7 @@ export interface Changemaker {
5
8
  taxId: string;
6
9
  name: string;
7
10
  readonly createdAt: string;
11
+ fields: Array<ProposalFieldValue>;
8
12
  }
9
13
 
10
14
  export type WritableChangemaker = Writable<Changemaker>
package/src/types/User.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
- UserRoles,
3
- } from './UserRoles';
2
+ UserPermissions,
3
+ } from './UserPermissions';
4
4
  import { Writable } from './Writable';
5
5
 
6
6
  export interface User {
7
7
  keycloakUserId: string;
8
- roles?: UserRoles;
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
+
@@ -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 './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';
@@ -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 './UserRoles';
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,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
-
@@ -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
-