@veltdev/types-dev 4.2.0-beta.11 → 4.2.0-beta.2
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 +3 -8
- package/app/models/data/comment-annotation.data.model.d.ts +0 -1
- package/app/models/data/comment-resolver.data.model.d.ts +15 -16
- package/app/models/data/document.data.model.d.ts +0 -7
- package/app/models/data/event-metadata.data.model.d.ts +0 -1
- package/app/models/data/location-metadata.model.d.ts +0 -4
- package/app/models/data/provider.data.model.d.ts +1 -1
- package/app/models/element/comment-element.model.d.ts +2 -12
- package/app/utils/constants.d.ts +0 -1
- package/package.json +1 -1
|
@@ -26,10 +26,10 @@ import { DocumentMetadata } from "../models/data/document-metadata.model";
|
|
|
26
26
|
import { ReactionElement } from "../models/element/reaction-element.model";
|
|
27
27
|
import { VeltEventMetadata } from "../models/data/event-metadata.data.model";
|
|
28
28
|
import { CoreEventTypesMap } from "../models/data/core-events.data.model";
|
|
29
|
-
import { Document, SetDocumentsRequestOptions, FetchDocumentsRequest, FetchFoldersRequest
|
|
29
|
+
import { Document, SetDocumentsRequestOptions, FetchDocumentsRequest, FetchFoldersRequest } from "../models/data/document.data.model";
|
|
30
30
|
import { FetchDocumentsResponse, FetchFoldersResponse } from "../models/data/document-events.data.model";
|
|
31
31
|
import { UserDataProvider } from "../models/data/user-resolver.data.model";
|
|
32
|
-
import {
|
|
32
|
+
import { IVeltDataProvider } from "../models/data/provider.data.model";
|
|
33
33
|
|
|
34
34
|
export declare class Snippyly {
|
|
35
35
|
constructor();
|
|
@@ -71,11 +71,6 @@ export declare class Snippyly {
|
|
|
71
71
|
* To fetch documents
|
|
72
72
|
*/
|
|
73
73
|
fetchDocuments: (options?: FetchDocumentsRequest) => Promise<FetchDocumentsResponse>;
|
|
74
|
-
/**
|
|
75
|
-
* To update documents
|
|
76
|
-
*/
|
|
77
|
-
updateDocuments: (request: UpdateDocumentsRequest) => Promise<any>;
|
|
78
|
-
|
|
79
74
|
/**
|
|
80
75
|
* To fetch folders
|
|
81
76
|
*/
|
|
@@ -87,7 +82,7 @@ export declare class Snippyly {
|
|
|
87
82
|
/**
|
|
88
83
|
* To set the data provider.
|
|
89
84
|
*/
|
|
90
|
-
setDataProviders: (dataProvider:
|
|
85
|
+
setDataProviders: (dataProvider: IVeltDataProvider) => void;
|
|
91
86
|
/**
|
|
92
87
|
* Get Document ID
|
|
93
88
|
*/
|
|
@@ -1,42 +1,41 @@
|
|
|
1
1
|
import { BaseMetadata } from "./base-metadata.data.model";
|
|
2
2
|
import { CommentAnnotation } from "./comment-annotation.data.model";
|
|
3
3
|
export interface CommentAnnotationDataProvider {
|
|
4
|
-
get: (request:
|
|
5
|
-
save: (request:
|
|
6
|
-
delete: (
|
|
4
|
+
get: (request: CommentAnnotationRequest) => Promise<Record<string, IStrippedCommentAnnotation>>;
|
|
5
|
+
save: (request: ISaveAnnotationRequest) => Promise<IStrippedCommentAnnotation>;
|
|
6
|
+
delete: ({ commentAnnotationId, metadata }: {
|
|
7
|
+
commentAnnotationId: string | number;
|
|
8
|
+
metadata?: BaseMetadata;
|
|
9
|
+
}) => Promise<void>;
|
|
7
10
|
resolveTimeout?: number;
|
|
8
11
|
}
|
|
9
|
-
export interface
|
|
12
|
+
export interface CommentAnnotationRequest {
|
|
10
13
|
organizationId: string;
|
|
11
14
|
commentAnnotationIds?: string[];
|
|
12
15
|
documentIds?: string[];
|
|
13
16
|
folderId?: string;
|
|
14
17
|
allDocuments?: boolean;
|
|
15
18
|
}
|
|
16
|
-
export interface
|
|
17
|
-
commentAnnotationId: string;
|
|
18
|
-
metadata?: BaseMetadata;
|
|
19
|
-
}
|
|
20
|
-
export interface SaveCommentRequest {
|
|
19
|
+
export interface ISaveAnnotationRequest {
|
|
21
20
|
commentAnnotation: {
|
|
22
|
-
[key: string]:
|
|
21
|
+
[key: string]: IStrippedCommentAnnotation;
|
|
23
22
|
};
|
|
24
23
|
}
|
|
25
|
-
export interface
|
|
24
|
+
export interface StrippedComment {
|
|
26
25
|
commentId: string | number;
|
|
27
26
|
commentHtml?: string;
|
|
28
27
|
commentText?: string;
|
|
29
28
|
}
|
|
30
|
-
export interface
|
|
29
|
+
export interface StrippedCommentAnnotationResult {
|
|
31
30
|
strippedData: {
|
|
32
|
-
[annotationId: string]:
|
|
31
|
+
[annotationId: string]: IStrippedCommentAnnotation;
|
|
33
32
|
} | null;
|
|
34
33
|
originalData: CommentAnnotation | null;
|
|
35
34
|
}
|
|
36
|
-
export interface
|
|
35
|
+
export interface IStrippedCommentAnnotation {
|
|
37
36
|
annotationId: string;
|
|
38
|
-
metadata?:
|
|
37
|
+
metadata?: any;
|
|
39
38
|
comments: {
|
|
40
|
-
[commentId: string]:
|
|
39
|
+
[commentId: string]: StrippedComment;
|
|
41
40
|
};
|
|
42
41
|
}
|
|
@@ -9,13 +9,6 @@ export interface SetDocumentsRequestOptions {
|
|
|
9
9
|
allDocuments?: boolean;
|
|
10
10
|
locationId?: string;
|
|
11
11
|
}
|
|
12
|
-
export interface UpdateDocumentsRequest {
|
|
13
|
-
organizationId?: string;
|
|
14
|
-
documents?: {
|
|
15
|
-
documentId: string;
|
|
16
|
-
[key: string]: any;
|
|
17
|
-
}[];
|
|
18
|
-
}
|
|
19
12
|
export interface FetchDocumentsRequest {
|
|
20
13
|
organizationId?: string;
|
|
21
14
|
documentIds?: string[];
|
|
@@ -5,10 +5,6 @@ export declare class LocationMetadata {
|
|
|
5
5
|
* Unique location id generated from client location information
|
|
6
6
|
*/
|
|
7
7
|
locationId?: number;
|
|
8
|
-
/**
|
|
9
|
-
* Location id generated from velt location information
|
|
10
|
-
*/
|
|
11
|
-
veltLocationId?: string;
|
|
12
8
|
/**
|
|
13
9
|
* Location object provided by a client
|
|
14
10
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CommentAnnotationDataProvider } from "./comment-resolver.data.model";
|
|
2
2
|
import { UserDataProvider } from "./user-resolver.data.model";
|
|
3
|
-
export interface
|
|
3
|
+
export interface IVeltDataProvider {
|
|
4
4
|
comment?: CommentAnnotationDataProvider;
|
|
5
5
|
user?: UserDataProvider;
|
|
6
6
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
3
|
import { CommentAnnotation, CommentOnElementConfig, CommentSelectionChangeData, ManualCommentAnnotationConfig, UpdateContextConfig } from "../data/comment-annotation.data.model";
|
|
4
|
-
import { AcceptCommentAnnotationEvent, AddCommentAnnotationEvent, AddCommentEvent, AddReactionEvent, ApproveCommentAnnotationEvent, CommentAddEventData, CommentEventTypesMap, CommentUpdateEventData, CopyLinkEvent, DeleteAttachmentEvent, DeleteCommentAnnotationEvent, DeleteCommentEvent, DeleteReactionEvent, DeleteRecordingEvent, GetLinkEvent, RejectCommentAnnotationEvent, ToggleReactionEvent, UpdateAccessEvent, UpdateCommentEvent, UpdatePriorityEvent, UpdateStatusEvent, GetCommentAnnotationsResponse, GetCommentAnnotationsCountResponse
|
|
4
|
+
import { AcceptCommentAnnotationEvent, AddCommentAnnotationEvent, AddCommentEvent, AddReactionEvent, ApproveCommentAnnotationEvent, CommentAddEventData, CommentEventTypesMap, CommentUpdateEventData, CopyLinkEvent, DeleteAttachmentEvent, DeleteCommentAnnotationEvent, DeleteCommentEvent, DeleteReactionEvent, DeleteRecordingEvent, GetLinkEvent, RejectCommentAnnotationEvent, ToggleReactionEvent, UpdateAccessEvent, UpdateCommentEvent, UpdatePriorityEvent, UpdateStatusEvent, GetCommentAnnotationsResponse, GetCommentAnnotationsCountResponse } from "../data/comment-events.data.model";
|
|
5
5
|
import { CustomCategory, CustomPriority, CustomStatus } from "../data/custom-filter.data.model";
|
|
6
6
|
import { CustomAnnotationDropdownData } from "../data/custom-chip-dropdown.data.model";
|
|
7
7
|
import { AutocompleteData } from "../data/autocomplete.data.model";
|
|
8
8
|
import { CommentSidebarCustomActionEventData, CommentSidebarData, CommentSidebarDataOptions } from "../data/comment-sidebar-config.model";
|
|
9
9
|
export { ReactionMap } from '../data/reaction-annotation.data.model';
|
|
10
|
-
import { AcceptCommentAnnotationRequest, AddAttachmentRequest, AddAttachmentResponse, AddCommentAnnotationRequest, AddCommentRequest, AddReactionRequest, ApproveCommentAnnotationRequest, AssignUserRequest, AssignUserEvent, CopyLinkRequest, DeleteAttachmentRequest, DeleteCommentAnnotationRequest, CommentRequestQuery, CommentRequestQuery, DeleteCommentRequest, DeleteReactionRequest, DeleteRecordingRequest, GetAttachmentRequest, GetCommentRequest, GetLinkRequest, GetRecordingRequest, RejectCommentAnnotationRequest, ResolveCommentAnnotationRequest, SubscribeCommentAnnotationRequest, UnsubscribeCommentAnnotationRequest, ToggleReactionRequest, UpdateAccessRequest, UpdateCommentRequest, UpdatePriorityRequest, UpdateStatusRequest
|
|
10
|
+
import { AcceptCommentAnnotationRequest, AddAttachmentRequest, AddAttachmentResponse, AddCommentAnnotationRequest, AddCommentRequest, AddReactionRequest, ApproveCommentAnnotationRequest, AssignUserRequest, AssignUserEvent, CopyLinkRequest, DeleteAttachmentRequest, DeleteCommentAnnotationRequest, CommentRequestQuery, CommentRequestQuery, DeleteCommentRequest, DeleteReactionRequest, DeleteRecordingRequest, GetAttachmentRequest, GetCommentRequest, GetLinkRequest, GetRecordingRequest, RejectCommentAnnotationRequest, ResolveCommentAnnotationRequest, SubscribeCommentAnnotationRequest, UnsubscribeCommentAnnotationRequest, ToggleReactionRequest, UpdateAccessRequest, UpdateCommentRequest, UpdatePriorityRequest, UpdateStatusRequest } from "../data/comment-actions.data.model";
|
|
11
11
|
import { UnreadCommentsCount, TransformContext } from "../data/comment-utils.data.model";
|
|
12
12
|
export declare class CommentElement {
|
|
13
13
|
/**
|
|
@@ -1088,11 +1088,6 @@ export declare class CommentElement {
|
|
|
1088
1088
|
*/
|
|
1089
1089
|
public setTransformContext: (transformContext: TransformContext) => void;
|
|
1090
1090
|
|
|
1091
|
-
/**
|
|
1092
|
-
* To fetch comment annotations
|
|
1093
|
-
*/
|
|
1094
|
-
public fetchCommentAnnotations: (fetchCommentAnnotationsRequest: FetchCommentAnnotationsRequest) => Promise<FetchCommentAnnotationsResponse>;
|
|
1095
|
-
|
|
1096
1091
|
constructor();
|
|
1097
1092
|
/**
|
|
1098
1093
|
* Subscribe to comments on the current document.
|
|
@@ -2162,9 +2157,4 @@ export declare class CommentElement {
|
|
|
2162
2157
|
* To set transform context
|
|
2163
2158
|
*/
|
|
2164
2159
|
private _setTransformContext;
|
|
2165
|
-
|
|
2166
|
-
/**
|
|
2167
|
-
* To fetch comment annotations
|
|
2168
|
-
*/
|
|
2169
|
-
private _fetchCommentAnnotations;
|
|
2170
2160
|
}
|
package/app/utils/constants.d.ts
CHANGED
|
@@ -20,7 +20,6 @@ export declare class Constants {
|
|
|
20
20
|
static FIREBASE_PARTIAL_PATH_ARROW: string;
|
|
21
21
|
static FIREBASE_PARTIAL_PATH_AREA: string;
|
|
22
22
|
static FIREBASE_PARTIAL_PATH_COMMENT: string;
|
|
23
|
-
static FIREBASE_PARTIAL_PATH_LOCATION: string;
|
|
24
23
|
static FIREBASE_PARTIAL_PATH_MULTI_THREAD: string;
|
|
25
24
|
static FIREBASE_PARTIAL_PATH_TAG: string;
|
|
26
25
|
static FIREBASE_PARTIAL_PATH_SELECTION: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/types-dev",
|
|
3
|
-
"version": "4.2.0-beta.
|
|
3
|
+
"version": "4.2.0-beta.2",
|
|
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": [
|