@veltdev/types-dev 5.0.2-beta.88 → 5.0.2-beta.9

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.
Files changed (42) hide show
  1. package/app/client/snippyly.model.d.ts +1 -16
  2. package/app/models/data/attachment-resolver.data.model.d.ts +2 -2
  3. package/app/models/data/attachment.model.d.ts +0 -1
  4. package/app/models/data/autocomplete.data.model.d.ts +3 -4
  5. package/app/models/data/base-metadata.data.model.d.ts +0 -3
  6. package/app/models/data/comment-actions.data.model.d.ts +0 -4
  7. package/app/models/data/comment-annotation.data.model.d.ts +2 -11
  8. package/app/models/data/comment-events.data.model.d.ts +10 -12
  9. package/app/models/data/comment-resolver.data.model.d.ts +3 -3
  10. package/app/models/data/comment-sidebar-config.model.d.ts +0 -2
  11. package/app/models/data/config.data.model.d.ts +0 -26
  12. package/app/models/data/core-events.data.model.d.ts +0 -72
  13. package/app/models/data/crdt.data.model.d.ts +0 -51
  14. package/app/models/data/document.data.model.d.ts +0 -2
  15. package/app/models/data/live-state-events.data.model.d.ts +0 -6
  16. package/app/models/data/notification.model.d.ts +0 -4
  17. package/app/models/data/presence-user.data.model.d.ts +0 -5
  18. package/app/models/data/provider.data.model.d.ts +0 -6
  19. package/app/models/data/reaction-resolver.data.model.d.ts +3 -3
  20. package/app/models/data/recorder-annotation.data.model.d.ts +0 -11
  21. package/app/models/data/recorder-events.data.model.d.ts +0 -3
  22. package/app/models/data/resolver.data.model.d.ts +0 -1
  23. package/app/models/data/user-resolver.data.model.d.ts +0 -2
  24. package/app/models/data/user.data.model.d.ts +0 -3
  25. package/app/models/element/comment-element.model.d.ts +8 -48
  26. package/app/models/element/crdt-element.model.d.ts +1 -88
  27. package/app/models/element/presence-element.model.d.ts +0 -25
  28. package/app/models/element/rewriter-element.model.d.ts +0 -20
  29. package/app/utils/constants.d.ts +0 -224
  30. package/app/utils/enums.d.ts +3 -36
  31. package/models.d.ts +0 -7
  32. package/package.json +1 -1
  33. package/types.d.ts +0 -2
  34. package/app/models/data/activity-resolver.data.model.d.ts +0 -27
  35. package/app/models/data/activity.data.model.d.ts +0 -179
  36. package/app/models/data/notification-resolver.data.model.d.ts +0 -39
  37. package/app/models/data/recorder-resolver.data.model.d.ts +0 -58
  38. package/app/models/data/rewriter-events.data.model.d.ts +0 -44
  39. package/app/models/data/suggestion-events.data.model.d.ts +0 -57
  40. package/app/models/data/suggestion.data.model.d.ts +0 -267
  41. package/app/models/element/activity-element.model.d.ts +0 -33
  42. package/app/models/element/suggestion-element.model.d.ts +0 -180
package/models.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  export * from './app/utils/enums';
2
2
  export * from './app/models/data/anchor-record.data.model';
3
3
  export * from './app/models/data/attachment.model';
4
- export * from './app/models/data/activity.data.model';
5
4
  export * from './app/models/data/area-annotation.data.model';
6
5
  export * from './app/models/data/arrow-annotation.data.model';
7
6
  export * from './app/models/data/base-metadata.data.model';
@@ -38,7 +37,6 @@ export * from './app/models/data/location.model';
38
37
  export * from './app/models/data/media-preview-config.data.model';
39
38
  export * from './app/models/data/multi-thread.data.model';
40
39
  export * from './app/models/data/notification.model';
41
- export * from './app/models/data/notification-resolver.data.model';
42
40
  export * from './app/models/data/notifications-events.data.model';
43
41
  export * from './app/models/data/page-info.model';
44
42
  export * from './app/models/data/permission.data.model';
@@ -49,9 +47,6 @@ export * from './app/models/data/recorder.model';
49
47
  export * from './app/models/data/recorder-annotation.data.model';
