@pdc/sdk 0.17.2 → 0.19.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.
@@ -3,7 +3,7 @@ import { Writable } from './Writable';
3
3
  export interface ApplicationFormField {
4
4
  readonly id: number;
5
5
  readonly applicationFormId: number;
6
- baseFieldId: number;
6
+ baseFieldShortCode: string;
7
7
  readonly baseField: BaseField;
8
8
  position: number;
9
9
  label: string;
@@ -1,16 +1,16 @@
1
1
  import { BaseFieldLocalization } from './BaseFieldLocalization';
2
2
  import { Writable } from './Writable';
3
3
  export interface BaseField {
4
- readonly id: number;
4
+ shortCode: string;
5
5
  label: string;
6
6
  description: string;
7
- shortCode: string;
8
7
  readonly localizations?: {
9
8
  [key: string]: BaseFieldLocalization;
10
9
  };
11
10
  dataType: BaseField.DataTypeEnum;
12
11
  scope: BaseField.ScopeEnum;
13
- valueRelevanceHours?: number;
12
+ valueRelevanceHours: number;
13
+ sensitivityClassification: BaseField.SensitivityClassificationEnum;
14
14
  readonly createdAt: string;
15
15
  }
16
16
  export type WritableBaseField = Writable<BaseField>;
@@ -27,4 +27,9 @@ export declare namespace BaseField {
27
27
  Proposal = "proposal",
28
28
  Changemaker = "changemaker"
29
29
  }
30
+ enum SensitivityClassificationEnum {
31
+ Public = "public",
32
+ Restricted = "restricted",
33
+ Forbidden = "forbidden"
34
+ }
30
35
  }
@@ -17,4 +17,10 @@ var BaseField;
17
17
  ScopeEnum["Proposal"] = "proposal";
18
18
  ScopeEnum["Changemaker"] = "changemaker";
19
19
  })(ScopeEnum = BaseField.ScopeEnum || (BaseField.ScopeEnum = {}));
20
+ let SensitivityClassificationEnum;
21
+ (function (SensitivityClassificationEnum) {
22
+ SensitivityClassificationEnum["Public"] = "public";
23
+ SensitivityClassificationEnum["Restricted"] = "restricted";
24
+ SensitivityClassificationEnum["Forbidden"] = "forbidden";
25
+ })(SensitivityClassificationEnum = BaseField.SensitivityClassificationEnum || (BaseField.SensitivityClassificationEnum = {}));
20
26
  })(BaseField || (exports.BaseField = BaseField = {}));
@@ -1,6 +1,6 @@
1
1
  import { Writable } from './Writable';
2
2
  export interface BaseFieldLocalization {
3
- baseFieldId: number;
3
+ baseFieldShortCode: string;
4
4
  readonly language: string;
5
5
  label: string;
6
6
  description?: string;
@@ -7,6 +7,7 @@ export interface ProposalFieldValue {
7
7
  readonly applicationFormField: ApplicationFormField;
8
8
  position: number;
9
9
  value: string;
10
+ goodAsOf?: string;
10
11
  readonly isValid: boolean;
11
12
  readonly createdAt: string;
12
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdc/sdk",
3
- "version": "0.17.2",
3
+ "version": "0.19.1",
4
4
  "description": "A swagger client for the Philanthropy Data Commons (PDC)",
5
5
  "author": "Open Tech Strategies",
6
6
  "keywords": [
@@ -6,7 +6,7 @@ import { Writable } from './Writable';
6
6
  export interface ApplicationFormField {
7
7
  readonly id: number;
8
8
  readonly applicationFormId: number;
9
- baseFieldId: number;
9
+ baseFieldShortCode: string;
10
10
  readonly baseField: BaseField;
11
11
  position: number;
12
12
  label: string;
@@ -4,14 +4,14 @@ import {
4
4
  import { Writable } from './Writable';
5
5
 
6
6
  export interface BaseField {
7
- readonly id: number;
7
+ shortCode: string;
8
8
  label: string;
9
9
  description: string;
10
- shortCode: string;
11
10
  readonly localizations?: { [key: string]: BaseFieldLocalization; };
12
11
  dataType: BaseField.DataTypeEnum;
13
12
  scope: BaseField.ScopeEnum;
14
- valueRelevanceHours?: number;
13
+ valueRelevanceHours: number;
14
+ sensitivityClassification: BaseField.SensitivityClassificationEnum;
15
15
  readonly createdAt: string;
16
16
  }
17
17
 
@@ -30,4 +30,9 @@ export namespace BaseField {
30
30
  Proposal = 'proposal',
31
31
  Changemaker = 'changemaker',
32
32
  }
33
+ export enum SensitivityClassificationEnum {
34
+ Public = 'public',
35
+ Restricted = 'restricted',
36
+ Forbidden = 'forbidden',
37
+ }
33
38
  }
@@ -1,7 +1,7 @@
1
1
  import { Writable } from './Writable';
2
2
 
3
3
  export interface BaseFieldLocalization {
4
- baseFieldId: number;
4
+ baseFieldShortCode: string;
5
5
  readonly language: string;
6
6
  label: string;
7
7
  description?: string;
@@ -10,6 +10,7 @@ export interface ProposalFieldValue {
10
10
  readonly applicationFormField: ApplicationFormField;
11
11
  position: number;
12
12
  value: string;
13
+ goodAsOf?: string;
13
14
  readonly isValid: boolean;
14
15
  readonly createdAt: string;
15
16
  }