@veltdev/sdk 4.2.1-beta.3 → 4.2.1-beta.4
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.
|
@@ -26,7 +26,7 @@ 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, UpdateDocumentsRequest } from "../models/data/document.data.model";
|
|
29
|
+
import { Document, SetDocumentsRequestOptions, FetchDocumentsRequest, FetchFoldersRequest, UpdateDocumentsRequest, UpdateLocationsRequest } 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
32
|
import { VeltDataProvider } from "../models/data/provider.data.model";
|
|
@@ -76,6 +76,8 @@ export declare class Snippyly {
|
|
|
76
76
|
*/
|
|
77
77
|
updateDocuments: (request: UpdateDocumentsRequest) => Promise<any>;
|
|
78
78
|
|
|
79
|
+
updateLocations: (request: UpdateLocationsRequest) => Promise<any>;
|
|
80
|
+
|
|
79
81
|
/**
|
|
80
82
|
* To fetch folders
|
|
81
83
|
*/
|
|
@@ -9,12 +9,22 @@ export interface SetDocumentsRequestOptions {
|
|
|
9
9
|
allDocuments?: boolean;
|
|
10
10
|
locationId?: string;
|
|
11
11
|
}
|
|
12
|
-
export interface UpdateDocumentsRequest {
|
|
12
|
+
export interface UpdateDocumentsRequest<T = unknown> {
|
|
13
13
|
organizationId?: string;
|
|
14
|
-
documents?:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
documents?: UpdateDocumentMetadata<T>[];
|
|
15
|
+
}
|
|
16
|
+
export interface UpdateDocumentMetadata<T = unknown> {
|
|
17
|
+
documentId: string;
|
|
18
|
+
[key: string]: T | string;
|
|
19
|
+
}
|
|
20
|
+
export interface UpdateLocationsRequest<T = unknown> {
|
|
21
|
+
organizationId?: string;
|
|
22
|
+
documentIds?: string[];
|
|
23
|
+
locations?: UpdateLocationMetadata<T>[];
|
|
24
|
+
}
|
|
25
|
+
export interface UpdateLocationMetadata<T = unknown> {
|
|
26
|
+
id: string;
|
|
27
|
+
[key: string]: T | string;
|
|
18
28
|
}
|
|
19
29
|
export interface FetchDocumentsRequest {
|
|
20
30
|
organizationId?: string;
|
|
@@ -22,6 +32,12 @@ export interface FetchDocumentsRequest {
|
|
|
22
32
|
folderId?: string;
|
|
23
33
|
allDocuments?: boolean;
|
|
24
34
|
}
|
|
35
|
+
export interface FetchLocationsRequest {
|
|
36
|
+
organizationId?: string;
|
|
37
|
+
documentIds?: string[];
|
|
38
|
+
folderId?: string;
|
|
39
|
+
allDocuments?: boolean;
|
|
40
|
+
}
|
|
25
41
|
export interface FetchFoldersRequest {
|
|
26
42
|
organizationId?: string;
|
|
27
43
|
folderId?: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BaseMetadata } from "./base-metadata.data.model";
|
|
1
2
|
import { Location } from "./location.model";
|
|
2
3
|
import { PageInfo } from "./page-info.model";
|
|
3
4
|
export declare class LocationMetadata {
|
|
@@ -5,6 +6,10 @@ export declare class LocationMetadata {
|
|
|
5
6
|
* Unique location id generated from client location information
|
|
6
7
|
*/
|
|
7
8
|
locationId?: number;
|
|
9
|
+
/**
|
|
10
|
+
* Location id generated from velt location information
|
|
11
|
+
*/
|
|
12
|
+
veltLocationId?: string;
|
|
8
13
|
/**
|
|
9
14
|
* Location object provided by a client
|
|
10
15
|
*/
|
|
@@ -13,4 +18,13 @@ export declare class LocationMetadata {
|
|
|
13
18
|
* Page metadata
|
|
14
19
|
*/
|
|
15
20
|
pageInfo?: PageInfo;
|
|
21
|
+
/**
|
|
22
|
+
* Location metadata
|
|
23
|
+
*/
|
|
24
|
+
metadata?: BaseMetadata;
|
|
25
|
+
}
|
|
26
|
+
export interface LocationMetadatas {
|
|
27
|
+
[documentId: string]: {
|
|
28
|
+
[locationId: string]: LocationMetadata;
|
|
29
|
+
};
|
|
16
30
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk",
|
|
3
|
-
"version": "4.2.1-beta.
|
|
3
|
+
"version": "4.2.1-beta.4",
|
|
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": [
|