@show-karma/karma-gap-sdk 0.2.7 → 0.2.8
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.
|
@@ -151,6 +151,9 @@ class Grant extends Attestation_1.Attestation {
|
|
|
151
151
|
},
|
|
152
152
|
schema: GapSchema_1.GapSchema.find('GrantDetails'),
|
|
153
153
|
});
|
|
154
|
+
if (details.data?.questions) {
|
|
155
|
+
Object.assign(grant.details, { questions: details.data.questions });
|
|
156
|
+
}
|
|
154
157
|
}
|
|
155
158
|
if (attestation.milestones) {
|
|
156
159
|
const { milestones } = attestation;
|
|
@@ -29,6 +29,7 @@ export interface IGrantDetails {
|
|
|
29
29
|
description?: string;
|
|
30
30
|
season?: string;
|
|
31
31
|
cycle?: string;
|
|
32
|
+
questions?: IGrantDetailsQuestion[];
|
|
32
33
|
}
|
|
33
34
|
export declare class GrantDetails extends Attestation<IGrantDetails> implements IGrantDetails {
|
|
34
35
|
title: string;
|
|
@@ -39,6 +40,7 @@ export declare class GrantDetails extends Attestation<IGrantDetails> implements
|
|
|
39
40
|
description?: string;
|
|
40
41
|
season?: string;
|
|
41
42
|
cycle?: string;
|
|
43
|
+
questions?: IGrantDetailsQuestion[];
|
|
42
44
|
}
|
|
43
45
|
export interface IGrantRound {
|
|
44
46
|
name: string;
|
|
@@ -106,3 +108,8 @@ export declare class GrantUpdate extends Attestation<IGrantUpdate> implements IG
|
|
|
106
108
|
}
|
|
107
109
|
export declare class GrantCompleted extends GrantUpdate {
|
|
108
110
|
}
|
|
111
|
+
export interface IGrantDetailsQuestion {
|
|
112
|
+
query: string;
|
|
113
|
+
explanation: string;
|
|
114
|
+
type: string;
|
|
115
|
+
}
|
|
@@ -10,6 +10,10 @@ class CommunityDetails extends Attestation_1.Attestation {
|
|
|
10
10
|
}
|
|
11
11
|
exports.CommunityDetails = CommunityDetails;
|
|
12
12
|
class GrantDetails extends Attestation_1.Attestation {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.questions = [];
|
|
16
|
+
}
|
|
13
17
|
}
|
|
14
18
|
exports.GrantDetails = GrantDetails;
|
|
15
19
|
class GrantRound extends Attestation_1.Attestation {
|