50
48
  export * from './app/models/data/recorder-events.data.model';
51
49
  export * from './app/models/data/rewriter-annotation.data.model';
52
- export * from './app/models/data/rewriter-events.data.model';
53
- export * from './app/models/data/suggestion.data.model';
54
- export * from './app/models/data/suggestion-events.data.model';
55
50
  export * from './app/models/data/screen-size.data.model';
56
51
  export * from './app/models/data/screenshot.data.model';
57
52
  export * from './app/models/data/selection.model';
@@ -76,9 +71,7 @@ export * from './app/models/data/views.data.model';
76
71
  export * from './app/models/data/autocomplete.data.model';
77
72
  export * from './app/models/data/reaction-annotation.data.model';
78
73
  export * from './app/models/data/reaction-resolver.data.model';
79
- export * from './app/models/data/recorder-resolver.data.model';
80
74
  export * from './app/models/data/attachment-resolver.data.model';
81
- export * from './app/models/data/activity-resolver.data.model';
82
75
  export * from './app/models/data/reaction.data.model';
83
76
  export * from './app/models/data/organization-groups.data.model';
84
77
  export * from './app/models/data/organization-metadata.model';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/types-dev",
3
- "version": "5.0.2-beta.88",
3
+ "version": "5.0.2-beta.9",
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": [
package/types.d.ts CHANGED
@@ -17,6 +17,4 @@ export * from './app/models/element/notification-element.model';
17
17
  export * from './app/models/element/autocomplete-element.model';
18
18
  export * from './app/models/element/reaction-element.model';
19
19
  export * from './app/models/element/crdt-element.model';
20
- export * from './app/models/element/activity-element.model';
21
- export * from './app/models/element/suggestion-element.model';
22
20
  export * from './models';
