@veltdev/types-dev 4.2.2-beta.30 → 4.2.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/models/data/comment-resolver.data.model.d.ts +4 -10
- package/app/models/data/media-preview-config.data.model.d.ts +0 -1
- package/app/models/data/provider.data.model.d.ts +0 -2
- package/app/models/data/reaction-annotation.data.model.d.ts +0 -1
- package/app/models/data/recorder-annotation.data.model.d.ts +0 -10
- package/app/models/data/recorder.model.d.ts +0 -20
- package/app/models/data/user-resolver.data.model.d.ts +1 -1
- package/app/utils/constants.d.ts +0 -1
- package/app/utils/enums.d.ts +0 -9
- package/package.json +1 -1
- package/app/models/data/reaction-resolver.data.model.d.ts +0 -39
- package/app/models/data/resolver.data.model.d.ts +0 -21
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { ResolverActions } from "../../utils/enums";
|
|
2
1
|
import { BaseMetadata } from "./base-metadata.data.model";
|
|
3
2
|
import { CommentAnnotation } from "./comment-annotation.data.model";
|
|
4
|
-
import { ResolverConfig, ResolverResponse } from "./resolver.data.model";
|
|
5
3
|
export interface CommentAnnotationDataProvider {
|
|
6
|
-
get: (request: GetCommentRequest) => Promise<
|
|
7
|
-
save: (request: SaveCommentRequest) => Promise<
|
|
8
|
-
delete: (request: DeleteCommentRequest) => Promise<
|
|
9
|
-
|
|
4
|
+
get: (request: GetCommentRequest) => Promise<Record<string, PartialCommentAnnotation>>;
|
|
5
|
+
save: (request: SaveCommentRequest) => Promise<void>;
|
|
6
|
+
delete: (request: DeleteCommentRequest) => Promise<void>;
|
|
7
|
+
resolveTimeout?: number;
|
|
10
8
|
}
|
|
11
9
|
export interface GetCommentRequest {
|
|
12
10
|
organizationId: string;
|
|
@@ -18,14 +16,11 @@ export interface GetCommentRequest {
|
|
|
18
16
|
export interface DeleteCommentRequest {
|
|
19
17
|
commentAnnotationId: string;
|
|
20
18
|
metadata?: BaseMetadata;
|
|
21
|
-
event?: ResolverActions;
|
|
22
19
|
}
|
|
23
20
|
export interface SaveCommentRequest {
|
|
24
21
|
commentAnnotation: {
|
|
25
22
|
[key: string]: PartialCommentAnnotation;
|
|
26
23
|
};
|
|
27
|
-
event?: ResolverActions;
|
|
28
|
-
commentId?: string;
|
|
29
24
|
}
|
|
30
25
|
export interface PartialComment {
|
|
31
26
|
commentId: string | number;
|
|
@@ -37,7 +32,6 @@ export interface PartialCommentAnnotationResult {
|
|
|
37
32
|
[annotationId: string]: PartialCommentAnnotation;
|
|
38
33
|
} | null;
|
|
39
34
|
originalData: CommentAnnotation | null;
|
|
40
|
-
eventType?: ResolverActions;
|
|
41
35
|
}
|
|
42
36
|
export interface PartialCommentAnnotation {
|
|
43
37
|
annotationId: string;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { CommentAnnotationDataProvider } from "./comment-resolver.data.model";
|
|
2
|
-
import { ReactionAnnotationDataProvider } from "./reaction-resolver.data.model";
|
|
3
2
|
import { UserDataProvider } from "./user-resolver.data.model";
|
|
4
3
|
export interface VeltDataProvider {
|
|
5
4
|
comment?: CommentAnnotationDataProvider;
|
|
6
5
|
user?: UserDataProvider;
|
|
7
|
-
reaction?: ReactionAnnotationDataProvider;
|
|
8
6
|
}
|
|
@@ -142,16 +142,6 @@ export declare class RecorderAnnotation {
|
|
|
142
142
|
recordingEditVersions?: {
|
|
143
143
|
[key: number]: RecorderAnnotationEditVersion;
|
|
144
144
|
};
|
|
145
|
-
/**
|
|
146
|
-
* Folder ID where chunks are stored in storage
|
|
147
|
-
*/
|
|
148
|
-
recordingFolderId?: string;
|
|
149
|
-
/**
|
|
150
|
-
* URLs for individual uploaded chunks
|
|
151
|
-
*/
|
|
152
|
-
chunkUrls?: {
|
|
153
|
-
[key: number]: string;
|
|
154
|
-
};
|
|
155
145
|
}
|
|
156
146
|
export interface RecorderAnnotationEditVersion {
|
|
157
147
|
from?: User;
|
|
@@ -56,16 +56,6 @@ export declare class RecordedRawData {
|
|
|
56
56
|
duration?: number;
|
|
57
57
|
display?: string;
|
|
58
58
|
} | null;
|
|
59
|
-
/**
|
|
60
|
-
* Array of URLs for individual uploaded chunks
|
|
61
|
-
*/
|
|
62
|
-
chunkUrls?: {
|
|
63
|
-
[key: number]: string;
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* Folder ID where chunks are stored in storage
|
|
67
|
-
*/
|
|
68
|
-
recordingFolderId?: string;
|
|
69
59
|
}
|
|
70
60
|
export declare class RecordedData {
|
|
71
61
|
/**
|
|
@@ -88,15 +78,5 @@ export declare class RecordedData {
|
|
|
88
78
|
* URL of the hosted website to open video in new tab
|
|
89
79
|
*/
|
|
90
80
|
videoPlayerUrl?: string;
|
|
91
|
-
/**
|
|
92
|
-
* Folder ID where chunks are stored in storage
|
|
93
|
-
*/
|
|
94
|
-
recordingFolderId?: string;
|
|
95
|
-
/**
|
|
96
|
-
* URLs for individual uploaded chunks
|
|
97
|
-
*/
|
|
98
|
-
chunkUrls?: {
|
|
99
|
-
[key: number]: string;
|
|
100
|
-
};
|
|
101
81
|
getThumbnailTag: (url?: string) => string;
|
|
102
82
|
}
|
package/app/utils/constants.d.ts
CHANGED
package/app/utils/enums.d.ts
CHANGED
|
@@ -16,15 +16,6 @@ export declare enum CommentStatus {
|
|
|
16
16
|
SUBSCRIBED = "subscribed",
|
|
17
17
|
UNSUBSCRIBED = "unsubscribed"
|
|
18
18
|
}
|
|
19
|
-
export declare enum ResolverActions {
|
|
20
|
-
COMMENT_ANNOTATION_ADD = "comment_annotation.add",
|
|
21
|
-
COMMENT_ANNOTATION_DELETE = "comment_annotation.delete",
|
|
22
|
-
COMMENT_ADD = "comment.add",
|
|
23
|
-
COMMENT_DELETE = "comment.delete",
|
|
24
|
-
COMMENT_UPDATE = "comment.update",
|
|
25
|
-
REACTION_ADD = "reaction.add",
|
|
26
|
-
REACTION_DELETE = "reaction.delete"
|
|
27
|
-
}
|
|
28
19
|
export declare const CommentEventTypes: {
|
|
29
20
|
readonly ADD_COMMENT_ANNOTATION: "addCommentAnnotation";
|
|
30
21
|
readonly DELETE_COMMENT_ANNOTATION: "deleteCommentAnnotation";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/types-dev",
|
|
3
|
-
"version": "4.2.2-beta.
|
|
3
|
+
"version": "4.2.2-beta.5",
|
|
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": [
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { BaseMetadata } from "./base-metadata.data.model";
|
|
2
|
-
import { ReactionAnnotation } from "./reaction-annotation.data.model";
|
|
3
|
-
import { ResolverResponse, ResolverConfig } from "./resolver.data.model";
|
|
4
|
-
import { ResolverActions } from "../../utils/enums";
|
|
5
|
-
export interface ReactionAnnotationDataProvider {
|
|
6
|
-
get: (request: GetReactionRequest) => Promise<ResolverResponse<Record<string, PartialReactionAnnotation>>>;
|
|
7
|
-
save: (request: SaveReactionRequest) => Promise<ResolverResponse<undefined>>;
|
|
8
|
-
delete: (request: DeleteReactionRequest) => Promise<ResolverResponse<undefined>>;
|
|
9
|
-
config?: ResolverConfig;
|
|
10
|
-
}
|
|
11
|
-
export interface GetReactionRequest {
|
|
12
|
-
organizationId: string;
|
|
13
|
-
reactionAnnotationIds?: string[];
|
|
14
|
-
documentIds?: string[];
|
|
15
|
-
folderId?: string;
|
|
16
|
-
allDocuments?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export interface DeleteReactionRequest {
|
|
19
|
-
reactionAnnotationId: string;
|
|
20
|
-
metadata?: BaseMetadata;
|
|
21
|
-
event?: ResolverActions;
|
|
22
|
-
}
|
|
23
|
-
export interface SaveReactionRequest {
|
|
24
|
-
reactionAnnotation: {
|
|
25
|
-
[key: string]: PartialReactionAnnotation;
|
|
26
|
-
};
|
|
27
|
-
event?: ResolverActions;
|
|
28
|
-
}
|
|
29
|
-
export interface PartialReactionAnnotationResult {
|
|
30
|
-
strippedData: {
|
|
31
|
-
[annotationId: string]: PartialReactionAnnotation;
|
|
32
|
-
} | null;
|
|
33
|
-
originalData: ReactionAnnotation | null;
|
|
34
|
-
}
|
|
35
|
-
export interface PartialReactionAnnotation {
|
|
36
|
-
annotationId: string;
|
|
37
|
-
metadata?: BaseMetadata;
|
|
38
|
-
icon?: string;
|
|
39
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export interface ResolverConfig {
|
|
2
|
-
resolveTimeout?: number;
|
|
3
|
-
saveRetryConfig?: RetryConfig;
|
|
4
|
-
deleteRetryConfig?: RetryConfig;
|
|
5
|
-
}
|
|
6
|
-
export interface ResolverResponse<T> {
|
|
7
|
-
data?: T;
|
|
8
|
-
success: boolean;
|
|
9
|
-
message?: string;
|
|
10
|
-
timestamp?: number;
|
|
11
|
-
statusCode: number;
|
|
12
|
-
}
|
|
13
|
-
export interface RetryConfig {
|
|
14
|
-
retryCount?: number;
|
|
15
|
-
retryDelay?: number;
|
|
16
|
-
revertOnFailure?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export interface ResolverResponseConfig {
|
|
19
|
-
revertOnFailure?: boolean;
|
|
20
|
-
isSuccess?: boolean;
|
|
21
|
-
}
|