@veltdev/types-dev 4.2.0 → 4.2.1-beta.10

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.
@@ -1,6 +1,6 @@
1
1
  // @ts-nocheck
2
2
  import { Observable } from "rxjs";
3
- import { Config } from "../models/data/config.data.model";
3
+ import { Config, DisableLogsConfig } from "../models/data/config.data.model";
4
4
  import { DocumentUser } from "../models/data/document-user.data.model";
5
5
  import { Location } from "../models/data/location.model";
6
6
  import { User, UserOptions } from "../models/data/user.data.model";
@@ -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
  */
@@ -307,5 +309,5 @@ export declare class Snippyly {
307
309
  /**
308
310
  * To disable logs.
309
311
  */
310
- disableLogs: () => void;
312
+ disableLogs: (config?: DisableLogsConfig) => void;
311
313
  }
@@ -58,3 +58,7 @@ export interface AdvancedQueries {
58
58
  advancedQueriesEnabled: boolean;
59
59
  advancedQueriesEnabledTime: number;
60
60
  }
61
+ export interface DisableLogsConfig {
62
+ warnings?: boolean;
63
+ suppressAll?: boolean;
64
+ }
@@ -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
- documentId: string;
16
- [key: string]: any;
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
+ documentId: 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 {
@@ -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
  }
@@ -396,14 +396,14 @@ export declare class CommentElement {
396
396
  /**
397
397
  * To get documentId, location and set context data when comment is added.
398
398
  *
399
- * @deprecated Use `AddCommentAnnotationEvent` instead
399
+ * @legacy Use `AddCommentAnnotationEvent` instead
400
400
  */
401
401
  public onCommentAdd: () => Observable<CommentAddEventData>;
402
402
 
403
403
  /**
404
404
  * To get data when comment is updated.
405
405
  *
406
- * @deprecated Use action specific events instead
406
+ * @legacy Use action specific events instead
407
407
  */
408
408
  public onCommentUpdate: () => Observable<CommentUpdateEventData>;
409
409
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/types-dev",
3
- "version": "4.2.0",
3
+ "version": "4.2.1-beta.10",
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": [