@pdc/sdk 0.6.1 → 0.7.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.
@@ -4,7 +4,17 @@ export interface BaseField {
4
4
  label: string;
5
5
  description?: string;
6
6
  shortCode: string;
7
- dataType: string;
7
+ dataType: BaseField.DataTypeEnum;
8
8
  readonly createdAt: Date;
9
9
  }
10
10
  export type WritableBaseField = Writable<BaseField>;
11
+ export declare namespace BaseField {
12
+ enum DataTypeEnum {
13
+ String = "string",
14
+ Number = "number",
15
+ Email = "email",
16
+ PhoneNumber = "phone_number",
17
+ Url = "url",
18
+ Boolean = "boolean"
19
+ }
20
+ }
@@ -1,2 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BaseField = void 0;
4
+ var BaseField;
5
+ (function (BaseField) {
6
+ let DataTypeEnum;
7
+ (function (DataTypeEnum) {
8
+ DataTypeEnum["String"] = "string";
9
+ DataTypeEnum["Number"] = "number";
10
+ DataTypeEnum["Email"] = "email";
11
+ DataTypeEnum["PhoneNumber"] = "phone_number";
12
+ DataTypeEnum["Url"] = "url";
13
+ DataTypeEnum["Boolean"] = "boolean";
14
+ })(DataTypeEnum = BaseField.DataTypeEnum || (BaseField.DataTypeEnum = {}));
15
+ })(BaseField || (exports.BaseField = BaseField = {}));
@@ -7,6 +7,7 @@ export interface ProposalFieldValue {
7
7
  applicationFormField?: ApplicationFormField;
8
8
  position: number;
9
9
  value: string;
10
+ readonly isValid: boolean;
10
11
  readonly createdAt: Date;
11
12
  }
12
13
  export type WritableProposalFieldValue = Writable<ProposalFieldValue>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdc/sdk",
3
- "version": "0.6.1",
3
+ "version": "0.7.1",
4
4
  "description": "A swagger client for the Philanthropy Data Commons (PDC)",
5
5
  "author": "Open Tech Strategies",
6
6
  "keywords": [
@@ -5,10 +5,19 @@ export interface BaseField {
5
5
  label: string;
6
6
  description?: string;
7
7
  shortCode: string;
8
- dataType: string;
8
+ dataType: BaseField.DataTypeEnum;
9
9
  readonly createdAt: Date;
10
10
  }
11
11
 
12
12
  export type WritableBaseField = Writable<BaseField>
13
13
 
14
-
14
+ export namespace BaseField {
15
+ export enum DataTypeEnum {
16
+ String = 'string',
17
+ Number = 'number',
18
+ Email = 'email',
19
+ PhoneNumber = 'phone_number',
20
+ Url = 'url',
21
+ Boolean = 'boolean'
22
+ }
23
+ }
@@ -10,6 +10,7 @@ export interface ProposalFieldValue {
10
10
  applicationFormField?: ApplicationFormField;
11
11
  position: number;
12
12
  value: string;
13
+ readonly isValid: boolean;
13
14
  readonly createdAt: Date;
14
15
  }
15
16