@pdc/sdk 0.5.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.
@@ -0,0 +1,6 @@
1
+ import { ApplicationForm } from './ApplicationForm';
2
+ import { Writable } from './Writable';
3
+ export interface ApplicationFormBundle {
4
+ entries: Array<ApplicationForm>;
5
+ }
6
+ export type WritableApplicationFormBundle = Writable<ApplicationFormBundle>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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>;
@@ -1,4 +1,5 @@
1
1
  export * from './ApplicationForm';
2
+ export * from './ApplicationFormBundle';
2
3
  export * from './ApplicationFormField';
3
4
  export * from './BaseField';
4
5
  export * from './BulkUpload';
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ApplicationForm"), exports);
18
+ __exportStar(require("./ApplicationFormBundle"), exports);
18
19
  __exportStar(require("./ApplicationFormField"), exports);
19
20
  __exportStar(require("./BaseField"), exports);
20
21
  __exportStar(require("./BulkUpload"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdc/sdk",
3
- "version": "0.5.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": [
@@ -0,0 +1,15 @@
1
+ import {
2
+ ApplicationForm,
3
+ } from './ApplicationForm';
4
+ import {
5
+ Bundle,
6
+ } from './Bundle';
7
+ import { Writable } from './Writable';
8
+
9
+ export interface ApplicationFormBundle {
10
+ entries: Array<ApplicationForm>;
11
+ }
12
+
13
+ export type WritableApplicationFormBundle = Writable<ApplicationFormBundle>
14
+
15
+
@@ -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
 
@@ -1,4 +1,5 @@
1
1
  export * from './ApplicationForm';
2
+ export * from './ApplicationFormBundle';
2
3
  export * from './ApplicationFormField';
3
4
  export * from './BaseField';
4
5
  export * from './BulkUpload';