@pdc/sdk 0.22.1 → 0.23.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.
@@ -26,6 +26,7 @@ src/types/FunderCollaborativeInvitation.ts
26
26
  src/types/FunderCollaborativeInvitationBundle.ts
27
27
  src/types/FunderCollaborativeMember.ts
28
28
  src/types/FunderCollaborativeMemberBundle.ts
29
+ src/types/ModelFile.ts
29
30
  src/types/Opportunity.ts
30
31
  src/types/OpportunityBundle.ts
31
32
  src/types/OpportunityPermission.ts
@@ -36,7 +37,6 @@ src/types/Permission.ts
36
37
  src/types/PlatformProviderResponse.ts
37
38
  src/types/PresignedPost.ts
38
39
  src/types/PresignedPostFields.ts
39
- src/types/PresignedPostRequest.ts
40
40
  src/types/Proposal.ts
41
41
  src/types/ProposalBundle.ts
42
42
  src/types/ProposalFieldValue.ts
@@ -3,7 +3,7 @@ export interface BaseFieldLocalization {
3
3
  baseFieldShortCode: string;
4
4
  readonly language: string;
5
5
  label: string;
6
- description?: string;
6
+ description: string;
7
7
  createdAt?: string;
8
8
  }
9
9
  export type WritableBaseFieldLocalization = Writable<BaseFieldLocalization>;
@@ -1,8 +1,8 @@
1
1
  import { Writable } from './Writable';
2
2
  export interface DataProvider {
3
- shortCode?: string;
3
+ shortCode: string;
4
4
  name: string;
5
- keycloakOrganizationId?: string;
5
+ keycloakOrganizationId: string;
6
6
  readonly createdAt: string;
7
7
  }
8
8
  export type WritableDataProvider = Writable<DataProvider>;
@@ -1,6 +1,6 @@
1
1
  import { Writable } from './Writable';
