@pdc/sdk 0.16.9 → 0.17.2

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.
@@ -18,13 +18,10 @@ src/types/Changemaker.ts
18
18
  src/types/ChangemakerBundle.ts
19
19
  src/types/ChangemakerProposal.ts
20
20
  src/types/ChangemakerProposalBundle.ts
21
- src/types/ChangemakerRole.ts
22
21
  src/types/DataProvider.ts
23
22
  src/types/DataProviderBundle.ts
24
- src/types/DataProviderRole.ts
25
23
  src/types/Funder.ts
26
24
  src/types/FunderBundle.ts
27
- src/types/FunderRole.ts
28
25
  src/types/Opportunity.ts
29
26
  src/types/OpportunityBundle.ts
30
27
  src/types/PartialChangemaker.ts
@@ -10,6 +10,7 @@ export interface BaseField {
10
10
  };
11
11
  dataType: BaseField.DataTypeEnum;
12
12
  scope: BaseField.ScopeEnum;
13
+ valueRelevanceHours?: number;
13
14
  readonly createdAt: string;
14
15
  }
15
16
  export type WritableBaseField = Writable<BaseField>;
@@ -1,9 +1,9 @@
1
1
  import { Writable } from './Writable';
2
2
  export interface BaseFieldLocalization {
3
- readonly baseFieldId: number;
3
+ baseFieldId: number;
4
4
  readonly language: string;
5
5
  label: string;
6
6
  description?: string;
7
- readonly createdAt?: string;
7
+ createdAt?: string;
8
8
  }
9
9
  export type WritableBaseFieldLocalization = Writable<BaseFieldLocalization>;
@@ -1,9 +1,12 @@
1
+ import { Funder } from './Funder';
1
2
  import { Source } from './Source';
2
3
  import { Writable } from './Writable';
