@veltdev/sdk-staging 5.0.2-beta.59 → 5.0.2-beta.60
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.
|
@@ -212,10 +212,14 @@ export interface ApprovedSuggestion<T = unknown> extends SuggestionBase<T> {
|
|
|
212
212
|
resolvedBy: User;
|
|
213
213
|
resolvedAt: number;
|
|
214
214
|
}
|
|
215
|
-
/**
|
|
215
|
+
/**
|
|
216
|
+
* A suggestion that has been rejected. `rejectReason` may be null when the
|
|
217
|
+
* rejecter dismissed without supplying a reason — matches the persisted
|
|
218
|
+
* `SuggestionData.rejectReason: string | null` shape.
|
|
219
|
+
*/
|
|
216
220
|
export interface RejectedSuggestion<T = unknown> extends SuggestionBase<T> {
|
|
217
221
|
status: 'rejected';
|
|
218
|
-
rejectReason: string;
|
|
222
|
+
rejectReason: string | null;
|
|
219
223
|
resolvedBy: User;
|
|
220
224
|
resolvedAt: number;
|
|
221
225
|
}
|
|
@@ -228,8 +232,9 @@ export interface StaleSuggestion<T = unknown> extends SuggestionBase<T> {
|
|
|
228
232
|
}
|
|
229
233
|
/**
|
|
230
234
|
* Public Suggestion — discriminated union keyed by `status`. TypeScript narrows
|
|
231
|
-
* field types per status
|
|
232
|
-
*
|
|
235
|
+
* field types per status (e.g. `resolvedBy: User` is non-null on approved/rejected,
|
|
236
|
+
* `rejectReason: string | null` on rejected since one-click reject without a reason
|
|
237
|
+
* is supported).
|
|
233
238
|
*/
|
|
234
239
|
export type Suggestion<T = unknown> = PendingSuggestion<T> | ApprovedSuggestion<T> | RejectedSuggestion<T> | StaleSuggestion<T>;
|
|
235
240
|
export interface CommitSuggestionConfig<T = unknown> {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk-staging",
|
|
3
|
-
"version": "5.0.2-beta.
|
|
3
|
+
"version": "5.0.2-beta.60",
|
|
4
4
|
"description": "Velt is an SDK to add collaborative features to your product within minutes. Example: Comments like Figma, Frame.io, Google docs or sheets, Recording like Loom, Huddles like Slack and much more.",
|
|
5
5
|
"homepage": "https://velt.dev",
|
|
6
6
|
"keywords": [
|