@veltdev/types-dev 4.2.1-beta.4 → 4.2.1-beta.6

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
  */
@@ -11,10 +11,20 @@ export interface SetDocumentsRequestOptions {
11
11
  }
12
12
  export interface UpdateDocumentsRequest {
13
13
  organizationId?: string;
14
- documents?: {
15
- documentId: string;
16
- [key: string]: any;
17
- }[];
14
+ documents?: UpdateDocumentMetadata[];
15
+ }
16
+ export interface UpdateDocumentMetadata {
17
+ documentId: string;
18
+ [key: string]: any;
19
+ }
20
+ export interface UpdateLocationsRequest {
21
+ organizationId?: string;
22
+ documentId: string;
23
+ locations?: UpdateLocationMetadata[];
24
+ }
25
+ export interface UpdateLocationMetadata {
26
+ id: string;
27
+ [key: string]: any;
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 {
@@ -17,4 +18,13 @@ export declare class LocationMetadata {
17
18
  * Page metadata
18
19
  */
19
20
  pageInfo?: PageInfo;
21
+ /**
22
+ * Location metadata
23
+ */
24
+ metadata?: BaseMetadata;
25
+ }
26
+ export interface LocationMetadatas {
27
+ [documentId: string]: {
28
+ [locationId: string]: LocationMetadata;
29
+ };
20
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/types-dev",
3
- "version": "4.2.1-beta.4",
3
+ "version": "4.2.1-beta.6",
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": [