@veltdev/sdk-staging 5.0.2-beta.45 → 5.0.2-beta.5
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/app/client/snippyly.model.d.ts +1 -20
- package/app/models/data/attachment-resolver.data.model.d.ts +2 -2
- package/app/models/data/attachment.model.d.ts +0 -1
- package/app/models/data/autocomplete.data.model.d.ts +3 -3
- package/app/models/data/base-metadata.data.model.d.ts +0 -3
- package/app/models/data/comment-actions.data.model.d.ts +0 -4
- package/app/models/data/comment-annotation.data.model.d.ts +2 -10
- package/app/models/data/comment-events.data.model.d.ts +2 -15
- package/app/models/data/comment-resolver.data.model.d.ts +3 -3
- package/app/models/data/config.data.model.d.ts +0 -26
- package/app/models/data/core-events.data.model.d.ts +1 -74
- package/app/models/data/crdt.data.model.d.ts +0 -51
- package/app/models/data/document.data.model.d.ts +0 -2
- package/app/models/data/live-state-events.data.model.d.ts +0 -6
- package/app/models/data/notification.model.d.ts +0 -4
- package/app/models/data/presence-user.data.model.d.ts +0 -5
- package/app/models/data/provider.data.model.d.ts +1 -8
- package/app/models/data/reaction-resolver.data.model.d.ts +3 -3
- package/app/models/data/recorder-annotation.data.model.d.ts +0 -11
- package/app/models/data/recorder-events.data.model.d.ts +0 -3
- package/app/models/data/resolver.data.model.d.ts +0 -1
- package/app/models/data/user-resolver.data.model.d.ts +1 -17
- package/app/models/data/user.data.model.d.ts +0 -2
- package/app/models/element/comment-element.model.d.ts +8 -28
- package/app/models/element/crdt-element.model.d.ts +1 -88
- package/app/models/element/presence-element.model.d.ts +0 -25
- package/app/utils/constants.d.ts +0 -223
- package/app/utils/enums.d.ts +3 -29
- package/models.d.ts +0 -5
- package/package.json +1 -1
- package/types.d.ts +0 -1
- package/velt.css +1 -1
- package/velt.js +116 -116
- package/app/models/data/activity-resolver.data.model.d.ts +0 -27
- package/app/models/data/activity.data.model.d.ts +0 -179
- package/app/models/data/notification-resolver.data.model.d.ts +0 -39
- package/app/models/data/recorder-resolver.data.model.d.ts +0 -58
- package/app/models/data/rewriter-events.data.model.d.ts +0 -40
- package/app/models/element/activity-element.model.d.ts +0 -33
|
@@ -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,40 +0,0 @@
|
|
|
1
|
-
import { TargetTextRange } from './target-text-range.data.model';
|
|
2
|
-
import { RewriterEventTypes } from '../../utils/enums';
|
|
3
|
-
export interface TextSelectedEvent {
|
|
4
|
-
selectionId: string;
|
|
5
|
-
text: string;
|
|
6
|
-
targetTextRange: TargetTextRange;
|
|
7
|
-
}
|
|
8
|
-
export interface RewriterAskAiRequest {
|
|
9
|
-
model: string;
|
|
10
|
-
prompt: string;
|
|
11
|
-
selectedText: string;
|
|
12
|
-
}
|
|
13
|
-
export interface RewriterReplaceTextRequest {
|
|
14
|
-
text: string;
|
|
15
|
-
event: TextSelectedEvent;
|
|
16
|
-
}
|
|
17
|
-
export interface RewriterAddCommentRequest {
|
|
18
|
-
text: string;
|
|
19
|
-
event: TextSelectedEvent;
|
|
20
|
-
}
|
|
21
|
-
export interface RewriterAskAiResponse {
|
|
22
|
-
text: string;
|
|
23
|
-
success: boolean;
|
|
24
|
-
error?: string;
|
|
25
|
-
}
|
|
26
|
-
export interface RewriterReplaceTextResponse {
|
|
27
|
-
success: boolean;
|
|
28
|
-
originalText: string;
|
|
29
|
-
replacedText: string;
|
|
30
|
-
error?: string;
|
|
31
|
-
}
|
|
32
|
-
export interface RewriterAddCommentResponse {
|
|
33
|
-
success: boolean;
|
|
34
|
-
annotationId?: string;
|
|
35
|
-
commentText?: string;
|
|
36
|
-
error?: string;
|
|
37
|
-
}
|
|
38
|
-
export type RewriterEventTypesMap = {
|
|
39
|
-
[RewriterEventTypes.TEXT_SELECTED]: TextSelectedEvent;
|
|
40
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { Observable } from "rxjs";
|
|
3
|
-
import { ActivityRecord, ActivitySubscribeConfig, CreateActivityData } from "../data/activity.data.model";
|
|
4
|
-
|
|
5
|
-
export declare class ActivityElement {
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Subscribe to activities with optional filtering configuration.
|
|
9
|
-
* Returns an Observable that, when unsubscribed, automatically cleans up the internal subscription.
|
|
10
|
-
* @param config Optional configuration to filter activities by scope, feature types, action types, etc.
|
|
11
|
-
* @returns Observable<ActivityRecord[] | null>
|
|
12
|
-
*/
|
|
13
|
-
getAllActivities: (config?: ActivitySubscribeConfig) => Observable<ActivityRecord[] | null>;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Create a new activity record.
|
|
17
|
-
* @param data The activity data including feature type, action type, target entity, etc.
|
|
18
|
-
* @returns Promise<void>
|
|
19
|
-
*/
|
|
20
|
-
createActivity: (data: CreateActivityData) => Promise<void>;
|
|
21
|
-
|
|
22
|
-
constructor();
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Subscribe to activities with optional filtering configuration.
|
|
26
|
-
*/
|
|
27
|
-
private _getAllActivities;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Create a new activity record.
|
|
31
|
-
*/
|
|
32
|
-
private _createActivity;
|
|
33
|
-
}
|