2
2
  export interface Funder {
3
- shortCode?: string;
3
+ shortCode: string;
4
4
  name: string;
5
5
  keycloakOrganizationId?: string;
6
6
  readonly createdAt: string;
@@ -0,0 +1,13 @@
1
+ import { Writable } from './Writable';
2
+ export interface ModelFile {
3
+ readonly id: number;
4
+ name: string;
5
+ readonly storageKey: string;
6
+ mimeType: string;
7
+ size: number;
8
+ readonly bucketName: string;
9
+ readonly bucketRegion: string;
10
+ readonly createdBy: string;
11
+ readonly createdAt: string;
12
+ }
13
+ export type WritableModelFile = Writable<ModelFile>;
@@ -1,8 +1,10 @@
1
+ import { Opportunity } from './Opportunity';
1
2
  import { ProposalVersion } from './ProposalVersion';
2
3
  import { Writable } from './Writable';
3
4
  export interface Proposal {
4
5
  readonly id: number;
5
6
  opportunityId: number;
7
+ readonly opportunity?: Opportunity;
6
8
  externalId: string;
7
9
  versions: Array<ProposalVersion>;
8
10
  readonly createdAt: string;
@@ -7,7 +7,7 @@ export interface ProposalFieldValue {
7
7
  readonly applicationFormField: ApplicationFormField;
8
8
  position: number;
9
9
  value: string;
10
- goodAsOf?: string;
10
+ goodAsOf: string;
11
11
  readonly isValid: boolean;
12
12
  readonly createdAt: string;
13
13
  }
@@ -5,7 +5,6 @@ import { Writable } from './Writable';
5
5
  export interface Source {
6
6
  readonly id: number;
7
7
  label: string;
8
- relatedEntityId: number;
9
8
  readonly createdAt: string;
10
9
  dataProviderShortCode: string;
11
10
  readonly dataProvider: DataProvider;
@@ -1,7 +1,7 @@
1
1
  import { Permission } from './Permission';
2
2
  import { Writable } from './Writable';
3
3
  export interface UserDataProviderPermission {
4
- readonly permission?: Permission;
4
+ readonly permission: Permission;
5
5
  dataProviderShortCode: string;
6
6
  readonly userKeycloakUserId: string;
7
7
  readonly createdBy: string;
@@ -1,7 +1,7 @@
1
1
  import { Permission } from './Permission';
2
2
  import { Writable } from './Writable';
3
3
  export interface UserGroupChangemakerPermission {
4
- readonly permission?: Permission;
4
+ readonly permission: Permission;
5
5
  readonly changemakerId: number;
6
6
  readonly keycloakOrganizationId: string;
7
7
  readonly createdBy: string;
@@ -1,7 +1,7 @@
1
1
  import { Permission } from './Permission';
2
2
  import { Writable } from './Writable';
3
3
  export interface UserGroupDataProviderPermission {
4
- readonly permission?: Permission;
4
+ readonly permission: Permission;
5
5
  dataProviderShortCode: string;
6
6
  readonly keycloakOrganizationId: string;
7
7
  readonly createdBy: string;
@@ -21,6 +21,7 @@ export * from './FunderCollaborativeInvitation';
21
21
  export * from './FunderCollaborativeInvitationBundle';
22
22
  export * from './FunderCollaborativeMember';
23
23
  export * from './FunderCollaborativeMemberBundle';
24
+ export * from './ModelFile';
24
25
  export * from './Opportunity';
25
26
  export * from './OpportunityBundle';
26
27
  export * from './OpportunityPermission';
@@ -31,7 +32,6 @@ export * from './Permission';
31
32
  export * from './PlatformProviderResponse';
32
33
  export * from './PresignedPost';
33
34
  export * from './PresignedPostFields';
34
- export * from './PresignedPostRequest';
35
35
  export * from './Proposal';
36
36
  export * from './ProposalBundle';
37
37
  export * from './ProposalFieldValue';
@@ -37,6 +37,7 @@ __exportStar(require("./FunderCollaborativeInvitation"), exports);
37
37
  __exportStar(require("./FunderCollaborativeInvitationBundle"), exports);
38
38
  __exportStar(require("./FunderCollaborativeMember"), exports);
39
39
  __exportStar(require("./FunderCollaborativeMemberBundle"), exports);
40
+ __exportStar(require("./ModelFile"), exports);
40
41
  __exportStar(require("./Opportunity"), exports);
41
42
  __exportStar(require("./OpportunityBundle"), exports);
42
43
  __exportStar(require("./OpportunityPermission"), exports);
@@ -47,7 +48,6 @@ __exportStar(require("./Permission"), exports);
47
48
  __exportStar(require("./PlatformProviderResponse"), exports);
48
49
  __exportStar(require("./PresignedPost"), exports);
49
50
  __exportStar(require("./PresignedPostFields"), exports);
50
- __exportStar(require("./PresignedPostRequest"), exports);
51
51
  __exportStar(require("./Proposal"), exports);
52
52
  __exportStar(require("./ProposalBundle"), exports);
53
53
  __exportStar(require("./ProposalFieldValue"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdc/sdk",
3
- "version": "0.22.1",
3
+ "version": "0.23.1",
4
4
  "description": "A swagger client for the Philanthropy Data Commons (PDC)",
5
5
  "author": "Open Tech Strategies",
6
6
  "keywords": [
@@ -4,7 +4,7 @@ export interface BaseFieldLocalization {
4
4
  baseFieldShortCode: string;
5
5
  readonly language: string;
6
6
  label: string;
7
- description?: string;
7
+ description: string;
8
8
  createdAt?: string;
9
9
  }
10
10
 
@@ -1,9 +1,9 @@
1
1
  import { Writable } from './Writable';
2
2
 
3
3
  export interface DataProvider {
4
- shortCode?: string;
4
+ shortCode: string;
5
5
  name: string;
6
- keycloakOrganizationId?: string;
6
+ keycloakOrganizationId: string;
7
7
  readonly createdAt: string;
8
8
  }
9
9
 
@@ -1,7 +1,7 @@
1
1
  import { Writable } from './Writable';
2
2
 
3
3
  export interface Funder {
4
- shortCode?: string;
4
+ shortCode: string;
5
5
  name: string;
6
6
  keycloakOrganizationId?: string;
7
7
  readonly createdAt: string;
@@ -0,0 +1,17 @@
1
+ import { Writable } from './Writable';
2
+
3
+ export interface ModelFile {
4
+ readonly id: number;
5
+ name: string;
6
+ readonly storageKey: string;
7
+ mimeType: string;
8
+ size: number;
9
+ readonly bucketName: string;
10
+ readonly bucketRegion: string;
11
+ readonly createdBy: string;
12
+ readonly createdAt: string;
13
+ }
14
+
15
+ export type WritableModelFile = Writable<ModelFile>
16
+
17
+
@@ -1,3 +1,6 @@
1
+ import {
2
+ Opportunity,
3
+ } from './Opportunity';
1
4
  import {
2
5
  ProposalVersion,
3
6
  } from './ProposalVersion';
@@ -6,6 +9,7 @@ import { Writable } from './Writable';
6
9
  export interface Proposal {
7
10
  readonly id: number;
8
11
  opportunityId: number;
12
+ readonly opportunity?: Opportunity;
9
13
  externalId: string;
10
14
  versions: Array<ProposalVersion>;
11
15
  readonly createdAt: string;
@@ -10,7 +10,7 @@ export interface ProposalFieldValue {
10
10
  readonly applicationFormField: ApplicationFormField;
11
11
  position: number;
12
12
  value: string;
13
- goodAsOf?: string;
13
+ goodAsOf: string;
14
14
  readonly isValid: boolean;
15
15
  readonly createdAt: string;
16
16
  }
@@ -12,7 +12,6 @@ import { Writable } from './Writable';
12
12
  export interface Source {
13
13
  readonly id: number;
14
14
  label: string;
15
- relatedEntityId: number;
16
15
  readonly createdAt: string;
17
16
  dataProviderShortCode: string;
18
17
  readonly dataProvider: DataProvider;
@@ -4,7 +4,7 @@ import {
4
4
  import { Writable } from './Writable';
5
5
 
6
6
  export interface UserDataProviderPermission {
7
- readonly permission?: Permission;
7
+ readonly permission: Permission;
8
8
  dataProviderShortCode: string;
9
9
  readonly userKeycloakUserId: string;
10
10
  readonly createdBy: string;
@@ -4,7 +4,7 @@ import {
4
4
  import { Writable } from './Writable';
5
5
 
6
6
  export interface UserGroupChangemakerPermission {
7
- readonly permission?: Permission;
7
+ readonly permission: Permission;
8
8
  readonly changemakerId: number;
9
9
  readonly keycloakOrganizationId: string;
10
10
  readonly createdBy: string;
@@ -4,7 +4,7 @@ import {
4
4
  import { Writable } from './Writable';
5
5
 
6
6
  export interface UserGroupDataProviderPermission {
7
- readonly permission?: Permission;
7
+ readonly permission: Permission;
8
8
  dataProviderShortCode: string;
9
9
  readonly keycloakOrganizationId: string;
10
10
  readonly createdBy: string;
@@ -21,6 +21,7 @@ export * from './FunderCollaborativeInvitation';
21
21
  export * from './FunderCollaborativeInvitationBundle';
22
22
  export * from './FunderCollaborativeMember';
23
23
  export * from './FunderCollaborativeMemberBundle';
24
+ export * from './ModelFile';
24
25
  export * from './Opportunity';
25
26
  export * from './OpportunityBundle';
26
27
  export * from './OpportunityPermission';
@@ -31,7 +32,6 @@ export * from './Permission';
31
32
  export * from './PlatformProviderResponse';
32
33
  export * from './PresignedPost';
33
34
  export * from './PresignedPostFields';
34
- export * from './PresignedPostRequest';
35
35
  export * from './Proposal';
36
36
  export * from './ProposalBundle';
37
37
  export * from './ProposalFieldValue';
@@ -1,8 +0,0 @@
1
- import { PresignedPost } from './PresignedPost';
2
- import { Writable } from './Writable';
3
- export interface PresignedPostRequest {
4
- fileType: string;
5
- fileSize: number;
6
- readonly presignedPost: PresignedPost;
7
- }
8
- export type WritablePresignedPostRequest = Writable<PresignedPostRequest>;
@@ -1,14 +0,0 @@
1
- import {
2
- PresignedPost,
3
- } from './PresignedPost';
4
- import { Writable } from './Writable';
5
-
6
- export interface PresignedPostRequest {
7
- fileType: string;
8
- fileSize: number;
9
- readonly presignedPost: PresignedPost;
10
- }
11
-
12
- export type WritablePresignedPostRequest = Writable<PresignedPostRequest>
13
-
14
-