nb-js-client 0.0.88 → 0.0.89

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/dist/index.d.ts CHANGED
@@ -806,6 +806,42 @@ interface LockScreen {
806
806
  duration: number;
807
807
  }
808
808
 
809
+ interface ArchiveProcess<T extends ArchivePayload | ArchiveEndPayload> {
810
+ create_date: string;
811
+ entity_type: string;
812
+ service_name: string;
813
+ action: NotificationAction;
814
+ title: string;
815
+ read: boolean;
816
+ style: string;
817
+ payload: T;
818
+ user_id: number;
819
+ event_timestamp: string;
820
+ type_message: string;
821
+ from_user_id: number | null;
822
+ id?: number;
823
+ }
824
+ interface ArchivePayload {
825
+ process_id: string;
826
+ src_path: string;
827
+ zip_name: string;
828
+ current_file: string;
829
+ sum_size: number;
830
+ written_size: number;
831
+ progress: number;
832
+ speed: number;
833
+ seconds_left: number;
834
+ }
835
+ interface ArchiveEndPayload {
836
+ process_id: string;
837
+ element_path: string;
838
+ ref_code: string;
839
+ zip_name: string;
840
+ error?: string;
841
+ divide_id?: number;
842
+ zip_size?: number;
843
+ }
844
+
809
845
  interface UserNotification {
810
846
  id: number;
811
847
  create_date: string;
@@ -886,7 +922,7 @@ interface NotificationActionEnabledGroup {
886
922
  enabled_system: boolean;
887
923
  enabled_mail: boolean;
888
924
  }
889
- type NotificationPayload = PayloadFile | any;
925
+ type NotificationPayload = PayloadFile | ArchiveEndPayload | any;
890
926
  interface PayloadFile {
891
927
  access_mode: PermissionType;
892
928
  create_date: string;
@@ -983,41 +1019,6 @@ type StorageTrashElement = StorageElement & {
983
1019
  };
984
1020
  type StorageTrashItem = Pick<StorageTrashElement, 'del_group_id' | 'path'>;
985
1021
 
986
- interface ArchiveProcess<T extends ArchivePayload | ArchiveEndPayload> {
987
- create_date: string;
988
- entity_type: string;
989
- service_name: string;
990
- action: NotificationAction;
991
- title: string;
992
- read: boolean;
993
- style: string;
994
- payload: T;
995
- user_id: number;
996
- event_timestamp: string;
997
- type_message: string;
998
- from_user_id: number | null;
999
- id?: number;
1000
- }
1001
- interface ArchivePayload {
1002
- process_id: string;
1003
- src_path: string;
1004
- zip_name: string;
1005
- current_file: string;
1006
- sum_size: number;
1007
- written_size: number;
1008
- progress: number;
1009
- speed: number;
1010
- seconds_left: number;
1011
- }
1012
- interface ArchiveEndPayload {
1013
- process_id: string;
1014
- element_path: string;
1015
- ref_code: string;
1016
- zip_name: string;
1017
- error?: string;
1018
- divide_id?: number;
1019
- }
1020
-
1021
1022
  declare const BASE_URL_V1 = "/api/v1";
1022
1023
  declare const BASE_URL_V2 = "/api/v2";
1023
1024
  declare class Rest {
@@ -32,4 +32,5 @@ export interface ArchiveEndPayload {
32
32
  zip_name: string;
33
33
  error?: string;
34
34
  divide_id?: number;
35
+ zip_size?: number;
35
36
  }
@@ -1,3 +1,4 @@
1
+ import { ArchiveEndPayload } from './archive';
1
2
  import { PermissionType } from './divide';
2
3
  import { StorageElementType } from './storage';
3
4
  import { UserLabel } from './user';
@@ -81,7 +82,7 @@ interface NotificationActionEnabledGroup {
81
82
  enabled_system: boolean;
82
83
  enabled_mail: boolean;
83
84
  }
84
- export type NotificationPayload = PayloadFile | any;
85
+ export type NotificationPayload = PayloadFile | ArchiveEndPayload | any;
85
86
  export interface PayloadFile {
86
87
  access_mode: PermissionType;
87
88
  create_date: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nb-js-client",
3
- "version": "0.0.88",
3
+ "version": "0.0.89",
4
4
  "main": "dist/bundle.cjs.js",
5
5
  "module": "dist/bundle.esm.js",
6
6
  "files": [