@pdc/sdk 0.7.1 → 0.9.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/dist/types/BaseField.d.ts +5 -0
- package/dist/types/BaseField.js +5 -0
- package/dist/types/BulkUpload.d.ts +3 -2
- package/dist/types/CreatedBy.d.ts +4 -0
- package/dist/types/CreatedBy.js +2 -0
- package/dist/types/OpportunityBundle.d.ts +6 -0
- package/dist/types/OpportunityBundle.js +2 -0
- package/dist/types/Organization.d.ts +2 -1
- package/dist/types/Proposal.d.ts +1 -0
- package/dist/types/User.d.ts +7 -0
- package/dist/types/User.js +2 -0
- package/dist/types/UserBundle.d.ts +6 -0
- package/dist/types/UserBundle.js +2 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.js +4 -0
- package/package.json +1 -1
- package/src/types/BaseField.ts +5 -0
- package/src/types/BulkUpload.ts +3 -2
- package/src/types/CreatedBy.ts +8 -0
- package/src/types/OpportunityBundle.ts +15 -0
- package/src/types/Organization.ts +2 -1
- package/src/types/Proposal.ts +1 -0
- package/src/types/User.ts +11 -0
- package/src/types/UserBundle.ts +15 -0
- package/src/types/index.ts +4 -0
|
@@ -5,6 +5,7 @@ export interface BaseField {
|
|
|
5
5
|
description?: string;
|
|
6
6
|
shortCode: string;
|
|
7
7
|
dataType: BaseField.DataTypeEnum;
|
|
8
|
+
readonly scope?: BaseField.ScopeEnum;
|
|
8
9
|
readonly createdAt: Date;
|
|
9
10
|
}
|
|
10
11
|
export type WritableBaseField = Writable<BaseField>;
|
|
@@ -17,4 +18,8 @@ export declare namespace BaseField {
|
|
|
17
18
|
Url = "url",
|
|
18
19
|
Boolean = "boolean"
|
|
19
20
|
}
|
|
21
|
+
enum ScopeEnum {
|
|
22
|
+
Proposal = "proposal",
|
|
23
|
+
Organization = "organization"
|
|
24
|
+
}
|
|
20
25
|
}
|
package/dist/types/BaseField.js
CHANGED
|
@@ -12,4 +12,9 @@ var BaseField;
|
|
|
12
12
|
DataTypeEnum["Url"] = "url";
|
|
13
13
|
DataTypeEnum["Boolean"] = "boolean";
|
|
14
14
|
})(DataTypeEnum = BaseField.DataTypeEnum || (BaseField.DataTypeEnum = {}));
|
|
15
|
+
let ScopeEnum;
|
|
16
|
+
(function (ScopeEnum) {
|
|
17
|
+
ScopeEnum["Proposal"] = "proposal";
|
|
18
|
+
ScopeEnum["Organization"] = "organization";
|
|
19
|
+
})(ScopeEnum = BaseField.ScopeEnum || (BaseField.ScopeEnum = {}));
|
|
15
20
|
})(BaseField || (exports.BaseField = BaseField = {}));
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Writable } from './Writable';
|
|
2
2
|
export interface BulkUpload {
|
|
3
|
-
readonly id
|
|
3
|
+
readonly id?: number;
|
|
4
4
|
fileName: string;
|
|
5
5
|
readonly fileSize?: number;
|
|
6
6
|
sourceKey: string;
|
|
7
7
|
readonly status?: BulkUpload.StatusEnum;
|
|
8
|
-
readonly
|
|
8
|
+
readonly createdBy?: number;
|
|
9
|
+
readonly createdAt?: Date;
|
|
9
10
|
}
|
|
10
11
|
export type WritableBulkUpload = Writable<BulkUpload>;
|
|
11
12
|
export declare namespace BulkUpload {
|
package/dist/types/Proposal.d.ts
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -4,7 +4,9 @@ export * from './ApplicationFormField';
|
|
|
4
4
|
export * from './BaseField';
|
|
5
5
|
export * from './BulkUpload';
|
|
6
6
|
export * from './Bundle';
|
|
7
|
+
export * from './CreatedBy';
|
|
7
8
|
export * from './Opportunity';
|
|
9
|
+
export * from './OpportunityBundle';
|
|
8
10
|
export * from './Organization';
|
|
9
11
|
export * from './OrganizationBundle';
|
|
10
12
|
export * from './OrganizationProposal';
|
|
@@ -18,3 +20,5 @@ export * from './Proposal';
|
|
|
18
20
|
export * from './ProposalBundle';
|
|
19
21
|
export * from './ProposalFieldValue';
|
|
20
22
|
export * from './ProposalVersion';
|
|
23
|
+
export * from './User';
|
|
24
|
+
export * from './UserBundle';
|
package/dist/types/index.js
CHANGED
|
@@ -20,7 +20,9 @@ __exportStar(require("./ApplicationFormField"), exports);
|
|
|
20
20
|
__exportStar(require("./BaseField"), exports);
|
|
21
21
|
__exportStar(require("./BulkUpload"), exports);
|
|
22
22
|
__exportStar(require("./Bundle"), exports);
|
|
23
|
+
__exportStar(require("./CreatedBy"), exports);
|
|
23
24
|
__exportStar(require("./Opportunity"), exports);
|
|
25
|
+
__exportStar(require("./OpportunityBundle"), exports);
|
|
24
26
|
__exportStar(require("./Organization"), exports);
|
|
25
27
|
__exportStar(require("./OrganizationBundle"), exports);
|
|
26
28
|
__exportStar(require("./OrganizationProposal"), exports);
|
|
@@ -34,3 +36,5 @@ __exportStar(require("./Proposal"), exports);
|
|
|
34
36
|
__exportStar(require("./ProposalBundle"), exports);
|
|
35
37
|
__exportStar(require("./ProposalFieldValue"), exports);
|
|
36
38
|
__exportStar(require("./ProposalVersion"), exports);
|
|
39
|
+
__exportStar(require("./User"), exports);
|
|
40
|
+
__exportStar(require("./UserBundle"), exports);
|
package/package.json
CHANGED
package/src/types/BaseField.ts
CHANGED
|
@@ -6,6 +6,7 @@ export interface BaseField {
|
|
|
6
6
|
description?: string;
|
|
7
7
|
shortCode: string;
|
|
8
8
|
dataType: BaseField.DataTypeEnum;
|
|
9
|
+
readonly scope?: BaseField.ScopeEnum;
|
|
9
10
|
readonly createdAt: Date;
|
|
10
11
|
}
|
|
11
12
|
|
|
@@ -20,4 +21,8 @@ export namespace BaseField {
|
|
|
20
21
|
Url = 'url',
|
|
21
22
|
Boolean = 'boolean'
|
|
22
23
|
}
|
|
24
|
+
export enum ScopeEnum {
|
|
25
|
+
Proposal = 'proposal',
|
|
26
|
+
Organization = 'organization'
|
|
27
|
+
}
|
|
23
28
|
}
|
package/src/types/BulkUpload.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Writable } from './Writable';
|
|
2
2
|
|
|
3
3
|
export interface BulkUpload {
|
|
4
|
-
readonly id
|
|
4
|
+
readonly id?: number;
|
|
5
5
|
fileName: string;
|
|
6
6
|
readonly fileSize?: number;
|
|
7
7
|
sourceKey: string;
|
|
8
8
|
readonly status?: BulkUpload.StatusEnum;
|
|
9
|
-
readonly
|
|
9
|
+
readonly createdBy?: number;
|
|
10
|
+
readonly createdAt?: Date;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
export type WritableBulkUpload = Writable<BulkUpload>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Bundle,
|
|
3
|
+
} from './Bundle';
|
|
4
|
+
import {
|
|
5
|
+
Opportunity,
|
|
6
|
+
} from './Opportunity';
|
|
7
|
+
import { Writable } from './Writable';
|
|
8
|
+
|
|
9
|
+
export interface OpportunityBundle {
|
|
10
|
+
entries: Array<Opportunity>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type WritableOpportunityBundle = Writable<OpportunityBundle>
|
|
14
|
+
|
|
15
|
+
|
package/src/types/Proposal.ts
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -4,7 +4,9 @@ export * from './ApplicationFormField';
|
|
|
4
4
|
export * from './BaseField';
|
|
5
5
|
export * from './BulkUpload';
|
|
6
6
|
export * from './Bundle';
|
|
7
|
+
export * from './CreatedBy';
|
|
7
8
|
export * from './Opportunity';
|
|
9
|
+
export * from './OpportunityBundle';
|
|
8
10
|
export * from './Organization';
|
|
9
11
|
export * from './OrganizationBundle';
|
|
10
12
|
export * from './OrganizationProposal';
|
|
@@ -18,3 +20,5 @@ export * from './Proposal';
|
|
|
18
20
|
export * from './ProposalBundle';
|
|
19
21
|
export * from './ProposalFieldValue';
|
|
20
22
|
export * from './ProposalVersion';
|
|
23
|
+
export * from './User';
|
|
24
|
+
export * from './UserBundle';
|