@foss.global/interfaces 0.6.0 → 0.7.0
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/changelog.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2026-07-21 - 0.7.0
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- add repository issue mutation contracts (repository-issues)
|
|
8
|
+
- Add public typed request contracts for issue creation, comment creation, and state updates.
|
|
9
|
+
- Constrain public issue state values to open or closed.
|
|
10
|
+
- Add test coverage for exported repository issue mutation request types.
|
|
11
|
+
|
|
3
12
|
## 2026-07-21 - 0.6.0
|
|
4
13
|
|
|
5
14
|
### Features
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@foss.global/interfaces',
|
|
6
|
-
version: '0.
|
|
6
|
+
version: '0.7.0',
|
|
7
7
|
description: 'Shared TypeScript interfaces and TypedRequest contracts for the foss.global Git platform ecosystem.'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx5QkFBeUI7SUFDL0IsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLHFHQUFxRztDQUNuSCxDQUFBIn0=
|
package/dist_ts/data/public.d.ts
CHANGED
|
@@ -90,12 +90,13 @@ export interface IPublicIssueLabel {
|
|
|
90
90
|
name: string;
|
|
91
91
|
color: string;
|
|
92
92
|
}
|
|
93
|
+
export type TRepositoryIssueState = 'open' | 'closed';
|
|
93
94
|
export interface IPublicIssue {
|
|
94
95
|
number: number;
|
|
95
96
|
title: string;
|
|
96
97
|
body: string;
|
|
97
98
|
htmlUrl: string;
|
|
98
|
-
state:
|
|
99
|
+
state: TRepositoryIssueState;
|
|
99
100
|
comments: number;
|
|
100
101
|
createdAt: string;
|
|
101
102
|
updatedAt: string;
|
|
@@ -131,3 +131,42 @@ export interface IReq_RepositoryCiArtifacts extends plugins.typedrequestInterfac
|
|
|
131
131
|
};
|
|
132
132
|
response: data.IRepositoryCiArtifactListView;
|
|
133
133
|
}
|
|
134
|
+
export interface IReq_RepositoryIssueCreate extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_RepositoryIssueCreate> {
|
|
135
|
+
method: 'repositoryIssueCreate';
|
|
136
|
+
request: {
|
|
137
|
+
org: string;
|
|
138
|
+
repo: string;
|
|
139
|
+
title: string;
|
|
140
|
+
body: string;
|
|
141
|
+
accessToken: string;
|
|
142
|
+
};
|
|
143
|
+
response: {
|
|
144
|
+
issue: data.IPublicIssue;
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
export interface IReq_RepositoryIssueCommentCreate extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_RepositoryIssueCommentCreate> {
|
|
148
|
+
method: 'repositoryIssueCommentCreate';
|
|
149
|
+
request: {
|
|
150
|
+
org: string;
|
|
151
|
+
repo: string;
|
|
152
|
+
issueNumber: number;
|
|
153
|
+
body: string;
|
|
154
|
+
accessToken: string;
|
|
155
|
+
};
|
|
156
|
+
response: {
|
|
157
|
+
comment: data.IPublicIssueComment;
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
export interface IReq_RepositoryIssueStateUpdate extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_RepositoryIssueStateUpdate> {
|
|
161
|
+
method: 'repositoryIssueStateUpdate';
|
|
162
|
+
request: {
|
|
163
|
+
org: string;
|
|
164
|
+
repo: string;
|
|
165
|
+
issueNumber: number;
|
|
166
|
+
state: data.TRepositoryIssueState;
|
|
167
|
+
accessToken: string;
|
|
168
|
+
};
|
|
169
|
+
response: {
|
|
170
|
+
issue: data.IPublicIssue;
|
|
171
|
+
};
|
|
172
|
+
}
|
package/package.json
CHANGED
package/ts/00_commitinfo_data.ts
CHANGED
package/ts/data/public.ts
CHANGED
|
@@ -111,12 +111,14 @@ export interface IPublicIssueLabel {
|
|
|
111
111
|
color: string;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
+
export type TRepositoryIssueState = 'open' | 'closed';
|
|
115
|
+
|
|
114
116
|
export interface IPublicIssue {
|
|
115
117
|
number: number;
|
|
116
118
|
title: string;
|
|
117
119
|
body: string;
|
|
118
120
|
htmlUrl: string;
|
|
119
|
-
state:
|
|
121
|
+
state: TRepositoryIssueState;
|
|
120
122
|
comments: number;
|
|
121
123
|
createdAt: string;
|
|
122
124
|
updatedAt: string;
|
package/ts/requests/public.ts
CHANGED
|
@@ -181,3 +181,57 @@ export interface IReq_RepositoryCiArtifacts
|
|
|
181
181
|
};
|
|
182
182
|
response: data.IRepositoryCiArtifactListView;
|
|
183
183
|
}
|
|
184
|
+
|
|
185
|
+
export interface IReq_RepositoryIssueCreate
|
|
186
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
187
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
188
|
+
IReq_RepositoryIssueCreate
|
|
189
|
+
> {
|
|
190
|
+
method: 'repositoryIssueCreate';
|
|
191
|
+
request: {
|
|
192
|
+
org: string;
|
|
193
|
+
repo: string;
|
|
194
|
+
title: string;
|
|
195
|
+
body: string;
|
|
196
|
+
accessToken: string;
|
|
197
|
+
};
|
|
198
|
+
response: {
|
|
199
|
+
issue: data.IPublicIssue;
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export interface IReq_RepositoryIssueCommentCreate
|
|
204
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
205
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
206
|
+
IReq_RepositoryIssueCommentCreate
|
|
207
|
+
> {
|
|
208
|
+
method: 'repositoryIssueCommentCreate';
|
|
209
|
+
request: {
|
|
210
|
+
org: string;
|
|
211
|
+
repo: string;
|
|
212
|
+
issueNumber: number;
|
|
213
|
+
body: string;
|
|
214
|
+
accessToken: string;
|
|
215
|
+
};
|
|
216
|
+
response: {
|
|
217
|
+
comment: data.IPublicIssueComment;
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export interface IReq_RepositoryIssueStateUpdate
|
|
222
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
223
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
224
|
+
IReq_RepositoryIssueStateUpdate
|
|
225
|
+
> {
|
|
226
|
+
method: 'repositoryIssueStateUpdate';
|
|
227
|
+
request: {
|
|
228
|
+
org: string;
|
|
229
|
+
repo: string;
|
|
230
|
+
issueNumber: number;
|
|
231
|
+
state: data.TRepositoryIssueState;
|
|
232
|
+
accessToken: string;
|
|
233
|
+
};
|
|
234
|
+
response: {
|
|
235
|
+
issue: data.IPublicIssue;
|
|
236
|
+
};
|
|
237
|
+
}
|