nb-js-client 1.0.77 → 1.0.79

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.
@@ -33,7 +33,7 @@ export declare class SpaceFilesApiService {
33
33
  trashAll(id: number): Promise<void>;
34
34
  lock(id: number, file_id: string): Promise<StorageElementVersionLock>;
35
35
  unlock(id: number, file_id: string): Promise<void>;
36
- branch(id: number, file_id: string): Promise<any>;
36
+ branch(id: number, file_id: string): Promise<ResponseList<SpaceElement>>;
37
37
  }
38
38
  export type RequestSpaceElementListParams = Pick<RequestStorageListParams, 'is_search_dir' | 'limit' | 'max_size' | 'min_size' | 'offset' | 'order_by' | 'order_direction' | 'search' | 'type' | 'content_types' | 'zip_prefix'> & {
39
39
  parent_id?: string;
package/dist/index.d.ts CHANGED
@@ -912,6 +912,7 @@ interface UserNotification {
912
912
  owner?: UserLabel;
913
913
  is_other_content?: boolean;
914
914
  task_notification_id?: number;
915
+ task_notification?: TaskNotification;
915
916
  }
916
917
  declare enum NotificationEntityType {
917
918
  Dir = "dir",
@@ -1020,6 +1021,7 @@ interface TaskNotification {
1020
1021
  id: number;
1021
1022
  markdown_body?: string | string[] | number[];
1022
1023
  media_file_id?: string;
1024
+ payload?: Record<string, string>;
1023
1025
  }
1024
1026
 
1025
1027
  interface Permission {
@@ -1957,7 +1959,7 @@ declare class SpaceFilesApiService {
1957
1959
  trashAll(id: number): Promise<void>;
1958
1960
  lock(id: number, file_id: string): Promise<StorageElementVersionLock>;
1959
1961
  unlock(id: number, file_id: string): Promise<void>;
1960
- branch(id: number, file_id: string): Promise<any>;
1962
+ branch(id: number, file_id: string): Promise<ResponseList<SpaceElement>>;
1961
1963
  }
1962
1964
  type RequestSpaceElementListParams = Pick<RequestStorageListParams, 'is_search_dir' | 'limit' | 'max_size' | 'min_size' | 'offset' | 'order_by' | 'order_direction' | 'search' | 'type' | 'content_types' | 'zip_prefix'> & {
1963
1965
  parent_id?: string;
@@ -17,6 +17,7 @@ export interface UserNotification {
17
17
  owner?: UserLabel;
18
18
  is_other_content?: boolean;
19
19
  task_notification_id?: number;
20
+ task_notification?: TaskNotification;
20
21
  }
21
22
  export declare enum NotificationEntityType {
22
23
  Dir = "dir",
@@ -125,5 +126,6 @@ export interface TaskNotification {
125
126
  id: number;
126
127
  markdown_body?: string | string[] | number[];
127
128
  media_file_id?: string;
129
+ payload?: Record<string, string>;
128
130
  }
129
131
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nb-js-client",
3
- "version": "1.0.77",
3
+ "version": "1.0.79",
4
4
  "main": "dist/bundle.cjs.js",
5
5
  "module": "dist/bundle.esm.js",
6
6
  "files": [