@@ -1,27 +0,0 @@
1
- import { BaseMetadata } from './base-metadata.data.model';
2
- import { ActivityChanges } from './activity.data.model';
3
- import { ResolverConfig, ResolverResponse } from './resolver.data.model';
4
- export interface PartialActivityRecord {
5
- id: string;
6
- metadata?: BaseMetadata;
7
- changes?: ActivityChanges;
8
- entityData?: unknown;
9
- entityTargetData?: unknown;
10
- displayMessageTemplateData?: Record<string, unknown>;
11
- [key: string]: any;
12
- }
13
- export interface ActivityAnnotationDataProvider {
14
- get?: (request: GetActivityResolverRequest) => Promise<ResolverResponse<Record<string, PartialActivityRecord>>>;
15
- save?: (request: SaveActivityResolverRequest) => Promise<ResolverResponse<undefined>>;
16
- config?: ResolverConfig;
17
- }
18
- export interface GetActivityResolverRequest {
19
- activityIds?: string[];
20
- documentIds?: string[];
21
- organizationId?: string;
22
- }
23
- export interface SaveActivityResolverRequest {
24
- activity: Record<string, PartialActivityRecord>;
25
- event?: string;
26
- metadata?: BaseMetadata;
27
- }
@@ -1,179 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { BaseMetadata } from './base-metadata.data.model';
3
- import { User } from './user.data.model';
4
- /**
5
- * Feature types that can generate activities.
6
- */
7
- export type ActivityFeatureType = 'comment' | 'reaction' | 'recorder' | 'crdt' | 'custom';
8
- /**
9
- * Comment action type constants following the `entity_type.action` naming pattern.
10
- * Annotation-level actions use `comment_annotation.*`, comment-level use `comment.*`.
11
- */
12
- export declare const CommentActivityActionTypes: {
13
- readonly ANNOTATION_ADD: "comment_annotation.add";
14
- readonly ANNOTATION_DELETE: "comment_annotation.delete";
15
- readonly COMMENT_ADD: "comment.add";
16
- readonly COMMENT_UPDATE: "comment.update";
17
- readonly COMMENT_DELETE: "comment.delete";
18
- readonly STATUS_CHANGE: "comment_annotation.status_change";
19
- readonly PRIORITY_CHANGE: "comment_annotation.priority_change";
20
- readonly ASSIGN: "comment_annotation.assign";
21
- readonly ACCESS_MODE_CHANGE: "comment_annotation.access_mode_change";
22
- readonly CUSTOM_LIST_CHANGE: "comment_annotation.custom_list_change";
23
- readonly APPROVE: "comment_annotation.approve";
24
- readonly ACCEPT: "comment.accept";
25
- readonly REJECT: "comment.reject";
26
- readonly REACTION_ADD: "comment.reaction_add";
27
- readonly REACTION_DELETE: "comment.reaction_delete";
28
- readonly SUBSCRIBE: "comment_annotation.subscribe";
29
- readonly UNSUBSCRIBE: "comment_annotation.unsubscribe";
30
- };
31
- export type CommentActivityActionType = typeof CommentActivityActionTypes[keyof typeof CommentActivityActionTypes];
32
- /**
33
- * Recorder action type constants following the `recording.*` naming pattern.
34
- */
35
- export declare const RecorderActivityActionTypes: {
36
- readonly RECORDING_ADD: "recording.add";
37
- readonly RECORDING_DELETE: "recording.delete";
38
- };
39
- export type RecorderActivityActionType = typeof RecorderActivityActionTypes[keyof typeof RecorderActivityActionTypes];
40
- /**
41
- * Reaction action type constants following the `reaction.*` naming pattern.
42
- */
43
- export declare const ReactionActivityActionTypes: {
44
- readonly REACTION_ADD: "reaction.add";
45
- readonly REACTION_DELETE: "reaction.delete";
46
- };
47
- export type ReactionActivityActionType = typeof ReactionActivityActionTypes[keyof typeof ReactionActivityActionTypes];
48
- /**
49
- * CRDT action type constants following the `crdt.*` naming pattern.
50
- */
51
- export declare const CrdtActivityActionTypes: {
52
- readonly EDITOR_EDIT: "crdt.editor_edit";
53
- };
54
- export type CrdtActivityActionType = typeof CrdtActivityActionTypes[keyof typeof CrdtActivityActionTypes];
55
- /**
56
- * Represents a single from/to change pair.
57
- * `from` is always present (null for 'added' events) for uniform structure.
58
- */
59
- export interface ActivityChange<T = unknown> {
60
- from?: T | null;
61
- to?: T | null;
62
- }
63
- /**
64
- * Dynamic change tracking. Keys are domain-specific (e.g., 'status', 'commentText', 'assignedTo').
65
- * No fixed keys — activities span multiple features.
66
- */
67
- export interface ActivityChanges {
68
- [key: string]: ActivityChange | undefined;
69
- }
70
- /**
71
- * Metadata for activity records. Extends BaseMetadata with denormalized IDs
72
- * for efficient querying at the organization level.
73
- */
74
- export declare class ActivityMetadata extends BaseMetadata {
75
- [key: string]: any;
76
- }
77
- /**
78
- * Core activity record representing a single activity event.
79
- *
80
- * @typeParam TEntity - Type of the parent entity snapshot (e.g., CommentAnnotation)
81
- * @typeParam TTarget - Type of the sub-entity snapshot (e.g., Comment)
82
- */
83
- export declare class ActivityRecord<TEntity = unknown, TTarget = unknown> {
84
- /** Auto-generated unique ID */
85
- id: string;
86
- /** Feature that generated this activity */
87
- featureType: ActivityFeatureType;
88
- /** Action that occurred, following `entity_type.action` pattern */
89
- actionType: string;
90
- /** Event type that occurred */
91
- eventType?: string;
92
- /** User who performed the action */
93
- actionUser: User;
94
- /** Server timestamp (set by backend) */
95
- timestamp: number;
96
- /** Denormalized IDs for querying */
97
- metadata: ActivityMetadata;
98
- /** ID of the parent entity (annotationId, recordingId, etc.) */
99
- targetEntityId: string;
100
- /** ID of the sub-entity acted on (commentId within annotation, null for entity-level actions) */
101
- targetSubEntityId?: string | null;
102
- /** Linear-style from/to change pairs */
103
- changes?: ActivityChanges;
104
- /** Full parent entity snapshot at time of action */
105
- entityData?: TEntity;
106
- /** Sub-entity snapshot (or user-provided data for custom activities) */
107
- entityTargetData?: TTarget;
108
- /** Display message template — ONLY for custom activities */
109
- displayMessageTemplate?: string;
110
- /** Template variable values — ONLY for custom activities */
111
- displayMessageTemplateData?: Record<string, unknown>;
112
- /** Computed display message (generated client-side, never stored in Firestore) */
113
- displayMessage?: string;
114
- /** Icon URL or identifier for display */
115
- actionIcon?: string;
116
- /** If true, this activity cannot be updated or deleted via REST API */
117
- immutable?: boolean;
118
- /** If true, this activity was stripped by the activity resolver (for UI loading states) */
119
- isActivityResolverUsed?: boolean;
120
- }
121
- /**
122
- * Configuration for subscribing to activities.
123
- * Behavior is determined by the props passed:
124
- * - No config → org-wide
125
- * - documentIds → specific documents
126
- * - currentDocumentOnly → current document only
127
- */
128
- export interface ActivitySubscribeConfig {
129
- /** Subscribe to activities for a specific organization (defaults to current org) */
130
- organizationId?: string;
131
- /** Subscribe to activities for specific document IDs */
132
- documentIds?: string[];
133
- /** Subscribe to activities for the current document only (auto-switches on setDocument) */
134
- currentDocumentOnly?: boolean;
135
- /** Only fetch activities from the last N days (default: 30) */
136
- maxDays?: number;
137
- /** Allowlist: only include activities with these feature types */
138
- featureTypes?: ActivityFeatureType[];
139
- /** Disallowlist: exclude activities with these feature types (ignored if featureTypes is set) */
140
- excludeFeatureTypes?: ActivityFeatureType[];
141
- /** Allowlist: only include activities with these action types */
142
- actionTypes?: string[];
143
- /** Disallowlist: exclude activities with these action types (ignored if actionTypes is set) */
144
- excludeActionTypes?: string[];
145
- /** Allowlist: only include activities by these user IDs */
146
- userIds?: string[];
147
- /** Disallowlist: exclude activities by these user IDs (ignored if userIds is set) */
148
- excludeUserIds?: string[];
149
- }
150
- /**
151
- * Represents an active activity subscription.
152
- * Returned by `activityService.subscribe()`.
153
- */
154
- export interface ActivitySubscription {
155
- /** Observable stream of activities for this subscription's scope. null = not yet loaded. */
156
- getActivities$(): Observable<ActivityRecord[] | null>;
157
- /** Unsubscribe and clean up this subscription */
158
- unsubscribe(): void;
159
- }
160
- /**
161
- * Data required to create an activity.
162
- * Used for all activity types: comment, reaction, recorder, custom, etc.
163
- */
164
- export interface CreateActivityData<TEntity = unknown, TTarget = unknown> {
165
- featureType: ActivityFeatureType;
166
- actionType: string;
167
- eventType?: string;
168
- targetEntityId: string;
169
- targetSubEntityId?: string | null;
170
- changes?: ActivityChanges;
171
- entityData?: TEntity;
172
- entityTargetData?: TTarget;
173
- /** Icon URL or identifier — typically used for custom activities */
174
- actionIcon?: string;
175
- /** Display message template — only for custom activities */
176
- displayMessageTemplate?: string;
177
- /** Template variable values — only for custom activities */
178
- displayMessageTemplateData?: Record<string, unknown>;
179
- }
@@ -1,39 +0,0 @@
1
- import { ResolverEndpointConfig, ResolverResponse, RetryConfig } from "./resolver.data.model";
2
- import { User } from "./user.data.model";
3
- export interface NotificationDataProvider {
4
- get?: (request: GetNotificationResolverRequest) => Promise<ResolverResponse<Record<string, PartialNotification>>>;
5
- delete?: (request: DeleteNotificationResolverRequest) => Promise<ResolverResponse<undefined>>;
6
- config?: NotificationResolverConfig;
7
- }
8
- export interface NotificationResolverConfig {
9
- resolveTimeout?: number;
10
- getRetryConfig?: RetryConfig;
11
- deleteRetryConfig?: RetryConfig;
12
- getConfig?: ResolverEndpointConfig;
13
- deleteConfig?: ResolverEndpointConfig;
14
- }
15
- export interface GetNotificationResolverRequest {
16
- organizationId: string;
17
- notificationIds: string[];
18
- }
19
- export interface DeleteNotificationResolverRequest {
20
- notificationId: string;
21
- organizationId: string;
22
- }
23
- export interface PartialNotification {
24
- notificationId: string;
25
- displayHeadlineMessageTemplate?: string;
26
- displayHeadlineMessageTemplateData?: {
27
- actionUser?: User;
28
- recipientUser?: User;
29
- actionMessage?: string;
30
- [key: string]: any;
31
- };
32
- displayBodyMessage?: string;
33
- displayBodyMessageTemplate?: string;
34
- displayBodyMessageTemplateData?: {
35
- [key: string]: any;
36
- };
37
- notificationSourceData?: any;
38
- [key: string]: any;
39
- }
@@ -1,58 +0,0 @@
1
- import { ResolverActions } from "../../utils/enums";
2
- import { AttachmentDataProvider } from "./attachment-resolver.data.model";
3
- import { BaseMetadata } from "./base-metadata.data.model";
4
- import { RecorderAnnotation } from "./recorder-annotation.data.model";
5
- import { ResolverConfig, ResolverResponse } from "./resolver.data.model";
6
- import { Attachment } from "./attachment.model";
7
- import { Transcription } from "./transcription.data.model";
8
- import { User } from "./user.data.model";
9
- export interface RecorderAnnotationDataProvider {
10
- get?: (request: GetRecorderResolverRequest) => Promise<ResolverResponse<Record<string, PartialRecorderAnnotation>>>;
11
- save?: (request: SaveRecorderResolverRequest) => Promise<ResolverResponse<SaveRecorderResolverData | undefined>>;
12
- delete?: (request: DeleteRecorderResolverRequest) => Promise<ResolverResponse<undefined>>;
13
- config?: ResolverConfig;
14
- uploadChunks?: boolean;
15
- storage?: AttachmentDataProvider;
16
- }
17
- export interface GetRecorderResolverRequest {
18
- organizationId: string;
19
- recorderAnnotationIds?: string[];
20
- documentIds?: string[];
21
- }
22
- export interface SaveRecorderResolverRequest {
23
- recorderAnnotation: Record<string, PartialRecorderAnnotation>;
24
- event?: ResolverActions;
25
- metadata?: BaseMetadata;
26
- }
27
- export interface SaveRecorderResolverData {
28
- transcription?: Transcription;
29
- attachment?: Attachment | null;
30
- attachments?: Attachment[];
31
- }
32
- export interface DeleteRecorderResolverRequest {
33
- recorderAnnotationId: string;
34
- metadata?: BaseMetadata;
35
- event?: ResolverActions;
36
- }
37
- export interface PartialRecorderAnnotation {
38
- annotationId: string;
39
- metadata?: BaseMetadata;
40
- from?: User;
41
- transcription?: Transcription;
42
- attachment?: Attachment | null;
43
- attachments?: Attachment[];
44
- chunkUrls?: Record<number, string>;
45
- recordingEditVersions?: Record<number, PartialRecorderAnnotationEditVersion>;
46
- [key: string]: any;
47
- }
48
- export interface PartialRecorderAnnotationEditVersion {
49
- from?: User;
50
- attachment?: Attachment | null;
51
- attachments?: Attachment[];
52
- transcription?: Transcription;
53
- }
54
- export interface PartialRecorderAnnotationResult {
55
- strippedData: Record<string, PartialRecorderAnnotation> | null;
56
- originalData: RecorderAnnotation | null;
57
- eventType?: ResolverActions;
58
- }
@@ -1,44 +0,0 @@
1
- import { TargetTextRange } from './target-text-range.data.model';
2
- import { RewriterEventTypes } from '../../utils/enums';
3
- export type OpenAiModel = 'gpt-5.4' | 'gpt-5.4-pro' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5' | 'gpt-4.1' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4-turbo' | 'o3-pro' | 'o3' | 'o3-mini' | 'o4-mini';
4
- export type AnthropicModel = 'claude-opus-4-6' | 'claude-sonnet-4-6' | 'claude-haiku-4-5' | 'claude-sonnet-4-5' | 'claude-opus-4-5' | 'claude-opus-4-1' | 'claude-sonnet-4-0' | 'claude-opus-4-0';
5
- export type GeminiModel = 'gemini-3.1-pro-preview' | 'gemini-3-flash-preview' | 'gemini-3.1-flash-lite-preview' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-2.5-pro';
6
- export type AiModel = OpenAiModel | AnthropicModel | GeminiModel | (string & NonNullable<unknown>);
7
- export interface TextSelectedEvent {
8
- selectionId: string;
9
- text: string;
10
- targetTextRange: TargetTextRange;
11
- }
12
- export interface RewriterAskAiRequest {
13
- model: AiModel;
14
- prompt: string;
15
- selectedText: string;
16
- }
17
- export interface RewriterReplaceTextRequest {
18
- text: string;
19
- event: TextSelectedEvent;
20
- }
21
- export interface RewriterAddCommentRequest {
22
- text: string;
23
- event: TextSelectedEvent;
24
- }
25
- export interface RewriterAskAiResponse {
26
- text: string;
27
- success: boolean;
28
- error?: string;
29
- }
30
- export interface RewriterReplaceTextResponse {
31
- success: boolean;
32
- originalText: string;
33
- replacedText: string;
34
- error?: string;
35
- }
36
- export interface RewriterAddCommentResponse {
37
- success: boolean;
38
- annotationId?: string;
39
- commentText?: string;
40
- error?: string;
41
- }
42
- export type RewriterEventTypesMap = {
43
- [RewriterEventTypes.TEXT_SELECTED]: TextSelectedEvent;
44
- };
@@ -1,57 +0,0 @@
1
- import { SuggestionEventTypes } from '../../utils/enums';
2
- import { ApprovedSuggestion, PendingSuggestion, RejectedSuggestion, StaleSuggestion, TargetEditCommitBuilder, TargetEditDetails } from './suggestion.data.model';
3
- /**
4
- * Public payload types for the v1 Suggestions feature. Mirrors the layout of
5
- * `comment-events.data.model.ts` and `recorder-events.data.model.ts`:
6
- *
7
- * - One named interface per event payload.
8
- * - One `SuggestionEventTypesMap` keyed by `SuggestionEventTypes` enum values.
9
- *
10
- * Customers pass an event-name string (or the enum constant — they're
11
- * equivalent) to `velt.getSuggestionElement().on(...)` and receive an
12
- * `Observable<SuggestionEventTypesMap[T]>`.
13
- *
14
- * No separate `actor`/`user` field on the payloads: the user info is on
15
- * `suggestion.createdBy` (for created) and `suggestion.resolvedBy` (for
16
- * approved/rejected/stale). Matches the comment-event shape.
17
- */
18
- export interface SuggestionCreatedEvent {
19
- suggestion: PendingSuggestion;
20
- timestamp: number;
21
- }
22
- export interface SuggestionApprovedEvent {
23
- suggestion: ApprovedSuggestion;
24
- timestamp: number;
25
- }
26
- export interface SuggestionRejectedEvent {
27
- suggestion: RejectedSuggestion;
28
- timestamp: number;
29
- }
30
- export interface SuggestionStaleEvent {
31
- suggestion: StaleSuggestion;
32
- timestamp: number;
33
- }
34
- export interface TargetEditStartEvent {
35
- details: TargetEditDetails;
36
- timestamp: number;
37
- }
38
- export interface TargetEditCommitEvent {
39
- details: TargetEditDetails;
40
- /**
41
- * Pre-bound builder. Calling it commits the suggestion using the SDK's
42
- * default summary/metadata, optionally overridden by `result`. If the
43
- * customer's `onTargetEditCommit` handler already returned a non-null
44
- * result for this edit, this builder is a no-op so subscribers can't
45
- * double-commit.
46
- */
47
- commitSuggestion: TargetEditCommitBuilder;
48
- timestamp: number;
49
- }
50
- export type SuggestionEventTypesMap = {
51
- [SuggestionEventTypes.SUGGESTION_CREATED]: SuggestionCreatedEvent;
52
- [SuggestionEventTypes.SUGGESTION_APPROVED]: SuggestionApprovedEvent;
53
- [SuggestionEventTypes.SUGGESTION_REJECTED]: SuggestionRejectedEvent;
54
- [SuggestionEventTypes.SUGGESTION_STALE]: SuggestionStaleEvent;
55
- [SuggestionEventTypes.TARGET_EDIT_START]: TargetEditStartEvent;
56
- [SuggestionEventTypes.TARGET_EDIT_COMMIT]: TargetEditCommitEvent;
57
- };