@show-karma/karma-gap-sdk 0.3.37 → 0.3.38

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.
@@ -19,6 +19,7 @@ export interface IProjectImpact {
19
19
  startedAt?: number;
20
20
  completedAt: number;
21
21
  type?: string;
22
+ verified: ProjectImpactStatus[];
22
23
  }
23
24
  export declare class ProjectImpact extends Attestation<IProjectImpact> implements IProjectImpact {
24
25
  work: string;
@@ -32,8 +32,11 @@ export interface ISummaryProject {
32
32
  uid: Hex;
33
33
  }
34
34
  export interface IMilestoneCompleted extends IAttestationResponse {
35
- type: "approved" | "rejected" | "completed";
36
- reason?: string;
35
+ type: "MilestoneStatus";
36
+ data: {
37
+ type: "approved" | "rejected" | "completed";
38
+ reason?: string;
39
+ };
37
40
  }
38
41
  export interface IMilestoneResponse extends IAttestationResponse {
39
42
  type: "Milestone";
@@ -45,15 +48,25 @@ export interface IMilestoneResponse extends IAttestationResponse {
45
48
  title: string;
46
49
  description: string;
47
50
  endsAt: number;
51
+ startsAt?: number;
48
52
  type: "milestone";
49
53
  };
50
54
  }
55
+ export interface IGrantUpdateStatus extends IAttestationResponse {
56
+ type: `grant-update-${IStatus}`;
57
+ reason?: string;
58
+ data: {
59
+ type: "approved" | "rejected" | "completed";
60
+ reason?: string;
61
+ };
62
+ }
51
63
  export interface IGrantUpdate extends IAttestationResponse {
52
64
  data: {
53
65
  text: string;
54
66
  title: string;
55
67
  type: "grant-update";
56
68
  };
69
+ verified?: IGrantUpdateStatus[];
57
70
  }
58
71
  export interface IGrantDetails extends IAttestationResponse {
59
72
  type: "GrantDetails";
@@ -118,6 +131,11 @@ export interface IProjectDetails extends IAttestationResponse {
118
131
  pathToTake?: string;
119
132
  };
120
133
  }
134
+ type IStatus = "verified";
135
+ export interface IProjectImpactStatus extends IAttestationResponse {
136
+ type: `project-impact-${IStatus}`;
137
+ reason?: string;
138
+ }
121
139
  export interface IProjectImpact extends IAttestationResponse {
122
140
  type: "ProjectImpact";
123
141
  data: {
@@ -128,6 +146,7 @@ export interface IProjectImpact extends IAttestationResponse {
128
146
  completedAt: number;
129
147
  type: "project-impact";
130
148
  };
149
+ verified: IProjectImpactStatus[];
131
150
  }
132
151
  export interface IProjectEndorsement extends IAttestationResponse {
133
152
  type: "ProjectEndorsement";
@@ -143,7 +162,7 @@ export interface IProjectResponse extends IAttestationResponse {
143
162
  };
144
163
  details?: IProjectDetails;
145
164
  members: IMemberOf[];
146
- grants: any[];
165
+ grants: IGrantResponse[];
147
166
  grantee: any;
148
167
  impacts: IProjectImpact[];
149
168
  endorsements: IProjectEndorsement[];
@@ -178,3 +197,4 @@ export interface ISearchResponse {
178
197
  projects: IProjectResponse[];
179
198
  communities: ICommunityResponse[];
180
199
  }
200
+ export {};
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.3.37",
6
+ "version": "0.3.38",
7
7
  "description": "Simple and easy interface between EAS and Karma GAP.",
8
8
  "main": "./index.js",
9
9
  "author": "KarmaHQ",