@pdc/sdk 0.22.2 → 0.24.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,12 +37,12 @@ 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
43
43
  src/types/ProposalVersion.ts
44
44
  src/types/PutFiscalSponsorshipByChangemakerIds200Response.ts
45
+ src/types/S3Bucket.ts
45
46
  src/types/ShallowChangemaker.ts
46
47
  src/types/Source.ts
47
48
  src/types/SourceBundle.ts
@@ -21,7 +21,9 @@ export declare namespace BaseField {
21
21
  Email = "email",
22
22
  PhoneNumber = "phone_number",
23
23
  Url = "url",
24
- Boolean = "boolean"
24
+ Boolean = "boolean",
25
+ Currency = "currency",
26
+ File = "file"
25
27
  }
26
28
  enum CategoryEnum {
27
29
  Project = "project",
@@ -11,6 +11,8 @@ var BaseField;
11
11
  DataTypeEnum["PhoneNumber"] = "phone_number";
12
12
  DataTypeEnum["Url"] = "url";
13
13
  DataTypeEnum["Boolean"] = "boolean";
14
+ DataTypeEnum["Currency"] = "currency";
15
+ DataTypeEnum["File"] = "file";
14
16
  })(DataTypeEnum = BaseField.DataTypeEnum || (BaseField.DataTypeEnum = {}));
15
17
  let CategoryEnum;
16
18
  (function (CategoryEnum) {
@@ -7,9 +7,8 @@ export interface BulkUploadTask {
7
7
  readonly source?: Source;
8
8
  funderShortCode?: string;
9
9
  readonly funder?: Funder;
10
- fileName: string;
11
- readonly fileSize?: number;
12
- sourceKey: string;
10
+ proposalsDataFileId: number;
11
+ readonly proposalsDataFile?: any;
13
12
  readonly status: BulkUploadTask.StatusEnum;
14
13
  readonly createdBy: string;
15
14
  readonly createdAt: string;
@@ -0,0 +1,14 @@
1
+ import { S3Bucket } from './S3Bucket';
2
+ import { Writable } from './Writable';
3
+ export interface ModelFile {
4
+ readonly id: number;
5
+ name: string;
6
+ readonly storageKey: string;
7
+ mimeType: string;
8
+ size: number;
9
+ readonly s3BucketName: string;
10
+ readonly s3Bucket: S3Bucket;
11
+ readonly createdBy: string;
12
+ readonly createdAt: string;
13
+ }
14
+ export type WritableModelFile = Writable<ModelFile>;
@@ -0,0 +1,8 @@
1
+ import { Writable } from './Writable';
2
+ export interface S3Bucket {
3
+ readonly name: string;
4
+ readonly region: string;
5
+ readonly endpoint: string;
6
+ readonly createdAt: string;
7
+ }
8
+ export type WritableS3Bucket = Writable<S3Bucket>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,12 +32,12 @@ 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';
38
38
  export * from './ProposalVersion';
39
39
  export * from './PutFiscalSponsorshipByChangemakerIds200Response';
40
+ export * from './S3Bucket';
40
41
  export * from './ShallowChangemaker';
41
42
  export * from './Source';
42
43
  export * from './SourceBundle';
@@ -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,12 +48,12 @@ __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);
54
54
  __exportStar(require("./ProposalVersion"), exports);
55
55
  __exportStar(require("./PutFiscalSponsorshipByChangemakerIds200Response"), exports);
56
+ __exportStar(require("./S3Bucket"), exports);
56
57
  __exportStar(require("./ShallowChangemaker"), exports);
57
58
  __exportStar(require("./Source"), exports);
58
59
  __exportStar(require("./SourceBundle"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdc/sdk",
3
- "version": "0.22.2",
3
+ "version": "0.24.1",
4
4
  "description": "A swagger client for the Philanthropy Data Commons (PDC)",
5
5
  "author": "Open Tech Strategies",
6
6
  "keywords": [
@@ -25,6 +25,8 @@ export namespace BaseField {
25
25
  PhoneNumber = 'phone_number',
26
26
  Url = 'url',
27
27
  Boolean = 'boolean',
28
+ Currency = 'currency',
29
+ File = 'file',
28
30
  }
29
31
  export enum CategoryEnum {
30
32
  Project = 'project',
@@ -12,9 +12,8 @@ export interface BulkUploadTask {
12
12
  readonly source?: Source;
13
13
  funderShortCode?: string;
14
14
  readonly funder?: Funder;
15
- fileName: string;
16
- readonly fileSize?: number;
17
- sourceKey: string;
15
+ proposalsDataFileId: number;
16
+ readonly proposalsDataFile?: any;
18
17
  readonly status: BulkUploadTask.StatusEnum;
19
18
  readonly createdBy: string;
20
19
  readonly createdAt: string;
@@ -0,0 +1,20 @@
1
+ import {
2
+ S3Bucket,
3
+ } from './S3Bucket';
4
+ import { Writable } from './Writable';
5
+
6
+ export interface ModelFile {
7
+ readonly id: number;
8
+ name: string;
9
+ readonly storageKey: string;
10
+ mimeType: string;
11
+ size: number;
12
+ readonly s3BucketName: string;
13
+ readonly s3Bucket: S3Bucket;
14
+ readonly createdBy: string;
15
+ readonly createdAt: string;
16
+ }
17
+
18
+ export type WritableModelFile = Writable<ModelFile>
19
+
20
+
@@ -0,0 +1,12 @@
1
+ import { Writable } from './Writable';
2
+
3
+ export interface S3Bucket {
4
+ readonly name: string;
5
+ readonly region: string;
6
+ readonly endpoint: string;
7
+ readonly createdAt: string;
8
+ }
9
+
10
+ export type WritableS3Bucket = Writable<S3Bucket>
11
+
12
+
@@ -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,12 +32,12 @@ 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';
38
38
  export * from './ProposalVersion';
39
39
  export * from './PutFiscalSponsorshipByChangemakerIds200Response';
40
+ export * from './S3Bucket';
40
41
  export * from './ShallowChangemaker';
41
42
  export * from './Source';
42
43
  export * from './SourceBundle';
@@ -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
-