@pdc/sdk 0.26.1 → 0.27.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.
- package/.openapi-generator/FILES +3 -0
- package/dist/types/ApplicationFormFieldPatch.d.ts +6 -0
- package/dist/types/ApplicationFormFieldPatch.js +2 -0
- package/dist/types/ChangemakerFieldValue.d.ts +17 -0
- package/dist/types/ChangemakerFieldValue.js +2 -0
- package/dist/types/ChangemakerFieldValueBatch.d.ts +10 -0
- package/dist/types/ChangemakerFieldValueBatch.js +2 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.js +3 -0
- package/package.json +5 -1
- package/src/types/ApplicationFormFieldPatch.ts +10 -0
- package/src/types/ChangemakerFieldValue.ts +25 -0
- package/src/types/ChangemakerFieldValueBatch.ts +16 -0
- package/src/types/index.ts +3 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -6,6 +6,7 @@ src/index.ts
|
|
|
6
6
|
src/types/ApplicationForm.ts
|
|
7
7
|
src/types/ApplicationFormBundle.ts
|
|
8
8
|
src/types/ApplicationFormField.ts
|
|
9
|
+
src/types/ApplicationFormFieldPatch.ts
|
|
9
10
|
src/types/BaseField.ts
|
|
10
11
|
src/types/BaseFieldLocalization.ts
|
|
11
12
|
src/types/BaseFieldLocalizationBundle.ts
|
|
@@ -18,6 +19,8 @@ src/types/BulkUploadTaskBundle.ts
|
|
|
18
19
|
src/types/Bundle.ts
|
|
19
20
|
src/types/Changemaker.ts
|
|
20
21
|
src/types/ChangemakerBundle.ts
|
|
22
|
+
src/types/ChangemakerFieldValue.ts
|
|
23
|
+
src/types/ChangemakerFieldValueBatch.ts
|
|
21
24
|
src/types/ChangemakerProposal.ts
|
|
22
25
|
src/types/ChangemakerProposalBundle.ts
|
|
23
26
|
src/types/DataProvider.ts
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseField } from './BaseField';
|
|
2
|
+
import { ChangemakerFieldValueBatch } from './ChangemakerFieldValueBatch';
|
|
3
|
+
import { Writable } from './Writable';
|
|
4
|
+
export interface ChangemakerFieldValue {
|
|
5
|
+
readonly id: number;
|
|
6
|
+
changemakerId: number;
|
|
7
|
+
baseFieldShortCode: string;
|
|
8
|
+
readonly baseField: BaseField;
|
|
9
|
+
batchId: number;
|
|
10
|
+
readonly batch: ChangemakerFieldValueBatch;
|
|
11
|
+
value: string;
|
|
12
|
+
file?: any;
|
|
13
|
+
goodAsOf: string;
|
|
14
|
+
readonly isValid: boolean;
|
|
15
|
+
readonly createdAt: string;
|
|
16
|
+
}
|
|
17
|
+
export type WritableChangemakerFieldValue = Writable<ChangemakerFieldValue>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Source } from './Source';
|
|
2
|
+
import { Writable } from './Writable';
|
|
3
|
+
export interface ChangemakerFieldValueBatch {
|
|
4
|
+
id: number;
|
|
5
|
+
sourceId: number;
|
|
6
|
+
readonly source: Source;
|
|
7
|
+
notes: string;
|
|
8
|
+
readonly createdAt: string;
|
|
9
|
+
}
|
|
10
|
+
export type WritableChangemakerFieldValueBatch = Writable<ChangemakerFieldValueBatch>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './ApplicationForm';
|
|
2
2
|
export * from './ApplicationFormBundle';
|
|
3
3
|
export * from './ApplicationFormField';
|
|
4
|
+
export * from './ApplicationFormFieldPatch';
|
|
4
5
|
export * from './BaseField';
|
|
5
6
|
export * from './BaseFieldLocalization';
|
|
6
7
|
export * from './BaseFieldLocalizationBundle';
|
|
@@ -13,6 +14,8 @@ export * from './BulkUploadTaskBundle';
|
|
|
13
14
|
export * from './Bundle';
|
|
14
15
|
export * from './Changemaker';
|
|
15
16
|
export * from './ChangemakerBundle';
|
|
17
|
+
export * from './ChangemakerFieldValue';
|
|
18
|
+
export * from './ChangemakerFieldValueBatch';
|
|
16
19
|
export * from './ChangemakerProposal';
|
|
17
20
|
export * from './ChangemakerProposalBundle';
|
|
18
21
|
export * from './DataProvider';
|
package/dist/types/index.js
CHANGED
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./ApplicationForm"), exports);
|
|
18
18
|
__exportStar(require("./ApplicationFormBundle"), exports);
|
|
19
19
|
__exportStar(require("./ApplicationFormField"), exports);
|
|
20
|
+
__exportStar(require("./ApplicationFormFieldPatch"), exports);
|
|
20
21
|
__exportStar(require("./BaseField"), exports);
|
|
21
22
|
__exportStar(require("./BaseFieldLocalization"), exports);
|
|
22
23
|
__exportStar(require("./BaseFieldLocalizationBundle"), exports);
|
|
@@ -29,6 +30,8 @@ __exportStar(require("./BulkUploadTaskBundle"), exports);
|
|
|
29
30
|
__exportStar(require("./Bundle"), exports);
|
|
30
31
|
__exportStar(require("./Changemaker"), exports);
|
|
31
32
|
__exportStar(require("./ChangemakerBundle"), exports);
|
|
33
|
+
__exportStar(require("./ChangemakerFieldValue"), exports);
|
|
34
|
+
__exportStar(require("./ChangemakerFieldValueBatch"), exports);
|
|
32
35
|
__exportStar(require("./ChangemakerProposal"), exports);
|
|
33
36
|
__exportStar(require("./ChangemakerProposalBundle"), exports);
|
|
34
37
|
__exportStar(require("./DataProvider"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pdc/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.1",
|
|
4
4
|
"description": "A swagger client for the Philanthropy Data Commons (PDC)",
|
|
5
5
|
"author": "Open Tech Strategies",
|
|
6
6
|
"keywords": [
|
|
@@ -18,5 +18,9 @@
|
|
|
18
18
|
"@tsconfig/node18": "^18.2.2",
|
|
19
19
|
"rimraf": "^5.0.5",
|
|
20
20
|
"typescript": "^5.3.3"
|
|
21
|
+
},
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "https://github.com/PhilanthropyDataCommons/service.git"
|
|
21
25
|
}
|
|
22
26
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BaseField,
|
|
3
|
+
} from './BaseField';
|
|
4
|
+
import {
|
|
5
|
+
ChangemakerFieldValueBatch,
|
|
6
|
+
} from './ChangemakerFieldValueBatch';
|
|
7
|
+
import { Writable } from './Writable';
|
|
8
|
+
|
|
9
|
+
export interface ChangemakerFieldValue {
|
|
10
|
+
readonly id: number;
|
|
11
|
+
changemakerId: number;
|
|
12
|
+
baseFieldShortCode: string;
|
|
13
|
+
readonly baseField: BaseField;
|
|
14
|
+
batchId: number;
|
|
15
|
+
readonly batch: ChangemakerFieldValueBatch;
|
|
16
|
+
value: string;
|
|
17
|
+
file?: any;
|
|
18
|
+
goodAsOf: string;
|
|
19
|
+
readonly isValid: boolean;
|
|
20
|
+
readonly createdAt: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type WritableChangemakerFieldValue = Writable<ChangemakerFieldValue>
|
|
24
|
+
|
|
25
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Source,
|
|
3
|
+
} from './Source';
|
|
4
|
+
import { Writable } from './Writable';
|
|
5
|
+
|
|
6
|
+
export interface ChangemakerFieldValueBatch {
|
|
7
|
+
id: number;
|
|
8
|
+
sourceId: number;
|
|
9
|
+
readonly source: Source;
|
|
10
|
+
notes: string;
|
|
11
|
+
readonly createdAt: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type WritableChangemakerFieldValueBatch = Writable<ChangemakerFieldValueBatch>
|
|
15
|
+
|
|
16
|
+
|
package/src/types/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './ApplicationForm';
|
|
2
2
|
export * from './ApplicationFormBundle';
|
|
3
3
|
export * from './ApplicationFormField';
|
|
4
|
+
export * from './ApplicationFormFieldPatch';
|
|
4
5
|
export * from './BaseField';
|
|
5
6
|
export * from './BaseFieldLocalization';
|
|
6
7
|
export * from './BaseFieldLocalizationBundle';
|
|
@@ -13,6 +14,8 @@ export * from './BulkUploadTaskBundle';
|
|
|
13
14
|
export * from './Bundle';
|
|
14
15
|
export * from './Changemaker';
|
|
15
16
|
export * from './ChangemakerBundle';
|
|
17
|
+
export * from './ChangemakerFieldValue';
|
|
18
|
+
export * from './ChangemakerFieldValueBatch';
|
|
16
19
|
export * from './ChangemakerProposal';
|
|
17
20
|
export * from './ChangemakerProposalBundle';
|
|
18
21
|
export * from './DataProvider';
|