3
4
  export interface BulkUploadTask {
4
5
  readonly id: number;
5
6
  sourceId: number;
6
7
  readonly source?: Source;
8
+ funderShortCode?: string;
9
+ readonly funder?: Funder;
7
10
  fileName: string;
8
11
  readonly fileSize?: number;
9
12
  sourceKey: string;
@@ -1,7 +1,10 @@
1
+ import { Funder } from './Funder';
1
2
  import { Writable } from './Writable';
2
3
  export interface Opportunity {
3
4
  readonly id: number;
4
5
  title: string;
6
+ funderShortCode?: string;
7
+ readonly funder?: Funder;
5
8
  readonly createdAt: string;
6
9
  }
7
10
  export type WritableOpportunity = Writable<Opportunity>;
@@ -2,7 +2,7 @@ import { Permission } from './Permission';
2
2
  import { Writable } from './Writable';
3
3
  export interface UserDataProviderPermission {
4
4
  readonly permission?: Permission;
5
- dataProviderShortcode: string;
5
+ dataProviderShortCode: string;
6
6
  readonly userKeycloakUserId: string;
7
7
  readonly createdBy: string;
8
8
  readonly createdAt: string;
@@ -2,7 +2,7 @@ import { Permission } from './Permission';
2
2
  import { Writable } from './Writable';
3
3
  export interface UserFunderPermission {
4
4
  readonly permission: Permission;
5
- funderShortcode: string;
5
+ funderShortCode: string;
6
6
  readonly userKeycloakUserId: string;
7
7
  readonly createdBy: string;
8
8
  readonly createdAt: string;
@@ -2,7 +2,7 @@ import { Permission } from './Permission';
2
2
  import { Writable } from './Writable';
3
3
  export interface UserGroupDataProviderPermission {
4
4
  readonly permission?: Permission;
5
- dataProviderShortcode: string;
5
+ dataProviderShortCode: string;
6
6
  readonly keycloakOrganizationId?: string;
7
7
  readonly createdBy: string;
8
8
  readonly createdAt: string;
@@ -2,7 +2,7 @@ import { Permission } from './Permission';
2
2
  import { Writable } from './Writable';
3
3
  export interface UserGroupFunderPermission {
4
4
  readonly permission: Permission;
5
- funderShortcode: string;
5
+ funderShortCode: string;
6
6
  readonly keycloakOrganizationId?: string;
7
7
  readonly createdBy: string;
8
8
  readonly createdAt: string;
@@ -13,13 +13,10 @@ export * from './Changemaker';
13
13
  export * from './ChangemakerBundle';
14
14
  export * from './ChangemakerProposal';
15
15
  export * from './ChangemakerProposalBundle';
16
- export * from './ChangemakerRole';
17
16
  export * from './DataProvider';
18
17
  export * from './DataProviderBundle';
19
- export * from './DataProviderRole';
20
18
  export * from './Funder';
21
19
  export * from './FunderBundle';
22
- export * from './FunderRole';
23
20
  export * from './Opportunity';
24
21
  export * from './OpportunityBundle';
25
22
  export * from './PartialChangemaker';
@@ -29,13 +29,10 @@ __exportStar(require("./Changemaker"), exports);
29
29
  __exportStar(require("./ChangemakerBundle"), exports);
30
30
  __exportStar(require("./ChangemakerProposal"), exports);
31
31
  __exportStar(require("./ChangemakerProposalBundle"), exports);
32
- __exportStar(require("./ChangemakerRole"), exports);
33
32
  __exportStar(require("./DataProvider"), exports);
34
33
  __exportStar(require("./DataProviderBundle"), exports);
35
- __exportStar(require("./DataProviderRole"), exports);
36
34
  __exportStar(require("./Funder"), exports);
37
35
  __exportStar(require("./FunderBundle"), exports);
38
- __exportStar(require("./FunderRole"), exports);
39
36
  __exportStar(require("./Opportunity"), exports);
40
37
  __exportStar(require("./OpportunityBundle"), exports);
41
38
  __exportStar(require("./PartialChangemaker"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdc/sdk",
3
- "version": "0.16.9",
3
+ "version": "0.17.2",
4
4
  "description": "A swagger client for the Philanthropy Data Commons (PDC)",
5
5
  "author": "Open Tech Strategies",
6
6
  "keywords": [
@@ -11,6 +11,7 @@ export interface BaseField {
11
11
  readonly localizations?: { [key: string]: BaseFieldLocalization; };
12
12
  dataType: BaseField.DataTypeEnum;
13
13
  scope: BaseField.ScopeEnum;
14
+ valueRelevanceHours?: number;
14
15
  readonly createdAt: string;
15
16
  }
16
17
 
@@ -1,11 +1,11 @@
1
1
  import { Writable } from './Writable';
2
2
 
3
3
  export interface BaseFieldLocalization {
4
- readonly baseFieldId: number;
4
+ baseFieldId: number;
5
5
  readonly language: string;
6
6
  label: string;
7
7
  description?: string;
8
- readonly createdAt?: string;
8
+ createdAt?: string;
9
9
  }
10
10
 
11
11
  export type WritableBaseFieldLocalization = Writable<BaseFieldLocalization>
@@ -1,3 +1,6 @@
1
+ import {
2
+ Funder,
3
+ } from './Funder';
1
4
  import {
2
5
  Source,
3
6
  } from './Source';
@@ -7,6 +10,8 @@ export interface BulkUploadTask {
7
10
  readonly id: number;
8
11
  sourceId: number;
9
12
  readonly source?: Source;
13
+ funderShortCode?: string;
14
+ readonly funder?: Funder;
10
15
  fileName: string;
11
16
  readonly fileSize?: number;
12
17
  sourceKey: string;
@@ -1,8 +1,13 @@
1
+ import {
2
+ Funder,
3
+ } from './Funder';
1
4
  import { Writable } from './Writable';
2
5
 
3
6
  export interface Opportunity {
4
7
  readonly id: number;
5
8
  title: string;
9
+ funderShortCode?: string;
10
+ readonly funder?: Funder;
6
11
  readonly createdAt: string;
7
12
  }
8
13
 
@@ -5,7 +5,7 @@ import { Writable } from './Writable';
5
5
 
6
6
  export interface UserDataProviderPermission {
7
7
  readonly permission?: Permission;
8
- dataProviderShortcode: string;
8
+ dataProviderShortCode: string;
9
9
  readonly userKeycloakUserId: string;
10
10
  readonly createdBy: string;
11
11
  readonly createdAt: string;
@@ -5,7 +5,7 @@ import { Writable } from './Writable';
5
5
 
6
6
  export interface UserFunderPermission {
7
7
  readonly permission: Permission;
8
- funderShortcode: string;
8
+ funderShortCode: string;
9
9
  readonly userKeycloakUserId: string;
10
10
  readonly createdBy: string;
11
11
  readonly createdAt: string;
@@ -5,7 +5,7 @@ import { Writable } from './Writable';
5
5
 
6
6
  export interface UserGroupDataProviderPermission {
7
7
  readonly permission?: Permission;
8
- dataProviderShortcode: string;
8
+ dataProviderShortCode: string;
9
9
  readonly keycloakOrganizationId?: string;
10
10
  readonly createdBy: string;
11
11
  readonly createdAt: string;
@@ -5,7 +5,7 @@ import { Writable } from './Writable';
5
5
 
6
6
  export interface UserGroupFunderPermission {
7
7
  readonly permission: Permission;
8
- funderShortcode: string;
8
+ funderShortCode: string;
9
9
  readonly keycloakOrganizationId?: string;
10
10
  readonly createdBy: string;
11
11
  readonly createdAt: string;
@@ -13,13 +13,10 @@ export * from './Changemaker';
13
13
  export * from './ChangemakerBundle';
14
14
  export * from './ChangemakerProposal';
15
15
  export * from './ChangemakerProposalBundle';
16
- export * from './ChangemakerRole';
17
16
  export * from './DataProvider';
18
17
  export * from './DataProviderBundle';
19
- export * from './DataProviderRole';
20
18
  export * from './Funder';
21
19
  export * from './FunderBundle';
22
- export * from './FunderRole';
23
20
  export * from './Opportunity';
24
21
  export * from './OpportunityBundle';
25
22
  export * from './PartialChangemaker';
@@ -1,12 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +0,0 @@
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
- }
@@ -1,17 +0,0 @@
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
- }
@@ -1,17 +0,0 @@
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
- }